From 7a80f8b850b25feefeb14f20fde1c843858463ad Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Mon, 2 Nov 2009 10:23:45 +0000
Subject: [PATCH] Python implementation of accesscontrol requires
 __allow_access_to_unprotected_subobjects__ to be an integer

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30198 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/NodeBudgetVariation.py            | 2 +-
 product/ERP5Type/ConnectionPlugin/SOAPWSDLConnection.py | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/product/ERP5/Document/NodeBudgetVariation.py b/product/ERP5/Document/NodeBudgetVariation.py
index 817e8c160c..f89f16bcfe 100644
--- a/product/ERP5/Document/NodeBudgetVariation.py
+++ b/product/ERP5/Document/NodeBudgetVariation.py
@@ -39,7 +39,7 @@ class VirtualNode(object):
 
   This virtual document can be used in budget variations.
   """
-  __allow_access_to_unprotected_subobjects__ = True
+  __allow_access_to_unprotected_subobjects__ = 1
   def __init__(self, relative_url):
     """The Virtual Node will use the relative URL of the budget line for
     memberships.
diff --git a/product/ERP5Type/ConnectionPlugin/SOAPWSDLConnection.py b/product/ERP5Type/ConnectionPlugin/SOAPWSDLConnection.py
index 020de97185..f8f38fd91e 100644
--- a/product/ERP5Type/ConnectionPlugin/SOAPWSDLConnection.py
+++ b/product/ERP5Type/ConnectionPlugin/SOAPWSDLConnection.py
@@ -38,7 +38,7 @@ import threading
 
 class SOAPWSDLException(Exception):
 
-  __allow_access_to_unprotected_subobjects__ = True
+  __allow_access_to_unprotected_subobjects__ = 1
 
   def __init__(self, code, name, info):
     self.code = code
@@ -115,7 +115,7 @@ allow_class(HeaderAuthentication)
 
 class WSDLConnection(object):
 
-  __allow_access_to_unprotected_subobjects__ = True
+  __allow_access_to_unprotected_subobjects__ = 1
 
   def __init__(self, wsdl, credentials, service):
     self._wsdl = wsdl
@@ -138,7 +138,7 @@ class WSDLConnection(object):
 
 class PortWrapper(object):
 
-  __allow_access_to_unprotected_subobjects__ = True
+  __allow_access_to_unprotected_subobjects__ = 1
 
   def __init__(self, port):
     self._port = port
@@ -148,7 +148,7 @@ class PortWrapper(object):
 
 class MethodWrapper(object):
 
-  __allow_access_to_unprotected_subobjects__ = True
+  __allow_access_to_unprotected_subobjects__ = 1
 
   def __init__(self, method):
     self._method = method
-- 
2.30.9