So I'm mistaken about the purpose of the rootFolder method then. 
However, I can't really use the IDataOpenedWithRootEvent cleanly because
 I don't want the root obj when the connection is opened, I want it 
later. Therefore, getting at the root obj still isn't real obvious to me
 in this situation.<br><br><div class="gmail_quote">On Wed, Jun 30, 2010 at 4:06 PM, Christophe Combelles <span dir="ltr">&lt;<a href="mailto:ccomb@free.fr">ccomb@free.fr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Le 30/06/2010 21:47, Jim Pharis a écrit :<br>
<div class="im">&gt; No, I don&#39;t see the changes. Maybe I should be more specific about what<br>
&gt; I&#39;m doing.<br>
&gt;<br>
&gt; I have an AdminUtility registered with the below method that I call from<br>
&gt; a view. If I inspect the root object after that method exists newsite<br>
&gt; isn&#39;t in there.<br>
&gt;<br>
&gt; from zope.site.folder import rootFolder<br>
&gt; def install(self)<br>
&gt;          newsite = NewSite()<br>
&gt;          newsite.setSiteManager(LocalSiteManager(newsite))<br>
&gt;          root = rootFolder()<br>
&gt;          import pdb; pdb.set_trace()<br>
&gt;          root[&#39;newsite&#39;] = newsite<br>
&gt;          root._p_changed = True<br>
&gt;          transaction.commit()<br>
<br>
<br>
</div>You&#39;re creating a root object in a local variable, and this variable is<br>
destroyed at the end of the function. You should retrieve the root instead of<br>
creating it, since an empty ZODB always has a root object.<br>
<br>
<a href="http://bluebream.zope.org/doc/1.0/faq.html#how-do-i-automatically-create-some-needed-object-at-application-startup" target="_blank">http://bluebream.zope.org/doc/1.0/faq.html#how-do-i-automatically-create-some-needed-object-at-application-startup</a><br>

<div class="im"><br>
&gt;<br>
&gt;<br>
&gt; On Wed, Jun 30, 2010 at 3:11 PM, Christophe Combelles &lt;<a href="mailto:ccomb@free.fr">ccomb@free.fr</a><br>
</div><div><div></div><div class="h5">&gt; &lt;mailto:<a href="mailto:ccomb@free.fr">ccomb@free.fr</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     Le 30/06/2010 20:31, Jim Pharis a écrit :<br>
&gt;      &gt; I&#39;m trying out BlueBream 1.0b2 and I&#39;m running into a problem with<br>
&gt;      &gt; Persistent objects. The installation is pretty out of the box at this<br>
&gt;      &gt; point. When I use .\bin\paster shell debug.ini I seem to be able to<br>
&gt;      &gt; create Persistent objects and transaction.commit and changed<br>
&gt;     objects are<br>
&gt;      &gt; properly committed. However, when I start using either .\bin\paster<br>
&gt;      &gt; serve debug.ini or .\bin\paster serve deploy.ini, no matter what<br>
&gt;     I do to<br>
&gt;      &gt; Persistent objects transaction.commit() returns None. I noticed that<br>
&gt;      &gt; even if I directly set obj._p_changed=1 it doesn&#39;t work, and if I<br>
&gt;     look<br>
&gt;      &gt; at _p_changed right away, I see its been reverted back to False.<br>
&gt;     What am<br>
&gt;      &gt; I doing wrong here?<br>
&gt;<br>
&gt;     Hi!<br>
&gt;<br>
&gt;     transaction.commit() is not supposed to return anything, don&#39;t you<br>
&gt;     see the<br>
&gt;     changes in your application after ending the debug session and<br>
&gt;     returning to the<br>
&gt;     paster serve ?<br>
&gt;<br>
&gt;     Christophe<br>
&gt;<br>
&gt;      &gt;<br>
&gt;      &gt; TIA,<br>
&gt;      &gt;<br>
&gt;      &gt; - Jim<br>
&gt;      &gt;<br>
&gt;      &gt;<br>
&gt;      &gt;<br>
&gt;      &gt; _______________________________________________<br>
&gt;      &gt; bluebream mailing list<br>
</div></div>&gt;      &gt; <a href="mailto:bluebream@zope.org">bluebream@zope.org</a> &lt;mailto:<a href="mailto:bluebream@zope.org">bluebream@zope.org</a>&gt;<br>
<div class="im">&gt;      &gt; <a href="https://mail.zope.org/mailman/listinfo/bluebream" target="_blank">https://mail.zope.org/mailman/listinfo/bluebream</a><br>
&gt;<br>
&gt;     _______________________________________________<br>
&gt;     bluebream mailing list<br>
</div>&gt;     <a href="mailto:bluebream@zope.org">bluebream@zope.org</a> &lt;mailto:<a href="mailto:bluebream@zope.org">bluebream@zope.org</a>&gt;<br>
<div><div></div><div class="h5">&gt;     <a href="https://mail.zope.org/mailman/listinfo/bluebream" target="_blank">https://mail.zope.org/mailman/listinfo/bluebream</a><br>
&gt;<br>
&gt;<br>
<br>
_______________________________________________<br>
bluebream mailing list<br>
<a href="mailto:bluebream@zope.org">bluebream@zope.org</a><br>
<a href="https://mail.zope.org/mailman/listinfo/bluebream" target="_blank">https://mail.zope.org/mailman/listinfo/bluebream</a><br>
</div></div></blockquote></div><br>