>>> ...
>>> I have no idea where the identifier HtPasswdStore comes from.  Is it a
>>> method name?  A class name?  Assuming it is from within
>>> AccountManagerPlugin, I guess I can go get the source and grep but
>>> this is painful.
>>
>> acct_mgr/htfile.py contains:
>>
>>     class HtPasswdStore(AbstractPasswordFileStore):
>>         ...
>>         implements(IPasswordStore)
>>
>> so, it's a class name.  I have it working now.  Thanks.
>
> Great, you're welcome.

Actually, now you've confused me. :-/

> These are not only classes, all list items should
> implement the interface declared in the OrderedExtensionsOption
> definition.

What else -- besides a class -- could implement the interface?

> Any other list item will just be ignored.

So, if trac.ini says

    myOrderedExtensionOption = someClassName foo anotherClassName

When I process that extension in my code, I'll get references two two
classes and Trac throws away "foo" for me?


> Note that like with the other special sub-classes of Trac's Option class
> you'll get items with matching type. From BoolOption you get a boolean
> value, here it is the (reference to the) extension (class) itself, not
> just a string with matching name. But the examples make this probably
> clear enough.

You mean that when I do

   preprocessors = OrderedExtentionsOption(section, value, interface)

that preprocessors is a list of objects (class instances), not class
name strings?  Yes, I understood that.  Otherwise I wouldn't be able
to do:

   for pp in preprocessors:
       pp.someFunc()

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


Reply via email to