Commit e8561396 authored by Jim Fulton's avatar Jim Fulton

updated permissions

parent e16c8e59
......@@ -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
#
......
......@@ -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.add,
'manage_addAqueductSQLMethodForm': SQL.addForm,
'manage_addAqueductSQLMethod': SQL.manage_addAqueductSQLMethod,
'manage_addAqueductSQLMethodForm': SQL.manage_addAqueductSQLMethodForm,
'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
#
......
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