[ZDP] BackTalk to Document The Zope Book (2.5 Edition)/Relational Database Connectivity

webmaster@zope.org webmaster@zope.org
Sat, 28 Sep 2002 07:19:02 -0400


A comment to the paragraph below was recently added via http://www.zope.org/Documentation/Books/ZopeBook/current/RelationalDatabases.stx#3-69

---------------

      Remember, the *employee_by_id* method returns only one record,
      so the body of the *in* tag in this method will execute only
      once.  In the example you calling the Z SQL Method like any other
      method and passing it a keyword argument for *emp_id*.  The same
      can be done easily from Python::

        ## Script (Python) "join_name"
        ##parameters=id
        ##
        for result in context.employee_by_id(emp_id=id):
            return result.last + ', ' + result.first

        % Anonymous User - Sep. 28, 2002 7:19 am:
         /you calling/you were calling/