[Twisted-Python] Forcing adapter re-registration (patch)
glyph at twistedmatrix.com
Mon Apr 14 21:56:10 EDT 2003
-----BEGIN PGP SIGNED MESSAGE-----
On Tuesday, April 15, 2003, at 06:00 AM, jml at ids.org.au wrote:
> However, registerAdapter and rebuild don't play nicely together. On a
> registerAdapter tries to re-register stuff, and throws an exception.
I think you're approaching this the wrong way.
Rather than forcing it in a particular place in the code, you want to
force it at a particular time; i.e. when a module is being rebuilt.
Could you instead have a module flag "allowDuplicates" which would be
set by rebuild and unset when it was finished?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (Darwin)
-----END PGP SIGNATURE-----
More information about the Twisted-Python