Back to index

plone3  3.1.7
Public Member Functions
plone.app.kss.commands.zopecommands.ZopeCommands Class Reference
Inheritance diagram for plone.app.kss.commands.zopecommands.ZopeCommands:
Inheritance graph
[legend]
Collaboration diagram for plone.app.kss.commands.zopecommands.ZopeCommands:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def refreshProvider
def refreshViewlet

Detailed Description

Definition at line 11 of file zopecommands.py.


Member Function Documentation

Definition at line 14 of file zopecommands.py.

00014 
00015     def refreshProvider(self, selector, name):
00016         provider = getMultiAdapter((self.context, self.request, self.view),
00017                                     IContentProvider, name=name)
00018         renderer = provider.__of__(self.context)
00019         
00020         renderer.update()
00021         result = renderer.render()
00022 
00023         ksscore = self.getCommandSet('core')
00024         ksscore.replaceHTML(selector, result)
    

Here is the call graph for this function:

def plone.app.kss.commands.zopecommands.ZopeCommands.refreshViewlet (   self,
  selector,
  manager,
  name 
)

Definition at line 25 of file zopecommands.py.

00025 
00026     def refreshViewlet(self, selector, manager, name):
00027         
00028         if isinstance(manager, basestring):
00029             manager = getMultiAdapter((self.context, self.request, self.view,),
00030                                       IViewletManager, name=manager)
00031         
00032         renderer = getMultiAdapter((self.context, self.request, self.view, manager),
00033                                    IViewlet, name=name)
00034         renderer = renderer.__of__(self.context)
00035         
00036         renderer.update()
00037         result = renderer.render()
00038         
00039         ksscore = self.getCommandSet('core')
        ksscore.replaceHTML(selector, result)

Here is the call graph for this function:


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