On Tue, 8 Sep 2009 10:26:19 +0200, Tarek Ziadé <ziade.ta...@gmail.com>
wrote:
> I am restricting the template language to two expressions: "if" and
"else"
> 
> The values you can work with in the "if" and "else" section will be
> restricted to :
> 
> - the python version (string)
> - the os.name (string)
> - the os.platform (string)
> - an extra function called "long_description", to be able to point a
> file for the long description field
> 
> and nothing else.
> 
> How anyone could abuse of that kind of expressions ?

What about nested if statements?

Real world example, if os=="linux2" and window_manager=="kde": ..

elif os=="linux2" and window_manager=="gnome": ..

How would that be handled?

David

_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to