> > Ah, I see.
> > But why do I need SimpleItems, isn't PropertyManagers sufficient?
>
> It makes your class play nicely with Zope.
>
> So, it can work with DAV, be copied and pasted, properly work
> with traversal, work with ZDOM, be Owned, support undo, work
> with Acquisition, and manage rol
Johan Carlsson wrote:
>
> Whoooha!
> I added PropertyManager to EmployX and it saves properties?
Is that a question? I'm not sure I can answer that.
> Is this correct?
> - The objects are stored presistently in the Racks storage (BTree).
With the way a rack is set up by default, yes. You just
Johan Carlsson wrote:
>
> Ah, I see.
> But why do I need SimpleItems, isn't PropertyManagers sufficient?
It makes your class play nicely with Zope.
So, it can work with DAV, be copied and pasted, properly work
with traversal, work with ZDOM, be Owned, support undo, work
with Acquisition, and
> >>> You need to derive EmployX from DataSkin and some Zope persistent
> >>> class such as SimpleItem. Otherwise,
> >>> it won't be persistent.
> >>
> >> Accualy I don´t have to do that.
>
> Looking more closely at DataSkins.py, I see that class DataSkin derives from
> Persistent.
>
> So, I
> > But as I noticed the "properties" was saved as
> > attributes not as properties in a propertysheet.
>
> That's another way of doing it. It is a bit less transparent.
> I find it more straightforward to make my classes SimpleItems
> and PropertyManagers, as it means I can just call
> manage_ch
Steve Alexander wrote:
> Johan Carlsson wrote:
>
>>> You need to derive EmployX from DataSkin and some Zope persistent
>>> class such as SimpleItem. Otherwise,
>>> it won't be persistent.
>>
>> Accualy I don´t have to do that.
Looking more closely at DataSkins.py, I see that class DataSkin de
Johan Carlsson wrote:
>>> Hi,
>>> I am trying to figure out ZPatterns and because I rather work with Python Products
>when with Zclasses I am trying to convert the EmployZ product to Python.
>>> So far I got half the way there, the Rack recognizes the DataSkin
>>> And on newItem in the Speciali
> > Hi,
> > I am trying to figure out ZPatterns and because I rather work with Python Products
>when with Zclasses I am trying to convert the EmployZ product to Python.
> > So far I got half the way there, the Rack recognizes the DataSkin
> > And on newItem in the Specialist it a new slot gets c
Johan Carlsson wrote:
> Hi,
> I am trying to figure out ZPatterns and because I rather work with Python Products
>when with Zclasses I am trying to convert the EmployZ product to Python.
> So far I got half the way there, the Rack recognizes the DataSkin
> And on newItem in the Specialist it a
Hi,
I am trying to figure out ZPatterns and because I rather work with Python Products
when with Zclasses I am trying to convert the EmployZ product to Python.
So far I got half the way there, the Rack recognizes the DataSkin
And on newItem in the Specialist it a new slot gets created and I can
10 matches
Mail list logo