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
6bd0a913
Commit
6bd0a913
authored
Mar 09, 2000
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
7b168879
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
22 deletions
+12
-22
lib/python/DocumentTemplate/DT_String.py
lib/python/DocumentTemplate/DT_String.py
+2
-20
lib/python/OFS/DTMLMethod.py
lib/python/OFS/DTMLMethod.py
+6
-1
lib/python/ZPublisher/BaseRequest.py
lib/python/ZPublisher/BaseRequest.py
+4
-1
No files found.
lib/python/DocumentTemplate/DT_String.py
View file @
6bd0a913
...
...
@@ -82,7 +82,7 @@
# attributions are listed in the accompanying credits file.
#
##############################################################################
"$Id: DT_String.py,v 1.3
3 2000/03/09 19:22:33
brian Exp $"
"$Id: DT_String.py,v 1.3
4 2000/03/09 20:07:56
brian Exp $"
from
string
import
split
,
strip
import
regex
,
ts_regex
...
...
@@ -465,9 +465,7 @@ class String:
if mapping:
push(mapping)
if hasattr(mapping,'AUTHENTICATED_USER'):
auth_user=mapping['AUTHENTICATED_USER']
verify_watermark(auth_user)
md.AUTHENTICATED_USER=auth_user
md.AUTHENTICATED_USER=mapping['AUTHENTICATED_USER']
md.validate=self.validate
if client is not None:
if type(client)==type(()):
...
...
@@ -551,19 +549,3 @@ class File(FileMixin, String):
template is used the first time.
"""
def manage_edit(self,data): raise TypeError, 'cannot edit files'
# This bit performs watermark verification on the authenticated
# user object passed into the template. It is Zope-specific, and
# we don't want to break non-Zope apps so we check to see if we
# are running with Zope before installing the watermark function.
if hasattr(__builtins__, 'INSTANCE_HOME'):
from AccessControl.User import verify_watermark
else:
def verify_watermark(auth_user):
pass
lib/python/OFS/DTMLMethod.py
View file @
6bd0a913
...
...
@@ -84,7 +84,7 @@
##############################################################################
"""DTML Method objects."""
__version__
=
'$Revision: 1.3
8
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.3
9
$'
[
11
:
-
2
]
from
Globals
import
HTML
,
HTMLFile
,
MessageDialog
from
string
import
join
,
split
,
strip
,
rfind
,
atoi
,
lower
...
...
@@ -143,6 +143,11 @@ class DTMLMethod(cDocument, HTML, Acquisition.Implicit, RoleManager,
kw
[
'document_id'
]
=
self
.
id
kw
[
'document_title'
]
=
self
.
title
# Verify the authenticated user object.
auth_user
=
REQUEST
.
get
(
'AUTHENTICATED_USER'
,
None
)
if
auth_user
is
not
None
:
verify_watermark
(
auth_user
)
if
client
is
None
:
# Called as subtemplate, so don't need error propigation!
r
=
apply
(
HTML
.
__call__
,
(
self
,
client
,
REQUEST
),
kw
)
...
...
lib/python/ZPublisher/BaseRequest.py
View file @
6bd0a913
...
...
@@ -82,7 +82,7 @@
# attributions are listed in the accompanying credits file.
#
##############################################################################
__version__
=
'$Revision: 1.1
8
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
9
$'
[
11
:
-
2
]
from
string
import
join
,
split
,
find
,
rfind
,
lower
,
upper
from
urllib
import
quote
...
...
@@ -464,6 +464,9 @@ class BaseRequest:
steps
=
join
(
steps
[:
-
i
],
'/'
)
if
user
is
not
None
:
# Try to set a watermark on the user object.
try
:
user
.
__marker__
=
_marker
except
:
pass
request
[
'AUTHENTICATED_USER'
]
=
user
request
[
'AUTHENTICATION_PATH'
]
=
steps
...
...
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