Re: [Zope] Upgrade python product from Zope2.1.6 to Zope2.3.0 problem
On Tue, 20 Mar 2001 12:50:57 -0500 (EST), Shane Hathaway <shane@digicool.com> said:
SH> On 20 Mar 2001, Petr Knapek wrote: >> >>>>> On Tue, 20 Mar 2001 12:05:39 -0500 (EST), Shane Hathaway >> <shane@digicool.com> said: >> >> Shane, >> SH> Try it without the extra "self" argument, which is something SH> that HTMLFiles wanted but DTMLFiles do not. >> SH> return self.manage_main(REQUEST, manage_tabs_message=message) >> I have tried it but it remains same. Please see my >> manage_options below, is it correct for Zope2.3.0 ? >> >> manage_options=( {'label':'Configure', 'action':'manage_main'}, >> {'label':'Show Groups', 'action':'manage_showgroups'}, >> {'label':'User Cache', 'action':'manage_usercache'}, >> {'label':'Show log', 'action':'manage_showlog'}, >> {'label':'Reinit', 'action':'manage_reinit'}, {'label':'Notes', >> 'action':'manage_readme'} ) >> >> Now I can see also 'help' key in manage_options python products, >> is not the problem here? (I have no 'help') SH> It shouldn't matter. SH> I'm surprised that didn't work. Your properties.dtml starts out SH> with <dtml-var manage_tabs>, right? Yes, you are right. After commenting it I am able to add my modified LDAPAdapter product. Is there any documentation how manage_tabs are now working in 2.3.0 Zope version? In other pthon products I can see that in dtml file which is used for adding of product instance there is no <dtml-var manage_tabs>. I can see it in others only. Is there any constraint for using of manage_tabs? SH> Shane Petr -- Petr Knápek NEXTRA Czech Republic, s.r.o., Hlinky 114, 603 00 Brno, Czech Republic e-mail: mailto:petr.knapek@nextra.cz tel:+420-5-43 554 150 FAX:+420-5-43 554 214
Petr Knapek wrote:
On Tue, 20 Mar 2001 12:50:57 -0500 (EST), Shane Hathaway <shane@digicool.com> said: SH> I'm surprised that didn't work. Your properties.dtml starts out SH> with <dtml-var manage_tabs>, right?
Yes, you are right. After commenting it I am able to add my modified LDAPAdapter product. Is there any documentation how manage_tabs are now working in 2.3.0 Zope version?
They work as before, it's just that the HTMLFile/DTMLFile differences have caused more grief than expected.
In other pthon products I can see that in dtml file which is used for adding of product instance there is no <dtml-var manage_tabs>. I can see it in others only. Is there any constraint for using of manage_tabs?
Normally it is used only in the object modification screens, not the add forms nor the screens seen by site visitors. This isn't a rule, just a custom. Shane
participants (2)
-
Petr Knapek -
Shane Hathaway