uxl: allow number in properties

This commit is contained in:
Mathieu Virbel 2010-11-05 23:15:22 -04:00
parent e73b2df4f3
commit 6b6ac07cf3
1 changed files with 1 additions and 1 deletions

View File

@ -370,7 +370,7 @@ class UxlBase(object):
value, ln, ctx = value
try:
# is the value is a string, numeric, tuple, list ?
if value[0] in ('(', '[', '"', '\''):
if value[0] in ['(', '[', '"', '\'', '-'] + range(9):
print dir(self.idmap['self'])
value = eval(value, {}, self.idmap)
# must be an object.property