Always return a string (even if error message) for SimpleAccess.display
svn: r15328
This commit is contained in:
parent
e2e3065cfb
commit
6c08e80327
@ -913,7 +913,11 @@ class SimpleAccess(object):
|
|||||||
obj.type,
|
obj.type,
|
||||||
self.gid(obj))
|
self.gid(obj))
|
||||||
else:
|
else:
|
||||||
return "Error: invalid object class: '%s'" % object_class
|
return "Error: incorrect object class: '%s'" % type(obj)
|
||||||
|
else:
|
||||||
|
return "Error: missing object"
|
||||||
|
else:
|
||||||
|
return "Error: invalid object class: '%s'" % object_class
|
||||||
|
|
||||||
def by_date(event1, event2):
|
def by_date(event1, event2):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user