Back to index

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

List of all members.

Public Member Functions

def sm
def required
def handle
def handle_txtfilter
def is_installed

Public Attributes

 site

Static Public Attributes

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

Detailed Description

Basic wicked behavior for Plone. Registers a fieldevent
subscriber and the wicked filter.

Definition at line 80 of file registration.py.


Member Function Documentation

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

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 
) [inherited]
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 84 of file registration.py.

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.

Reimplemented from wicked.registration.BaseWickedRegistration.

Definition at line 83 of file registration.py.

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

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: