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 |
12 |
|
13 """PyAMS_utils.container module |
|
14 |
|
15 This module provides several classes, adapters and functions about containers. |
|
16 """ |
|
17 |
13 __docformat__ = 'restructuredtext' |
18 __docformat__ = 'restructuredtext' |
14 |
19 |
15 |
20 from BTrees.OOBTree import OOBTree |
16 # import standard library |
21 from persistent.list import PersistentList |
17 |
22 from pyramid.threadlocal import get_current_registry |
18 # import interfaces |
23 from zope.container.interfaces import IContained, IContainer |
19 from zope.container.interfaces import IContainer, IContained |
24 from zope.container.ordered import OrderedContainer |
20 from zope.lifecycleevent.interfaces import IObjectMovedEvent |
25 from zope.lifecycleevent.interfaces import IObjectMovedEvent |
21 from zope.location.interfaces import ISublocations |
26 from zope.location.interfaces import ISublocations |
22 |
27 |
23 # import packages |
28 from pyams_utils.adapter import ContextAdapter, adapter_config |
24 from BTrees.OOBTree import OOBTree |
|
25 from persistent.list import PersistentList |
|
26 from pyams_utils.adapter import adapter_config, ContextAdapter |
|
27 from pyramid.threadlocal import get_current_registry |
|
28 from zope.container.ordered import OrderedContainer |
|
29 |
29 |
30 |
30 |
31 class BTreeOrderedContainer(OrderedContainer): |
31 class BTreeOrderedContainer(OrderedContainer): |
32 """BTree based ordered container |
32 """BTree based ordered container |
33 |
33 |