Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Static Public Attributes
wicked.registration.BaseWickedRegistration Class Reference
Inheritance diagram for wicked.registration.BaseWickedRegistration:
Inheritance graph
[legend]
Collaboration diagram for wicked.registration.BaseWickedRegistration:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def sm
def required
def handle
def handle_txtfilter
def is_installed

Public Attributes

 site

Static Public Attributes

string title = "((Basic))"
 field = IAmWickedField
 content = IAmWicked
 event = IFieldRenderEvent
 txtfilter = WickedFilter
 txtfilter_provides = IWickedFilter
tuple subscriber = (wicked_listener,)

Detailed Description

abstract base: add a docstring to display a description on the
wicked dashboard

Definition at line 23 of file registration.py.


Constructor & Destructor Documentation

def wicked.registration.BaseWickedRegistration.__init__ (   self,
  context,
  kw 
)

Definition at line 34 of file registration.py.

00034 
00035     def __init__(self, context, **kw):
00036         self.site = context
00037         for key, item in kw.items():
00038             if hasattr(self, key):
00039                 setattr(self, key, item)

Here is the caller graph for this function:


Member Function Documentation

def wicked.registration.BaseWickedRegistration.handle (   self,
  unregister = False 
)

Reimplemented in wicked.registration.SelectiveRegistration.

Definition at line 48 of file registration.py.

00048 
00049     def handle(self, unregister=False):
00050         # @@ add logging
00051         handle_adapter_reg = self.sm.registerAdapter
00052         handle_subscriber_reg = self.sm.registerHandler
00053         handle_sub_adapter_reg = self.sm.registerSubscriptionAdapter
00054         if unregister:
00055             handle_adapter_reg = self.sm.unregisterAdapter
00056             handle_subscriber_reg = self.sm.unregisterHandler
00057             handle_sub_adapter_reg = self.sm.unregisterSubscriptionAdapter
00058         
00059         self.handle_txtfilter(handle_adapter_reg)
00060         for subscriber in self.subscriber:
00061             handle_subscriber_reg(subscriber, required=self.required)
00062         for bh in self.backlink_handler:
00063             handle_sub_adapter_reg(bh)
00064         return (handle_adapter_reg, handle_subscriber_reg, handle_sub_adapter_reg)

Here is the call graph for this function:

Here is the caller graph for this function:

def wicked.registration.BaseWickedRegistration.handle_txtfilter (   self,
  handle,
  event = None,
  txtfilter = None,
  unregister = False 
)
helper for common reg of txtfilter

Definition at line 65 of file registration.py.

00065 
00066     def handle_txtfilter(self, handle, event=None, txtfilter=None, unregister=False):
00067         """helper for common reg of txtfilter"""
00068         txtfilter = txtfilter and txtfilter or self.txtfilter
00069         required = list(self.required)
00070         if event:
00071             required[2] = event
00072 
00073         handle(self.txtfilter,
00074                required=required,
00075                provided=self.txtfilter_provides)

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 76 of file registration.py.

00076 
00077     def is_installed(self):
00078         raise NotImplemented
00079 

Definition at line 45 of file registration.py.

00045 
00046     def required(self):
00047         return (self.field, self.content, self.event)
    

Here is the caller graph for this function:

Definition at line 41 of file registration.py.

00041 
00042     def sm(self):
00043         return getSiteManager(self.site)


Member Data Documentation

Definition at line 28 of file registration.py.

Definition at line 29 of file registration.py.

Definition at line 27 of file registration.py.

Definition at line 35 of file registration.py.

string wicked.registration.BaseWickedRegistration.title = "((Basic))" [static]

Reimplemented in wicked.registration.BasePloneMediaWickedRegistration.

Definition at line 26 of file registration.py.

Reimplemented in wicked.registration.BasePloneMediaWickedRegistration.

Definition at line 30 of file registration.py.

Definition at line 31 of file registration.py.


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