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
6c8698dd
Commit
6c8698dd
authored
Aug 14, 2002
by
Martijn Pieters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove more tabs (python -tt is your friend).
parent
5ee45a6d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
lib/python/OFS/ObjectManager.py
lib/python/OFS/ObjectManager.py
+5
-5
utilities/testrunner.py
utilities/testrunner.py
+8
-8
No files found.
lib/python/OFS/ObjectManager.py
View file @
6c8698dd
...
@@ -12,9 +12,9 @@
...
@@ -12,9 +12,9 @@
##############################################################################
##############################################################################
__doc__
=
"""Object Manager
__doc__
=
"""Object Manager
$Id: ObjectManager.py,v 1.15
6 2002/08/01 16:00:39
mj Exp $"""
$Id: ObjectManager.py,v 1.15
7 2002/08/14 19:59:18
mj Exp $"""
__version__
=
'$Revision: 1.15
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.15
7
$'
[
11
:
-
2
]
import
App.Management
,
Acquisition
,
Globals
,
CopySupport
,
Products
import
App.Management
,
Acquisition
,
Globals
,
CopySupport
,
Products
import
os
,
App
.
FactoryDispatcher
,
re
,
Products
import
os
,
App
.
FactoryDispatcher
,
re
,
Products
...
@@ -412,10 +412,10 @@ class ObjectManager(
...
@@ -412,10 +412,10 @@ class ObjectManager(
except
:
pass
except
:
pass
if
hasattr
(
obj
,
'aq_parent'
):
if
hasattr
(
obj
,
'aq_parent'
):
obj
=
obj
.
aq_parent
obj
=
obj
.
aq_parent
relativePhysicalPath
=
(
'..'
,)
+
relativePhysicalPath
relativePhysicalPath
=
(
'..'
,)
+
relativePhysicalPath
else
:
else
:
return
vals
return
vals
x
=
x
+
1
x
=
x
+
1
return
vals
return
vals
...
...
utilities/testrunner.py
View file @
6c8698dd
...
@@ -56,14 +56,14 @@ class TestRunner:
...
@@ -56,14 +56,14 @@ class TestRunner:
module
=
None
module
=
None
try
:
try
:
sys
.
path
.
append
(
path
)
# let module find things in its dir
sys
.
path
.
append
(
path
)
# let module find things in its dir
try
:
try
:
module
=
imp
.
load_module
(
name
,
file
,
pathname
,
desc
)
module
=
imp
.
load_module
(
name
,
file
,
pathname
,
desc
)
except
:
except
:
(
tb_t
,
tb_v
,
tb_tb
)
=
sys
.
exc_info
()
(
tb_t
,
tb_v
,
tb_tb
)
=
sys
.
exc_info
()
self
.
report
(
"Module %s failed to load
\
n
%s: %s"
%
(
pathname
,
self
.
report
(
"Module %s failed to load
\
n
%s: %s"
%
(
pathname
,
tb_t
,
tb_v
))
tb_t
,
tb_v
))
self
.
report
(
string
.
join
(
traceback
.
format_tb
(
tb_tb
))
+
'
\
n
'
)
self
.
report
(
string
.
join
(
traceback
.
format_tb
(
tb_tb
))
+
'
\
n
'
)
del
tb_tb
del
tb_tb
finally
:
finally
:
file
.
close
()
file
.
close
()
sys
.
path
.
pop
()
# Remove module level path
sys
.
path
.
pop
()
# Remove module level path
...
...
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