durusmail: quixote-users: "coercing to Unicode" error
"coercing to Unicode" error
"coercing to Unicode" error
jbdunsmo@utmb.edu
2004-11-21
i'm trying to simply put the modification date of a file in a
template:

def page_footer [html] ():
    '''
blah %s blah
''' % time.ctime(os.path.getmtime(path + 'pages.ptl'))

....but i get this error:

TypeError: coercing to Unicode: need string or buffer, htmltext found

it should've been converted to a string.  why does it say htmltext is
found?

jason dunsmore

reply