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
e131d462
Commit
e131d462
authored
Jan 15, 2004
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
342fcf0a
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
54 additions
and
50 deletions
+54
-50
lib/python/App/ApplicationManager.py
lib/python/App/ApplicationManager.py
+3
-2
lib/python/App/Dialogs.py
lib/python/App/Dialogs.py
+4
-4
lib/python/App/Management.py
lib/python/App/Management.py
+5
-4
lib/python/App/PersistentExtra.py
lib/python/App/PersistentExtra.py
+2
-0
lib/python/DocumentTemplate/DT_In.py
lib/python/DocumentTemplate/DT_In.py
+6
-8
lib/python/DocumentTemplate/DT_UI.py
lib/python/DocumentTemplate/DT_UI.py
+10
-10
lib/python/HelpSys/HelpSys.py
lib/python/HelpSys/HelpSys.py
+5
-4
lib/python/Shared/DC/ZRDB/Aqueduct.py
lib/python/Shared/DC/ZRDB/Aqueduct.py
+6
-6
lib/python/Shared/DC/ZRDB/Connection.py
lib/python/Shared/DC/ZRDB/Connection.py
+4
-3
lib/python/Shared/DC/ZRDB/Search.py
lib/python/Shared/DC/ZRDB/Search.py
+4
-3
lib/python/Shared/DC/ZRDB/dtml/customDefaultReport.dtml
lib/python/Shared/DC/ZRDB/dtml/customDefaultReport.dtml
+2
-4
lib/python/ZClasses/Method.py
lib/python/ZClasses/Method.py
+3
-2
No files found.
lib/python/App/ApplicationManager.py
View file @
e131d462
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
##############################################################################
##############################################################################
__doc__
=
"""System management components"""
__doc__
=
"""System management components"""
__version__
=
'$Revision: 1.9
0
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.9
1
$'
[
11
:
-
2
]
import
sys
,
os
,
time
,
Globals
,
Acquisition
,
os
,
Undo
import
sys
,
os
,
time
,
Globals
,
Acquisition
,
os
,
Undo
from
Globals
import
DTMLFile
from
Globals
import
DTMLFile
...
@@ -30,6 +30,7 @@ from cStringIO import StringIO
...
@@ -30,6 +30,7 @@ from cStringIO import StringIO
from
AccessControl
import
getSecurityManager
from
AccessControl
import
getSecurityManager
from
zExceptions
import
Redirect
from
zExceptions
import
Redirect
from
Products.PageTemplates.PageTemplateFile
import
PageTemplateFile
from
Products.PageTemplates.PageTemplateFile
import
PageTemplateFile
from
cgi
import
escape
import
zLOG
import
zLOG
import
Lifetime
import
Lifetime
...
@@ -400,7 +401,7 @@ class ApplicationManager(Folder,CacheManager):
...
@@ -400,7 +401,7 @@ class ApplicationManager(Folder,CacheManager):
<head><meta HTTP-EQUIV=REFRESH CONTENT="5; URL=%s/manage_main">
<head><meta HTTP-EQUIV=REFRESH CONTENT="5; URL=%s/manage_main">
</head>
</head>
<body>Zope is restarting</body></html>
<body>Zope is restarting</body></html>
"""
%
URL1
"""
%
escape
(
URL1
)
def
manage_shutdown
(
self
):
def
manage_shutdown
(
self
):
"""Shut down the application"""
"""Shut down the application"""
...
...
lib/python/App/Dialogs.py
View file @
e131d462
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
target='_top')
target='_top')
</PRE>"""
</PRE>"""
__version__
=
'$Revision: 1.
8
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
9
$'
[
11
:
-
2
]
from
Globals
import
HTML
from
Globals
import
HTML
...
@@ -39,11 +39,11 @@ from Globals import HTML
...
@@ -39,11 +39,11 @@ from Globals import HTML
MessageDialog
=
HTML
(
"""
MessageDialog
=
HTML
(
"""
<HTML>
<HTML>
<HEAD>
<HEAD>
<TITLE>
<dtml-var title>
</TITLE>
<TITLE>
&dtml-title;
</TITLE>
</HEAD>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<BODY BGCOLOR="#FFFFFF">
<FORM ACTION="
<dtml-var action>
" METHOD="GET" <dtml-if
<FORM ACTION="
&dtml-action;
" METHOD="GET" <dtml-if
target>TARGET="
<dtml-var target>
"</dtml-if>>
target>TARGET="
&dtml-target;
"</dtml-if>>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="10">
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="10">
<TR>
<TR>
<TD VALIGN="TOP">
<TD VALIGN="TOP">
...
...
lib/python/App/Management.py
View file @
e131d462
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
"""Standard management interface support
"""Standard management interface support
$Id: Management.py,v 1.6
5 2003/11/28 16:44:25 jim
Exp $
$Id: Management.py,v 1.6
6 2004/01/15 22:44:04 tseaver
Exp $
"""
"""
import
sys
,
Globals
,
ExtensionClass
,
urllib
import
sys
,
Globals
,
ExtensionClass
,
urllib
...
@@ -21,6 +21,7 @@ from Dialogs import MessageDialog
...
@@ -21,6 +21,7 @@ from Dialogs import MessageDialog
from
Globals
import
DTMLFile
,
HTMLFile
from
Globals
import
DTMLFile
,
HTMLFile
from
zExceptions
import
Redirect
from
zExceptions
import
Redirect
from
AccessControl
import
getSecurityManager
,
Unauthorized
from
AccessControl
import
getSecurityManager
,
Unauthorized
from
cgi
import
escape
class
Tabs
(
ExtensionClass
.
Base
):
class
Tabs
(
ExtensionClass
.
Base
):
"""Mix-in provides management folder tab support."""
"""Mix-in provides management folder tab support."""
...
@@ -89,16 +90,16 @@ class Tabs(ExtensionClass.Base):
...
@@ -89,16 +90,16 @@ class Tabs(ExtensionClass.Base):
script
=
REQUEST
[
'BASEPATH1'
]
script
=
REQUEST
[
'BASEPATH1'
]
linkpat
=
'<a href="%s/manage_workspace">%s</a>'
linkpat
=
'<a href="%s/manage_workspace">%s</a>'
out
=
[]
out
=
[]
url
=
linkpat
%
(
script
,
' /'
)
url
=
linkpat
%
(
escape
(
script
,
1
)
,
' /'
)
if
not
steps
:
if
not
steps
:
return
url
return
url
last
=
steps
.
pop
()
last
=
steps
.
pop
()
for
step
in
steps
:
for
step
in
steps
:
script
=
'%s/%s'
%
(
script
,
step
)
script
=
'%s/%s'
%
(
script
,
step
)
out
.
append
(
linkpat
%
(
script
,
unquote
(
step
)))
out
.
append
(
linkpat
%
(
escape
(
script
,
1
),
escape
(
unquote
(
step
)
)))
script
=
'%s/%s'
%
(
script
,
last
)
script
=
'%s/%s'
%
(
script
,
last
)
out
.
append
(
'<a class="strong-link" href="%s/manage_workspace">%s</a>'
%
out
.
append
(
'<a class="strong-link" href="%s/manage_workspace">%s</a>'
%
(
script
,
unquote
(
last
)))
(
escape
(
script
,
1
),
escape
(
unquote
(
last
)
)))
return
'%s%s'
%
(
url
,
'/'
.
join
(
out
))
return
'%s%s'
%
(
url
,
'/'
.
join
(
out
))
def
tabs_path_info
(
self
,
script
,
path
,
def
tabs_path_info
(
self
,
script
,
path
,
...
...
lib/python/App/PersistentExtra.py
View file @
e131d462
...
@@ -11,6 +11,8 @@
...
@@ -11,6 +11,8 @@
#
#
##############################################################################
##############################################################################
import
ZODB
from
class_init
import
default__class_init__
from
class_init
import
default__class_init__
from
Persistence
import
Persistent
from
Persistence
import
Persistent
import
Globals
import
Globals
...
...
lib/python/DocumentTemplate/DT_In.py
View file @
e131d462
...
@@ -179,10 +179,8 @@
...
@@ -179,10 +179,8 @@
... display rows
... display rows
<!--#if sequence-end--> <!--#if next-sequence-->
<!--#if sequence-end--> <!--#if next-sequence-->
<a href="<!--#var URL-->/<!--#var sequence-query
<a href="&dtml-URL;/&dtml-sequence-query;batch_start=&dtml-next-sequence-start-number;">
-->&batch_start=<!--#var
(Next &dtml-next-sequence-size; results)
next-sequence-start-number-->">
(Next <!--#var next-sequence-size--> results)
</a>
</a>
<!--#/if--> <!--#/if-->
<!--#/if--> <!--#/if-->
...
@@ -191,7 +189,7 @@
...
@@ -191,7 +189,7 @@
If the original URL is: 'foo/bar?x=1&y=2', then the
If the original URL is: 'foo/bar?x=1&y=2', then the
rendered text (after row data are displayed) will be::
rendered text (after row data are displayed) will be::
<a href="foo/bar?x=1&
y=2&
batch_start=20">
<a href="foo/bar?x=1&
amp;y=2&
batch_start=20">
(Next 20 results)
(Next 20 results)
</a>
</a>
...
@@ -199,7 +197,7 @@
...
@@ -199,7 +197,7 @@
then the rendered text (after row data are displayed)
then the rendered text (after row data are displayed)
will be::
will be::
<a href="foo/bar?x=1&
y=2&
batch_start=30">
<a href="foo/bar?x=1&
amp;y=2&
batch_start=30">
(Next 20 results)
(Next 20 results)
</a>
</a>
...
@@ -331,8 +329,8 @@
...
@@ -331,8 +329,8 @@
'''
#'
'''
#'
__rcs_id__
=
'$Id: DT_In.py,v 1.6
1 2003/11/18 13:17:00
tseaver Exp $'
__rcs_id__
=
'$Id: DT_In.py,v 1.6
2 2004/01/15 22:44:07
tseaver Exp $'
__version__
=
'$Revision: 1.6
1
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.6
2
$'
[
11
:
-
2
]
import
sys
import
sys
from
DT_Util
import
ParseError
,
parse_params
,
name_param
,
str
,
join_unicode
from
DT_Util
import
ParseError
,
parse_params
,
name_param
,
str
,
join_unicode
...
...
lib/python/DocumentTemplate/DT_UI.py
View file @
e131d462
...
@@ -12,8 +12,8 @@
...
@@ -12,8 +12,8 @@
##############################################################################
##############################################################################
__doc__
=
'''Machinery to support through-the-web editing
__doc__
=
'''Machinery to support through-the-web editing
$Id: DT_UI.py,v 1.1
4 2003/07/06 10:43:46 andreasjung
Exp $'''
$Id: DT_UI.py,v 1.1
5 2004/01/15 22:44:07 tseaver
Exp $'''
__version__
=
'$Revision: 1.1
4
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
5
$'
[
11
:
-
2
]
from
DT_HTML
import
HTML
from
DT_HTML
import
HTML
...
@@ -33,7 +33,7 @@ HTML._manage_editForm = HTML(
...
@@ -33,7 +33,7 @@ HTML._manage_editForm = HTML(
<BODY bgcolor="#FFFFFF">
<BODY bgcolor="#FFFFFF">
<!--#var document_template_edit_header-->
<!--#var document_template_edit_header-->
<FORM name="editform" ACTION="
<!--#var URL1-->
/manage_edit" METHOD="POST">
<FORM name="editform" ACTION="
&dtml-URL1;
/manage_edit" METHOD="POST">
<!--#var document_template_form_header-->
<!--#var document_template_form_header-->
Document template source:
Document template source:
<center>
<center>
...
@@ -51,19 +51,19 @@ HTML._manage_editForm = HTML(
...
@@ -51,19 +51,19 @@ HTML._manage_editForm = HTML(
<INPUT NAME=SUBMIT TYPE="SUBMIT" VALUE="Change">
<INPUT NAME=SUBMIT TYPE="SUBMIT" VALUE="Change">
<INPUT NAME=SUBMIT TYPE="RESET" VALUE="Reset">
<INPUT NAME=SUBMIT TYPE="RESET" VALUE="Reset">
<INPUT NAME="dt_edit_name" TYPE="HIDDEN"
<INPUT NAME="dt_edit_name" TYPE="HIDDEN"
VALUE="
<!--#var URL1-->
">
VALUE="
&dtml-URL1;
">
<!--#if FactoryDefaultString-->
<!--#if FactoryDefaultString-->
<INPUT NAME=SUBMIT TYPE="SUBMIT"
<INPUT NAME=SUBMIT TYPE="SUBMIT"
VALUE="
<!--#var FactoryDefaultString-->
">
VALUE="
&dtml-FactoryDefaultString;
">
<!--#/if FactoryDefaultString-->
<!--#/if FactoryDefaultString-->
<INPUT NAME=SUBMIT TYPE="SUBMIT" VALUE="Cancel">
<INPUT NAME=SUBMIT TYPE="SUBMIT" VALUE="Cancel">
<!--#if HTTP_REFERER-->
<!--#if HTTP_REFERER-->
<INPUT NAME="CANCEL_ACTION" TYPE="HIDDEN"
<INPUT NAME="CANCEL_ACTION" TYPE="HIDDEN"
VALUE="
<!--#var HTTP_REFERER-->
">
VALUE="
&dtml-HTTP_REFERER;
">
<!--#else HTTP_REFERER-->
<!--#else HTTP_REFERER-->
<!--#if URL1-->
<!--#if URL1-->
<INPUT NAME="CANCEL_ACTION" TYPE="HIDDEN"
<INPUT NAME="CANCEL_ACTION" TYPE="HIDDEN"
VALUE="
<!--#var URL1-->
">
VALUE="
&dtml-URL1;
">
<!--#/if URL1-->
<!--#/if URL1-->
<!--#/if HTTP_REFERER-->
<!--#/if HTTP_REFERER-->
</center>
</center>
...
@@ -78,14 +78,14 @@ HTML._manage_editForm = HTML(
...
@@ -78,14 +78,14 @@ HTML._manage_editForm = HTML(
HTML
.
editConfirmation
=
HTML
(
HTML
.
editConfirmation
=
HTML
(
"""<html><head><title>Change Successful</title></head><body>
"""<html><head><title>Change Successful</title></head><body>
<!--#if CANCEL_ACTION-->
<!--#if CANCEL_ACTION-->
<form action="
<!--#var CANCEL_ACTION-->
" method="POST">
<form action="
&dtml-CANCEL_ACTION;
" method="POST">
<center>
<center>
<em>
<!--#var dt_edit_name-->
</em><br>has been changed.<br><br>
<em>
&dtml-dt_edit_name;
</em><br>has been changed.<br><br>
<input type=submit name="SUBMIT" value="OK">
<input type=submit name="SUBMIT" value="OK">
</center>
</center>
</form></body></html>
</form></body></html>
<!--#else CANCEL_ACTION-->
<!--#else CANCEL_ACTION-->
<center>
<center>
<em>
<!--#var dt_edit_name-->
</em><br>has been changed.
<em>
&dtml-dt_edit_name;
</em><br>has been changed.
</center>
</center>
<!--#/if CANCEL_ACTION-->"""
)
<!--#/if CANCEL_ACTION-->"""
)
lib/python/HelpSys/HelpSys.py
View file @
e131d462
...
@@ -17,6 +17,7 @@ from OFS.ObjectManager import ObjectManager
...
@@ -17,6 +17,7 @@ from OFS.ObjectManager import ObjectManager
from
Globals
import
Persistent
,
DTMLFile
,
HTML
from
Globals
import
Persistent
,
DTMLFile
,
HTML
from
Products.ZCatalog.ZCatalog
import
ZCatalog
from
Products.ZCatalog.ZCatalog
import
ZCatalog
from
Products.ZCatalog.Lazy
import
LazyCat
from
Products.ZCatalog.Lazy
import
LazyCat
from
cgi
import
escape
import
Products
import
Products
import
HelpTopic
import
HelpTopic
import
Globals
import
Globals
...
@@ -103,14 +104,14 @@ class HelpSys(Acquisition.Implicit, ObjectManager, Item, Persistent):
...
@@ -103,14 +104,14 @@ class HelpSys(Acquisition.Implicit, ObjectManager, Item, Persistent):
)
)
help_url
=
'%s?help_url=%s'
%
(
self
.
absolute_url
(),
help_url
)
help_url
=
'%s?help_url=%s'
%
(
self
.
absolute_url
(),
help_url
)
script
=
'window.open(
\
'
%s
\
'
,
\
'
zope_help
\
'
,
\
'
width=600,'
\
script
=
"window.open('%s','zope_help','width=600,height=500,"
\
'height=500,menubar=yes,toolbar=yes,scrollbars=yes,'
\
"menubar=yes,toolbar=yes,scrollbars=yes,resizable=yes');"
\
'resizable=yes
\
'
); return false;'
%
help_url
"return false;"
%
escape
(
help_url
,
1
).
replace
(
"'"
,
"
\
\
'"
)
h_link
=
'<a href="%s" onClick="%s" onMouseOver="window.status='
\
h_link
=
'<a href="%s" onClick="%s" onMouseOver="window.status='
\
'
\
'
Open online help
\
'
; return true;" onMouseOut="'
\
'
\
'
Open online help
\
'
; return true;" onMouseOut="'
\
'window.status=
\
'
\
'
; return true;">Help!</a>'
%
(
'window.status=
\
'
\
'
; return true;">Help!</a>'
%
(
help_url
,
script
escape
(
help_url
,
1
)
,
script
)
)
return
h_link
return
h_link
...
...
lib/python/Shared/DC/ZRDB/Aqueduct.py
View file @
e131d462
...
@@ -12,8 +12,8 @@
...
@@ -12,8 +12,8 @@
##############################################################################
##############################################################################
__doc__
=
'''Shared classes and functions
__doc__
=
'''Shared classes and functions
$Id: Aqueduct.py,v 1.5
7 2003/11/18 13:17:14
tseaver Exp $'''
$Id: Aqueduct.py,v 1.5
8 2004/01/15 22:44:08
tseaver Exp $'''
__version__
=
'$Revision: 1.5
7
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.5
8
$'
[
11
:
-
2
]
import
Globals
,
os
import
Globals
,
os
from
Globals
import
Persistent
from
Globals
import
Persistent
...
@@ -158,7 +158,7 @@ def default_input_form(id,arguments,action='query',
...
@@ -158,7 +158,7 @@ def default_input_form(id,arguments,action='query',
'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
\
n
'
'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
\
n
'
'<html lang="en"><head><title>%s Input Data</title></head>
\
n
'
'<html lang="en"><head><title>%s Input Data</title></head>
\
n
'
'<body bgcolor="#FFFFFF" link="#000099" vlink="#555555">
\
n
%s
\
n
'
'<body bgcolor="#FFFFFF" link="#000099" vlink="#555555">
\
n
%s
\
n
'
'<form action="
<dtml-var URL2>/<dtml-var id>
/%s" '
'<form action="
&dtml-URL2;/&dtml-id;
/%s" '
'method="get">
\
n
'
'method="get">
\
n
'
'<h2>%s Input Data</h2>
\
n
'
'<h2>%s Input Data</h2>
\
n
'
'Enter query parameters:<br>'
'Enter query parameters:<br>'
...
@@ -187,7 +187,7 @@ def default_input_form(id,arguments,action='query',
...
@@ -187,7 +187,7 @@ def default_input_form(id,arguments,action='query',
'<dtml-if HTTP_REFERER>
\
n
'
'<dtml-if HTTP_REFERER>
\
n
'
' <input type="SUBMIT" name="SUBMIT" value="Cancel">
\
n
'
' <input type="SUBMIT" name="SUBMIT" value="Cancel">
\
n
'
' <INPUT NAME="CANCEL_ACTION" TYPE="HIDDEN"
\
n
'
' <INPUT NAME="CANCEL_ACTION" TYPE="HIDDEN"
\
n
'
' VALUE="
<dtml-var HTTP_REFERER>
">
\
n
'
' VALUE="
&dtml-HTTP_REFERER;
">
\
n
'
'</dtml-if>
\
n
'
'</dtml-if>
\
n
'
'</td></tr>
\
n
</table>
\
n
</form>
\
n
</body>
\
n
</html>
\
n
'
'</td></tr>
\
n
</table>
\
n
</form>
\
n
</body>
\
n
</html>
\
n
'
)
)
...
@@ -197,7 +197,7 @@ def default_input_form(id,arguments,action='query',
...
@@ -197,7 +197,7 @@ def default_input_form(id,arguments,action='query',
'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
\
n
'
'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
\
n
'
'<html lang="en"><head><title>%s Input Data</title></head>
\
n
'
'<html lang="en"><head><title>%s Input Data</title></head>
\
n
'
'<body bgcolor="#FFFFFF" link="#000099" vlink="#555555">
\
n
%s
\
n
'
'<body bgcolor="#FFFFFF" link="#000099" vlink="#555555">
\
n
%s
\
n
'
'<form action="
<dtml-var URL2>/<dtml-var id>
/%s" '
'<form action="
&dtml-URL2;/&dtml-id;
/%s" '
'method="get">
\
n
'
'method="get">
\
n
'
'<h2>%s Input Data</h2>
\
n
'
'<h2>%s Input Data</h2>
\
n
'
'This query requires no input.<p>
\
n
'
'This query requires no input.<p>
\
n
'
...
@@ -205,7 +205,7 @@ def default_input_form(id,arguments,action='query',
...
@@ -205,7 +205,7 @@ def default_input_form(id,arguments,action='query',
'<dtml-if HTTP_REFERER>
\
n
'
'<dtml-if HTTP_REFERER>
\
n
'
' <input type="SUBMIT" name="SUBMIT" value="Cancel">
\
n
'
' <input type="SUBMIT" name="SUBMIT" value="Cancel">
\
n
'
' <INPUT NAME="CANCEL_ACTION" TYPE="HIDDEN"
\
n
'
' <INPUT NAME="CANCEL_ACTION" TYPE="HIDDEN"
\
n
'
' VALUE="
<dtml-var HTTP_REFERER>
">
\
n
'
' VALUE="
&dtml-HTTP_REFERER;
">
\
n
'
'</dtml-if>
\
n
'
'</dtml-if>
\
n
'
'</td></tr>
\
n
</table>
\
n
</form>
\
n
</body>
\
n
</html>
\
n
'
'</td></tr>
\
n
</table>
\
n
</form>
\
n
</body>
\
n
</html>
\
n
'
%
(
id
,
tabs
,
action
,
id
)
%
(
id
,
tabs
,
action
,
id
)
...
...
lib/python/Shared/DC/ZRDB/Connection.py
View file @
e131d462
...
@@ -12,8 +12,8 @@
...
@@ -12,8 +12,8 @@
##############################################################################
##############################################################################
__doc__
=
'''Generic Database Connection Support
__doc__
=
'''Generic Database Connection Support
$Id: Connection.py,v 1.3
8 2003/11/18 13:17:14
tseaver Exp $'''
$Id: Connection.py,v 1.3
9 2004/01/15 22:44:08
tseaver Exp $'''
__version__
=
'$Revision: 1.3
8
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.3
9
$'
[
11
:
-
2
]
import
Globals
,
OFS
.
SimpleItem
,
AccessControl
.
Role
,
Acquisition
,
sys
import
Globals
,
OFS
.
SimpleItem
,
AccessControl
.
Role
,
Acquisition
,
sys
from
DateTime
import
DateTime
from
DateTime
import
DateTime
...
@@ -25,6 +25,7 @@ from cStringIO import StringIO
...
@@ -25,6 +25,7 @@ from cStringIO import StringIO
from
Results
import
Results
from
Results
import
Results
from
sys
import
exc_info
from
sys
import
exc_info
from
zLOG
import
LOG
,
ERROR
from
zLOG
import
LOG
,
ERROR
from
cgi
import
escape
import
DocumentTemplate
,
RDB
import
DocumentTemplate
,
RDB
from
zExceptions
import
BadRequest
from
zExceptions
import
BadRequest
...
@@ -103,7 +104,7 @@ class Connection(
...
@@ -103,7 +104,7 @@ class Connection(
if
REQUEST
is
not
None
:
if
REQUEST
is
not
None
:
return
MessageDialog
(
return
MessageDialog
(
title
=
'Edited'
,
title
=
'Edited'
,
message
=
'<strong>%s</strong> has been edited.'
%
self
.
id
,
message
=
'<strong>%s</strong> has been edited.'
%
escape
(
self
.
id
)
,
action
=
'./manage_main'
,
action
=
'./manage_main'
,
)
)
...
...
lib/python/Shared/DC/ZRDB/Search.py
View file @
e131d462
...
@@ -12,12 +12,13 @@
...
@@ -12,12 +12,13 @@
##############################################################################
##############################################################################
__doc__
=
'''Search Interface Wizard
__doc__
=
'''Search Interface Wizard
$Id: Search.py,v 1.2
1 2003/11/18 13:17:14
tseaver Exp $'''
$Id: Search.py,v 1.2
2 2004/01/15 22:44:08
tseaver Exp $'''
__version__
=
'$Revision: 1.2
1
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.2
2
$'
[
11
:
-
2
]
from
Globals
import
DTMLFile
from
Globals
import
DTMLFile
from
Aqueduct
import
custom_default_report
,
custom_default_zpt_report
,
nicify
,
Args
from
Aqueduct
import
custom_default_report
,
custom_default_zpt_report
,
nicify
,
Args
from
string
import
join
from
string
import
join
from
cgi
import
escape
from
AccessControl
import
getSecurityManager
from
AccessControl
import
getSecurityManager
addForm
=
DTMLFile
(
'dtml/searchAdd'
,
globals
())
addForm
=
DTMLFile
(
'dtml/searchAdd'
,
globals
())
...
@@ -57,7 +58,7 @@ def manage_addZSearch(self, report_id, report_title, report_style,
...
@@ -57,7 +58,7 @@ def manage_addZSearch(self, report_id, report_title, report_style,
cannot be generated. Before creating a report
cannot be generated. Before creating a report
from this query, you must try out the query. To
from this query, you must try out the query. To
try out the query, <a href="%s">click here</a>.
try out the query, <a href="%s">click here</a>.
"""
%
(
q
.
title_and_id
(),
url
))
"""
%
(
escape
(
q
.
title_and_id
()),
escape
(
url
,
1
)
))
if
object_type
==
'dtml_methods'
:
if
object_type
==
'dtml_methods'
:
...
...
lib/python/Shared/DC/ZRDB/dtml/customDefaultReport.dtml
View file @
e131d462
...
@@ -3,8 +3,7 @@
...
@@ -3,8 +3,7 @@
<dtml-if previous-sequence>
<dtml-if previous-sequence>
<a href="&dtml-URL;<dtml-var sequence-query
<a href="&dtml-URL;&dtml-sequence-query;query_start=&dtml-previous-sequence-start-number;">
>query_start=<dtml-var previous-sequence-start-number>">
(Previous <dtml-var previous-sequence-size> results)
(Previous <dtml-var previous-sequence-size> results)
</a>
</a>
...
@@ -24,8 +23,7 @@
...
@@ -24,8 +23,7 @@
<dtml-if next-sequence>
<dtml-if next-sequence>
<a href="&dtml-URL;<dtml-var sequence-query
<a href="&dtml-URL;&dtml-sequence-query;query_start=&dtml-next-sequence-start-number;">
>query_start=<dtml-var next-sequence-start-number>">
(Next <dtml-var next-sequence-size> results)
(Next <dtml-var next-sequence-size> results)
</a>
</a>
...
...
lib/python/ZClasses/Method.py
View file @
e131d462
...
@@ -25,6 +25,7 @@ from Products.PythonScripts.PythonScript import PythonScript
...
@@ -25,6 +25,7 @@ from Products.PythonScripts.PythonScript import PythonScript
from
zExceptions
import
BadRequest
from
zExceptions
import
BadRequest
import
marshal
import
marshal
from
cgi
import
escape
_marker
=
[]
_marker
=
[]
class
ZClassMethodsSheet
(
class
ZClassMethodsSheet
(
...
@@ -107,11 +108,11 @@ class ZClassMethodsSheet(
...
@@ -107,11 +108,11 @@ class ZClassMethodsSheet(
def
_checkId
(
self
,
id
,
allow_dup
=
0
,
def
_checkId
(
self
,
id
,
allow_dup
=
0
,
_reserved
=
(
'propertysheets'
,
'manage_workspace'
)):
_reserved
=
(
'propertysheets'
,
'manage_workspace'
)):
if
id
in
_reserved
:
if
id
in
_reserved
:
raise
BadRequest
,
'The id, %s, is rese
verd'
%
id
raise
BadRequest
,
'The id, %s, is rese
rved'
%
escape
(
id
)
if
not
allow_dup
and
self
.
getClassAttr
(
id
,
self
)
is
not
self
:
if
not
allow_dup
and
self
.
getClassAttr
(
id
,
self
)
is
not
self
:
raise
BadRequest
,
(
raise
BadRequest
,
(
'The id %s is invalid - it is already in use.'
%
id
)
'The id %s is invalid - it is already in use.'
%
escape
(
id
)
)
ZClassMethodsSheet
.
inheritedAttribute
(
'_checkId'
)(
ZClassMethodsSheet
.
inheritedAttribute
(
'_checkId'
)(
self
,
id
,
1
)
self
,
id
,
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