[Erp5-report] r34161 nicolas - in /erp5/trunk/bt5/erp5_data_protection: SkinTemplateItem/po...

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Mar 26 17:19:12 CET 2010


Author: nicolas
Date: Fri Mar 26 17:19:12 2010
New Revision: 34161

URL: http://svn.erp5.org?rev=34161&view=rev
Log:
2010-03-26 nicolas
* Disable fields when data protection manager can not access document containing sensitive data.
* Display instructions to follow.

Added:
    erp5/trunk/bt5/erp5_data_protection/SkinTemplateItem/portal_skins/erp5_data_protection/DataProtectionRequest_getUnauthorisedContextInformationText.xml
    erp5/trunk/bt5/erp5_data_protection/SkinTemplateItem/portal_skins/erp5_data_protection/DataProtectionRequest_view/your_unauthorised_context_information.xml
Modified:
    erp5/trunk/bt5/erp5_data_protection/SkinTemplateItem/portal_skins/erp5_data_protection/DataProtectionRequest_view.xml
    erp5/trunk/bt5/erp5_data_protection/SkinTemplateItem/portal_skins/erp5_data_protection/DataProtectionRequest_view/my_agent_title.xml
    erp5/trunk/bt5/erp5_data_protection/SkinTemplateItem/portal_skins/erp5_data_protection/DataProtectionRequest_view/your_follow_up_portal_type.xml
    erp5/trunk/bt5/erp5_data_protection/bt/change_log
    erp5/trunk/bt5/erp5_data_protection/bt/revision

Added: erp5/trunk/bt5/erp5_data_protection/SkinTemplateItem/portal_skins/erp5_data_protection/DataProtectionRequest_getUnauthorisedContextInformationText.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_data_protection/SkinTemplateItem/portal_skins/erp5_data_protection/DataProtectionRequest_getUnauthorisedContextInformationText.xml?rev=34161&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_data_protection/SkinTemplateItem/portal_skins/erp5_data_protection/DataProtectionRequest_getUnauthorisedContextInformationText.xml (added)
+++ erp5/trunk/bt5/erp5_data_protection/SkinTemplateItem/portal_skins/erp5_data_protection/DataProtectionRequest_getUnauthorisedContextInformationText.xml [utf8] Fri Mar 26 17:19:12 2010
@@ -1,0 +1,127 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>Script_magic</string> </key>
+            <value> <int>3</int> </value>
+        </item>
+        <item>
+            <key> <string>_bind_names</string> </key>
+            <value>
+              <object>
+                <klass>
+                  <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
+                </klass>
+                <tuple/>
+                <state>
+                  <dictionary>
+                    <item>
+                        <key> <string>_asgns</string> </key>
+                        <value>
+                          <dictionary>
+                            <item>
+                                <key> <string>name_container</string> </key>
+                                <value> <string>container</string> </value>
+                            </item>
+                            <item>
+                                <key> <string>name_context</string> </key>
+                                <value> <string>context</string> </value>
+                            </item>
+                            <item>
+                                <key> <string>name_m_self</string> </key>
+                                <value> <string>script</string> </value>
+                            </item>
+                            <item>
+                                <key> <string>name_subpath</string> </key>
+                                <value> <string>traverse_subpath</string> </value>
+                            </item>
+                          </dictionary>
+                        </value>
+                    </item>
+                  </dictionary>
+                </state>
+              </object>
+            </value>
+        </item>
+        <item>
+            <key> <string>_body</string> </key>
+            <value> <string encoding="cdata"><![CDATA[
+
+return """You do not have enough permission<br/>\n
+to access Context document.<br/>\n
+Please ask Human Resource manager to<br/>\n
+grant more privileges\n
+"""\n
+
+
+]]></string> </value>
+        </item>
+        <item>
+            <key> <string>_code</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>_params</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>errors</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+        <item>
+            <key> <string>func_code</string> </key>
+            <value>
+              <object>
+                <klass>
+                  <global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
+                </klass>
+                <tuple/>
+                <state>
+                  <dictionary>
+                    <item>
+                        <key> <string>co_argcount</string> </key>
+                        <value> <int>0</int> </value>
+                    </item>
+                    <item>
+                        <key> <string>co_varnames</string> </key>
+                        <value>
+                          <tuple/>
+                        </value>
+                    </item>
+                  </dictionary>
+                </state>
+              </object>
+            </value>
+        </item>
+        <item>
+            <key> <string>func_defaults</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>DataProtectionRequest_getUnauthorisedContextInformationText</string> </value>
+        </item>
+        <item>
+            <key> <string>warnings</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Modified: erp5/trunk/bt5/erp5_data_protection/SkinTemplateItem/portal_skins/erp5_data_protection/DataProtectionRequest_view.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_data_protection/SkinTemplateItem/portal_skins/erp5_data_protection/DataProtectionRequest_view.xml?rev=34161&r1=34160&r2=34161&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_data_protection/SkinTemplateItem/portal_skins/erp5_data_protection/DataProtectionRequest_view.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_data_protection/SkinTemplateItem/portal_skins/erp5_data_protection/DataProtectionRequest_view.xml [utf8] Fri Mar 26 17:19:12 2010
@@ -104,6 +104,7 @@
                         <string>my_reference</string>
                         <string>my_agent_title</string>
                         <string>your_follow_up_portal_type</string>
+                        <string>your_unauthorised_context_information</string>
                       </list>
                     </value>
                 </item>

Modified: erp5/trunk/bt5/erp5_data_protection/SkinTemplateItem/portal_skins/erp5_data_protection/DataProtectionRequest_view/my_agent_title.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_data_protection/SkinTemplateItem/portal_skins/erp5_data_protection/DataProtectionRequest_view/my_agent_title.xml?rev=34161&r1=34160&r2=34161&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_data_protection/SkinTemplateItem/portal_skins/erp5_data_protection/DataProtectionRequest_view/my_agent_title.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_data_protection/SkinTemplateItem/portal_skins/erp5_data_protection/DataProtectionRequest_view/my_agent_title.xml [utf8] Fri Mar 26 17:19:12 2010
@@ -269,7 +269,9 @@
                 </item>
                 <item>
                     <key> <string>enabled</string> </key>
-                    <value> <string></string> </value>
+                    <value>
+                      <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+                    </value>
                 </item>
                 <item>
                     <key> <string>external_validator</string> </key>
@@ -322,7 +324,7 @@
                 <item>
                     <key> <string>portal_type</string> </key>
                     <value>
-                      <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+                      <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
                     </value>
                 </item>
                 <item>
@@ -562,6 +564,22 @@
       <dictionary>
         <item>
             <key> <string>_text</string> </key>
+            <value> <string>python: here.getAgentValue(checked_permission=\'View\') is not None</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="3" aka="AAAAAAAAAAM=">
+    <pickle>
+      <tuple>
+        <global name="TALESMethod" module="Products.Formulator.TALESField"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>_text</string> </key>
             <value> <string>python: [(portal_type_id, portal_type_id) for portal_type_id in here.getPortalObject().portal_types.objectIds()]</string> </value>
         </item>
       </dictionary>

Modified: erp5/trunk/bt5/erp5_data_protection/SkinTemplateItem/portal_skins/erp5_data_protection/DataProtectionRequest_view/your_follow_up_portal_type.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_data_protection/SkinTemplateItem/portal_skins/erp5_data_protection/DataProtectionRequest_view/your_follow_up_portal_type.xml?rev=34161&r1=34160&r2=34161&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_data_protection/SkinTemplateItem/portal_skins/erp5_data_protection/DataProtectionRequest_view/your_follow_up_portal_type.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_data_protection/SkinTemplateItem/portal_skins/erp5_data_protection/DataProtectionRequest_view/your_follow_up_portal_type.xml [utf8] Fri Mar 26 17:19:12 2010
@@ -143,7 +143,9 @@
                 </item>
                 <item>
                     <key> <string>enabled</string> </key>
-                    <value> <string></string> </value>
+                    <value>
+                      <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+                    </value>
                 </item>
                 <item>
                     <key> <string>external_validator</string> </key>
@@ -278,4 +280,20 @@
       </dictionary>
     </pickle>
   </record>
+  <record id="3" aka="AAAAAAAAAAM=">
+    <pickle>
+      <tuple>
+        <global name="TALESMethod" module="Products.Formulator.TALESField"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>_text</string> </key>
+            <value> <string>python: here.getAgentValue(checked_permission=\'View\') is not None</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
 </ZopeData>

Added: erp5/trunk/bt5/erp5_data_protection/SkinTemplateItem/portal_skins/erp5_data_protection/DataProtectionRequest_view/your_unauthorised_context_information.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_data_protection/SkinTemplateItem/portal_skins/erp5_data_protection/DataProtectionRequest_view/your_unauthorised_context_information.xml?rev=34161&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_data_protection/SkinTemplateItem/portal_skins/erp5_data_protection/DataProtectionRequest_view/your_unauthorised_context_information.xml (added)
+++ erp5/trunk/bt5/erp5_data_protection/SkinTemplateItem/portal_skins/erp5_data_protection/DataProtectionRequest_view/your_unauthorised_context_information.xml [utf8] Fri Mar 26 17:19:12 2010
@@ -1,0 +1,331 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="EditorField" module="Products.ERP5Form.EditorField"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>your_unauthorised_context_information</string> </value>
+        </item>
+        <item>
+            <key> <string>message_values</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>external_validator_failed</string> </key>
+                    <value> <string>The input failed the external validator.</string> </value>
+                </item>
+                <item>
+                    <key> <string>line_too_long</string> </key>
+                    <value> <string>A line was too long.</string> </value>
+                </item>
+                <item>
+                    <key> <string>required_not_found</string> </key>
+                    <value> <string>Input is required but no input given.</string> </value>
+                </item>
+                <item>
+                    <key> <string>too_long</string> </key>
+                    <value> <string>You entered too many characters.</string> </value>
+                </item>
+                <item>
+                    <key> <string>too_many_lines</string> </key>
+                    <value> <string>You entered too many lines.</string> </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+        <item>
+            <key> <string>overrides</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>alternate_name</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>css_class</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>default</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>description</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>editable</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>enabled</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>external_validator</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>extra</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>height</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>hidden</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>max_length</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>max_linelength</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>max_lines</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>required</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>text_editor</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>title</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>unicode</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>whitespace_preserve</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>width</string> </key>
+                    <value> <string></string> </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+        <item>
+            <key> <string>tales</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>alternate_name</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>css_class</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>default</string> </key>
+                    <value>
+                      <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+                    </value>
+                </item>
+                <item>
+                    <key> <string>description</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>editable</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>enabled</string> </key>
+                    <value>
+                      <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+                    </value>
+                </item>
+                <item>
+                    <key> <string>external_validator</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>extra</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>height</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>hidden</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>max_length</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>max_linelength</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>max_lines</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>required</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>text_editor</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>title</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>unicode</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>whitespace_preserve</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>width</string> </key>
+                    <value> <string></string> </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+        <item>
+            <key> <string>values</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>alternate_name</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>css_class</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>default</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>description</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>editable</string> </key>
+                    <value> <int>0</int> </value>
+                </item>
+                <item>
+                    <key> <string>enabled</string> </key>
+                    <value> <int>1</int> </value>
+                </item>
+                <item>
+                    <key> <string>external_validator</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>extra</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>height</string> </key>
+                    <value> <int>5</int> </value>
+                </item>
+                <item>
+                    <key> <string>hidden</string> </key>
+                    <value> <int>0</int> </value>
+                </item>
+                <item>
+                    <key> <string>max_length</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>max_linelength</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>max_lines</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>required</string> </key>
+                    <value> <int>0</int> </value>
+                </item>
+                <item>
+                    <key> <string>text_editor</string> </key>
+                    <value> <string>text_area</string> </value>
+                </item>
+                <item>
+                    <key> <string>title</string> </key>
+                    <value> <string>Access to context unauthorised</string> </value>
+                </item>
+                <item>
+                    <key> <string>unicode</string> </key>
+                    <value> <int>0</int> </value>
+                </item>
+                <item>
+                    <key> <string>whitespace_preserve</string> </key>
+                    <value> <int>0</int> </value>
+                </item>
+                <item>
+                    <key> <string>width</string> </key>
+                    <value> <int>40</int> </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <tuple>
+        <global name="TALESMethod" module="Products.Formulator.TALESField"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>_text</string> </key>
+            <value> <string>here/DataProtectionRequest_getUnauthorisedContextInformationText</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="3" aka="AAAAAAAAAAM=">
+    <pickle>
+      <tuple>
+        <global name="TALESMethod" module="Products.Formulator.TALESField"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>_text</string> </key>
+            <value> <string>python: here.getAgentValue(checked_permission=\'View\') is None</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Modified: erp5/trunk/bt5/erp5_data_protection/bt/change_log
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_data_protection/bt/change_log?rev=34161&r1=34160&r2=34161&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_data_protection/bt/change_log [utf8] (original)
+++ erp5/trunk/bt5/erp5_data_protection/bt/change_log [utf8] Fri Mar 26 17:19:12 2010
@@ -1,1 +1,5 @@
+2010-03-26 nicolas
+* Disable fields when data protection manager can not access document containing sensitive data.
+* Display instructions to follow.
+
 2010-02-26 nicolas

Modified: erp5/trunk/bt5/erp5_data_protection/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_data_protection/bt/revision?rev=34161&r1=34160&r2=34161&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_data_protection/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_data_protection/bt/revision [utf8] Fri Mar 26 17:19:12 2010
@@ -1,1 +1,1 @@
-33
+34




More information about the Erp5-report mailing list