[Twisted-Python] Forcing adapter re-registration (patch)

Glyph Lefkowitz glyph at twistedmatrix.com
Mon Apr 14 21:56:10 EDT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


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 
> rebuild,
> 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)

iD8DBQE+m2bBvVGR4uSOE2wRAijFAJ9DzoW2dbRSatkbbiLzFqQJFOQMfwCgqYx/
1TPA4eeNpEViyCw1erJwbfg=
=V1Kd
-----END PGP SIGNATURE-----





More information about the Twisted-Python mailing list