RE: [Zope-dev] CoreSessionTracking
The documentation is in lib/python/AccessControl/DTML.py :)
From: Chris Withers [mailto:chrisw@nipltd.com] <dtml-var "_.SecurityGetUser().getUserName()">
as for simplifying _.SecurityGetUser().getUserName(), BasicUser defines __str__ to return getUserName(), so <dtml-var SecurityGetUser> should result in the same output as <dtml-var expr="_.SecurityGetUser().getUserName()"> -Randy
Chris McDonough wrote:
Nothing like good documentation ;-) Where can I find otu about that?
http://www.zope.org/Members/michel/Projects/Interfaces/DTMLSecurityAPI
It's also in the security chapter of the Zope Book *embarrassed grinz* "Randall F. Kern" wrote:
as for simplifying _.SecurityGetUser().getUserName(), BasicUser defines __str__ to return getUserName(), so <dtml-var SecurityGetUser> should result in the same output as <dtml-var expr="_.SecurityGetUser().getUserName()">
And in PS, I guess x + `_.SecurityGetUser()` + y would work when x and y are strings? Cool :-) cheers, Chris
participants (2)
-
Chris Withers -
Randall F. Kern