Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Hardik Juneja
erp5
Commits
42afe2c8
Commit
42afe2c8
authored
Dec 02, 2016
by
Loic Esteve
Committed by
Hardik Juneja
Jan 10, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some work by Rafael
parent
15f2005c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
3 deletions
+23
-3
product/CMFActivity/Activity/SQLJoblib.py
product/CMFActivity/Activity/SQLJoblib.py
+2
-2
product/CMFActivity/__init__.py
product/CMFActivity/__init__.py
+1
-1
product/ERP5Type/ZopePatch.py
product/ERP5Type/ZopePatch.py
+1
-0
product/ERP5Type/patches/JoblibParallelPrint.py
product/ERP5Type/patches/JoblibParallelPrint.py
+19
-0
No files found.
product/CMFActivity/Activity/SQLJoblib.py
View file @
42afe2c8
...
@@ -26,9 +26,9 @@
...
@@ -26,9 +26,9 @@
#
#
##############################################################################
##############################################################################
from
SQL
Queue
import
SQLQueue
from
SQL
Dict
import
SQLDict
class
SQLJoblib
(
SQL
Queue
):
class
SQLJoblib
(
SQL
Dict
):
"""
"""
XXX SQLJoblib
XXX SQLJoblib
"""
"""
...
...
product/CMFActivity/__init__.py
View file @
42afe2c8
...
@@ -40,7 +40,7 @@ document_classes = updateGlobals(this_module, globals(),
...
@@ -40,7 +40,7 @@ document_classes = updateGlobals(this_module, globals(),
# Finish installation
# Finish installation
def
initialize
(
context
):
def
initialize
(
context
):
# Define object classes and tools
# Define object classes and tools
import
ActivityTool
,
ActiveProcess
,
ActivityConnection
import
ActivityTool
,
ActiveProcess
,
ActivityConnection
,
ActivityJoblibBackend
object_classes
=
(
ActiveProcess
.
ActiveProcess
,
object_classes
=
(
ActiveProcess
.
ActiveProcess
,
#ActivityConnection.ActivityConnection
#ActivityConnection.ActivityConnection
)
)
...
...
product/ERP5Type/ZopePatch.py
View file @
42afe2c8
...
@@ -87,6 +87,7 @@ from Products.ERP5Type.patches import ZopePageTemplate
...
@@ -87,6 +87,7 @@ from Products.ERP5Type.patches import ZopePageTemplate
from
Products.ERP5Type.patches
import
ZSQLMethod
from
Products.ERP5Type.patches
import
ZSQLMethod
from
Products.ERP5Type.patches
import
MimetypesRegistry
from
Products.ERP5Type.patches
import
MimetypesRegistry
from
Products.ERP5Type.patches
import
users
from
Products.ERP5Type.patches
import
users
from
Products.ERP5Type.patches
import
JoblibParallelPrint
# These symbols are required for backward compatibility
# These symbols are required for backward compatibility
from
Products.ERP5Type.patches.PropertyManager
import
ERP5PropertyManager
from
Products.ERP5Type.patches.PropertyManager
import
ERP5PropertyManager
...
...
product/ERP5Type/patches/JoblibParallelPrint.py
0 → 100644
View file @
42afe2c8
ENABLE_PATCH
=
True
try
:
import
sklearn
#from sklearn.externals import joblib
#from sklearn.externals.joblib.parallel import Parallel
from
joblib.parallel
import
Parallel
except
ImportError
:
ENABLE_PATCH
=
False
if
ENABLE_PATCH
:
from
zLOG
import
LOG
,
WARNING
def
_print
(
self
,
msg
,
msg_args
):
msg
=
msg
%
msg_args
LOG
(
'Parallel._print'
,
WARNING
,
'[%s]: %s
\
n
'
%
(
self
,
msg
))
Parallel
.
_print
=
_print
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment