Add "type > myzClass" does not have a property for title?
Have I missed something? Or is "title" completely missing when you add a zClass object? It only asks for the ID. I have had to add "title" manually to the "property sheets" to compensate for this. If I am not mistaken, This seems like a major ommission and Zope inconsistency with zClasses which are supposed to be Folder-like. The Zope Book "Chapter 9" says to create a "title" index in a zCatalog, but the zClass doesn't have a "title" property...? Thanks for any clarification on this, -Trevor
Hi Trevor, I was pointed in the direction of creating a dtml-method inside the ZClass, called 'title' and then using some dtml I can put whatever I like into it, even reference some of the properties of the ZClass itself hth, Laurie -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Trevor Toenjes Sent: Thursday, September 13, 2001 11:00 PM To: zope@zope.org Subject: [Zope] Add "type > myzClass" does not have a property for title? Have I missed something? Or is "title" completely missing when you add a zClass object? It only asks for the ID. I have had to add "title" manually to the "property sheets" to compensate for this. If I am not mistaken, This seems like a major ommission and Zope inconsistency with zClasses which are supposed to be Folder-like. The Zope Book "Chapter 9" says to create a "title" index in a zCatalog, but the zClass doesn't have a "title" property...? Thanks for any clarification on this, -Trevor _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Thanks Laurie, It's interesting...sounds like you create a live-variable 'title' property. I will have to see how it behaves with <dtml-var title_or_id>. This seems to run counter-intuitive of using this basic DTML property. I figured there was some reason title is not forced in zClasses. as I am reminded of a saying about..."FOOLISH consistency ;) I would love to hear some other alternative uses of 'title' in zClasses. -Trevor
-----Original Message----- From: Laurie Nason [mailto:laurien@blake.3dem.bioch.bcm.tmc.edu] Sent: Friday, September 14, 2001 11:17 AM To: Trevor Toenjes; zope@zope.org Subject: RE: [Zope] Add "type > myzClass" does not have a property for title?
Hi Trevor, I was pointed in the direction of creating a dtml-method inside the ZClass, called 'title' and then using some dtml I can put whatever I like into it, even reference some of the properties of the ZClass itself hth, Laurie
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Trevor Toenjes Sent: Thursday, September 13, 2001 11:00 PM To: zope@zope.org Subject: [Zope] Add "type > myzClass" does not have a property for title?
Have I missed something? Or is "title" completely missing when you add a zClass object? It only asks for the ID.
I have had to add "title" manually to the "property sheets" to compensate for this. If I am not mistaken, This seems like a major ommission and Zope inconsistency with zClasses which are supposed to be Folder-like.
The Zope Book "Chapter 9" says to create a "title" index in a zCatalog, but the zClass doesn't have a "title" property...?
Thanks for any clarification on this, -Trevor
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Trevor Toenjes writes:
Or is "title" completely missing when you add a zClass object? It only asks for the ID. There are ZClasses without "title"...
I have had to add "title" manually to the "property sheets" to compensate for this. If I am not mistaken, This seems like a major ommission and Zope inconsistency with zClasses which are supposed to be Folder-like. If you derive from "Folder", your ZClass has a "title" property.
Customize your ZClass constructors (form and action) to call for a title and set it with "manage_changeProperty", respectively.
The Zope Book "Chapter 9" says to create a "title" index in a zCatalog, but the zClass doesn't have a "title" property...? Some have, but not in a PropertySheet...
Dieter
participants (3)
-
Dieter Maurer -
Laurie Nason -
Trevor Toenjes