+ +
+

pyams_sequence package

+ +
+

Submodules

+
+
+

pyams_sequence.include module

+
+
+pyams_sequence.include.include_package(config)
+

Pyramid include

+
+ +
+
+

pyams_sequence.schema module

+
+
+class pyams_sequence.schema.InternalReference(content_type=None, *args, **kwargs)
+

Bases: zope.schema._bootstrapfields.TextLine

+

Internal reference field

+
+ +
+
+class pyams_sequence.schema.InternalReferencesList(content_type=None, value_type=None, unique=False, *args, **kwargs)
+

Bases: zope.schema._field.List

+

Internal references list field

+
+ +
+
+

pyams_sequence.sequence module

+
+
+class pyams_sequence.sequence.SequentialIdInfo
+

Bases: persistent.Persistent

+

Sequential ID info

+
+
+get_base_oid()
+
+ +
+
+get_full_oid()
+
+ +
+
+get_short_oid()
+
+ +
+
+hex_oid
+

Computed attributes based on schema fields

+

Field properties provide default values, data validation and error messages +based on data found in field meta-data.

+

Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.

+
+ +
+
+oid
+

Computed attributes based on schema fields

+

Field properties provide default values, data validation and error messages +based on data found in field meta-data.

+

Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.

+
+ +
+ +
+
+pyams_sequence.sequence.SequentialIdInfoFactory(context)
+

Sequential ID info factory

+
+ +
+
+

pyams_sequence.site module

+
+
+class pyams_sequence.site.SequenceGenerationsChecker
+

Bases: object

+

PyAMS sequence generations checker

+
+
+evolve(site, current=None)
+

Check for required utilities

+
+ +
+
+generation = 1
+
+ +
+ +
+
+pyams_sequence.site.handle_new_local_site(event)
+

Check for required utilities when a site is created

+
+ +
+
+

pyams_sequence.utility module

+
+
+class pyams_sequence.utility.SequentialIntIds(family=None)
+

Bases: zope.intid.IntIds

+

Sequential IntIds utility

+
+
+get_base_oid(oid, obj_prefix=None)
+
+ +
+
+get_full_oid(oid, obj_prefix=None)
+
+ +
+
+get_internal_id(oid)
+
+ +
+
+get_short_oid(oid, obj_prefix=None)
+
+ +
+
+hex_oid_length
+

Computed attributes based on schema fields

+

Field properties provide default values, data validation and error messages +based on data found in field meta-data.

+

Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.

+
+ +
+
+last_oid
+
+ +
+
+prefix
+

Computed attributes based on schema fields

+

Field properties provide default values, data validation and error messages +based on data found in field meta-data.

+

Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.

+
+ +
+
+query_hex_oid(obj)
+
+ +
+
+query_object_from_oid(oid)
+
+ +
+
+register(ob)
+
+ +
+ +
+
+pyams_sequence.utility.get_last_version(content)
+

Check for last available version

+
+ +
+
+pyams_sequence.utility.get_reference_target(reference, state=None)
+

Get target of given reference OID

+
+ +
+
+pyams_sequence.utility.get_sequence_dict(version, attribute='title', request=None)
+

Get OID and label matching given version

+
+ +
+
+pyams_sequence.utility.get_sequence_target(oid, state)
+

Get content matching given OID

+
+ +
+
+pyams_sequence.utility.get_version_in_state(content, state)
+

Check for versions in given status

+
+ +
+
+pyams_sequence.utility.handle_added_intid_target(event)
+

Handle added sequential ID target

+
+ +
+
+pyams_sequence.utility.handle_removed_intid_target(event)
+

Handle removed sequential ID target

+
+ +
+
+

Module contents

+
+
+pyams_sequence.includeme(config)
+

Pyramid include

+
+ +
+
+ + +