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
e8561396
Commit
e8561396
authored
Feb 23, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated permissions
parent
e16c8e59
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
8 deletions
+21
-8
lib/python/Products/ZSQLMethods/SQL.py
lib/python/Products/ZSQLMethods/SQL.py
+9
-4
lib/python/Products/ZSQLMethods/__init__.py
lib/python/Products/ZSQLMethods/__init__.py
+12
-4
No files found.
lib/python/Products/ZSQLMethods/SQL.py
View file @
e8561396
...
...
@@ -11,8 +11,8 @@
__doc__
=
'''SQL Methods
$Id: SQL.py,v 1.
1 1998/01/07 16:29:29
jim Exp $'''
__version__
=
'$Revision: 1.
1
$'
[
11
:
-
2
]
$Id: SQL.py,v 1.
2 1998/02/23 19:00:31
jim Exp $'''
__version__
=
'$Revision: 1.
2
$'
[
11
:
-
2
]
import
AqueductDA.DA
from
Globals
import
HTMLFile
...
...
@@ -40,8 +40,10 @@ def SQLConnectionIDs(self):
ids
.
sort
()
return
ids
addForm
=
HTMLFile
(
'add'
,
globals
())
def
add
(
self
,
id
,
title
,
connection_id
,
arguments
,
template
,
REQUEST
=
None
):
manage_addAqueductSQLMethodForm
=
HTMLFile
(
'add'
,
globals
())
def
manage_addAqueductSQLMethod
(
self
,
id
,
title
,
connection_id
,
arguments
,
template
,
REQUEST
=
None
):
"""Add a SQL Method to a folder"""
self
.
_setObject
(
id
,
SQL
(
id
,
title
,
connection_id
,
arguments
,
template
))
if
REQUEST
is
not
None
:
return
self
.
manage_main
(
self
,
REQUEST
)
...
...
@@ -57,6 +59,9 @@ class SQL(AqueductDA.DA.DA):
##############################################################################
#
# $Log: SQL.py,v $
# Revision 1.2 1998/02/23 19:00:31 jim
# updated permissions
#
# Revision 1.1 1998/01/07 16:29:29 jim
# Split out Database Methods
#
...
...
lib/python/Products/ZSQLMethods/__init__.py
View file @
e8561396
...
...
@@ -11,8 +11,8 @@
__doc__
=
'''SQL Method Product
$Id: __init__.py,v 1.
2 1998/01/29 16:29:47 brian
Exp $'''
__version__
=
'$Revision: 1.
2
$'
[
11
:
-
2
]
$Id: __init__.py,v 1.
3 1998/02/23 19:00:31 jim
Exp $'''
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
from
ImageFile
import
ImageFile
import
Aqueduct.Search
,
SQL
...
...
@@ -28,8 +28,8 @@ meta_types=(
)
methods
=
{
'manage_addAqueductSQLMethod'
:
SQL
.
ad
d
,
'manage_addAqueductSQLMethodForm'
:
SQL
.
ad
dForm
,
'manage_addAqueductSQLMethod'
:
SQL
.
manage_addAqueductSQLMetho
d
,
'manage_addAqueductSQLMethodForm'
:
SQL
.
manage_addAqueductSQLMetho
dForm
,
'SQLConnectionIDs'
:
SQL
.
SQLConnectionIDs
,
...
...
@@ -42,9 +42,17 @@ misc_={
'icon'
:
ImageFile
(
'AqueductDA/www/DBAdapter_icon.gif'
),
}
__ac_permissions__
=
(
(
'Add Database Methods'
,
(
'manage_addAqueductSQLMethodForm'
,
'manage_addAqueductSQLMethod'
)),
)
##############################################################################
#
# $Log: __init__.py,v $
# Revision 1.3 1998/02/23 19:00:31 jim
# updated permissions
#
# Revision 1.2 1998/01/29 16:29:47 brian
# Added eval support
#
...
...
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