<s> import datetime <EOL> from zope . interface . interfaces import IObjectEvent <EOL> from zope . interface import ( <EOL> Interface , <EOL> Attribute , <EOL> ) <EOL> from zope . interface . interface import InterfaceClass <EOL> class ReferenceClass ( InterfaceClass ) : <EOL> def __init__ ( self , * arg , ** kw ) : <EOL> try : <EOL> attrs = arg [ <NUM_LIT:2> ] or { } <EOL> except IndexError : <EOL> attrs = kw . get ( '<STR_LIT>' , { } ) <EOL> si = attrs . pop ( '<STR_LIT>' , False ) <EOL> ti = attrs . pop ( '<STR_LIT>' , False ) <EOL> so = attrs . pop ( '<STR_LIT>' , False ) <EOL> to = attrs . pop ( '<STR_LIT>' , False ) <EOL> InterfaceClass . __init__ ( self , * arg , ** kw ) <EOL> self . setTaggedValue ( '<STR_LIT>' , si ) <EOL> self . setTaggedValue ( '<STR_LIT>' , ti ) <EOL> self . setTaggedValue ( '<STR_LIT>' , so ) <EOL> self . setTaggedValue ( '<STR_LIT>' , to ) <EOL> ReferenceType = ReferenceClass ( <EOL> "<STR_LIT>" , __module__ = '<STR_LIT>' ) <EOL> EARLIEST_DATE = datetime . datetime ( <NUM_LIT> , <NUM_LIT:1> , <NUM_LIT:1> ) <EOL> class ICatalog ( Interface ) : <EOL> """<STR_LIT>""" <EOL> objectids = Attribute ( <EOL> '<STR_LIT>' ) <EOL> def index_resource ( resource , oid = None , action_mode = None ) : <EOL> """<STR_LIT>""" <EOL> def reindex_resource ( resource , oid = None , action_mode = None ) : <EOL> """<STR_LIT>""" <EOL> def unindex_resource ( resource_or_oid , action_mode = None ) : <EOL> """<STR_LIT>""" <EOL> def __getitem__ ( name ) : <EOL> """<STR_LIT>""" <EOL> def reset ( ) : <EOL> """<STR_LIT>""" <EOL> def flush ( immediate = True ) : <EOL> """<STR_LIT>""" <EOL> def reindex ( dry_run = False , commit_interval = <NUM_LIT:200> , indexes = None , <EOL> path_re = None , output = None ) : <EOL> """<STR_LIT>""" <EOL> def update_indexes ( <EOL> registry = None , <EOL> dry_run = False , <EOL> output = None , <EOL> replace = False , <EOL> reindex = False , <EOL> ** kw ) : <EOL> """<STR_LIT>""" <EOL> class ICatalogFactory ( Interface ) : <EOL> def replace ( folder , reindex = False ) : <EOL> """<STR_LIT>""" <EOL> def sync ( folder , reindex = False ) : <EOL> """<STR_LIT>""" <EOL> class IIndexFactory ( Interface ) : <EOL> """<STR_LIT>""" <EOL> class IIndexView ( Interface ) : <EOL> def __call__ ( resource , default ) : <EOL> """<STR_LIT>""" <EOL> class IIndexingActionProcessor ( Interface ) : <EOL> """<STR_LIT>""" <EOL> class MODE_IMMEDIATE ( Interface ) : <EOL> """<STR_LIT>""" <EOL> class MODE_ATCOMMIT ( Interface ) : <EOL> """<STR_LIT>""" <EOL> class MODE_DEFERRED ( Interface ) : <EOL> """<STR_LIT>""" <EOL> class IEditable ( Interface ) : <EOL> """<STR_LIT>""" <EOL> def get ( ) : <EOL> """<STR_LIT>""" <EOL> def put ( fileish ) : <EOL> """<STR_LIT>""" <EOL> class IObjectWillBeAdded ( IObjectEvent ) : <EOL> """<STR_LIT>""" <EOL> object = Attribute ( '<STR_LIT>' ) <EOL> parent = Attribute ( '<STR_LIT>' ) <EOL> name = Attribute ( '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> moving = Attribute ( '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> loading = Attribute ( '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> duplicating = Attribute ( '<STR_LIT>' ) <EOL> class IObjectAdded ( IObjectEvent ) : <EOL> """<STR_LIT>""" <EOL> object = Attribute ( '<STR_LIT>' ) <EOL> parent = Attribute ( '<STR_LIT>' ) <EOL> name = Attribute ( '<STR_LIT>' ) <EOL> moving = Attribute ( '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> loading = Attribute ( '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> duplicating = Attribute ( '<STR_LIT>' ) <EOL> class IObjectWillBeRemoved ( IObjectEvent ) : <EOL> """<STR_LIT>""" <EOL> object = Attribute ( '<STR_LIT>' ) <EOL> parent = Attribute ( '<STR_LIT>' ) <EOL> name = Attribute ( '<STR_LIT>' ) <EOL> moving = Attribute ( '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> loading = Attribute ( '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> class IObjectRemoved ( IObjectEvent ) : <EOL> """<STR_LIT>""" <EOL> object = Attribute ( '<STR_LIT>' ) <EOL> parent = Attribute ( '<STR_LIT>' ) <EOL> name = Attribute ( '<STR_LIT>' ) <EOL> moving = Attribute ( '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> loading = Attribute ( '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> removed_oids = Attribute ( '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> class IObjectModified ( IObjectEvent ) : <EOL> """<STR_LIT>""" <EOL> object = Attribute ( '<STR_LIT>' ) <EOL> class IACLModified ( IObjectEvent ) : <EOL> """<STR_LIT>""" <EOL> object = Attribute ( '<STR_LIT>' ) <EOL> old_acl = Attribute ( '<STR_LIT>' ) <EOL> new_acl = Attribute ( '<STR_LIT>' ) <EOL> class IContentCreated ( Interface ) : <EOL> """<STR_LIT>""" <EOL> object = Attribute ( '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> content_type = Attribute ( '<STR_LIT>' ) <EOL> meta = Attribute ( '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> class ILoggedIn ( Interface ) : <EOL> """<STR_LIT>""" <EOL> login = Attribute ( '<STR_LIT>' ) <EOL> user = Attribute ( '<STR_LIT>' ) <EOL> context = Attribute ( '<STR_LIT>' ) <EOL> request = Attribute ( '<STR_LIT>' ) <EOL> class IRootAdded ( Interface ) : <EOL> """<STR_LIT>""" <EOL> object = Attribute ( '<STR_LIT>' ) <EOL> class IAfterTransition ( Interface ) : <EOL> """<STR_LIT>""" <EOL> object = Attribute ( '<STR_LIT>' ) <EOL> initial_state = Attribute ( '<STR_LIT>' ) <EOL> new_state = Attribute ( '<STR_LIT>' ) <EOL> transition = Attribute ( '<STR_LIT>' ) <EOL> class IEvolutionSteps ( Interface ) : <EOL> """<STR_LIT>""" <EOL> class IFile ( Interface ) : <EOL> """<STR_LIT>""" <EOL> blob = Attribute ( '<STR_LIT>' ) <EOL> mimetype = Attribute ( '<STR_LIT>' ) <EOL> def upload ( stream , mimetype_hint = False ) : <EOL> """<STR_LIT>""" <EOL> def get_response ( self , ** kw ) : <EOL> """<STR_LIT>""" <EOL> def get_size ( self ) : <EOL> """<STR_LIT>""" <EOL> marker = object ( ) <EOL> class IFolder ( Interface ) : <EOL> """<STR_LIT>""" <EOL> def set_order ( value , reorderable = None ) : <EOL> """<STR_LIT>""" <EOL> def unset_order ( ) : <EOL> """<STR_LIT>""" <EOL> def is_ordered ( ) : <EOL> """<STR_LIT>""" <EOL> def is_reorderable ( ) : <EOL> """<STR_LIT>""" <EOL> def reorder ( items , before ) : <EOL> """<STR_LIT>""" <EOL> def sort ( oids , reverse = False , limit = None ) : <EOL> """<STR_LIT>""" <EOL> def keys ( ) : <EOL> """<STR_LIT>""" <EOL> def __iter__ ( ) : <EOL> """<STR_LIT>""" <EOL> def values ( ) : <EOL> """<STR_LIT>""" <EOL> def items ( ) : <EOL> """<STR_LIT>""" <EOL> def get ( name , default = None ) : <EOL> """<STR_LIT>""" <EOL> def __contains__ ( name ) : <EOL> """<STR_LIT>""" <EOL> def __nonzero__ ( ) : <EOL> """<STR_LIT>""" <EOL> def __len__ ( ) : <EOL> """<STR_LIT>""" <EOL> def __getitem__ ( name ) : <EOL> """<STR_LIT>""" <EOL> def __setitem__ ( name , other ) : <EOL> """<STR_LIT>""" <EOL> def add ( name , other , send_events = True , reserved_names = ( ) , <EOL> duplicating = None , moving = None , loading = False , registry = None ) : <EOL> """<STR_LIT>""" <EOL> def validate_name ( name , reserved_names = ( ) ) : <EOL> """<STR_LIT>""" <EOL> def check_name ( name , reserved_names = ( ) ) : <EOL> """<STR_LIT>""" <EOL> def pop ( name , default = None ) : <EOL> """<STR_LIT>""" <EOL> def __delitem__ ( name ) : <EOL> """<STR_LIT>""" <EOL> def remove ( name , send_events = True , moving = None , loading = False ) : <EOL> """<STR_LIT>""" <EOL> def move ( name , other , newname = None ) : <EOL> """<STR_LIT>""" <EOL> def rename ( oldname , newname ) : <EOL> """<STR_LIT>""" <EOL> def replace ( name , newobject ) : <EOL> """<STR_LIT>""" <EOL> def load ( name , newobject ) : <EOL> """<STR_LIT>""" <EOL> def clear ( ) : <EOL> """<STR_LIT>""" <EOL> class IAutoNamingFolder ( IFolder ) : <EOL> def next_name ( subobject ) : <EOL> """<STR_LIT>""" <EOL> def add_next ( <EOL> subobject , <EOL> send_events = True , <EOL> duplicating = None , <EOL> moving = None , <EOL> registry = None , <EOL> ) : <EOL> """<STR_LIT>""" <EOL> class UserToLock ( ReferenceType ) : <EOL> """<STR_LIT>""" <EOL> class WriteLock ( ReferenceType ) : <EOL> """<STR_LIT>""" <EOL> class ILock ( Interface ) : <EOL> """<STR_LIT>""" <EOL> class ILockService ( IAutoNamingFolder ) : <EOL> def lock ( resource , owner_or_ownerid , timeout = None , locktype = WriteLock ) : <EOL> """<STR_LIT>""" <EOL> def unlock ( resource , owner_or_ownerid ) : <EOL> """<STR_LIT>""" <EOL> class IObjectMap ( Interface ) : <EOL> """<STR_LIT>""" <EOL> def objectid_for ( obj_or_path_tuple ) : <EOL> """<STR_LIT>""" <EOL> def path_for ( objectid ) : <EOL> """<STR_LIT>""" <EOL> def object_for ( objectid ) : <EOL> """<STR_LIT>""" <EOL> def add ( obj ) : <EOL> """<STR_LIT>""" <EOL> def remove ( obj_objectid_or_path_tuple ) : <EOL> """<STR_LIT>""" <EOL> def pathlookup ( obj_or_path_tuple , depth = None , include_origin = True ) : <EOL> """<STR_LIT>""" <EOL> def connect ( src , target , reftype ) : <EOL> """<STR_LIT>""" <EOL> def disconnect ( src , target , reftype ) : <EOL> """<STR_LIT>""" <EOL> def sources ( obj , reftype ) : <EOL> """<STR_LIT>""" <EOL> def targets ( obj , reftype ) : <EOL> """<STR_LIT>""" <EOL> def targetids ( obj , reftype ) : <EOL> """<STR_LIT>""" <EOL> def sourceids ( obj , reftype ) : <EOL> """<STR_LIT>""" <EOL> class IPrincipal ( Interface ) : <EOL> """<STR_LIT>""" <EOL> class IUser ( IPrincipal ) : <EOL> """<STR_LIT>""" <EOL> class IGroup ( IPrincipal ) : <EOL> """<STR_LIT>""" <EOL> class IUsers ( Interface ) : <EOL> """<STR_LIT>""" <EOL> class IGroups ( Interface ) : <EOL> """<STR_LIT>""" <EOL> class IPrincipals ( Interface ) : <EOL> """<STR_LIT>""" <EOL> class IPasswordResets ( Interface ) : <EOL> """<STR_LIT>""" <EOL> class IPasswordReset ( Interface ) : <EOL> """<STR_LIT>""" <EOL> class UserToGroup ( ReferenceType ) : <EOL> pass <EOL> class PrincipalToACLBearing ( ReferenceType ) : <EOL> source_integrity = True <EOL> class UserToPasswordReset ( ReferenceType ) : <EOL> pass <EOL> class IUserLocator ( Interface ) : <EOL> """<STR_LIT>""" <EOL> def get_user_by_login ( login ) : <EOL> """<STR_LIT>""" <EOL> def get_user_by_userid ( userid ) : <EOL> """<STR_LIT>""" <EOL> def get_user_by_email ( email ) : <EOL> """<STR_LIT>""" <EOL> def get_groupids ( userid ) : <EOL> """<STR_LIT>""" <EOL> class IPropertySheet ( Interface ) : <EOL> """<STR_LIT>""" <EOL> context = Attribute ( '<STR_LIT>' ) <EOL> request = Attribute ( '<STR_LIT>' ) <EOL> schema = Attribute ( '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> def get ( ) : <EOL> """<STR_LIT>""" <EOL> def set ( struct , omit = ( ) ) : <EOL> """<STR_LIT>""" <EOL> def after_set ( changed ) : <EOL> """<STR_LIT>""" <EOL> class IRoot ( IFolder ) : <EOL> pass <EOL> class IService ( Interface ) : <EOL> """<STR_LIT>""" <EOL> class ISDIAPI ( Interface ) : <EOL> """<STR_LIT>""" <EOL> main_template = Attribute ( """<STR_LIT>""" ) <EOL> def get_macro ( asset_spec , name = None ) : <EOL> """<STR_LIT>""" <EOL> def flash_with_undo ( msg , queue = '<STR_LIT>' , allow_duplicate = True ) : <EOL> """<STR_LIT>""" <EOL> def mgmt_path ( obj , * arg , ** kw ) : <EOL> """<STR_LIT>""" <EOL> def mgmt_url ( obj , * arg , ** kw ) : <EOL> """<STR_LIT>""" <EOL> def breadcrumbs ( ) : <EOL> """<STR_LIT>""" <EOL> def sdi_title ( ) : <EOL> """<STR_LIT>""" <EOL> def mgmt_views ( context ) : <EOL> """<STR_LIT>""" <EOL> class IWorkflow ( Interface ) : <EOL> """<STR_LIT:U+0020>""" <EOL> def add_state ( name , callback = None , ** kw ) : <EOL> """<STR_LIT:U+0020>""" <EOL> def add_transition ( name , from_state , to_state , callback = None , ** kw ) : <EOL> """<STR_LIT:U+0020>""" <EOL> def check ( ) : <EOL> """<STR_LIT:U+0020>""" <EOL> def state_of ( content ) : <EOL> """<STR_LIT:U+0020>""" <EOL> def has_state ( content ) : <EOL> """<STR_LIT:U+0020>""" <EOL> def get_states ( content , request , from_state = None ) : <EOL> """<STR_LIT:U+0020>""" <EOL> def initialize ( content , request = None ) : <EOL> """<STR_LIT:U+0020>""" <EOL> def reset ( content , request = None ) : <EOL> """<STR_LIT:U+0020>""" <EOL> def transition ( content , request , transition_name ) : <EOL> """<STR_LIT:U+0020>""" <EOL> def transition_to_state ( content , request , to_state , <EOL> skip_same = True ) : <EOL> """<STR_LIT:U+0020>""" <EOL> def get_transitions ( content , request , from_state = None ) : <EOL> """<STR_LIT:U+0020>""" <EOL> class IDefaultWorkflow ( Interface ) : <EOL> """<STR_LIT>""" </s>
