expose Decimal in wf conditions

This commit is contained in:
Thomas NOËL 2012-09-05 10:50:14 +02:00
parent 54e6bc9b72
commit 929ca7a717
1 changed files with 3 additions and 1 deletions

View File

@ -131,7 +131,9 @@ class QommonPublisher(Publisher):
def get_global_eval_dict(self):
import datetime
return {'datetime': datetime}
from decimal import Decimal
return {'datetime': datetime,
'Decimal': Decimal}
def format_publish_error(self, exc):
get_response().filter = {}