Re: [Zope] Upgrade python product from Zope2.1.6 to Zope2.3.0 problem
On Tue, 20 Mar 2001 11:11:04 -0500, Shane Hathaway <shane@digicool.com> said:
Hi Shane, SH> The problem is likely located near line 467 of LDAPAdapter.py. SH> It is apparently invoking an HTMLFile or DTMLFile with syntax SH> that doesn't fit Zope 2.3.x. I can't say much more without SH> looking at the source. SH> Shane here you can see source of manage_edit function: def manage_edit(self, title, LDAP_server, LDAP_port, users_base,users_scope, roles, Mlist,Mtypes, groups_base, groups_scope, binduid,bindpwd,verbose, REQUEST): """ Edit the LDAPAdapter Object """ self.title=title self.users_base = users_base self.users_scope = users_scope if groups_base == '': groups_base = users_base self.groups_base = groups_base self.groups_scope = groups_scope self.LDAP_server = LDAP_server self.LDAP_port = LDAP_port self.roles = roles self.Stypes = Mtypes self.SpecialUsers = string.split(Mlist,',') self.binduid = binduid self.bindpwd = bindpwd self.verbose = verbose # The cache of users is invalidated in case users_base was changed self._v_users = {} self._v_userlist = [] self._logit(2,'Properties changed') self.__roles__ = filter(None, map(string.strip, string.split(roles, ','))) try: self.LDAPConnection() try: self.disconnect() except: self._logit(1,'Could not disconnect from ldap server') except: self._logit(1, 'Failed to connect') if REQUEST: message = "Saved changes." return self.manage_main(self, REQUEST, manage_tabs_message=message) Exception is raised at return self.manage_main(self, REQUEST, manage_tabs_message=message) line. The manage_main: manage=manage_main=DTMLFile('properties', globals()) 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 "Perl is worse than Python because people wanted it worse." Larry Wall, 14 Oct 1998
On 20 Mar 2001, Petr Knapek wrote:
return self.manage_main(self, REQUEST, manage_tabs_message=message)
Exception is raised at return self.manage_main(self, REQUEST, manage_tabs_message=message) line.
Try it without the extra "self" argument, which is something that HTMLFiles wanted but DTMLFiles do not. return self.manage_main(REQUEST, manage_tabs_message=message) Shane
participants (2)
-
Petr Knapek -
Shane Hathaway