is there a way to use the options in a macro?

0 views
Skip to first unread message

Mike Beard

unread,
Aug 15, 2006, 12:26:51 AM8/15/06
to Firedrop2 the Python Blog Client
All,

I was wondering if there was a way to use any of the 'build.ini' values
in a macro. I've tried a couple different ways that I thought should
work, but, alas, they didn't for me.

My latest attemp, is something like the following (in my macro file):

opt = "<% options['emot_path'] %>"
return '<img src="%s/%s.%s" alt="emoticon:%s" />' % (opt, name,
picType, name)

What ends up getting printed is the following:

<img src="<% options['emot_path'] %>/question2.gif"
alt="emoticon:question2" />

Not what I was hoping for, but totally understandable.

Is this even possible?

Any clues would be appreciated!

Thanks,
Mike

Reply all
Reply to author
Forward
0 new messages