[prev in list] [next in list] [prev in thread] [next in thread] 

List:       trac
Subject:    [Trac] Re: Trac API???
From:       "Erik Bray" <hyugaricdeau () gmail ! com>
Date:       2007-08-31 13:46:02
Message-ID: e71e26940708310646o611818a0v636d33610442e593 () mail ! gmail ! com
[Download RAW message or body]


Yes: http://trac.edgewall.org/browser/trunk/trac

As for what you want to do in particular, try:

from trac.env import open_environment
env = open_environment('/path/to/trac/project')
for username, name, email in env.get_known_users():
    print username, name, email

env is an Environment object, defined in the trac.env module.
get_known_users is a method that grabs usernames from the session
table, and includes any full names and e-mail addresses that might be
associated with those usernames.

On 8/31/07, ritu <ritukamthan@gmail.com> wrote:
>
> Hi members,
>
> Is there any existing API for TRAC. I have seen the name many time but
> not able to reach an existing resource.Can somebody tell me a good
> resource from where to start from.
>
> I want to surf the users existing in Trac through it.Any help??
>
> Thanks
> Ritu
>
>
> >
>

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic