You are asking the wrong question. What are _actually_ trying to do?

--Noah

On Sep 17, 2008, at 5:17 AM, Andrea Tomasini wrote:

>
> Hi all,
>  a bit of a tech question, but I know in the list there are quire
> some Trac "hackers" :-) I wonder if there is a way to get the trac
> Environment from a Static/Class context... for example:
>
> Assume I have a class with its own __metaclass__ and this should be
> able to access the Trac environment and database in its __init__
> method, to set some specific type attribute based on some Trac
> parameters :-)
>
> Any idea? Perhaps there is some global variable I can hook, or it
> would be enough to have to env_path and than invoke the
> open_environment to get the env... :-?
>
> Thanks
> ANdreaT
>
> >


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

Reply via email to