[Erp5-report] r38410 fx.algrain - in /experimental/bt5/erp5_credential: PortalTypePropertyS...
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Sep 16 11:09:12 CEST 2010
Author: fx.algrain
Date: Thu Sep 16 11:09:11 2010
New Revision: 38410
URL: http://svn.erp5.org?rev=38410&view=rev
Log:
Add a propety sheet to Credential Request to be able to define corporate name and the birthday.
This two elements are found very often in registration form
Added:
experimental/bt5/erp5_credential/PropertySheetTemplateItem/CredentialRequest.py
Modified:
experimental/bt5/erp5_credential/PortalTypePropertySheetTemplateItem/property_sheet_list.xml
experimental/bt5/erp5_credential/bt/revision
experimental/bt5/erp5_credential/bt/template_portal_type_property_sheet_list
experimental/bt5/erp5_credential/bt/template_property_sheet_id_list
Modified: experimental/bt5/erp5_credential/PortalTypePropertySheetTemplateItem/property_sheet_list.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/PortalTypePropertySheetTemplateItem/property_sheet_list.xml?rev=38410&r1=38409&r2=38410&view=diff
==============================================================================
--- experimental/bt5/erp5_credential/PortalTypePropertySheetTemplateItem/property_sheet_list.xml [utf8] (original)
+++ experimental/bt5/erp5_credential/PortalTypePropertySheetTemplateItem/property_sheet_list.xml [utf8] Thu Sep 16 11:09:11 2010
@@ -2,6 +2,9 @@
<portal_type id="Credential Question">
<item>CredentialQuestion</item>
</portal_type>
+ <portal_type id="Credential Request">
+ <item>CredentialRequest</item>
+ </portal_type>
<portal_type id="Person">
<item>DefaultCredentialQuestion</item>
</portal_type>
Added: experimental/bt5/erp5_credential/PropertySheetTemplateItem/CredentialRequest.py
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/PropertySheetTemplateItem/CredentialRequest.py?rev=38410&view=auto
==============================================================================
--- experimental/bt5/erp5_credential/PropertySheetTemplateItem/CredentialRequest.py (added)
+++ experimental/bt5/erp5_credential/PropertySheetTemplateItem/CredentialRequest.py [utf8] Thu Sep 16 11:09:11 2010
@@ -0,0 +1,44 @@
+##############################################################################
+#
+# Copyright (c) 2002-2010 Nexedi SA and Contributors. All Rights Reserved.
+#
+# WARNING: This program as such is intended to be used by professional
+# programmers who take the whole responsibility 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
+# guarantees 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+##############################################################################
+
+class CredentialRequest:
+ """
+ CredentialRequest property sheet
+ """
+ _properties = (
+ { 'id' : 'birthday',
+ 'description' : 'Date of birth',
+ 'type' : 'date',
+ 'mode' : 'w',
+ },
+ { 'id' : 'corporate_name',
+ 'description' : 'The official name of this organisation',
+ 'type' : 'string',
+ 'mode' : 'w'
+ },
+ )
+
Modified: experimental/bt5/erp5_credential/bt/revision
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/bt/revision?rev=38410&r1=38409&r2=38410&view=diff
==============================================================================
--- experimental/bt5/erp5_credential/bt/revision [utf8] (original)
+++ experimental/bt5/erp5_credential/bt/revision [utf8] Thu Sep 16 11:09:11 2010
@@ -1 +1 @@
-141
\ No newline at end of file
+142
\ No newline at end of file
Modified: experimental/bt5/erp5_credential/bt/template_portal_type_property_sheet_list
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/bt/template_portal_type_property_sheet_list?rev=38410&r1=38409&r2=38410&view=diff
==============================================================================
--- experimental/bt5/erp5_credential/bt/template_portal_type_property_sheet_list [utf8] (original)
+++ experimental/bt5/erp5_credential/bt/template_portal_type_property_sheet_list [utf8] Thu Sep 16 11:09:11 2010
@@ -1,2 +1,3 @@
Credential Question | CredentialQuestion
+Credential Request | CredentialRequest
Person | DefaultCredentialQuestion
\ No newline at end of file
Modified: experimental/bt5/erp5_credential/bt/template_property_sheet_id_list
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/bt/template_property_sheet_id_list?rev=38410&r1=38409&r2=38410&view=diff
==============================================================================
--- experimental/bt5/erp5_credential/bt/template_property_sheet_id_list [utf8] (original)
+++ experimental/bt5/erp5_credential/bt/template_property_sheet_id_list [utf8] Thu Sep 16 11:09:11 2010
@@ -1,2 +1,3 @@
CredentialQuestion
-DefaultCredentialQuestion
\ No newline at end of file
+DefaultCredentialQuestion
+CredentialRequest
\ No newline at end of file
More information about the Erp5-report
mailing list