[Zope-DB] restricted zsql permissions: there must be an easier way!

Toni Vicens toni_vicens at terra.es
Thu Jul 22 06:25:55 EDT 2004


I just realized that I left out the return a line of code in my first mail
The complete code to the "getAddresses" python script is the following:

request = container.REQUEST
user = request.AUTHENTICATED_USER
regs = container.sql.restricted.my_zsql_method(user_id=user.getUserId())
return regs

Sorry ;-)

Cheers,
Toni.



More information about the Zope-DB mailing list