sobjects/parsers.py
branchstable
changeset 7879 9aae456abab5
parent 7727 70ea754d3e04
child 7916 54e240c1b419
--- a/sobjects/parsers.py	Tue Sep 27 16:04:30 2011 +0200
+++ b/sobjects/parsers.py	Wed Sep 28 09:27:42 2011 +0200
@@ -32,7 +32,7 @@
 """
 
 import os.path as osp
-from datetime import datetime, timedelta
+from datetime import datetime, timedelta, time
 from urllib import urlencode
 from cgi import parse_qs # in urlparse with python >= 2.6
 
@@ -151,7 +151,7 @@
             linker.check_options(options, schemacfg.eid)
         except KeyError:
             msg = _('"action" must be specified in options; allowed values are '
-                    '%s') % ', '.join(self.action_methods)
+                    '%s') % ', '.join(self.list_actions())
             raise ValidationError(schemacfg.eid, {rn('options', 'subject'): msg})
         except RegistryException:
             msg = _('allowed values for "action" are %s') % ', '.join(self.list_actions())