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
23543b7f
Commit
23543b7f
authored
Oct 19, 2001
by
Shane Hathaway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed the method of finding data files.
parent
1da889da
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
lib/python/DocumentTemplate/tests/testDTML.py
lib/python/DocumentTemplate/tests/testDTML.py
+5
-4
No files found.
lib/python/DocumentTemplate/tests/testDTML.py
View file @
23543b7f
...
...
@@ -85,8 +85,8 @@
"""Document Template Tests
"""
__rcs_id__
=
'$Id: testDTML.py,v 1.
7 2001/10/19 15:12:26
shane Exp $'
__version__
=
'$Revision: 1.
7
$'
[
11
:
-
2
]
__rcs_id__
=
'$Id: testDTML.py,v 1.
8 2001/10/19 16:36:07
shane Exp $'
__version__
=
'$Revision: 1.
8
$'
[
11
:
-
2
]
import
sys
,
os
import
unittest
...
...
@@ -94,7 +94,8 @@ import unittest
if
__name__
==
'__main__'
:
here
=
os
.
curdir
else
:
here
=
os
.
path
.
split
(
__file__
)[
0
]
from
DocumentTemplate
import
tests
here
=
tests
.
__path__
[
0
]
def
read_file
(
name
):
f
=
open
(
os
.
path
.
join
(
here
,
name
),
'rb'
)
...
...
@@ -102,7 +103,7 @@ def read_file(name):
f
.
close
()
return
res
from
DocumentTemplate
import
HTML
,
String
from
DocumentTemplate
.DT_HTML
import
HTML
,
String
from
ExtensionClass
import
Base
class
D
:
__allow_access_to_unprotected_subobjects__
=
1
...
...
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