Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
GenericSetup.zcml.upgradeSteps Class Reference

List of all members.

Public Member Functions

def __init__
def upgradeStep
def __call__

Public Attributes

 profile
 source
 dest
 sortkey
 id

Detailed Description

Allows nested upgrade steps.

Definition at line 259 of file zcml.py.


Constructor & Destructor Documentation

def GenericSetup.zcml.upgradeSteps.__init__ (   self,
  _context,
  profile,
  source = '*',
  destination = '*',
  sortkey = 0 
)

Definition at line 263 of file zcml.py.

00263 
00264     def __init__(self, _context, profile, source='*', destination='*', sortkey=0):
00265         self.profile = profile
00266         self.source = source
00267         self.dest = destination
00268         self.sortkey = sortkey
00269         self.id = None


Member Function Documentation

Definition at line 283 of file zcml.py.

00283 
00284     def __call__(self):
00285         return ()
00286 

Here is the caller graph for this function:

def GenericSetup.zcml.upgradeSteps.upgradeStep (   self,
  _context,
  title,
  description,
  handler,
  checker = None 
)

Definition at line 270 of file zcml.py.

00270 
00271     def upgradeStep(self, _context, title, description, handler, checker=None):
00272         step = UpgradeStep(title, self.profile, self.source, self.dest, description,
00273                            handler, checker, self.sortkey)
00274         if self.id is None:
00275             self.id = str(abs(hash('%s%s%s%s' % (title, self.source, self.dest,
00276                                                  self.sortkey))))
00277         _context.action(
00278             discriminator = ('upgradeStep', self.source, self.dest, handler,
00279                              self.sortkey),
00280             callable = _registerNestedUpgradeStep,
00281             args = (step, self.id),
00282             )


Member Data Documentation

Definition at line 266 of file zcml.py.

Definition at line 268 of file zcml.py.

Definition at line 264 of file zcml.py.

Definition at line 267 of file zcml.py.

Definition at line 265 of file zcml.py.


The documentation for this class was generated from the following file: