On Jun 30, 2006, at 11:19 AM, Ted Roche wrote:
> Thanks for that. Your code was a huge hit at the last PySIG meeting.
Great! I'll be expecting a check for a percentage of the admission ticket sales.
> Naturally, no one could get by without commenting. A great > suggestion was to change the template code from %s to %(Name)s or % > (Subject)s and change the fill to a dictionary fill = > {"Date"=>"06/12/06, "To"=>ed .AT. example D.O.T com} and then you can move > around fields in the template without having to re-arrange the > order of fields in the fill list. Neat trick! One of these days > I'll learn a bit of Python...
I use that formatting style for exactly those reasons: when the template can vary. I also use it when the data is already in a dict.
-- Ed Leafe -- http://leafe.com -- http://dabodev.com
©2006 Ed Leafe |