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
e568dc1f
Commit
e568dc1f
authored
Apr 12, 2002
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor code cleanliness nit.
parent
d8853f5e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
lib/python/Products/PageTemplates/ZopePageTemplate.py
lib/python/Products/PageTemplates/ZopePageTemplate.py
+4
-3
No files found.
lib/python/Products/PageTemplates/ZopePageTemplate.py
View file @
e568dc1f
...
@@ -15,9 +15,10 @@
...
@@ -15,9 +15,10 @@
Zope object encapsulating a Page Template.
Zope object encapsulating a Page Template.
"""
"""
__version__
=
'$Revision: 1.3
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.3
4
$'
[
11
:
-
2
]
import
os
,
AccessControl
,
Acquisition
,
sys
import
os
,
AccessControl
,
Acquisition
,
sys
from
types
import
StringType
from
Globals
import
DTMLFile
,
ImageFile
,
MessageDialog
,
package_home
from
Globals
import
DTMLFile
,
ImageFile
,
MessageDialog
,
package_home
from
zLOG
import
LOG
,
ERROR
,
INFO
from
zLOG
import
LOG
,
ERROR
,
INFO
from
OFS.SimpleItem
import
SimpleItem
from
OFS.SimpleItem
import
SimpleItem
...
@@ -129,7 +130,7 @@ class ZopePageTemplate(Script, PageTemplate, Historical, Cacheable,
...
@@ -129,7 +130,7 @@ class ZopePageTemplate(Script, PageTemplate, Historical, Cacheable,
if
SUPPORTS_WEBDAV_LOCKS
and
self
.
wl_isLocked
():
if
SUPPORTS_WEBDAV_LOCKS
and
self
.
wl_isLocked
():
raise
ResourceLockedError
,
"File is locked via WebDAV"
raise
ResourceLockedError
,
"File is locked via WebDAV"
if
type
(
file
)
is
not
type
(
''
):
if
isinstance
(
file
,
StringType
):
if
not
file
:
raise
ValueError
,
'File not specified'
if
not
file
:
raise
ValueError
,
'File not specified'
file
=
file
.
read
()
file
=
file
.
read
()
...
...
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