Package CMFSetup :: Module context :: Class SnapshotImportContext
[show private | hide private]
[frames | no frames]

Type SnapshotImportContext

object --+        
         |        
      Base --+    
             |    
      Acquirer --+
                 |
                SnapshotImportContext


Base class for objects that implicitly acquire attributes from containers
Method Summary
  __init__(self, tool, snapshot_id, should_purge, encoding)
  getEncoding(self)
Return the encoding used in data files.
  getLastModified(self, path)
See IImportContext.
  getSite(self)
See ISetupContext.
  isDirectory(self, path)
See IImportContext.
  listDirectory(self, path, skip)
See IImportContext.
  readDataFile(self, filename, subdir)
See IImportContext.
  shouldPurge(self)
See IImportContext.
    Inherited from Base
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __getnewargs__(...)
Get arguments to be passed to __new__
  __getstate__(...)
Get the object serialization state
  __reduce__(...)
Reduce an object to contituent parts for serialization
  __setstate__(...)
Set the object serialization state The state should be in one of 3 forms: - None Ignored - A dictionary In this case, the object's instance dictionary will be cleared and updated with the new state.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Class Variable Summary
tuple __ac_permissions__ = (('Manage portal', ('getEncoding', ...
tuple __implements__ = (<Interface CMFSetup.interfaces.IImport...
tuple _getSnapshotFolder__roles__ = ()
PermissionRole getEncoding__roles__ = <PermissionRole object at 0xb4852...
PermissionRole getLastModified__roles__ = <PermissionRole object at 0xb...
PermissionRole getSite__roles__ = <PermissionRole object at 0xb4852fe0>
PermissionRole isDirectory__roles__ = <PermissionRole object at 0xb4852...
PermissionRole listDirectory__roles__ = <PermissionRole object at 0xb48...
PermissionRole readDataFile__roles__ = <PermissionRole object at 0xb485...
PermissionRole shouldPurge__roles__ = <PermissionRole object at 0xb4852...

Method Details

getEncoding(self)

Return the encoding used in data files.

o Return None if the data should not be encoded.

getLastModified(self, path)

See IImportContext.

getSite(self)

See ISetupContext.

isDirectory(self, path)

See IImportContext.

listDirectory(self, path, skip=())

See IImportContext.

readDataFile(self, filename, subdir=None)

See IImportContext.

shouldPurge(self)

See IImportContext.

Class Variable Details

__ac_permissions__

Type:
tuple
Value:
(('Manage portal',
  ('getEncoding',
   'shouldPurge',
   'isDirectory',
   'readDataFile',
   'listDirectory',
   'getLastModified',
   'getSite')),)                                                       

__implements__

Type:
tuple
Value:
(<Interface CMFSetup.interfaces.IImportContext at b588d72c>,)          

_getSnapshotFolder__roles__

Type:
tuple
Value:
()                                                                     

getEncoding__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xb4852fe0>                                  

getLastModified__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xb4852fe0>                                  

getSite__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xb4852fe0>                                  

isDirectory__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xb4852fe0>                                  

listDirectory__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xb4852fe0>                                  

readDataFile__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xb4852fe0>                                  

shouldPurge__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xb4852fe0>                                  

Generated by Epydoc 2.1 on Wed Nov 30 03:59:37 2005 http://epydoc.sf.net