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

Re: [Cheetahtemplate-discuss] None should print as '', not 'None'?

Expand Messages
  • Ian Bicking
    I think there s an option somewhere in there for doing just that. Not sure where. ... _______________________________________________ Cheetahtemplate-discuss
    Message 1 of 2 , Jul 30, 2001
      I think there's an option somewhere in there for doing just that. Not
      sure where.

      "Jeff Johnson" <jeff@...> wrote:
      > Could we make it so that Cheetah prints None as "" instead of "None"?
      > Any arguments for having "None" print?
      >
      >
      > from Cheetah.Template import Template
      > templateDef = "[[$x]]"
      > t = Template(templateDef,{'x':None})
      > print str(t)
      >
      > #Output:
      > [[None]]
      >
      > #Shouldn't this be:
      > [[]]
      >
      >
      > Jeff
      >
      >
      > _______________________________________________
      > Cheetahtemplate-discuss mailing list
      > Cheetahtemplate-discuss@...
      > http://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss
      >

      _______________________________________________
      Cheetahtemplate-discuss mailing list
      Cheetahtemplate-discuss@...
      http://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss
    Your message has been successfully submitted and would be delivered to recipients shortly.