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 ):
InitializeClass( CategoryTool )
# Psyco
import psyco
from Products.ERP5Type.PsycoWrapper import psyco
psyco.bind(CategoryTool)
......@@ -43,7 +43,7 @@ from ZODB.POSException import ConflictError
from Products.PageTemplates.Expressions import SecureModuleImporter
from Products.ERP5Type.Utils import UpperCase
import psyco
from Products.ERP5Type.PsycoWrapper import psyco
import sys
# Patch the fiels methods to provide improved namespace handling
......
......@@ -3295,7 +3295,7 @@ InitializeClass(ListBoxLine)
allow_class(ListBoxLine)
# Psyco
import psyco
from Products.ERP5Type.PsycoWrapper import psyco
#psyco.bind(ListBoxWidget.render)
psyco.bind(ListBoxValidator.validate)
......
......@@ -67,7 +67,7 @@ from Products.ERP5Type.Accessor.TypeDefinition import asDate
from string import join
import sys
import psyco
from Products.ERP5Type.PsycoWrapper import psyco
from cStringIO import StringIO
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