[Zope-CMF] Re: five.intid and DirectoryView

2008-06-26 Thread Ross Patterson
"Martijn Pieters" <[EMAIL PROTECTED]> writes: > On Thu, Jun 26, 2008 at 5:26 AM, Ross Patterson <[EMAIL PROTECTED]> wrote: >> This seems wrong in that the object subclasses >> Persistent but is being used in a way that doesn't allow it to be stored >> in a ZODB. Why do the FSObject classes subcla

[Zope-CMF] Re: five.intid and DirectoryView

2008-06-26 Thread Ross Patterson
"Martijn Pieters" <[EMAIL PROTECTED]> writes: > On Thu, Jun 26, 2008 at 7:15 PM, Ross Patterson <[EMAIL PROTECTED]> wrote: >>> I think because they are also used to create TTW skin objects; hit >>> 'customize' on one such object in the skins directory and a copy is >>> created that *is* persisted.

[Zope-CMF] Re: five.intid and DirectoryView

2008-06-27 Thread Ross Patterson
"Martijn Pieters" <[EMAIL PROTECTED]> writes: > On Thu, Jun 26, 2008 at 10:08 PM, Ross Patterson <[EMAIL PROTECTED]> wrote: >> But since the FSObjects provide IPersistent, they can be added to a >> connection. If they're added to a connection, the object can be >> ghosted when that connection is

[Zope-CMF] Re: five.intid and DirectoryView

2008-06-28 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martijn Pieters wrote: > On Fri, Jun 27, 2008 at 6:53 PM, Ross Patterson <[EMAIL PROTECTED]> wrote: >> "Martijn Pieters" <[EMAIL PROTECTED]> writes: >>> But the code never does that. When cloning a file-based FSObject, a >>> new instance is created and

[Zope-CMF] Re: five.intid and DirectoryView

2008-06-28 Thread Ross Patterson
Tres Seaver <[EMAIL PROTECTED]> writes: > Martijn Pieters wrote: >> On Fri, Jun 27, 2008 at 6:53 PM, Ross Patterson <[EMAIL PROTECTED]> wrote: >>> "Martijn Pieters" <[EMAIL PROTECTED]> writes: But the code never does that. When cloning a file-based FSObject, a new instance is created and

[Zope-CMF] Re: five.intid and DirectoryView

2008-06-30 Thread Laurence Rowe
Ross Patterson wrote: Tres Seaver <[EMAIL PROTECTED]> writes: Martijn Pieters wrote: On Fri, Jun 27, 2008 at 6:53 PM, Ross Patterson <[EMAIL PROTECTED]> wrote: "Martijn Pieters" <[EMAIL PROTECTED]> writes: But the code never does that. When cloning a file-based FSObject, a new instance is cr

[Zope-CMF] Re: five.intid and DirectoryView

2008-06-30 Thread Ross Patterson
Laurence Rowe <[EMAIL PROTECTED]> writes: > Ross Patterson wrote: >> Tres Seaver <[EMAIL PROTECTED]> writes: >> >>> Martijn Pieters wrote: On Fri, Jun 27, 2008 at 6:53 PM, Ross Patterson <[EMAIL PROTECTED]> wrote: > "Martijn Pieters" <[EMAIL PROTECTED]> writes: >> But the code never d

Re: [Zope-CMF] Re: five.intid and DirectoryView

2008-07-03 Thread Dieter Maurer
Ross Patterson wrote at 2008-6-30 10:34 -0700: > ... >> Creating a savepoint seems to do the trick: >> > from persistent import Persistent > import transaction > app.pob = Persistent() > app.pob._p_oid is None >> True > s = transaction.savepoint() > app.pob._p_oid >> '\x00\x