diff --git a/concept.py b/concept.py index 4a6e518..7630b15 100644 --- a/concept.py +++ b/concept.py @@ -409,7 +409,7 @@ class IndexAttributes(object): @Lazy def adaptedIndexAttributes(self): if self.adapted != self.context: - return component.queryAdapter(self.adapted, IIndexAttributes) + #return component.queryAdapter(self.adapted, IIndexAttributes) return IIndexAttributes(self.adapted, None) def text(self): diff --git a/layout/browser/base.py b/layout/browser/base.py index 30fac0c..d930111 100644 --- a/layout/browser/base.py +++ b/layout/browser/base.py @@ -121,6 +121,9 @@ class BaseView(object): for p in packages: requirements.add(p) + def getMessage(self, id): + return self.request.form.get('loops.messages').get(id, {}) + def renderText(self, text, contentType): typeKey = util.renderingFactories.get(contentType, None) if typeKey is None: