Lennart Regebro wrote:
From: "peter sabaini" <sabaini@inode.at>
I think it should work well with PropertyManager
Thanks, I got a lot further now. Still some things before I'm done though:
- Define your own edit form
How do I do that? The default edit form /propertysheets/name/manage works well, but doesn't have any management tabs. I've done a lot of experimenting, but everytime I get management tabs I also get the default properties, no matter what view I'm on...
Not sure if I get you correctly... I had to manage some properties I called "Advanced", so I defined a suitable DTML File 'manage_advancedForm' (a copy-paste job from the standard Propertiers form plus some customization) -- see attachment. Then add something like the following: manage_advancedForm = DTMLFile('dtml/advancedForm', globals()) def manage_advanced(self, REQUEST=None): """Edit Advanced Settings""" adv = self.propertysheets.get('advanced') adv.manage_editProperties(REQUEST) if REQUEST is not None: return self.manage_advancedForm( REQUEST, manage_tabs_message='Advanced Settings updated.', ) Plus you have to tell Zope to draw a management tab "Advanced", so you'll add a dict {'label': 'Advanced', 'action': 'manage_advancedForm'} to your manage_options attribute. HTH, peter. ps.: I've taken this to zope@zope.org instead of zope-dev
Best Regards
Lennart Regebro Torped Strategi och Kommunikation AB