[glom/feature_backup2] Small Business example: Add table privileges.



commit 8cc2f3bb2e3efc5ca69d9af07ee366ff66626880
Author: Murray Cumming <murrayc murrayc com>
Date:   Wed Jul 21 13:05:52 2010 +0200

    Small Business example: Add table privileges.
    
    * examples/example_smallbusiness.glom: Give some privileges to the
        accounts and personnel groups and resave-as-an-example. These were
        probably lost some time.

 ChangeLog                           |    8 ++++++++
 examples/example_smallbusiness.glom |   28 +++++++++++++++++++++++++---
 2 files changed, 33 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index ac0a61f..ba912b8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-07-21  Murray Cumming  <murrayc murrayc com>
+
+	Small Business example: Add table privileges.
+
+	* examples/example_smallbusiness.glom: Give some privileges to the
+    accounts and personnel groups and resave-as-an-example. These were
+    probably lost some time.
+
 2010-07-21  Murray Cumming  <murrayc murrayc com>>
 
 	Saving as example: Fix this.
diff --git a/examples/example_smallbusiness.glom b/examples/example_smallbusiness.glom
index 414ed4b..a062ce8 100644
--- a/examples/example_smallbusiness.glom
+++ b/examples/example_smallbusiness.glom
@@ -1,6 +1,7 @@
 <?xml version="1.0"?>
 <glom_document xmlns="http://glom.org/glom_document"; database_title="Small Business Example" is_example="true" translation_original_locale="en_US" format_version="5">
   <connection server="localhost" user="" database="glom_example_smallbusiness_v2" self_hosted="true" port="5434" try_other_ports="false" hosting_mode="postgres_self"/>
+  <startup_script/>
   <table name="contacts" default="true" title="Contacts">
     <example_rows>
       <example_row>
@@ -1487,8 +1488,29 @@ if __name__ == "__main__":
     <print_layouts/>
   </table>
   <groups><!--These are only used when recreating a database from an example file. The actual access-control is on the server, of course.-->
-    <group name="accounts"/>
-    <group name="glom_developer" developer="true"/>
-    <group name="personnel_department"/>
+    <group name="accounts">
+      <table_privs table_name="contacts" priv_view="true" priv_edit="true" priv_create="true" priv_delete="true"/>
+      <table_privs table_name="glom_system_preferences"/>
+      <table_privs table_name="invoice_lines" priv_view="true" priv_edit="true" priv_create="true" priv_delete="true"/>
+      <table_privs table_name="invoices" priv_view="true" priv_edit="true" priv_create="true" priv_delete="true"/>
+      <table_privs table_name="products" priv_view="true" priv_edit="true" priv_create="true" priv_delete="true"/>
+      <table_privs table_name="staff" priv_view="true"/>
+    </group>
+    <group name="glom_developer">
+      <table_privs table_name="contacts" priv_view="true" priv_edit="true" priv_create="true" priv_delete="true"/>
+      <table_privs table_name="glom_system_preferences" priv_view="true" priv_edit="true" priv_create="true" priv_delete="true"/>
+      <table_privs table_name="invoice_lines" priv_view="true" priv_edit="true" priv_create="true" priv_delete="true"/>
+      <table_privs table_name="invoices" priv_view="true" priv_edit="true" priv_create="true" priv_delete="true"/>
+      <table_privs table_name="products" priv_view="true" priv_edit="true" priv_create="true" priv_delete="true"/>
+      <table_privs table_name="staff" priv_view="true" priv_edit="true" priv_create="true" priv_delete="true"/>
+    </group>
+    <group name="personnel_department">
+      <table_privs table_name="contacts" priv_view="true"/>
+      <table_privs table_name="glom_system_preferences"/>
+      <table_privs table_name="invoice_lines" priv_view="true"/>
+      <table_privs table_name="invoices" priv_view="true"/>
+      <table_privs table_name="products" priv_view="true"/>
+      <table_privs table_name="staff" priv_view="true" priv_edit="true" priv_create="true" priv_delete="true"/>
+    </group>
   </groups>
   <library_modules/></glom_document>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]