diff --git a/bt5/vifib_base/PortalTypePropertySheetTemplateItem/property_sheet_list.xml b/bt5/vifib_base/PortalTypePropertySheetTemplateItem/property_sheet_list.xml index dc0a3ffd0d5f7cc5ff59c1ace5dbedc694a3b804..6c1fee8c374e0e5bc173e2f248a5668effa52cde 100644 --- a/bt5/vifib_base/PortalTypePropertySheetTemplateItem/property_sheet_list.xml +++ b/bt5/vifib_base/PortalTypePropertySheetTemplateItem/property_sheet_list.xml @@ -1,7 +1,4 @@ <property_sheet_list> - <portal_type id="Purchase Packing List Line"> - <item>VifibPurchasePackingListLineConstraint</item> - </portal_type> <portal_type id="Sale Packing List Line"> <item>VifibSalePackingListLineConstraint</item> </portal_type> diff --git a/bt5/vifib_base/PropertySheetTemplateItem/VifibPurchasePackingListLineConstraint.py b/bt5/vifib_base/PropertySheetTemplateItem/VifibPurchasePackingListLineConstraint.py deleted file mode 100644 index 62607e322b1d7ee5a18e6997b6ed9c1393dfb43f..0000000000000000000000000000000000000000 --- a/bt5/vifib_base/PropertySheetTemplateItem/VifibPurchasePackingListLineConstraint.py +++ /dev/null @@ -1,53 +0,0 @@ -############################################################################## -# -# Copyright (c) 2002-2010 Nexedi SA and Contributors. All Rights Reserved. -# Lukasz Nowak <luke@nexedi.com> -# -# 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. -# -############################################################################## - -message = 'There should be exactly one ${portal_type} present in Items' -class VifibPurchasePackingListLineConstraint: - """Constraints for Sale Packing List Line in Vifib""" - _constraints = ( - { 'id' : 'purchase_packing_list_line_aggregate_computer', - 'condition' : 'python: object.getResourceValue() is not None and object.getResource() == object.portal_preferences.getPreferredSoftwareSetupResource()', - 'type' : 'CategoryMembershipArity', - 'min_arity' : '1', - 'max_arity' : '1', - 'portal_type' : 'Computer', - 'base_category' : ('aggregate'), - 'message_arity_with_portal_type_to_small': message, - 'message_arity_with_portal_type_not_in_range': message, - }, - { 'id' : 'purchase_packing_list_line_aggregate_software_release', - 'condition' : 'python: object.getResourceValue() is not None and object.getResource() == object.portal_preferences.getPreferredSoftwareSetupResource()', - 'type' : 'CategoryMembershipArity', - 'min_arity' : '1', - 'max_arity' : '1', - 'portal_type' : 'Software Release', - 'base_category' : ('aggregate'), - 'message_arity_with_portal_type_to_small': message, - 'message_arity_with_portal_type_not_in_range': message, - }, - ) diff --git a/bt5/vifib_base/bt/revision b/bt5/vifib_base/bt/revision index 83981c0e3aabbb291048f2d619c53f3bb686f5c7..a6b4ce84014c146e09687bcb2615f45705efc402 100644 --- a/bt5/vifib_base/bt/revision +++ b/bt5/vifib_base/bt/revision @@ -1 +1 @@ -175 \ No newline at end of file +176 \ No newline at end of file diff --git a/bt5/vifib_base/bt/template_portal_type_property_sheet_list b/bt5/vifib_base/bt/template_portal_type_property_sheet_list index 9cd76973b2e9f7a4a061341063aed99af79877e2..cd43a11b688a0b7f268f9901db6e87850ca8147e 100644 --- a/bt5/vifib_base/bt/template_portal_type_property_sheet_list +++ b/bt5/vifib_base/bt/template_portal_type_property_sheet_list @@ -1,4 +1,3 @@ -Purchase Packing List Line | VifibPurchasePackingListLineConstraint Sale Packing List Line | VifibSalePackingListLineConstraint Software Instance | Reference Software Instance | SoftwareInstance diff --git a/bt5/vifib_base/bt/template_property_sheet_id_list b/bt5/vifib_base/bt/template_property_sheet_id_list index 3845bec11355f8f9a2ab9ec9bb0eb4dfb4fb4081..616984b60fedaa5ab135b447396775c75fd37896 100644 --- a/bt5/vifib_base/bt/template_property_sheet_id_list +++ b/bt5/vifib_base/bt/template_property_sheet_id_list @@ -1,4 +1,3 @@ SoftwareInstanceConstraint SoftwareInstance -VifibSalePackingListLineConstraint -VifibPurchasePackingListLineConstraint \ No newline at end of file +VifibSalePackingListLineConstraint \ No newline at end of file