Zope ZSQLMethod Question
Phil Harris
phil.harris at zope.co.uk
Sun Sep 10 09:33:22 EDT 2000
More information about the Python-list mailing list
Sun Sep 10 09:33:22 EDT 2000
- Previous message (by thread): Coexistence (was: Python 2.0b1 is released!)
- Next message (by thread): Zope ZSQLMethod Question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
because AUTHENTICATED_USER is an object whose 'default' property/method is getUserName. Zope is clever/stupid enough to render this automatically in simple <dtml-var...> tags, but not in other places. if in doubt always use the recognised method, in this case AUTHENTICATED_USER.getUserName. if in your SQL method you use <dtml-var "AUTHENTICATED_USER.getUserName()">, all will be well. If you haven't yet got the Zope Quick Reference, go get it now, you won't regret it. ;) hth Phil phil.harris at zope.co.uk "Steve Williams" <sandj.williams at gte.net> wrote in message news:39BAE83B.1C490085 at gte.net... > Why is it that > > <dtml-var AUTHENTICATED_USER> > > will display properly in a document, but > > Select * from zot where x = <dtml_sqlvar AUTHENTICATED_USER > type=string> > > will fail in a ZSQLMethod invoked by a DTML document? > > > > > >
- Previous message (by thread): Coexistence (was: Python 2.0b1 is released!)
- Next message (by thread): Zope ZSQLMethod Question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list