Working with the current CVS checkout... CatalogAwareness.py: I saw this file added over the last few days and tried to test the "editCatalogerForm", more like played around with it. Having tried a few different zclasses subclassed CatalogAware, with no luck, I wondered if you could explain or hint how you intend it to behave and if its working yet? (any guess when it will be working?) Permission mapping for ZClasses seems to be Showing the Non-Inherited permissions and not Showing the Inherited permissions.. just letting you know its not working.. Suggestion for editCatalogForm.... I was trying to get "editCatalogForm" to list available Catalogs (that what be better then Typing a name of a Catalog, especially if you don't know the name), but I'm too new to python and Zope to get it to work. That brings up, does each ZCatalog create a new Catalog and what would that name be?? Nice new addition of automatic "name" ZClass Permissions. I was thinking of that just before I did a checkout and saw it, cool... David C. Kankiewicz P.S. Zope is the best, my thanks go out to all who have and are working on it...
David Kankiewicz wrote:
Working with the current CVS checkout...
CatalogAwareness.py: I saw this file added over the last few days and tried to test the "editCatalogerForm", more like played around with it. Having tried a few different zclasses subclassed CatalogAware, with no luck, I wondered if you could explain or hint how you intend it to behave and if its working yet? (any guess when it will be working?)
If a ZClass subclasses CatalogAware, and there is a 'Catalog' object in it's acquisition path, they the object will automaticly catalog and uncatalog itself when it is instanciated/deleted. Note that there is a serious bug in the existing CatalogAware class that will cripple you. I would wait until Beta2 or track the CVS (I just checked in the fix), or if your bold, go into the CatalogAware class definition and completely delete the: def aq_base(... method. It's inclusion was a mistake.
Permission mapping for ZClasses seems to be Showing the Non-Inherited permissions and not Showing the Inherited permissions.. just letting you know its not working..
I'll look into it.
Suggestion for editCatalogForm.... I was trying to get "editCatalogForm" to list available Catalogs (that what be better then Typing a name of a Catalog, especially if you don't know the name), but I'm too new to python and Zope to get it to work. That brings up, does each ZCatalog create a new Catalog and what would that name be??
It's up to you to name your Catalogs whatever you want. CatalogAware assumes 'Catalog'. Amos pointed out that this is a bit silly, cuz when you change the id of your Catalog, you'd have to change all the instances too. So beta 2 will probably first try to acquire a property which contains the name of the Catalog you want all CatalogAware objects to catalog themselves with. -Michel
At 04:34 31-7-99 , Michel Pelletier wrote:
David Kankiewicz wrote:
Suggestion for editCatalogForm.... I was trying to get "editCatalogForm" to list available Catalogs (that what be better then Typing a name of a Catalog, especially if you don't know the name), but I'm too new to python and Zope to get it to work. That brings up, does each ZCatalog create a new Catalog and what would that name be??
It's up to you to name your Catalogs whatever you want. CatalogAware assumes 'Catalog'. Amos pointed out that this is a bit silly, cuz when you change the id of your Catalog, you'd have to change all the instances too. So beta 2 will probably first try to acquire a property which contains the name of the Catalog you want all CatalogAware objects to catalog themselves with.
Yeah, but if you wanted to change it on an Instance by Instance basis, using the editCatalogForm, why not list all available catalog objects using <dtml-in "superValues(['ZCatalog'])">? Or even better yet (until sub-ZClasses are recognized), specify what meta_type to look for, because people will subclass ZClasses and give them a new meta_type. -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | T: +31 35 7502100 F: +31 35 7502111 | mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ---------------------------------------------
participants (3)
-
David Kankiewicz -
Martijn Pieters -
Michel Pelletier