[open-ils-commits] r11785 - trunk/Open-ILS/examples
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Jan 9 11:34:47 EST 2009
Author: erickson
Date: 2009-01-09 11:34:45 -0500 (Fri, 09 Jan 2009)
New Revision: 11785
Modified:
trunk/Open-ILS/examples/fm_IDL.xml
Log:
added permacrud entries for survey, question, and answer. Can't do response, because it would require 2 hops to the context org, but that's OK becasue we have code to handle that already.
Modified: trunk/Open-ILS/examples/fm_IDL.xml
===================================================================
--- trunk/Open-ILS/examples/fm_IDL.xml 2009-01-09 15:37:42 UTC (rev 11784)
+++ trunk/Open-ILS/examples/fm_IDL.xml 2009-01-09 16:34:45 UTC (rev 11785)
@@ -840,6 +840,14 @@
<link field="responses" reltype="has_many" key="question" map="" class="asvr"/>
<link field="answers" reltype="has_many" key="question" map="" class="asva"/>
</links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_SURVEY" link="survey" field="owner"/>
+ <retrieve/>
+ <update permission="ADMIN_SURVEY" link="survey" field="owner"/>
+ <delete permission="ADMIN_SURVEY" link="survey" field="owner"/>
+ </actions>
+ </permacrud>
</class>
<class id="mbts" controller="open-ils.cstore" oils_obj:fieldmapper="money::billable_transaction_summary" oils_persist:tablename="money.billable_xact_summary" reporter:label="Billable Transaction Summary">
<fields oils_persist:primary="id" oils_persist:sequence="">
@@ -1000,6 +1008,14 @@
<link field="answer" reltype="has_a" key="id" map="" class="asva"/>
<link field="usr" reltype="has_a" key="id" map="" class="au"/>
</links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_SURVEY" link="survey" field="owner"/>
+ <retrieve/>
+ <update permission="ADMIN_SURVEY" link="survey" field="owner"/>
+ <delete permission="ADMIN_SURVEY" link="survey" field="owner"/>
+ </actions>
+ </permacrud>
</class>
<class id="ccbi" controller="open-ils.cstore" oils_obj:fieldmapper="container::copy_bucket_item" oils_persist:tablename="container.copy_bucket_item">
<fields oils_persist:primary="id" oils_persist:sequence="container.copy_bucket_item_id_seq">
@@ -2372,10 +2388,10 @@
</links>
<permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
<actions>
- <create permission="CREATE_SURVEY" context_field="owner"/>
+ <create permission="ADMIN_SURVEY" context_field="owner"/>
<retrieve/>
- <update permission="UPDATE_SURVEY" context_field="owner"/>
- <delete permission="DELETE_SURVEY" context_field="owner"/>
+ <update permission="ADMIN_SURVEY" context_field="owner"/>
+ <delete permission="ADMIN_SURVEY" context_field="owner"/>
</actions>
</permacrud>
</class>
More information about the open-ils-commits
mailing list