On Thu, Apr 24, 2008 at 4:07 PM, Christopher Arndt <[EMAIL PROTECTED]> wrote: > > Lukasz Szybalski schrieb: > > > On Thu, Apr 24, 2008 at 9:44 AM, Christopher Arndt <[EMAIL PROTECTED]> > > wrote: > >> Cecil Westerhof schrieb: > > >> > With the identity module you go to a login page when you do not have > >> > enough credentials. Is it possible to make a difference between a user > >> > that is not logged in (login page) and a logged in user that has not > >> > enough credentials (entry denied)? > >> > >> Yes, you can, but this is a feature of the identity framework that isn't > >> really documented well (i.e not at all ;-)). > > > Would be nice if what you wrote here was added to the .py file that > > has the code. > > > > > http://lucasmanual.com/tgdocs/turbogears.identity.exceptions-pysrc.html#IdentityFailure.__init__ > > I'll open a ticket so I dont forget this. > > > > Just wondering, what is your / TG project preference when documenting > > things like this. I'm sure you could copy what you wrote here in the > > email and paste it to turbogears/identity/exceptions.py comment > > section, and that would be painless. > > I'm not sure if I understand your question? Are you suggesting I should > copy-and-paste what I wrote into a source ccode docstring? I think I > should test if it actually works first ;-) >
Yes. I think a lot of documentation is here on the list, and sometimes if somebody with svn write access could copy and paste it into source code docstring (after testing it ;) ) it can be automatically generated via epydoc. It would be cool if that was possible and done more often.(when time permits) Just suggesting. Lucas --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

