Author: duncan
Date: Sun Jan 7 18:50:41 2007
New Revision: 8948
Modified:
branches/rel-1/freevo/src/skins/main/info_area.py
Log:
[ 1630015 ] Info areas to contain arbitrary Python expressions
Patch from Andrew Flegg applied
Modified: branches/rel-1/freevo/src/skins/main/info_area.py
==============================================================================
--- branches/rel-1/freevo/src/skins/main/info_area.py (original)
+++ branches/rel-1/freevo/src/skins/main/info_area.py Sun Jan 7 18:50:41 2007
@@ -196,6 +196,9 @@
create the python expression
"""
exp = ''
+ if expression.startswith('python:'):
+ return expression.replace('python:', '', 1)
+
for b in expression.split( ' ' ):
if b in ( 'and', 'or', 'not', '==', '!=' ):
# valid operator
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog