Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Kirill Smelkov
Zope
Commits
b03b6ae5
Commit
b03b6ae5
authored
Nov 08, 1999
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a bug in finding External Method modules packaged in distributions.
parent
1178055b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
lib/python/App/Extensions.py
lib/python/App/Extensions.py
+7
-6
No files found.
lib/python/App/Extensions.py
View file @
b03b6ae5
...
...
@@ -86,10 +86,10 @@ __doc__='''Standard routines for handling extensions.
Extensions currently include external methods and pluggable brains.
$Id: Extensions.py,v 1.1
1 1999/11/03 14:35:41
brian Exp $'''
__version__
=
'$Revision: 1.1
1
$'
[
11
:
-
2
]
$Id: Extensions.py,v 1.1
2 1999/11/08 17:09:27
brian Exp $'''
__version__
=
'$Revision: 1.1
2
$'
[
11
:
-
2
]
from
string
import
find
from
string
import
find
,
split
import
os
,
zlib
,
rotor
path_split
=
os
.
path
.
split
path_join
=
os
.
path
.
join
...
...
@@ -156,7 +156,7 @@ def getPath(prefix, name, checkProduct=1, suffixes=('',)):
if
l
>
0
:
p
=
name
[:
l
]
n
=
name
[
l
+
1
:]
r
=
_getPath
(
home
,
"Products/%s/%s/"
%
(
p
,
prefix
),
r
=
_getPath
(
home
,
"
lib/python/
Products/%s/%s/"
%
(
p
,
prefix
),
n
,
suffixes
)
if
r
is
not
None
:
return
r
r
=
_getPath
(
home
,
prefix
,
name
,
suffixes
)
...
...
@@ -190,10 +190,11 @@ def getObject(module, name, reload=0,
__traceback_info__
=
p
,
module
if
p
[
-
4
:]
==
'.pyp'
:
prod_id
=
split
(
module
,
'.'
)[
0
]
data
=
zlib
.
decompress
(
rotor
.
newrotor
(
d
+
' shshsh'
).
decrypt
(
open
(
p
,
'rb'
).
read
())
rotor
.
newrotor
(
prod_id
+
' shshsh'
).
decrypt
(
open
(
p
,
'rb'
).
read
())
)
execsrc
=
compile
(
data
,
module
,
'exec'
)
execsrc
=
compile
(
data
,
module
,
'exec'
)
else
:
try
:
execsrc
=
open
(
p
)
except
:
raise
"Module Error"
,
(
...
...
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