Ignore:
Timestamp:
Apr 30, 2013 2:48:15 PM (7 years ago)
Author:
mike
Message:

reback renderViewlet method; remove test_kssRegistry test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.plonetabs/branches/nokss/quintagroup/plonetabs/browser/plonetabs.py

    r3680 r3681  
    1717    # Plone >= 4.3 
    1818    from zope.container.interfaces import INameChooser 
     19 
     20from zope.viewlet.interfaces import IViewletManager, IViewlet 
    1921 
    2022from plone.app.layout.navigation.root import getNavigationRoot 
     
    922924        return True 
    923925 
     926    def renderViewlet(self, manager, name): 
     927        if isinstance(manager, basestring): 
     928            manager = getMultiAdapter((self.context, self.request, self,), 
     929                                      IViewletManager, name=manager) 
     930        renderer = getMultiAdapter((self.context, self.request, self, manager), 
     931                                   IViewlet, name=name) 
     932        renderer = renderer.__of__(self.context) 
     933        renderer.update() 
     934        return renderer.render() 
    924935    # 
    925936    # Basic API to work with portal actions tool in a more pleasent way 
Note: See TracChangeset for help on using the changeset viewer.