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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Rafael Monnerat
erp5
Commits
80d332d4
Commit
80d332d4
authored
Sep 06, 2011
by
Nicolas Delaby
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix import of Conduit from Extensions
imp.load_source does not compile dependencies
parent
a27c40b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
product/ERP5SyncML/XMLSyncUtils.py
product/ERP5SyncML/XMLSyncUtils.py
+1
-3
No files found.
product/ERP5SyncML/XMLSyncUtils.py
View file @
80d332d4
...
...
@@ -28,7 +28,6 @@
##############################################################################
import
smtplib
from
App.config
import
getConfiguration
from
Products.CMFCore.utils
import
getToolByName
from
ERP5Diff
import
ERP5Diff
from
zLOG
import
LOG
,
INFO
...
...
@@ -123,9 +122,8 @@ def getConduitByName(conduit_name):
conduit_name
=
conduit_name
.
split
(
'.'
)[
-
1
]
conduit_module
=
__import__
(
path
,
globals
(),
locals
(),
[
''
])
elif
conduit_name
.
startswith
(
'Extensions'
):
path
=
"%s/%s.py"
%
(
getConfiguration
().
instancehome
,
conduit_name
.
replace
(
'.'
,
'/'
)
)
conduit_module
=
__import__
(
conduit_name
,
globals
(),
locals
(),
[
''
]
)
conduit_name
=
conduit_name
.
split
(
'.'
)[
-
1
]
conduit_module
=
load_source
(
conduit_name
,
path
,
file
(
path
))
else
:
from
Products.ERP5SyncML
import
Conduit
conduit_module
=
__import__
(
'.'
.
join
([
Conduit
.
__name__
,
conduit_name
]),
...
...
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