changeset 62:3905385c8854

small fish
author casties
date Wed, 03 Nov 2010 19:30:15 +0100
parents e81d034b28a5
children 7f008e782563
files RestDbGisApi.py zpt/HTML_schema_usertables.zpt
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/RestDbGisApi.py	Tue Oct 26 21:23:19 2010 +0200
+++ b/RestDbGisApi.py	Wed Nov 03 19:30:15 2010 +0100
@@ -73,7 +73,6 @@
         if user is None:
             user = self.REQUEST.get('AUTHENTICATED_USER',None)
         logging.debug("isAllowed action=%s schema=%s table=%s user=%s"%(action,schema,table,user))
-        # TODO: check permissions from meta data table
         if action == "create":
             if user is not None and str(user) != 'Anonymous User':
                 # any authenticated user can create
@@ -91,6 +90,7 @@
             else:
                 return False
         
+        # anything else is allowed
         return True
 
     def setTableMetaTypes(self,schema,table,fields,user=None):
--- a/zpt/HTML_schema_usertables.zpt	Tue Oct 26 21:23:19 2010 +0200
+++ b/zpt/HTML_schema_usertables.zpt	Wed Nov 03 19:30:15 2010 +0100
@@ -5,7 +5,7 @@
     <title tal:content="template/title">The title</title>
   </head>
   <body>
-    <h2>List of tables for schema <span tal:replace="schema"/></h2>
+    <h2>List of user tables for schema <span tal:replace="schema"/></h2>
     <tal:block tal:condition="python:layout=='select'">
     <select tal:attributes="id element_id">
       <option tal:repeat="tbl data/rows" tal:content="python:tbl[0]"/>