Does cheetah supports dash in its name?

I have a html file that I need to fill some info in. Inside that html
file one of the variable name is '$myDictionary.LAST-NAME-OF-CUSTOMER'
. Does cheetah supports "-"?
I also tried:
x.myDictionary.LAST-NAME....
myDictionary.LAST-NAME...
LAST-NAME....

I get:

from Cheetah.Template import Template
t = Template(file='merge.html', searchList=[x.myDictionary])
print t

Traceback (most recent call last):
  File "ConvertItcToQp.py", line 504, in ?
    print t
  File "/var/lib/python-support/python2.4/Cheetah/Template.py", line
989, in __str__
    def __str__(self): return getattr(self, mainMethName)()
  File "_home_lucas_qp_ItcToQp_development_merge_html.py", line 142, in respond
NameMapper.NotFound: cannot find 'LAST'

Unless I am doing something wrong?

Lucas

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to