equal
deleted
inserted
replaced
7 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED |
7 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED |
8 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
8 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
9 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS |
9 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS |
10 # FOR A PARTICULAR PURPOSE. |
10 # FOR A PARTICULAR PURPOSE. |
11 # |
11 # |
12 from zope.keyreference.interfaces import NotYet |
|
13 |
12 |
14 __docformat__ = 'restructuredtext' |
13 __docformat__ = 'restructuredtext' |
15 |
14 |
16 |
15 |
17 # import standard library |
16 # import standard library |
20 from hypatia.interfaces import ICatalog |
19 from hypatia.interfaces import ICatalog |
21 from zope.intid.interfaces import IIntIds |
20 from zope.intid.interfaces import IIntIds |
22 |
21 |
23 # import packages |
22 # import packages |
24 from pyams_utils.registry import query_utility |
23 from pyams_utils.registry import query_utility |
|
24 from zope.keyreference.interfaces import NotYet |
25 |
25 |
26 |
26 |
27 def index_object(obj, catalog, ignore_notyet=False): |
27 def index_object(obj, catalog, ignore_notyet=False): |
28 """Index given object into catalog""" |
28 """Index given object into catalog""" |
29 intids = query_utility(IIntIds) |
29 intids = query_utility(IIntIds) |