Commit ad1fab90 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Add filesystem Property Sheets for CategoryExistenceConstraint and

PropertyExistenceConstraint required to define ZODB Property Sheets.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39336 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0fa05fdd
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
class AcquiredProperty: class AcquiredProperty:
""" """
Define an Acquired Property for new-style Property Sheets Define an Acquired Property for ZODB Property Sheets
""" """
_properties = ( _properties = (
{ 'id': 'acquisition_base_category', { 'id': 'acquisition_base_category',
......
##############################################################################
#
# Copyright (c) 2010 Nexedi SARL and Contributors. All Rights Reserved.
# Arnaud Fontaine <arnaud.fontaine@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' },
)
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
class DynamicCategoryProperty: 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 meaningful for Property Sheets which defines an Expression within
_categories (only Item and Movement for now) _categories (only Item and Movement for now)
""" """
......
##############################################################################
#
# Copyright (c) 2010 Nexedi SARL and Contributors. All Rights Reserved.
# Arnaud Fontaine <arnaud.fontaine@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' },
)
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
class StandardProperty: class StandardProperty:
""" """
Define a Standard Property for new-style Property Sheets Define a Standard Property for ZODB Property Sheets
""" """
_properties = ( _properties = (
# 'reference' has be used in favor of 'id' because of # 'reference' has be used in favor of 'id' because of
......
...@@ -16,3 +16,5 @@ from StandardProperty import StandardProperty ...@@ -16,3 +16,5 @@ from StandardProperty import StandardProperty
from TranslatableProperty import TranslatableProperty from TranslatableProperty import TranslatableProperty
from AcquiredProperty import AcquiredProperty from AcquiredProperty import AcquiredProperty
from DynamicCategoryProperty import DynamicCategoryProperty from DynamicCategoryProperty import DynamicCategoryProperty
from CategoryExistenceConstraint import CategoryExistenceConstraint
from PropertyExistenceConstraint import PropertyExistenceConstraint
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment