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
b3e4fc69
Commit
b3e4fc69
authored
Feb 05, 1999
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
2b1af8d8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
4 deletions
+26
-4
lib/python/OFS/DTMLDocument.py
lib/python/OFS/DTMLDocument.py
+24
-2
lib/python/OFS/DTMLMethod.py
lib/python/OFS/DTMLMethod.py
+2
-2
No files found.
lib/python/OFS/DTMLDocument.py
View file @
b3e4fc69
...
...
@@ -102,7 +102,8 @@
##############################################################################
"""DTML Document objects."""
__version__
=
'$Revision: 1.3 $'
[
11
:
-
2
]
__version__
=
'$Revision: 1.4 $'
[
11
:
-
2
]
from
DocumentTemplate.DT_Util
import
InstanceDict
,
TemplateDict
from
ZPublisher.Converters
import
type_converters
from
Globals
import
HTML
,
HTMLFile
,
MessageDialog
from
DTMLMethod
import
DTMLMethod
,
decapitate
...
...
@@ -217,13 +218,34 @@ class DTMLDocument(DTMLMethod, PropertyManager):
Response, and key word arguments."""
kw
[
'document_id'
]
=
self
.
id
kw
[
'document_title'
]
=
self
.
title
if
client
is
None
:
# Called as subtemplate, so don't need error propigation!
#__traceback_info__=(`self.__name__`, `self`, `self.aq_parent`)
r
=
apply
(
HTML
.
__call__
,
(
self
,
client
,
REQUEST
),
kw
)
r
=
apply
(
HTML
.
__call__
,
(
self
,
self
,
REQUEST
),
kw
)
# try:
# md=REQUEST
# md._push(InstanceDict(self.aq_parent, md))
# md._push(InstanceDict(self, md))
# r=apply(HTML.__call__, (self, self, REQUEST), kw)
# finally:
# md._pop(1)
if
RESPONSE
is
None
:
return
r
return
decapitate
(
r
,
RESPONSE
)
## md=TemplateDict()
## push=md._push
## globals=self.globals
## shared_globals=self.shared_globals
## mapping=REQUEST
## if shared_globals: push(shared_globals)
## if globals: push(globals)
## if mapping: push(mapping)
## push(InstanceDict(client, md))
## if hasattr(mapping, 'AUTHENTICATED_USER'):
## md.AUTHENTICATED_USER=mapping['AUTHENTICATED_USER']
## md.validate=self.validate
## md.this=self
try
:
r
=
apply
(
HTML
.
__call__
,
(
self
,
self
,
REQUEST
),
kw
)
except
:
...
...
lib/python/OFS/DTMLMethod.py
View file @
b3e4fc69
...
...
@@ -102,7 +102,7 @@
##############################################################################
"""DTML Method objects."""
__version__
=
'$Revision: 1.
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
from
Globals
import
HTML
,
HTMLFile
,
MessageDialog
from
string
import
join
,
split
,
strip
,
rfind
,
atoi
,
lower
...
...
@@ -153,7 +153,6 @@ class DTMLMethod(cDocument, HTML, Explicit, RoleManager, Item_w__name__):
for
k
,
v
in
self
.
__dict__
.
items
():
if
state_name
(
k
)
or
k
[
-
11
:]
==
'_Permission'
or
k
[
-
9
:]
==
"__roles__"
:
r
[
k
]
=
v
return
r
...
...
@@ -162,6 +161,7 @@ class DTMLMethod(cDocument, HTML, Explicit, RoleManager, Item_w__name__):
Response, and key word arguments."""
kw
[
'document_id'
]
=
self
.
id
kw
[
'document_title'
]
=
self
.
title
if
client
is
None
:
# Called as subtemplate, so don't need error propigation!
r
=
apply
(
HTML
.
__call__
,
(
self
,
client
,
REQUEST
),
kw
)
...
...
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