[Zope] DTML (unicode) does not work for me.

Dieter Maurer dieter at handshake.de
Thu Jan 8 14:16:47 EST 2004


Christopher Lozinski wrote at 2004-1-7 19:02 -0800:
>I am trying to develop Unicode web pages, with variable names
>substituted in using the DTML technology.  Sadly it does not work. 
> ...
>#BUT IF YOU USE THE FOLLOWING LINE INSTEAD IT CRASHES
>#WHICH DEMONSTRATES THAT DTML(unicode) needs work.
>myString=_.unicode('Hello <dtml-var id>')
>
>myDTML = DTML(myString)
>return myDTML(context,request)
>
>HERE ARE THE ERROR MESSAGES
>
>2004/01/07 05:04:02.611 GMT
>User Name (User Id) lozinski (lozinski)
>Request URL http://ceo.jobmart.com/Resumes/TestDTML
>Exception Type TypeError
>Exception Value object of type 'unicode' is not callable

What about looking at the traceback?

Remember: whenever you try to analyse an exception, you really
should look at the traceback.

-- 
Dieter



More information about the Zope mailing list