[albatross-users] Confused over name spaces

Matt Goodall matt at pollenation.net
Sat Sep 13 09:55:11 EST 2003


On Sat, 2003-09-13 at 00:18, Sheila King wrote:
> <al-macro name="mymacro">
> <al-exec expr="""import time
> now = time.localtime()
> """ />
> 
> <al-value expr="str(now)" />
> 
> </al-macro>

Assuming it's not a typo, you only need one lot of " around the al-exec
expr, i.e.

<al-exec expr="
import time
now = time.localtime()
" />

I'm not sure what """ would do. I'm kind of surprised that doesn't raise
an error.

Cheers, Matt

-- 
Matt Goodall, Pollenation Internet Ltd
w: http://www.pollenation.net
e: matt at pollenation.net
t: +44 (0)113 2252500



More information about the Albatross-users mailing list