On Friday 03 August 2007 17:40:43 Toby Watson wrote:
> Hi,
>
> I'm looking for a way to override the IdentityVisitPlugin plugin/
> extension with one of my own, but I can't find  a line for it in any
> of my config.
>
> Note that this isn't Identity(Provider) or Visit, but the filter that
> glues them together.
>
> I've created a new extension with my variant of IdentityVisitPlugin
> but I still need to wire it up, replacing the standard visit filter,
> with mine.
>
> Any ideas?
>
> Am I missing something, how does this mechanism work?

I haven't tested or done or checked if it is possible, but in Python you can 
do things like this:

from turbogears.identity import yyprovider
yyprovider.IdentityVisitPlugin = my.own.plugin

If you do that on your startup script, I believe that it might be enough to 
replace the default plugin.  If not, you'll have to insert something on the 
init method of the actual plugin to see when it is called and in what 
context, so that you can override it.

-- 
Jorge Godoy      <[EMAIL PROTECTED]>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to