From 8307112bc8e8a3070a9c549217b49938f990af34 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dani=C3=A8le=20Vanbaelinghem?= <daniele@nexedi.com>
Date: Thu, 4 Mar 2010 12:47:02 +0000
Subject: [PATCH] Move zsql methods of portal ids, The transactionless
 connector doesn't use the archive system.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33378 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/patches/DA.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/product/ERP5Type/patches/DA.py b/product/ERP5Type/patches/DA.py
index fddf8fea13..c0df090920 100644
--- a/product/ERP5Type/patches/DA.py
+++ b/product/ERP5Type/patches/DA.py
@@ -155,7 +155,10 @@ def DA__call__(self, REQUEST=None, __ick__=None, src__=0, test__=0, **kw):
     # Connection id is retrieve from user preference
     if c is None:
       physical_path = self.getPhysicalPath()
-      if "portal_catalog" not in physical_path and 'cmf_activity' not in self.connection_id:
+      # XXX cleaner solution will be needed
+      if 'portal_catalog' not in physical_path and\
+         'cmf_activity' not in self.connection_id and\
+         'transactionless' not in self.connection_id:
         try:
           archive_id = self.portal_preferences.getPreferredArchive()
         except AttributeError:
-- 
2.30.9