equal
deleted
inserted
replaced
30 from cubicweb import Unauthorized, NoSelectableObject, uilib |
30 from cubicweb import Unauthorized, NoSelectableObject, uilib |
31 from cubicweb.rset import ResultSet |
31 from cubicweb.rset import ResultSet |
32 |
32 |
33 ONESECOND = timedelta(0, 1, 0) |
33 ONESECOND = timedelta(0, 1, 0) |
34 CACHE_REGISTRY = {} |
34 CACHE_REGISTRY = {} |
35 |
|
36 |
|
37 class FindEntityError(Exception): |
|
38 """raised when find_one_entity() can not return one and only one entity""" |
|
39 |
35 |
40 |
36 |
41 class Cache(dict): |
37 class Cache(dict): |
42 def __init__(self): |
38 def __init__(self): |
43 super(Cache, self).__init__() |
39 super(Cache, self).__init__() |