[Zope-dev] Dataskin with no persistence.

Godefroid Chapelle gotcha@swing.be
Thu, 12 Apr 2001 09:31:24 +0200


Hi,

I am trying to build a specialist which gives me access to a facade
ZClass in front of a XML file.

As the XML is already stored, I do not want to store the facade ZClass.
Actually, I would like it to be a base on which
the skinscript of the specialist's rack can add attributes.

So I created a ZClass (HumanClass) with no properties inheriting from
ZObject and _ZClass_for_DataSkin.

I create a specialist in which the default rack has the following
properties :

data plug-in : a skinscript computing attributes based on an id and the
xml.

storage :
   Class to use for stored items: HumanClass
   Objects are: loaded by accessing attribute nom  (which is defined in
the skinscript)

Store 'persistent' data: Directly in this object


I store no HumanClass instance and try to get an instance :

specialist.getItem(anId)

I always get None.


Am I trying to do something impossible because of lack of understanding
or am I just wrong in one property of ZClass, Specialist, Rack ?


Thanks a lot


--

Godefroid Chapelle

BubbleNet sprl
rue Victor Horta, 30
1348 Louvain-la-Neuve
Belgium

Tel 010 457490
Mob 0477 363942

TVA 467 093 008
RC Niv 49849