Skip to content

Commit

Permalink
*** empty log message ***
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknown committed Mar 9, 2000
1 parent 07601a3 commit 1210235
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions DT_String.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
# attributions are listed in the accompanying credits file.
#
##############################################################################
"$Id: DT_String.py,v 1.33 2000/03/09 19:22:33 brian Exp $"
"$Id: DT_String.py,v 1.34 2000/03/09 20:07:56 brian Exp $"

from string import split, strip
import regex, ts_regex
Expand Down Expand Up @@ -465,9 +465,7 @@ def __call__(self,client=None,mapping={},**kw):
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(()):
Expand Down Expand Up @@ -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

0 comments on commit 1210235

Please sign in to comment.