0

added support for "custom" rendermodes created in python

This commit is contained in:
Aaron Griffith
2011-06-11 04:01:40 -04:00
parent bfb92de7b7
commit bd9b1873e3
6 changed files with 239 additions and 89 deletions

View File

@@ -166,7 +166,7 @@ class ConfigOptionParser(object):
elif a['type'] == "long":
return long(value)
elif a['type'] == "choice":
if value not in a['choices']:
if ('choices' in a) and (value not in a['choices']):
logging.error("The value '%s' is not valid for config parameter '%s'" % (value, a['dest']))
sys.exit(1)
return value