[Pkg-zope-developers] another dzhandle patch
martin f krafft
madduck@debian.org
Tue, 29 Mar 2005 12:10:00 +0200
--FL5UXtIhxfXey3p5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
When an instance is too old and does not have a dz policy, dzhandle
fails miserably.
The following patch makes sure formatted_str() works properly.
--- /usr/sbin/dzhandle Mon Mar 28 20:15:47 2005
+++ /usr/local/sbin/dzhandle Tue Mar 29 12:08:02 2005
@@ -1685,7 +1686,11 @@
def formatted_str(self, verbose):
s =3D '%(name)-20s %(version)-5s ' % self.__dict__
s +=3D ' addon-mode=3D%s' % self.addon_mode
- s +=3D ' addon-technique=3D%s' % addon_options[self.addon_techniqu=
e]
+ if isinstance(self.addon_technique, int):
+ addon_technique =3D addon_options[self.addon_technique]
+ else:
+ addon_technique =3D self.addon_technique
+ s +=3D ' addon-technique=3D%s' % addon_technique
s +=3D ' userfile=3D' + self.userfile
if not self.new_layout:
s +=3D ' layout=3D(2.5 and before)'
--=20
.''`. martin f. krafft <madduck@debian.org>
: :' : proud Debian developer, admin, user, and author
`. `'`
`- Debian - when you have better things to do than fixing a system
=20
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!
=20
i welcome your constructive criticism and corrections.
--FL5UXtIhxfXey3p5
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCSSl4IgvIgzMMSnURAg6LAJ4l5keH94GtMOMrUBBlVDEI1ITaEACfXg5J
PfveV5UWgg7YxTs3obKbAU8=
=NF0z
-----END PGP SIGNATURE-----
--FL5UXtIhxfXey3p5--