Commit 6187db1c authored by 's avatar

merge from 2.3

parent 8b47dcb4
...@@ -89,7 +89,7 @@ This product provides support for Script objects containing restricted ...@@ -89,7 +89,7 @@ This product provides support for Script objects containing restricted
Python code. Python code.
""" """
__version__='$Revision: 1.17 $'[11:-2] __version__='$Revision: 1.18 $'[11:-2]
import sys, os, traceback, re import sys, os, traceback, re
from Globals import DTMLFile, MessageDialog from Globals import DTMLFile, MessageDialog
...@@ -363,7 +363,7 @@ class PythonScript(Script, Historical, Cacheable): ...@@ -363,7 +363,7 @@ class PythonScript(Script, Historical, Cacheable):
self._validateProxy() self._validateProxy()
self.ZCacheable_invalidate() self.ZCacheable_invalidate()
self._proxy_roles=tuple(roles) self._proxy_roles=tuple(roles)
if REQUEST: return Globals.MessageDialog( if REQUEST: return MessageDialog(
title ='Success!', title ='Success!',
message='Your changes have been saved', message='Your changes have been saved',
action ='manage_main') action ='manage_main')
......
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
# #
############################################################################## ##############################################################################
__version__='$Revision: 1.43 $'[11:-2] __version__='$Revision: 1.44 $'[11:-2]
import regex, re, sys, os, string, urllib import regex, re, sys, os, string, urllib
from string import lower, atoi, rfind, split, strip, join, upper, find from string import lower, atoi, rfind, split, strip, join, upper, find
...@@ -351,7 +351,7 @@ class HTTPRequest(BaseRequest): ...@@ -351,7 +351,7 @@ class HTTPRequest(BaseRequest):
hasattr=hasattr, hasattr=hasattr,
getattr=getattr, getattr=getattr,
setattr=setattr, setattr=setattr,
search_type=regex.compile(':[a-zA-Z][a-zA-Z0-9_]+$').search, search_type=regex.compile('\(:[a-zA-Z][a-zA-Z0-9_]+\|\.[xy]\)$').search,
rfind=string.rfind, rfind=string.rfind,
): ):
"""Process request inputs """Process request inputs
...@@ -1071,12 +1071,14 @@ class record: ...@@ -1071,12 +1071,14 @@ class record:
def __str__(self): def __str__(self):
L1 = self.__dict__.items() L1 = self.__dict__.items()
L1.sort() L1.sort()
return join(map(lambda item: "%s: %s" %item, L1), ", ") return join(map(lambda item: "%s: %s" % item, L1), ", ")
def __repr__(self): def __repr__(self):
L1 = self.__dict__.items() L1 = self.__dict__.items()
L1.sort() L1.sort()
return join(map(lambda item: "%s: %s" %item, repr(L1)), ", ") return join(
map(lambda item: "%s: %s" % (item[0], repr(item[1])), L1)
, ", ")
# Flags # Flags
SEQUENCE=1 SEQUENCE=1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment