Author: jmorliaguet Date: Fri Jun 30 15:09:26 2006 New Revision: 3574 Modified: cpsskins/branches/paris-sprint-2006/browser/rendering/renderer.py
Log: - optimization Modified: cpsskins/branches/paris-sprint-2006/browser/rendering/renderer.py ============================================================================== --- cpsskins/branches/paris-sprint-2006/browser/rendering/renderer.py (original) +++ cpsskins/branches/paris-sprint-2006/browser/rendering/renderer.py Fri Jun 30 15:09:26 2006 @@ -80,6 +80,7 @@ engine = info.rendering.engine relations = info.rendering.relations + resources = info.rendering.resources # look for renderers associated to the element's content type type = IType(element) @@ -125,8 +126,7 @@ # the adapted object is a URI which must be resolved if isinstance(adapted, basestring): - uri = adapted - adapted = info.rendering.resources.resolve(uri, element) + adapted = resources.resolve(adapted, element) # get the adapter filter = queryMultiAdapter((adapted,), IFilterView, -- http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins