Changeset 3608 in products for quintagroup.plonetabs/trunk/quintagroup/plonetabs/utils.py
- Timestamp:
- Oct 25, 2012 10:46:03 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.plonetabs/trunk/quintagroup/plonetabs/utils.py
r3607 r3608 8 8 9 9 10 # TODO: Methods 'getViewletByName' and 'setupViewletByName' were copied 11 # from https://github.com/collective/collective.developermanual/blob/master/source/views/viewlets.rst#rendering-viewlet-by-name 10 # TODO: Methods 'getViewletByName' and 'setupViewletByName' were copied from 11 # https://github.com/collective/collective.developermanual/blob/master/source/ 12 # views/viewlets.rst#rendering-viewlet-by-name 12 13 # Better solution would be to use collective.fastview 13 14 # (http://svn.plone.org/svn/collective/collective.fastview/trunk/) … … 27 28 28 29 if v.provided == IViewlet: 29 # Note that we might have conflicting BrowserView with the same name,30 # thus we need to check for provided30 # Note that we might have conflicting BrowserView with the 31 # same name, thus we need to check for provided 31 32 if v.name == name: 32 33 return v … … 59 60 except TypeError: 60 61 # Bad constructor call parameters 61 raise RuntimeError("Unable to initialize viewlet %s. Factory method %s call failed." % (name, str(factory))) 62 raise RuntimeError("Unable to initialize viewlet %s. Factory " 63 "method %s call failed." % (name, str(factory))) 62 64 63 65 return viewlet
Note: See TracChangeset
for help on using the changeset viewer.