class documentation

class Sequence(ZMSItem.ZMSItem): (source)

Constructor: Sequence(startvalue)

View In Hierarchy

Auto-incrementing integer sequence used to generate unique IDs for ZMS content objects (stored as 'acl_sequence' in the ZODB).

Method __init__ Initialise a new Sequence instance.
Method currVal Return the current sequence value without incrementing.
Method manage_changeProperties Handle ZMI actions for updating or advancing the sequence value.
Method nextVal Increment the sequence counter and return the new value.
Class Variable __ac_permissions__ Undocumented
Class Variable __administratorPermissions__ Undocumented
Class Variable manage_main Undocumented
Class Variable manage_options Undocumented
Class Variable meta_type Undocumented
Class Variable zmi_icon Undocumented
Instance Variable id Undocumented
Instance Variable value Undocumented
def __init__(self, startvalue=0): (source)

Initialise a new Sequence instance.

Parameters
startvalue:intInitial counter value
def currVal(self): (source)

Return the current sequence value without incrementing.

Returns
intCurrent sequence value
def manage_changeProperties(self, submit, currentvalue, REQUEST, RESPONSE): (source)

Handle ZMI actions for updating or advancing the sequence value.

def nextVal(self): (source)

Increment the sequence counter and return the new value.

Returns
intNext sequence value
__ac_permissions__ = (source)

Undocumented

__administratorPermissions__: tuple[str, ...] = (source)

Undocumented

manage_main = (source)

Undocumented

manage_options: tuple = (source)

Undocumented

meta_type: str = (source)

Undocumented

zmi_icon: str = (source)

Undocumented

Undocumented

Undocumented