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

Am 28.07.2011 16:15, schrieb Felix Schwarz:
> Am 28.07.2011 16:07, schrieb Chris Nelson:
>> Is there a way to list the EPs in my current system?
> 
> No, not out of the box.
> Also in Trac itself Interfaces are not different than other Components. So you
> could iterate over the keys for ComponentMeta._registry and check for classes
> that subclass Interface.

You may want to have a look at the AccountManagerPlugin [1]. Some code
introduced lately [2] parses all (activated!) components for a select
list of available interface implementations, mostly with the
ExtensionOption `IPasswordHashMethod` [3] in mind, that has two
implementations right there.

BTW, I've taken care to make this backwards-compatible and tested with
0.11 as well instead of building with more sophisticated methods or
functions that might be available in 0.12 or trunk.

Steffen Hoffmann
(hasienda)


[1] http://trac-hacks.org/wiki/AccountManagerPlugin
[2] http://trac-hacks.org/changeset/10495
[3]
http://trac-hacks.org/browser/accountmanagerplugin/trunk/acct_mgr/pwhash.py?rev=10495#L23
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk4x/WEACgkQ31DJeiZFuHfTpgCfXxwV6KMfa9pVYK8tGcp1+HLO
IoQAoM/+PgtfbdqzXJsMN2qsGKLMu3Sv
=bZG7
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en.

Reply via email to