Commit e8561396 authored by Jim Fulton's avatar Jim Fulton

updated permissions

parent e16c8e59
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
__doc__='''SQL Methods __doc__='''SQL Methods
$Id: SQL.py,v 1.1 1998/01/07 16:29:29 jim Exp $''' $Id: SQL.py,v 1.2 1998/02/23 19:00:31 jim Exp $'''
__version__='$Revision: 1.1 $'[11:-2] __version__='$Revision: 1.2 $'[11:-2]
import AqueductDA.DA import AqueductDA.DA
from Globals import HTMLFile from Globals import HTMLFile
...@@ -40,8 +40,10 @@ def SQLConnectionIDs(self): ...@@ -40,8 +40,10 @@ def SQLConnectionIDs(self):
ids.sort() ids.sort()
return ids return ids
addForm=HTMLFile('add', globals()) manage_addAqueductSQLMethodForm=HTMLFile('add', globals())
def add(self, id, title, connection_id, arguments, template, REQUEST=None): def manage_addAqueductSQLMethod(self, id, title,
connection_id, arguments, template,
REQUEST=None):
"""Add a SQL Method to a folder""" """Add a SQL Method to a folder"""
self._setObject(id, SQL(id, title, connection_id, arguments, template)) self._setObject(id, SQL(id, title, connection_id, arguments, template))
if REQUEST is not None: return self.manage_main(self,REQUEST) if REQUEST is not None: return self.manage_main(self,REQUEST)
...@@ -57,6 +59,9 @@ class SQL(AqueductDA.DA.DA): ...@@ -57,6 +59,9 @@ class SQL(AqueductDA.DA.DA):
############################################################################## ##############################################################################
# #
# $Log: SQL.py,v $ # $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 # Revision 1.1 1998/01/07 16:29:29 jim
# Split out Database Methods # Split out Database Methods
# #
......
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
__doc__='''SQL Method Product __doc__='''SQL Method Product
$Id: __init__.py,v 1.2 1998/01/29 16:29:47 brian Exp $''' $Id: __init__.py,v 1.3 1998/02/23 19:00:31 jim Exp $'''
__version__='$Revision: 1.2 $'[11:-2] __version__='$Revision: 1.3 $'[11:-2]
from ImageFile import ImageFile from ImageFile import ImageFile
import Aqueduct.Search, SQL import Aqueduct.Search, SQL
...@@ -28,8 +28,8 @@ meta_types=( ...@@ -28,8 +28,8 @@ meta_types=(
) )
methods={ methods={
'manage_addAqueductSQLMethod': SQL.add, 'manage_addAqueductSQLMethod': SQL.manage_addAqueductSQLMethod,
'manage_addAqueductSQLMethodForm': SQL.addForm, 'manage_addAqueductSQLMethodForm': SQL.manage_addAqueductSQLMethodForm,
'SQLConnectionIDs': SQL.SQLConnectionIDs, 'SQLConnectionIDs': SQL.SQLConnectionIDs,
...@@ -42,9 +42,17 @@ misc_={ ...@@ -42,9 +42,17 @@ misc_={
'icon': ImageFile('AqueductDA/www/DBAdapter_icon.gif'), 'icon': ImageFile('AqueductDA/www/DBAdapter_icon.gif'),
} }
__ac_permissions__=(
('Add Database Methods',
('manage_addAqueductSQLMethodForm', 'manage_addAqueductSQLMethod')),
)
############################################################################## ##############################################################################
# #
# $Log: __init__.py,v $ # $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 # Revision 1.2 1998/01/29 16:29:47 brian
# Added eval support # 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