[Zope] Upgrade python product from Zope2.1.6 to Zope2.3.0 problem
Petr Knapek
knapek@knapek.pvt.net
20 Mar 2001 17:39:01 +0100
>>>>> On Tue, 20 Mar 2001 11:11:04 -0500, Shane Hathaway <shane@digicoo=
l.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,use=
rs_scope,
roles, Mlist,Mtypes, groups_base, groups_scope,
binduid,bindpwd,verbose, REQUEST):
""" Edit the LDAPAdapter Object
=20=20=20=20=20=20=20=20
"""
self.title=3Dtitle
self.users_base =3D users_base
self.users_scope =3D users_scope
if groups_base =3D=3D '':
groups_base =3D users_base
self.groups_base =3D groups_base
self.groups_scope =3D groups_scope
self.LDAP_server =3D LDAP_server
self.LDAP_port =3D LDAP_port
self.roles =3D roles
self.Stypes =3D Mtypes
self.SpecialUsers =3D string.split(Mlist,',')
self.binduid =3D binduid
self.bindpwd =3D bindpwd
self.verbose =3D verbose
# The cache of users is invalidated in case users_base was changed
=
self._v_users =3D {}
self._v_userlist =3D []
self._logit(2,'Properties changed')
self.__roles__ =3D 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 =3D "Saved changes."
return self.manage_main(self, REQUEST, manage_tabs_message=3Dmessa=
ge)
Exception is raised at return self.manage_main(self, REQUEST,
manage_tabs_message=3Dmessage) line.
The manage_main: manage=3Dmanage_main=3DDTMLFile('properties', globals(=
))
Petr
--=20
Petr Kn=E1pek
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