[Zope] Using Cookie Data

2000-05-24 Thread Jim

I have a cookie that contains the value of an psql key as its value.  I
want to retrieve the value and use it to call the psql query method to
retrieve the data.  The code that I am currently using is
 
 dtml-in qryGetCustomer(REQUEST.cookies[Company_Name)]
The company record has been retrieved for dtml-var company_name.br
  /dtml-in

where Company_Name is a property containing the company name and is the
name of the cookie, and company_name is the first field that should be
retrieved from the psql database query.  When I run the code I get

  Error Type: KeyError
  Error Value: qryGetCustomer(REQUEST.cookies[Company_Name)]

Any help out there on helping a Zope newbie to get the data from his psql
database with a value retrieved from a cookie?

 --  Jim

Zope is cool!

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Using Cookie Data

2000-05-24 Thread Hannu Krosing

Jim wrote:
 
 I have a cookie that contains the value of an psql key as its value.  I
 want to retrieve the value and use it to call the psql query method to
 retrieve the data.  The code that I am currently using is
 
  dtml-in qryGetCustomer(REQUEST.cookies[Company_Name)]
try quotes:
  dtml-in "qryGetCustomer(REQUEST.cookies[Company_Name])"
 The company record has been retrieved for dtml-var company_name.br
   /dtml-in
 
-
Hannu

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )