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
445f70ba
Commit
445f70ba
authored
Dec 02, 2016
by
Loic Esteve
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some work by Rafael
parent
35820587
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 @
445f70ba
...
...
@@ -26,9 +26,9 @@
#
##############################################################################
from
SQL
Queue
import
SQLQueue
from
SQL
Dict
import
SQLDict
class
SQLJoblib
(
SQL
Queue
):
class
SQLJoblib
(
SQL
Dict
):
"""
XXX SQLJoblib
"""
...
...
product/CMFActivity/__init__.py
View file @
445f70ba
...
...
@@ -40,7 +40,7 @@ document_classes = updateGlobals(this_module, globals(),
# Finish installation
def
initialize
(
context
):
# Define object classes and tools
import
ActivityTool
,
ActiveProcess
,
ActivityConnection
import
ActivityTool
,
ActiveProcess
,
ActivityConnection
,
ActivityJoblibBackend
object_classes
=
(
ActiveProcess
.
ActiveProcess
,
#ActivityConnection.ActivityConnection
)
...
...
product/ERP5Type/ZopePatch.py
View file @
445f70ba
...
...
@@ -87,6 +87,7 @@ from Products.ERP5Type.patches import CMFCoreUtils
from
Products.ERP5Type.patches
import
ZopePageTemplate
from
Products.ERP5Type.patches
import
ZSQLMethod
from
Products.ERP5Type.patches
import
MimetypesRegistry
from
Products.ERP5Type.patches
import
JoblibParallelPrint
# These symbols are required for backward compatibility
from
Products.ERP5Type.patches.PropertyManager
import
ERP5PropertyManager
...
...
product/ERP5Type/patches/JoblibParallelPrint.py
0 → 100644
View file @
445f70ba
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