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
6187db1c
Commit
6187db1c
authored
Jan 19, 2001
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge from 2.3
parent
8b47dcb4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
lib/python/Products/PythonScripts/PythonScript.py
lib/python/Products/PythonScripts/PythonScript.py
+2
-2
lib/python/ZPublisher/HTTPRequest.py
lib/python/ZPublisher/HTTPRequest.py
+6
-4
No files found.
lib/python/Products/PythonScripts/PythonScript.py
View file @
6187db1c
...
...
@@ -89,7 +89,7 @@ This product provides support for Script objects containing restricted
Python code.
"""
__version__
=
'$Revision: 1.1
7
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
8
$'
[
11
:
-
2
]
import
sys
,
os
,
traceback
,
re
from
Globals
import
DTMLFile
,
MessageDialog
...
...
@@ -363,7 +363,7 @@ class PythonScript(Script, Historical, Cacheable):
self._validateProxy()
self.ZCacheable_invalidate()
self._proxy_roles=tuple(roles)
if REQUEST: return
Globals.
MessageDialog(
if REQUEST: return MessageDialog(
title ='
Success
!
',
message='
Your
changes
have
been
saved
',
action ='
manage_main
')
...
...
lib/python/ZPublisher/HTTPRequest.py
View file @
6187db1c
...
...
@@ -83,7 +83,7 @@
#
##############################################################################
__version__
=
'$Revision: 1.4
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.4
4
$'
[
11
:
-
2
]
import
regex
,
re
,
sys
,
os
,
string
,
urllib
from
string
import
lower
,
atoi
,
rfind
,
split
,
strip
,
join
,
upper
,
find
...
...
@@ -351,7 +351,7 @@ class HTTPRequest(BaseRequest):
hasattr
=
hasattr
,
getattr
=
getattr
,
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,
):
"""Process request inputs
...
...
@@ -1071,12 +1071,14 @@ class record:
def __str__(self):
L1 = self.__dict__.items()
L1.sort()
return join(map(lambda item: "
%
s
:
%
s
" %item, L1), "
,
")
return join(map(lambda item: "
%
s
:
%
s
" %
item, L1), "
,
")
def __repr__(self):
L1 = self.__dict__.items()
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
SEQUENCE=1
...
...
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