[Erp5-report] r42432 gabriel.oliveira - in /experimental/bt5/erp5_dms_media: ActionTemplate...

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Jan 18 19:45:21 CET 2011


Author: gabriel.oliveira
Date: Tue Jan 18 19:45:20 2011
New Revision: 42432

URL: http://svn.erp5.org?rev=42432&view=rev
Log:
2011-01-18 gabriel.oliveira
* Changed default properties for VideoField and AudioField.
* Added new columns to Video Module and Audio Module listbox.
* Added PropertySheet MediaPreference for default audio and video format selection.

Added:
    experimental/bt5/erp5_dms_media/ActionTemplateItem/portal_types/Audio/preview.xml
    experimental/bt5/erp5_dms_media/ActionTemplateItem/portal_types/Video/preview.xml
    experimental/bt5/erp5_dms_media/DocumentTemplateItem/Audio.py
    experimental/bt5/erp5_dms_media/PropertySheetTemplateItem/
    experimental/bt5/erp5_dms_media/PropertySheetTemplateItem/MediaPreference.py
    experimental/bt5/erp5_dms_media/bt/template_property_sheet_id_list
Removed:
    experimental/bt5/erp5_dms_media/ActionTemplateItem/portal_types/Audio/view_editor.xml
    experimental/bt5/erp5_dms_media/ActionTemplateItem/portal_types/Video/view_editor.xml
Modified:
    experimental/bt5/erp5_dms_media/PortalTypePropertySheetTemplateItem/property_sheet_list.xml
    experimental/bt5/erp5_dms_media/SkinTemplateItem/portal_skins/erp5_dms_media/AudioModule_viewAudioList/listbox.xml
    experimental/bt5/erp5_dms_media/SkinTemplateItem/portal_skins/erp5_dms_media/VideoModule_viewVideoList/listbox.xml
    experimental/bt5/erp5_dms_media/bt/change_log
    experimental/bt5/erp5_dms_media/bt/revision
    experimental/bt5/erp5_dms_media/bt/template_action_path_list
    experimental/bt5/erp5_dms_media/bt/template_document_id_list
    experimental/bt5/erp5_dms_media/bt/template_portal_type_property_sheet_list

Added: experimental/bt5/erp5_dms_media/ActionTemplateItem/portal_types/Audio/preview.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_dms_media/ActionTemplateItem/portal_types/Audio/preview.xml?rev=42432&view=auto
==============================================================================
--- experimental/bt5/erp5_dms_media/ActionTemplateItem/portal_types/Audio/preview.xml (added)
+++ experimental/bt5/erp5_dms_media/ActionTemplateItem/portal_types/Audio/preview.xml [utf8] Tue Jan 18 19:45:20 2011
@@ -0,0 +1,81 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>action</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>categories</string> </key>
+            <value>
+              <tuple>
+                <string>action_type/object_view</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>category</string> </key>
+            <value> <string>object_view</string> </value>
+        </item>
+        <item>
+            <key> <string>condition</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>icon</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>preview</string> </value>
+        </item>
+        <item>
+            <key> <string>permissions</string> </key>
+            <value>
+              <tuple>
+                <string>View</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>priority</string> </key>
+            <value> <float>30.0</float> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>Preview</string> </value>
+        </item>
+        <item>
+            <key> <string>visible</string> </key>
+            <value> <int>1</int> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <global name="Expression" module="Products.CMFCore.Expression"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string>string:${object_url}/Audio_viewPreview</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Removed: experimental/bt5/erp5_dms_media/ActionTemplateItem/portal_types/Audio/view_editor.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_dms_media/ActionTemplateItem/portal_types/Audio/view_editor.xml?rev=42431&view=auto
==============================================================================
--- experimental/bt5/erp5_dms_media/ActionTemplateItem/portal_types/Audio/view_editor.xml [utf8] (original)
+++ experimental/bt5/erp5_dms_media/ActionTemplateItem/portal_types/Audio/view_editor.xml (removed)
@@ -1,95 +0,0 @@
-<?xml version="1.0"?>
-<ZopeData>
-  <record id="1" aka="AAAAAAAAAAE=">
-    <pickle>
-      <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>action</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>categories</string> </key>
-            <value>
-              <tuple>
-                <string>action_type/object_view</string>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>category</string> </key>
-            <value> <string>object_view</string> </value>
-        </item>
-        <item>
-            <key> <string>condition</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>description</string> </key>
-            <value> <string>python: object is not None and not object.isWebMode() and (object.getContentType() or \'\').startswith(\'text/\')\n
-</string> </value>
-        </item>
-        <item>
-            <key> <string>icon</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>view_editor</string> </value>
-        </item>
-        <item>
-            <key> <string>permissions</string> </key>
-            <value>
-              <tuple>
-                <string>Modify portal content</string>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>priority</string> </key>
-            <value> <float>1.1</float> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>Edit</string> </value>
-        </item>
-        <item>
-            <key> <string>visible</string> </key>
-            <value> <int>1</int> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="2" aka="AAAAAAAAAAI=">
-    <pickle>
-      <global name="Expression" module="Products.CMFCore.Expression"/>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>string:${object_url}/File_viewEditor</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="3" aka="AAAAAAAAAAM=">
-    <pickle>
-      <global name="Expression" module="Products.CMFCore.Expression"/>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>python: object is not None and (object.getContentType() or \'\').startswith(\'text/\')</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-</ZopeData>

Added: experimental/bt5/erp5_dms_media/ActionTemplateItem/portal_types/Video/preview.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_dms_media/ActionTemplateItem/portal_types/Video/preview.xml?rev=42432&view=auto
==============================================================================
--- experimental/bt5/erp5_dms_media/ActionTemplateItem/portal_types/Video/preview.xml (added)
+++ experimental/bt5/erp5_dms_media/ActionTemplateItem/portal_types/Video/preview.xml [utf8] Tue Jan 18 19:45:20 2011
@@ -0,0 +1,81 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>action</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>categories</string> </key>
+            <value>
+              <tuple>
+                <string>action_type/object_view</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>category</string> </key>
+            <value> <string>object_view</string> </value>
+        </item>
+        <item>
+            <key> <string>condition</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>icon</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>preview</string> </value>
+        </item>
+        <item>
+            <key> <string>permissions</string> </key>
+            <value>
+              <tuple>
+                <string>View</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>priority</string> </key>
+            <value> <float>30.0</float> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>Preview</string> </value>
+        </item>
+        <item>
+            <key> <string>visible</string> </key>
+            <value> <int>1</int> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <global name="Expression" module="Products.CMFCore.Expression"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string>string:${object_url}/Video_viewPreview</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Removed: experimental/bt5/erp5_dms_media/ActionTemplateItem/portal_types/Video/view_editor.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_dms_media/ActionTemplateItem/portal_types/Video/view_editor.xml?rev=42431&view=auto
==============================================================================
--- experimental/bt5/erp5_dms_media/ActionTemplateItem/portal_types/Video/view_editor.xml [utf8] (original)
+++ experimental/bt5/erp5_dms_media/ActionTemplateItem/portal_types/Video/view_editor.xml (removed)
@@ -1,95 +0,0 @@
-<?xml version="1.0"?>
-<ZopeData>
-  <record id="1" aka="AAAAAAAAAAE=">
-    <pickle>
-      <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>action</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>categories</string> </key>
-            <value>
-              <tuple>
-                <string>action_type/object_view</string>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>category</string> </key>
-            <value> <string>object_view</string> </value>
-        </item>
-        <item>
-            <key> <string>condition</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>description</string> </key>
-            <value> <string>python: object is not None and not object.isWebMode() and (object.getContentType() or \'\').startswith(\'text/\')\n
-</string> </value>
-        </item>
-        <item>
-            <key> <string>icon</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>view_editor</string> </value>
-        </item>
-        <item>
-            <key> <string>permissions</string> </key>
-            <value>
-              <tuple>
-                <string>Modify portal content</string>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>priority</string> </key>
-            <value> <float>1.1</float> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>Edit</string> </value>
-        </item>
-        <item>
-            <key> <string>visible</string> </key>
-            <value> <int>1</int> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="2" aka="AAAAAAAAAAI=">
-    <pickle>
-      <global name="Expression" module="Products.CMFCore.Expression"/>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>string:${object_url}/File_viewEditor</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="3" aka="AAAAAAAAAAM=">
-    <pickle>
-      <global name="Expression" module="Products.CMFCore.Expression"/>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>python: object is not None and (object.getContentType() or \'\').startswith(\'text/\')</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-</ZopeData>

Added: experimental/bt5/erp5_dms_media/DocumentTemplateItem/Audio.py
URL: http://svn.erp5.org/experimental/bt5/erp5_dms_media/DocumentTemplateItem/Audio.py?rev=42432&view=auto
==============================================================================
--- experimental/bt5/erp5_dms_media/DocumentTemplateItem/Audio.py (added)
+++ experimental/bt5/erp5_dms_media/DocumentTemplateItem/Audio.py [utf8] Tue Jan 18 19:45:20 2011
@@ -0,0 +1,70 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# Copyright (c) 2002-2006 Nexedi SARL and Contributors. All Rights Reserved.
+#               Gabriel Lima <ciberglo at gmail.com>
+#
+# WARNING: This program as such is intended to be used by professional
+# programmers who take the whole responsability of assessing all potential
+# consequences resulting from its eventual inadequacies and bugs
+# End users who are looking for a ready-to-use solution with commercial
+# garantees and support are strongly adviced to contract a Free Software
+# Service Company
+#
+# This program is Free Software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+#
+##############################################################################
+
+#import tempfile, os
+
+from AccessControl import ClassSecurityInfo
+#from Products.CMFCore.utils import getToolByName, _setCacheHeaders,\
+#    _ViewEmulator
+
+from Products.ERP5Type import Permissions, PropertySheet
+from Products.ERP5.Document.File import File
+
+class Audio(File):
+  """
+  FIXME
+  TODO: Audio is a subclass of Image which is able to
+  extract text? I think it isn't.
+  """
+  # CMF Type Definition
+  meta_type = 'ERP5 Audio'
+  portal_type = 'Audio'
+
+  # Declarative security
+  security = ClassSecurityInfo()
+  security.declareObjectProtected(Permissions.AccessContentsInformation)
+
+  # Default Properties
+  property_sheets = ( PropertySheet.Base
+                    , PropertySheet.XMLObject
+                    , PropertySheet.CategoryCore
+                    , PropertySheet.DublinCore
+                    , PropertySheet.Version
+                    , PropertySheet.Reference
+                    , PropertySheet.Document
+                    , PropertySheet.Data
+                    , PropertySheet.ExternalDocument
+                    , PropertySheet.Url
+                    , PropertySheet.Periodicity
+                    )
+
+  security.declareProtected(Permissions.AccessContentsInformation, 'getContentInformation')
+  def getContentInformation(self):
+    raise NotImplementedError
+

Modified: experimental/bt5/erp5_dms_media/PortalTypePropertySheetTemplateItem/property_sheet_list.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_dms_media/PortalTypePropertySheetTemplateItem/property_sheet_list.xml?rev=42432&r1=42431&r2=42432&view=diff
==============================================================================
--- experimental/bt5/erp5_dms_media/PortalTypePropertySheetTemplateItem/property_sheet_list.xml [utf8] (original)
+++ experimental/bt5/erp5_dms_media/PortalTypePropertySheetTemplateItem/property_sheet_list.xml [utf8] Tue Jan 18 19:45:20 2011
@@ -2,6 +2,9 @@
  <portal_type id="Audio">
   <item>SortIndex</item>
  </portal_type>
+ <portal_type id="Preference">
+  <item>MediaPreference</item>
+ </portal_type>
  <portal_type id="Video">
   <item>SortIndex</item>
  </portal_type>

Added: experimental/bt5/erp5_dms_media/PropertySheetTemplateItem/MediaPreference.py
URL: http://svn.erp5.org/experimental/bt5/erp5_dms_media/PropertySheetTemplateItem/MediaPreference.py?rev=42432&view=auto
==============================================================================
--- experimental/bt5/erp5_dms_media/PropertySheetTemplateItem/MediaPreference.py (added)
+++ experimental/bt5/erp5_dms_media/PropertySheetTemplateItem/MediaPreference.py [utf8] Tue Jan 18 19:45:20 2011
@@ -0,0 +1,46 @@
+##############################################################################
+#
+# Copyright (c) 2005-2009 Nexedi SA and Contributors. All Rights Reserved.
+#                    Gabriel Lima <ciberglo at gmail.com>
+#
+# WARNING: This program as such is intended to be used by professional
+# programmers who take the whole responsability of assessing all potential
+# consequences resulting from its eventual inadequacies and bugs
+# End users who are looking for a ready-to-use solution with commercial
+# garantees and support are strongly adviced to contract a Free Software
+# Service Company
+#
+# This program is Free Software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+#
+##############################################################################
+
+class MediaPreference:
+  """
+    User Media Preference PropertySheet
+  """
+
+  _properties = (
+    { 'id'              : 'preferred_audio_format_selection',
+      'description'     : 'List of possible values for preferred_audio_format_selection',
+      'type'            : 'tokens',
+      'default'         : ['ogg',],
+      'mode'            : 'w'},
+    { 'id'              : 'preferred_video_format_selection',
+      'description'     : 'List of possible values for preferred_video_format_selection',
+      'type'            : 'tokens',
+      'default'         : ['ogv','flv',],
+      'mode'            : 'w'},
+  )
+

Modified: experimental/bt5/erp5_dms_media/SkinTemplateItem/portal_skins/erp5_dms_media/AudioModule_viewAudioList/listbox.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_dms_media/SkinTemplateItem/portal_skins/erp5_dms_media/AudioModule_viewAudioList/listbox.xml?rev=42432&r1=42431&r2=42432&view=diff
==============================================================================
--- experimental/bt5/erp5_dms_media/SkinTemplateItem/portal_skins/erp5_dms_media/AudioModule_viewAudioList/listbox.xml [utf8] (original)
+++ experimental/bt5/erp5_dms_media/SkinTemplateItem/portal_skins/erp5_dms_media/AudioModule_viewAudioList/listbox.xml [utf8] Tue Jan 18 19:45:20 2011
@@ -10,7 +10,7 @@
             <key> <string>delegated_list</string> </key>
             <value>
               <list>
-                <string>portal_type</string>
+                <string>columns</string>
                 <string>selection_name</string>
                 <string>title</string>
               </list>
@@ -74,6 +74,57 @@
             <value>
               <dictionary>
                 <item>
+                    <key> <string>columns</string> </key>
+                    <value>
+                      <list>
+                        <tuple>
+                          <string>title</string>
+                          <string>Title</string>
+                        </tuple>
+                        <tuple>
+                          <string>translated_portal_type</string>
+                          <string>Type</string>
+                        </tuple>
+                        <tuple>
+                          <string>reference</string>
+                          <string>Reference</string>
+                        </tuple>
+                        <tuple>
+                          <string>version</string>
+                          <string>Version</string>
+                        </tuple>
+                        <tuple>
+                          <string>language</string>
+                          <string>Language</string>
+                        </tuple>
+                        <tuple>
+                          <string>revision</string>
+                          <string>Revision</string>
+                        </tuple>
+                        <tuple>
+                          <string>short_title</string>
+                          <string>Short Title</string>
+                        </tuple>
+                        <tuple>
+                          <string>description</string>
+                          <string>Description</string>
+                        </tuple>
+                        <tuple>
+                          <string>int_index</string>
+                          <string>Index</string>
+                        </tuple>
+                        <tuple>
+                          <string>modification_date</string>
+                          <string>Modification Date</string>
+                        </tuple>
+                        <tuple>
+                          <string>translated_validation_state_title</string>
+                          <string>State</string>
+                        </tuple>
+                      </list>
+                    </value>
+                </item>
+                <item>
                     <key> <string>field_id</string> </key>
                     <value> <string>my_list_mode_listbox</string> </value>
                 </item>

Modified: experimental/bt5/erp5_dms_media/SkinTemplateItem/portal_skins/erp5_dms_media/VideoModule_viewVideoList/listbox.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_dms_media/SkinTemplateItem/portal_skins/erp5_dms_media/VideoModule_viewVideoList/listbox.xml?rev=42432&r1=42431&r2=42432&view=diff
==============================================================================
--- experimental/bt5/erp5_dms_media/SkinTemplateItem/portal_skins/erp5_dms_media/VideoModule_viewVideoList/listbox.xml [utf8] (original)
+++ experimental/bt5/erp5_dms_media/SkinTemplateItem/portal_skins/erp5_dms_media/VideoModule_viewVideoList/listbox.xml [utf8] Tue Jan 18 19:45:20 2011
@@ -10,7 +10,7 @@
             <key> <string>delegated_list</string> </key>
             <value>
               <list>
-                <string>portal_type</string>
+                <string>columns</string>
                 <string>selection_name</string>
                 <string>title</string>
               </list>
@@ -74,6 +74,57 @@
             <value>
               <dictionary>
                 <item>
+                    <key> <string>columns</string> </key>
+                    <value>
+                      <list>
+                        <tuple>
+                          <string>title</string>
+                          <string>Title</string>
+                        </tuple>
+                        <tuple>
+                          <string>translated_portal_type</string>
+                          <string>Type</string>
+                        </tuple>
+                        <tuple>
+                          <string>reference</string>
+                          <string>Reference</string>
+                        </tuple>
+                        <tuple>
+                          <string>version</string>
+                          <string>Version</string>
+                        </tuple>
+                        <tuple>
+                          <string>language</string>
+                          <string>Language</string>
+                        </tuple>
+                        <tuple>
+                          <string>revision</string>
+                          <string>Revision</string>
+                        </tuple>
+                        <tuple>
+                          <string>short_title</string>
+                          <string>Short Title</string>
+                        </tuple>
+                        <tuple>
+                          <string>description</string>
+                          <string>Description</string>
+                        </tuple>
+                        <tuple>
+                          <string>int_index</string>
+                          <string>Index</string>
+                        </tuple>
+                        <tuple>
+                          <string>modification_date</string>
+                          <string>Modification Date</string>
+                        </tuple>
+                        <tuple>
+                          <string>translated_validation_state_title</string>
+                          <string>State</string>
+                        </tuple>
+                      </list>
+                    </value>
+                </item>
+                <item>
                     <key> <string>field_id</string> </key>
                     <value> <string>my_list_mode_listbox</string> </value>
                 </item>

Modified: experimental/bt5/erp5_dms_media/bt/change_log
URL: http://svn.erp5.org/experimental/bt5/erp5_dms_media/bt/change_log?rev=42432&r1=42431&r2=42432&view=diff
==============================================================================
--- experimental/bt5/erp5_dms_media/bt/change_log [utf8] (original)
+++ experimental/bt5/erp5_dms_media/bt/change_log [utf8] Tue Jan 18 19:45:20 2011
@@ -1,4 +1,9 @@
 2011-01-18 gabriel.oliveira
+* Changed default properties for VideoField and AudioField.
+* Added new columns to Video Module and Audio Module listbox.
+* Added PropertySheet MediaPreference for default audio and video format selection.
+
+2011-01-18 gabriel.oliveira
 * Personalized Preview action for Video e Audio portal_types, including the new fields Video and Audio.
 
 2011-01-11 gabriel.oliveira

Modified: experimental/bt5/erp5_dms_media/bt/revision
URL: http://svn.erp5.org/experimental/bt5/erp5_dms_media/bt/revision?rev=42432&r1=42431&r2=42432&view=diff
==============================================================================
--- experimental/bt5/erp5_dms_media/bt/revision [utf8] (original)
+++ experimental/bt5/erp5_dms_media/bt/revision [utf8] Tue Jan 18 19:45:20 2011
@@ -1 +1 @@
-14
\ No newline at end of file
+23
\ No newline at end of file

Modified: experimental/bt5/erp5_dms_media/bt/template_action_path_list
URL: http://svn.erp5.org/experimental/bt5/erp5_dms_media/bt/template_action_path_list?rev=42432&r1=42431&r2=42432&view=diff
==============================================================================
--- experimental/bt5/erp5_dms_media/bt/template_action_path_list [utf8] (original)
+++ experimental/bt5/erp5_dms_media/bt/template_action_path_list [utf8] Tue Jan 18 19:45:20 2011
@@ -8,10 +8,10 @@ Audio | jump_to_similarity_cloud
 Audio | jump_to_successor
 Audio | jump_to_wiki_predecessor
 Audio | local_permission
+Audio | preview
 Audio | related_document
 Audio | update_content_from_url
 Audio | view
-Audio | view_editor
 Audio | web_view
 Video Module | view
 Video | download
@@ -23,8 +23,8 @@ Video | jump_to_similarity_cloud
 Video | jump_to_successor
 Video | jump_to_wiki_predecessor
 Video | local_permission
+Video | preview
 Video | related_document
 Video | update_content_from_url
 Video | view
-Video | view_editor
 Video | web_view
\ No newline at end of file

Modified: experimental/bt5/erp5_dms_media/bt/template_document_id_list
URL: http://svn.erp5.org/experimental/bt5/erp5_dms_media/bt/template_document_id_list?rev=42432&r1=42431&r2=42432&view=diff
==============================================================================
--- experimental/bt5/erp5_dms_media/bt/template_document_id_list [utf8] (original)
+++ experimental/bt5/erp5_dms_media/bt/template_document_id_list [utf8] Tue Jan 18 19:45:20 2011
@@ -1 +1,2 @@
+Audio
 Video
\ No newline at end of file

Modified: experimental/bt5/erp5_dms_media/bt/template_portal_type_property_sheet_list
URL: http://svn.erp5.org/experimental/bt5/erp5_dms_media/bt/template_portal_type_property_sheet_list?rev=42432&r1=42431&r2=42432&view=diff
==============================================================================
--- experimental/bt5/erp5_dms_media/bt/template_portal_type_property_sheet_list [utf8] (original)
+++ experimental/bt5/erp5_dms_media/bt/template_portal_type_property_sheet_list [utf8] Tue Jan 18 19:45:20 2011
@@ -1,2 +1,3 @@
 Audio | SortIndex
+Preference | MediaPreference
 Video | SortIndex
\ No newline at end of file

Added: experimental/bt5/erp5_dms_media/bt/template_property_sheet_id_list
URL: http://svn.erp5.org/experimental/bt5/erp5_dms_media/bt/template_property_sheet_id_list?rev=42432&view=auto
==============================================================================
--- experimental/bt5/erp5_dms_media/bt/template_property_sheet_id_list (added)
+++ experimental/bt5/erp5_dms_media/bt/template_property_sheet_id_list [utf8] Tue Jan 18 19:45:20 2011
@@ -0,0 +1 @@
+MediaPreference
\ No newline at end of file



More information about the Erp5-report mailing list