[Erp5-report] r39336 arnaud.fontaine - /erp5/trunk/products/ERP5Type/PropertySheet/
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Oct 19 12:51:23 CEST 2010
Author: arnaud.fontaine
Date: Tue Oct 19 12:51:22 2010
New Revision: 39336
URL: http://svn.erp5.org?rev=39336&view=rev
Log:
Add filesystem Property Sheets for CategoryExistenceConstraint and
PropertyExistenceConstraint required to define ZODB Property Sheets.
Added:
erp5/trunk/products/ERP5Type/PropertySheet/CategoryExistenceConstraint.py
erp5/trunk/products/ERP5Type/PropertySheet/PropertyExistenceConstraint.py
Modified:
erp5/trunk/products/ERP5Type/PropertySheet/AcquiredProperty.py
erp5/trunk/products/ERP5Type/PropertySheet/DynamicCategoryProperty.py
erp5/trunk/products/ERP5Type/PropertySheet/StandardProperty.py
erp5/trunk/products/ERP5Type/PropertySheet/__init__.py
Modified: erp5/trunk/products/ERP5Type/PropertySheet/AcquiredProperty.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/PropertySheet/AcquiredProperty.py?rev=39336&r1=39335&r2=39336&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/PropertySheet/AcquiredProperty.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/PropertySheet/AcquiredProperty.py [utf8] Tue Oct 19 12:51:22 2010
@@ -28,7 +28,7 @@
class AcquiredProperty:
"""
- Define an Acquired Property for new-style Property Sheets
+ Define an Acquired Property for ZODB Property Sheets
"""
_properties = (
{ 'id': 'acquisition_base_category',
Added: erp5/trunk/products/ERP5Type/PropertySheet/CategoryExistenceConstraint.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/PropertySheet/CategoryExistenceConstraint.py?rev=39336&view=auto
==============================================================================
--- erp5/trunk/products/ERP5Type/PropertySheet/CategoryExistenceConstraint.py (added)
+++ erp5/trunk/products/ERP5Type/PropertySheet/CategoryExistenceConstraint.py [utf8] Tue Oct 19 12:51:22 2010
@@ -0,0 +1,46 @@
+##############################################################################
+#
+# Copyright (c) 2010 Nexedi SARL and Contributors. All Rights Reserved.
+# Arnaud Fontaine <arnaud.fontaine at nexedi.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 CategoryExistenceConstraint:
+ """
+ Define a Category Existence Constraint for ZODB Property Sheets
+ """
+ _properties = (
+ { 'id': 'constraint_base_category',
+ 'type': 'lines',
+ 'description' : 'Categories to check the existence for' },
+ { 'id': 'constraint_portal_type',
+ 'type': 'lines',
+ 'description' : 'Portal type' },
+ { 'id': 'message_category_not_set',
+ 'type': 'string',
+ 'description' : 'Error message when the category is not defined' },
+ { 'id': 'message_category_not_associated_with_portal_type',
+ 'type': 'string',
+ 'description' : 'Error message when there is no such category' },
+ )
Modified: erp5/trunk/products/ERP5Type/PropertySheet/DynamicCategoryProperty.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/PropertySheet/DynamicCategoryProperty.py?rev=39336&r1=39335&r2=39336&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/PropertySheet/DynamicCategoryProperty.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/PropertySheet/DynamicCategoryProperty.py [utf8] Tue Oct 19 12:51:22 2010
@@ -28,7 +28,7 @@
class DynamicCategoryProperty:
"""
- Define a Dynamic Category Property for new-style Property Sheets,
+ Define a Dynamic Category Property for ZODB Property Sheets,
meaningful for Property Sheets which defines an Expression within
_categories (only Item and Movement for now)
"""
Added: erp5/trunk/products/ERP5Type/PropertySheet/PropertyExistenceConstraint.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/PropertySheet/PropertyExistenceConstraint.py?rev=39336&view=auto
==============================================================================
--- erp5/trunk/products/ERP5Type/PropertySheet/PropertyExistenceConstraint.py (added)
+++ erp5/trunk/products/ERP5Type/PropertySheet/PropertyExistenceConstraint.py [utf8] Tue Oct 19 12:51:22 2010
@@ -0,0 +1,43 @@
+##############################################################################
+#
+# Copyright (c) 2010 Nexedi SARL and Contributors. All Rights Reserved.
+# Arnaud Fontaine <arnaud.fontaine at nexedi.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 PropertyExistenceConstraint:
+ """
+ Define a Property Existence Constraint for ZODB Property Sheets
+ """
+ _properties = (
+ { 'id': 'constraint_property',
+ 'type': 'lines',
+ 'description' : 'Properties to check the existence for' },
+ { 'id': 'message_no_such_property',
+ 'type': 'lines',
+ 'description' : 'Error message when there is no such property' },
+ { 'id': 'message_property_not_set',
+ 'type': 'lines',
+ 'description' : 'Error message when the property is not set' },
+ )
Modified: erp5/trunk/products/ERP5Type/PropertySheet/StandardProperty.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/PropertySheet/StandardProperty.py?rev=39336&r1=39335&r2=39336&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/PropertySheet/StandardProperty.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/PropertySheet/StandardProperty.py [utf8] Tue Oct 19 12:51:22 2010
@@ -28,7 +28,7 @@
class StandardProperty:
"""
- Define a Standard Property for new-style Property Sheets
+ Define a Standard Property for ZODB Property Sheets
"""
_properties = (
# 'reference' has be used in favor of 'id' because of
Modified: erp5/trunk/products/ERP5Type/PropertySheet/__init__.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/PropertySheet/__init__.py?rev=39336&r1=39335&r2=39336&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/PropertySheet/__init__.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/PropertySheet/__init__.py [utf8] Tue Oct 19 12:51:22 2010
@@ -16,3 +16,5 @@ from StandardProperty import StandardPro
from TranslatableProperty import TranslatableProperty
from AcquiredProperty import AcquiredProperty
from DynamicCategoryProperty import DynamicCategoryProperty
+from CategoryExistenceConstraint import CategoryExistenceConstraint
+from PropertyExistenceConstraint import PropertyExistenceConstraint
More information about the Erp5-report
mailing list