Loading ...
Sorry, an error occurred while loading the content.

Re: [Cheetahtemplate-discuss] Newbie questions wrt #for : apologies in advance

Expand Messages
  • Chapman, Ben
    Thank you! That was it exactly. Sorry that I was so dense. Ben ... Using Tomcat but need to do more? Need to support web services, security? Get stuff done
    Message 1 of 1 , Feb 5, 2007
    • 0 Attachment
      Thank you! That was it exactly. Sorry that I was so dense.

      Ben

      > -----Original Message-----
      > From: Raphael Marvie [mailto:raphael.marvie@...]
      > Sent: Monday, February 05, 2007 9:46 AM
      > To: Chapman, Ben
      > Subject: Re: [Cheetahtemplate-discuss] Newbie questions wrt
      > #for : apologies in advance
      >
      >
      >
      > Chapman, Ben wrote:
      >
      > >
      > > t = Template(greeting,searchList=[clients])
      >
      > searchList expect a dictionary for the mapping between
      > variable name and variable value:
      >
      > t = Template(greeting, searchList=[{'clients': clients}])
      >
      > or
      >
      > t = Template(greeting, searchList=[dict(clients=clients)])
      >
      > then
      >
      > t.respond()
      >
      > should work
      >
      > hth
      >
      > r.
      >
      > --
      > Raphael Marvie, PhD http://www.lifl.fr/~marvie/
      > Maître de Conférences / Associate Professor @ LIFL --
      > IRCICA Directeur du Master Informatique Professionnel spécialité IAGL
      > Head of Master's in Software Engineering +33 3 28 77 85 83
      >

      -------------------------------------------------------------------------
      Using Tomcat but need to do more? Need to support web services, security?
      Get stuff done quickly with pre-integrated technology to make your job easier.
      Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
      http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
      _______________________________________________
      Cheetahtemplate-discuss mailing list
      Cheetahtemplate-discuss@...
      https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss
    Your message has been successfully submitted and would be delivered to recipients shortly.