[Erp5-report] r43370 arnaud.fontaine - /erp5/trunk/products/ERP5Type/mixin/constraint.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Feb 16 13:46:27 CET 2011
Author: arnaud.fontaine
Date: Wed Feb 16 13:46:27 2011
New Revision: 43370
URL: http://svn.erp5.org?rev=43370&view=rev
Log:
Revert removal of aq_base done in r40345 and do the same for accessor
generation when not using Utils
Modified:
erp5/trunk/products/ERP5Type/mixin/constraint.py
Modified: erp5/trunk/products/ERP5Type/mixin/constraint.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/mixin/constraint.py?rev=43370&r1=43369&r2=43370&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/mixin/constraint.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/mixin/constraint.py [utf8] Wed Feb 16 13:46:27 2011
@@ -124,7 +124,7 @@ class ConstraintMixin(Predicate):
XXX: remove as soon as the code is stable
"""
- return self.asContext()
+ return self.asContext().aq_base
def _getExpressionValue(self, obj, expression_string):
"""
@@ -243,4 +243,4 @@ class ConstraintMixin(Predicate):
security.declareProtected(Permissions.AccessContentsInformation,
'applyOnAccessorHolder')
def applyOnAccessorHolder(self, accessor_holder, expression_context, portal):
- accessor_holder.constraints.append(self)
+ accessor_holder.constraints.append(self.asContext().aq_base)
More information about the Erp5-report
mailing list