Class v.c.a.i.Empowered(object):

Part of vmc.contrib.axiom.item View In Hierarchy

Known subclasses: vmc.contrib.axiom.item.Item, vmc.contrib.axiom.store.Store

No class docstring
Method powerUp Installs a powerup (e.g. plugin) on an item or store.
Method powerDown Remove a powerup.
Method __conform__ For 'normal' interfaces, returns the first powerup found when doing
Method powerupsFor Returns powerups installed using powerUp, in order of descending
Method interfacesFor Undocumented
def powerUp(self, powerup, interface, priority=0):

Installs a powerup (e.g. plugin) on an item or store.

Powerups will be returned in an iterator when queried for using the 'powerupsFor' method. Normally they will be returned in order of installation [this may change in future versions, so please don't depend on it]. Higher priorities are returned first. If you have something that should run before "normal" powerups, pass POWERUP_BEFORE; if you have something that should run after, pass POWERUP_AFTER. We suggest not depending too heavily on order of execution of your powerups, but if finer-grained control is necessary you may pass any integer. Normal (unspecified) priority is zero.

Powerups will only be installed once on a given item. If you install a powerup for a given interface with priority 1, then again with priority 30, the powerup will be adjusted to priority 30 but future calls to powerupFor will still only return that powerup once.
Parameterspowerupan Item that implements interface
interfacea zope interface
priorityAn int; preferably either POWERUP_BEFORE, POWERUP_AFTER, or unspecified.
RaisesTypeErrorraises if interface is IPowerupIndirector You may not install a powerup for IPowerupIndirector because that would be nonsensical.
def powerDown(self, powerup, interface):
Remove a powerup.
def __conform__(self, interface):

For 'normal' interfaces, returns the first powerup found when doing self.powerupsFor(interface).

Certain interfaces are special - IService from twisted.application being the main special case - and will be aggregated according to special rules. The full list of such interfaces is present in the 'aggregateInterfaces' class attribute.
def powerupsFor(self, interface):

Returns powerups installed using powerUp, in order of descending priority.

Powerups found to have been deleted, either during the course of this powerupsFor iteration, during an upgrader, or previously, will not be returned.
def interfacesFor(self, powerup):
Undocumented
API Documentation for vodafone-mobile-connect-card-driver-for-linux, generated by pydoctor at 2008-01-10 13:06:31.