From 027b661110682717f6bfc8a7d576e4e873be0b21 Mon Sep 17 00:00:00 2001 From: Helmut Merz Date: Mon, 8 Oct 2012 11:49:48 +0200 Subject: [PATCH] add request attribute to AdapterBase in order to be able to handle those strange cases when we need it --- common.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common.py b/common.py index fb12526..985f27d 100644 --- a/common.py +++ b/common.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2011 Helmut Merz helmutm@cy55.de +# Copyright (c) 2012 Helmut Merz helmutm@cy55.de # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -98,7 +98,7 @@ class AdapterBase(object): adapts(IConcept) - _adapterAttributes = ('context', '__parent__') + _adapterAttributes = ('context', '__parent__', 'request') _contextAttributes = list(IConcept) _noexportAttributes = () _textIndexAttributes = () @@ -106,6 +106,7 @@ class AdapterBase(object): __is_dummy__ = False __type__ = None + request = None languageInfo = None def __init__(self, context):