pyams_sequence.interfaces package ⊞¶
-
interface
pyams_sequence.interfaces.IInternalReference[source]¶ Extends:
zope.annotation.interfaces.IAttributeAnnotatableInternal link interface
-
reference¶ Internal reference
Internal link target reference. You can search a reference using ‘+’ followed by internal number, of by entering text matching content title.
Implementation: pyams_sequence.schema.InternalReferenceFieldRead Only: False Required: True Default Value: None Allowed Type: str
-
target¶ Internal reference target
-
get_target(self, state=None, request=None)¶ Get target from internal reference
-
-
interface
pyams_sequence.interfaces.IInternalReferencesList[source]¶ Extends:
zope.annotation.interfaces.IAttributeAnnotatableInternal references list
-
references¶ Internal references
List of internal references
Implementation: pyams_sequence.schema.InternalReferencesListFieldRead Only: False Required: False Default Value: None Allowed Type: listValue Type
Implementation: zope.schema.TextLineRead Only: False Required: True Default Value: None Allowed Type: str
-
get_targets(self, state=None)¶ Get iterator over targets from internal references
-
-
interface
pyams_sequence.interfaces.ISequentialIdInfo[source]¶ Sequential ID info interface
-
oid¶ Sequential ID
Implementation: zope.schema.IntRead Only: False Required: False Default Value: None Allowed Type: int
-
hex_oid¶ Unique ID
Implementation: zope.schema.TextLineRead Only: False Required: False Default Value: None Allowed Type: str
-
public_oid¶ Unique ID
Implementation: zope.schema.TextLineRead Only: True Required: True Default Value: None Allowed Type: str
-
get_full_oid(self)¶ Get full OID
-
get_short_oid(self)¶ Get short OID
-
get_base_oid(self)¶ Get base OID
-
-
interface
pyams_sequence.interfaces.ISequentialIdTarget[source]¶ Extends:
zope.annotation.interfaces.IAttributeAnnotatableMarker interface used to identify contents requiring sequential IDs
-
sequence_name¶ Sequence name
Name of registered sequence utility used to get unique IDs
Implementation: zope.schema.TextLineRead Only: False Required: False Default Value: None Allowed Type: str
-
sequence_prefix¶ Hexadecimal prefix
Prefix used to generate hexadecimal ID, placed after utility prefix. Generally defined at class level…
Implementation: zope.schema.TextLineRead Only: False Required: False Default Value: None Allowed Type: str
-
-
interface
pyams_sequence.interfaces.ISequentialIntIds[source]¶ Sequential IntIds utility interface
-
prefix¶ Hexadecimal prefix
Prefix used to generate hexadecimal ID
Implementation: zope.schema.TextLineRead Only: False Required: False Default Value: None Allowed Type: str
-
hex_oid_length¶ Hexadecimal ID length
Full length of hexadecimal ID, not including prefix
Implementation: zope.schema.IntRead Only: False Required: True Default Value: 10 Allowed Type: int
-
last_oid¶ Last OID
Last used sequence
Implementation: zope.schema.IntRead Only: False Required: True Default Value: 0 Allowed Type: int
-
query_hex_oid(self, obj)¶ Generate an hexadecimal ID for the given sequence
-
get_full_oid(self, oid, obj_prefix=None)¶ Get full ID based on partial OID
-
get_short_oid(self, oid, obj_prefix=None)¶ Get short ID based on given numeric object ID
-
get_base_oid(self, oid, obj_prefix=None)¶ Get base ID (without prefix) based on given numeric object ID
-
get_internal_id(self, oid)¶ Get internal ID matching given OID
-
query_object_from_oid(self, oid)¶ Query object with given OID
-