I’m the one who wrote those lines on the wiki page

http://trac.edgewall.org/wiki/TracNotification#Customizinge-mailcontentforMS
Outlook

 

“format” is an built-in function in Python... weird. 

What versions of Python, Trac and Genshi are you using?

Can you provide an error log with more details?

 

/Mikael

 

 

Från: [email protected] [mailto:[email protected]] För
Jon Drukman
Skickat: den 2 februari 2012 20:11
Till: [email protected]
Ämne: [Trac] format not defined

 

I am trying to customize my email ticket template as documented at

http://trac.edgewall.org/wiki/TracNotification

 

In particular, I copied the paragraph that replaces the ascii table of
properties with the one-line-per-property format for HTML mail readers.
However, after saving and restarting trac, I now get this error whenever I
try to update a ticket:

 

Warning: The  <http://trac.thismoment.com/trac/ticket/16090#comment:4>
change has been saved, but an error occurred while sending notifications:
"format" not defined

 

It is complaining about this line:

 

${'\n'.join('%s\t%s' % (format(p[0]+':', ' <12'), p[1]) for p in pv if p[0]
in sel)}

 

I copied it straight out of the wiki and I don't know squat about Python so
I'm not sure how to fix it.  Help please!

-jsd-

 

-- 
You received this message because you are subscribed to the Google Groups
"Trac Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/trac-users/-/6AqVAmZ3-TkJ.
To post to this group, send email to  <mailto:[email protected]>
[email protected].
To unsubscribe from this group, send email to
<mailto:[email protected]>
[email protected].
For more options, visit this group at
<http://groups.google.com/group/trac-users?hl=en>
http://groups.google.com/group/trac-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" 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/trac-users?hl=en.

Reply via email to