gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnumed-devel] form template placeholders


From: Karsten Hilbert
Subject: [Gnumed-devel] form template placeholders
Date: Thu, 17 Jun 2004 21:32:49 +0200
User-agent: Mutt/1.3.22.1i

Ian,

maybe I am misreading the code ?

I would strongly suggest using *one* syntax for placeholder
delimiters. Currently I see "@placeholder" and
"@Python code@".

Can we maybe use @domain::something@ on *all* placeholders ?
Like: @py::Python code@ and @placeholder@ where the latter
case kicks in when no specific domain syntax has been detected ?

Or even this:

try:
    val = eval(address@hidden('@py::hopefully valid Python code@'))
except:
    try:
        some other domain handling code
    except:
        val = '%(placeholder_name)' % the_param_dict

Karsten
-- 
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346




reply via email to

[Prev in Thread] Current Thread [Next in Thread]