Commit 77d1d964 authored by Romain Courteaud's avatar Romain Courteaud

Use psycowrapper for importing psyco.

Thanks to Lukasz Nowak.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14606 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 22a0712f
...@@ -1487,5 +1487,5 @@ class CategoryTool( UniqueObject, Folder, Base ): ...@@ -1487,5 +1487,5 @@ class CategoryTool( UniqueObject, Folder, Base ):
InitializeClass( CategoryTool ) InitializeClass( CategoryTool )
# Psyco # Psyco
import psyco from Products.ERP5Type.PsycoWrapper import psyco
psyco.bind(CategoryTool) psyco.bind(CategoryTool)
...@@ -43,7 +43,7 @@ from ZODB.POSException import ConflictError ...@@ -43,7 +43,7 @@ from ZODB.POSException import ConflictError
from Products.PageTemplates.Expressions import SecureModuleImporter from Products.PageTemplates.Expressions import SecureModuleImporter
from Products.ERP5Type.Utils import UpperCase from Products.ERP5Type.Utils import UpperCase
import psyco from Products.ERP5Type.PsycoWrapper import psyco
import sys import sys
# Patch the fiels methods to provide improved namespace handling # Patch the fiels methods to provide improved namespace handling
......
...@@ -3295,7 +3295,7 @@ InitializeClass(ListBoxLine) ...@@ -3295,7 +3295,7 @@ InitializeClass(ListBoxLine)
allow_class(ListBoxLine) allow_class(ListBoxLine)
# Psyco # Psyco
import psyco from Products.ERP5Type.PsycoWrapper import psyco
#psyco.bind(ListBoxWidget.render) #psyco.bind(ListBoxWidget.render)
psyco.bind(ListBoxValidator.validate) psyco.bind(ListBoxValidator.validate)
......
...@@ -67,7 +67,7 @@ from Products.ERP5Type.Accessor.TypeDefinition import asDate ...@@ -67,7 +67,7 @@ from Products.ERP5Type.Accessor.TypeDefinition import asDate
from string import join from string import join
import sys import sys
import psyco from Products.ERP5Type.PsycoWrapper import psyco
from cStringIO import StringIO from cStringIO import StringIO
from socket import gethostname, gethostbyaddr from socket import gethostname, gethostbyaddr
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment