Commit 5d024ff9 authored by Romain Courteaud's avatar Romain Courteaud

Defined correctly Amount (property_sheets, portal_type, meta_type... added).


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2555 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent af6ec08a
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Copyright (c) 2002, 2004 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solanes <jp@nexedi.com>
# Romain Courteaud <romain@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -32,6 +33,7 @@ from Products.ERP5Type import Permissions, PropertySheet, Constraint, Interface
from Products.ERP5Type.Base import Base
from Products.ERP5.VariationValue import VariationValue
from Products.ERP5.Variated import Variated
from Products.ERP5Type.Base import TempBase
from zLOG import LOG
......@@ -48,12 +50,22 @@ class Amount(Base, Variated):
-
"""
meta_type = 'ERP5 Amount'
portal_type = 'Amount'
# Declarative security
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View)
# Declarative interfaces
__implements__ = (Interface.Variated)
property_sheets = ( PropertySheet.Base
, PropertySheet.SimpleItem
, PropertySheet.Amount
, PropertySheet.Price
)
# A few more mix-in methods which should be relocated
# THIS MUST BE UPDATE WITH CATEGORY ACQUISITION
security.declareProtected(Permissions.AccessContentsInformation, 'getVariationCategoryList')
......
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