No, I don't see the changes. Maybe I should be more specific about what
I'm doing.<br><br>I have an AdminUtility registered with the below
method that I call from a view. If I inspect the root object after that
method exists newsite isn't in there. <br>
<br>from zope.site.folder import rootFolder<br>def install(self)<br>
newsite = NewSite()<br> newsite.setSiteManager(LocalSiteManager(newsite))<br><div id=":ea" class="ii gt">
root = rootFolder()<br> import pdb; pdb.set_trace()<br>
root['newsite'] = newsite<br> root._p_changed = True<br>
transaction.commit()</div><br><br><div class="gmail_quote">On Wed, Jun 30, 2010 at 3:11 PM, Christophe Combelles <span dir="ltr"><<a href="mailto:ccomb@free.fr">ccomb@free.fr</a>></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 20:31, Jim Pharis a écrit :<br>
<div><div></div><div class="h5">> I'm trying out BlueBream 1.0b2 and I'm running into a problem with<br>
> Persistent objects. The installation is pretty out of the box at this<br>
> point. When I use .\bin\paster shell debug.ini I seem to be able to<br>
> create Persistent objects and transaction.commit and changed objects are<br>
> properly committed. However, when I start using either .\bin\paster<br>
> serve debug.ini or .\bin\paster serve deploy.ini, no matter what I do to<br>
> Persistent objects transaction.commit() returns None. I noticed that<br>
> even if I directly set obj._p_changed=1 it doesn't work, and if I look<br>
> at _p_changed right away, I see its been reverted back to False. What am<br>
> I doing wrong here?<br>
<br>
</div></div>Hi!<br>
<br>
transaction.commit() is not supposed to return anything, don't you see the<br>
changes in your application after ending the debug session and returning to the<br>
paster serve ?<br>
<br>
Christophe<br>
<br>
><br>
> TIA,<br>
><br>
> - Jim<br>
><br>
><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>
<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>
</blockquote></div><br>