-----Ursprüngliche Nachricht----- Von: Dieter Maurer [mailto:dieter@handshake.de] Gesendet: Mittwoch, 15. September 2004 21:22 An: Arenz, Ralph Cc: 'zope@zope.org' Betreff: Re: [Zope] Re: DBTAB mounting ZCLASS as container Arenz, Ralph wrote at 2004-9-15 17:33 +0200:
... [DM]
This will not be possible without major work:
You would need to implement a new type of mount point. Its class key would allow a ZClass reference. The corresponding datatype would be a factory that later instantiates the ZClass. ...
[RA]
can you be a little more concrete. I spent a look over the sources from dbtab and found some fragments which gives a hint that dbtab can work with ZKlasses, but i can't figure out how do arrange this. Do i really have to implement a new mount point although i need a ZClass as a container for it?
[DM] I do not know but I fear it.
The current schema uses a "python_dotted_path" to specify the "container-class". I may be wrong, but I doubt that you can access a ZClass via a "python_dotted_path".
If I am right, you would need to change at least the datatype for your "ZClass" container-class.
You might get away with just changing the datatype.
It is your problem. You must investigate further...
-- Dieter
The only thing to do is defining the container_class entry in dbtab.conf as follow: container_class=*[class_id_of_desired_zclass].id_of_zclass e.g. container_class=*LHUIGUGZ436536==.MyZClassId