adhocracy_core.resources.pool module¶
Basic type with children typically to create process structures.
-
interface
IBasicPool[source]¶ Extends:
adhocracy_core.interfaces.IPoolBasic Pool.
-
class
Pool(data=None, family=None)[source]¶ Bases:
adhocracy_core.resources.base.Base,substanced.folder.FolderAn Auto-Naming Folder.
Custom names are allowed and coexists with the autogenerated names.
The next_name method sequentially increments the last name:
0000001, then0000002, and so on.Counter that should increment if descendants are changed.
-
next_name(subobject, prefix='') → str[source]¶ Generate name to add subobject to the folder.
This method does:
- increment the last generated name associated to the prefix.
- zero-filling the left hand side of the result with 7 zeros.
- add prefix to the left hand side if any
If the generated Name exists add timestamp to the right side.
-