Back to index

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

List of all members.

Public Member Functions

def cache_required
def handle
def handle_cache
def handle_seeker
def sm
def required
def handle_txtfilter
def is_installed

Public Attributes

 site

Static Public Attributes

 cache = ContentCacheManager
 cache_provides = ICacheManager
 seeker = AdvQueryMatchingSeeker
 seeker_provides = IWickedQuery
tuple other_events = (IWickedEvent, IFieldStorageEvent)
tuple backlink_handler = (backlink, brackettedbacklink)
tuple subscriber = (wicked_listener, bracketted_wicked_listener)
string title = "((Basic))"
 field = IAmWickedField
 content = IAmWicked
 event = IFieldRenderEvent
 txtfilter = WickedFilter
 txtfilter_provides = IWickedFilter

Detailed Description

by dropping direct registration to IAmWicked for content, we
can selectively turn on and off the creation of wiki behavior by
content interface. To do this though, we have to hand register a
seeker and a cache manager

Definition at line 92 of file registration.py.


Member Function Documentation

Definition at line 106 of file registration.py.

00106 
00107     def cache_required(self):
00108         return (self.txtfilter_provides, self.content)
    

Here is the caller graph for this function:

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

Reimplemented from wicked.registration.BaseWickedRegistration.

Definition at line 109 of file registration.py.

00109 
00110     def handle(self, unregister=False):
00111         handle_adapter_reg, handle_subscriber_reg, handle_sub_adapter_reg = super(SelectiveRegistration,
00112                                        self).handle(unregister=unregister)
00113         self.handle_cache(handle_adapter_reg)
00114         self.handle_seeker(handle_adapter_reg)
00115         
00116         for event in self.other_events:
00117             self.handle_txtfilter(handle_adapter_reg, event=event)
00118         return (handle_adapter_reg,
00119                 handle_subscriber_reg,
00120                 handle_sub_adapter_reg)

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 121 of file registration.py.

00121 
00122     def handle_cache(self, handle):
00123         handle(self.cache,
00124                required=self.cache_required,
00125                provided=self.cache_provides)

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 126 of file registration.py.

00126 
00127     def handle_seeker(self, handle):
00128         handle(self.seeker,
00129                required=(self.content,),
00130                provided=self.seeker_provides)

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 102 of file registration.py.

Definition at line 97 of file registration.py.

Definition at line 98 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 101 of file registration.py.

Definition at line 99 of file registration.py.

Definition at line 100 of file registration.py.

Definition at line 35 of file registration.py.

Reimplemented from wicked.registration.BaseWickedRegistration.

Definition at line 103 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: