Skip to content

Commit

Permalink
updated permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Fulton committed Feb 23, 1998
1 parent fa120fd commit 6adcd39
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
13 changes: 9 additions & 4 deletions SQL.py
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand All @@ -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
#
Expand Down
16 changes: 12 additions & 4 deletions __init__.py
Expand Up @@ -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

Expand All @@ -28,8 +28,8 @@
)

methods={
'manage_addAqueductSQLMethod': SQL.add,
'manage_addAqueductSQLMethodForm': SQL.addForm,
'manage_addAqueductSQLMethod': SQL.manage_addAqueductSQLMethod,
'manage_addAqueductSQLMethodForm': SQL.manage_addAqueductSQLMethodForm,
'SQLConnectionIDs': SQL.SQLConnectionIDs,


Expand All @@ -42,9 +42,17 @@
'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
#
Expand Down

0 comments on commit 6adcd39

Please sign in to comment.