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
5f5577cf
Commit
5f5577cf
authored
Oct 26, 2001
by
Evan Simpson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make standard properties undeletable
parent
64a6ba68
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
+14
-6
lib/python/Products/PageTemplates/CHANGES.txt
lib/python/Products/PageTemplates/CHANGES.txt
+8
-0
lib/python/Products/PageTemplates/ZopePageTemplate.py
lib/python/Products/PageTemplates/ZopePageTemplate.py
+6
-6
No files found.
lib/python/Products/PageTemplates/CHANGES.txt
View file @
5f5577cf
...
...
@@ -11,3 +11,11 @@ Page Template changes
- Error reporting is improved, with line numbers added.
- In the ZMI, errors are separated from the text and highlighted.
- A template can be marked explicitly as XML or HTML by giving
it a boolean 'is_html' property.
Bugs Fixed
- The starting properties could be deleted. This is only
fixed for new templates.
lib/python/Products/PageTemplates/ZopePageTemplate.py
View file @
5f5577cf
...
...
@@ -87,7 +87,7 @@
Zope object encapsulating a Page Template.
"""
__version__
=
'$Revision: 1.2
4
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.2
5
$'
[
11
:
-
2
]
import
os
,
AccessControl
,
Acquisition
,
sys
from
Globals
import
DTMLFile
,
ImageFile
,
MessageDialog
,
package_home
...
...
@@ -139,9 +139,9 @@ class ZopePageTemplate(Script, PageTemplate, Historical, Cacheable,
+
SimpleItem
.
manage_options
\
+
Cacheable
.
manage_options
_properties
=
({
'id'
:
'title'
,
'type'
:
'string'
},
{
'id'
:
'content_type'
,
'type'
:
'string'
},
{
'id'
:
'expand'
,
'type'
:
'boolean'
},
_properties
=
({
'id'
:
'title'
,
'type'
:
'string'
,
'mode'
:
'w'
},
{
'id'
:
'content_type'
,
'type'
:
'string'
,
'mode'
:
'w'
},
{
'id'
:
'expand'
,
'type'
:
'boolean'
,
'mode'
:
'w'
},
)
def
__init__
(
self
,
id
,
text
=
None
,
content_type
=
None
):
...
...
@@ -355,8 +355,8 @@ d = ZopePageTemplate.__dict__
d
[
'source.xml'
]
=
d
[
'source.html'
]
=
Src
()
# Product registration and Add support
manage_addPageTemplateForm
=
PageTemplateFile
(
'www/ptAdd'
,
globals
())
manage_addPageTemplateForm
.
__name__
=
'manage_addPageTemplateForm'
manage_addPageTemplateForm
=
PageTemplateFile
(
'www/ptAdd'
,
globals
(),
__name__
=
'manage_addPageTemplateForm'
)
from
urllib
import
quote
...
...
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