[ZPatterns] Dataskins in Python
Roché Compaan
[email protected]
Thu, 19 Jul 2001 07:42:56 +0200
As many others on this mailing list i've been trying to get a Python
Dataskin working. I've managed to get to a point where my Dataskin is
registered as ZClass base and that it is available for storage on a
Specialist. I've even managed to add an instance and call
manage_changeProperties on it without errors.
I've only done this using the ZODB as storage and I have a feeling
that when I try the same thing on an SQL database this is not going to
work - mainly because I'm not sure that the attributes I defined in my
python class are even noticed by ZPatterns' event handling.
This issue also seems left unanswered in the mails so far on the mailling
list, although there's a couple of mails *begging* for an answer.
So, can one define attributes for a Dataskin directly in Python? If so,
how are they registered with AttributeProviders, or do you need to write
SkinScript for them?
Another thing I'm not sure about is what classes a Dataskin can inherit
from?
If you for instance want to give your class Zope Security services can you
inherit from Application.RoleManager, Application.ClassSecurityInfo. Can
you
inherit from OFS.PropertyManager if you want properties managed TTW. And
the
last one, how does a Dataskin fit into the whole Acquisition thing - should
one inherit from Acquisition.Implicit or should you use __of__?
Some clarity on this would get me going again.
Thanks
Roché