Deen Sethanandha wrote:
> Hi
>
>   I am trying to understand how to get data I need and package it to display
> on the template.  I do need to learn how to use template.  But for now, I am
> trying to understand the process_request method.
>
>   Is there any API document where I can look up available method on the req
> object?  It has so many level of methods.  I guest that the req argument is
> the object of Request class.  I found the declaration of it in the Web
> package but I can't find the api for req.perm.
>   

It's the PermissionCache, see trac/perm.py

>   Can you give me some direction on how I can trace the method back to its
> declaration?  I am trying to understand what the code does.  I could guess
> and copy the code here and there but it seem to be bad approach.
>
>    I saw the PyDoc plugin, does it help with this?  What I need is something
> like JavaDoc for Trac API.  Is this available or you just go right at the
> code?  I have problem determining whether the modules and methods belong to
> Trac or Python.
>   

Well most of the public API classes and methods are documented, so any 
Python documentation tool would do. Some are providing a navigation 
interface similar to JavaDoc.
Another way is to read those API docstrings directly in the source, this 
is invaluable to check if the docstring is actually telling the truth ;-)

-- Christian

>   


--~--~---------~--~----~------------~-------~--~----~
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