add request attribute to AdapterBase in order to be able to handle those strange cases when we need it
This commit is contained in:
parent
cedaf06606
commit
027b661110
1 changed files with 3 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue