Commit aab1e367 authored by Jérome Perrin's avatar Jérome Perrin

all documents having categories must use CategoryCore property sheet, because

updateRelatedContent in CategoryTool calls edit(categories= which only works
with this property sheet


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27469 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b5f467e6
...@@ -60,6 +60,7 @@ class BankAccount(Folder, Coordinate, MetaNode): ...@@ -60,6 +60,7 @@ class BankAccount(Folder, Coordinate, MetaNode):
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
, PropertySheet.SimpleItem , PropertySheet.SimpleItem
, PropertySheet.CategoryCore
, PropertySheet.Task , PropertySheet.Task
, PropertySheet.Resource , PropertySheet.Resource
, PropertySheet.Reference , PropertySheet.Reference
......
...@@ -46,6 +46,7 @@ class Budget(Predicate, Variated): ...@@ -46,6 +46,7 @@ class Budget(Predicate, Variated):
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
, PropertySheet.XMLObject , PropertySheet.XMLObject
, PropertySheet.SimpleItem , PropertySheet.SimpleItem
, PropertySheet.CategoryCore
, PropertySheet.Folder , PropertySheet.Folder
, PropertySheet.Predicate , PropertySheet.Predicate
, PropertySheet.SortIndex , PropertySheet.SortIndex
......
...@@ -47,6 +47,7 @@ class BudgetLine(Predicate, XMLMatrix, Variated): ...@@ -47,6 +47,7 @@ class BudgetLine(Predicate, XMLMatrix, Variated):
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
, PropertySheet.XMLObject , PropertySheet.XMLObject
, PropertySheet.SimpleItem , PropertySheet.SimpleItem
, PropertySheet.CategoryCore
, PropertySheet.Folder , PropertySheet.Folder
, PropertySheet.Predicate , PropertySheet.Predicate
, PropertySheet.SortIndex , PropertySheet.SortIndex
......
...@@ -38,6 +38,7 @@ class BudgetModel(Predicate): ...@@ -38,6 +38,7 @@ class BudgetModel(Predicate):
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
, PropertySheet.XMLObject , PropertySheet.XMLObject
, PropertySheet.SimpleItem , PropertySheet.SimpleItem
, PropertySheet.CategoryCore
, PropertySheet.Folder , PropertySheet.Folder
, PropertySheet.Predicate , PropertySheet.Predicate
, PropertySheet.SortIndex , PropertySheet.SortIndex
......
...@@ -42,6 +42,7 @@ class BudgetTransfer(Supply): ...@@ -42,6 +42,7 @@ class BudgetTransfer(Supply):
# Default Properties # Default Properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
, PropertySheet.XMLObject , PropertySheet.XMLObject
, PropertySheet.CategoryCore
, PropertySheet.Folder , PropertySheet.Folder
, PropertySheet.Task , PropertySheet.Task
, PropertySheet.Arrow , PropertySheet.Arrow
......
...@@ -44,6 +44,7 @@ class BudgetTransferLine(SupplyLine): ...@@ -44,6 +44,7 @@ class BudgetTransferLine(SupplyLine):
# Default Properties # Default Properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
, PropertySheet.XMLObject , PropertySheet.XMLObject
, PropertySheet.CategoryCore
, PropertySheet.Amount , PropertySheet.Amount
, PropertySheet.Task , PropertySheet.Task
, PropertySheet.Arrow , PropertySheet.Arrow
......
...@@ -44,6 +44,7 @@ class BudgetVariation(Predicate): ...@@ -44,6 +44,7 @@ class BudgetVariation(Predicate):
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
, PropertySheet.XMLObject , PropertySheet.XMLObject
, PropertySheet.SimpleItem , PropertySheet.SimpleItem
, PropertySheet.CategoryCore
, PropertySheet.SortIndex , PropertySheet.SortIndex
, PropertySheet.Path , PropertySheet.Path
, PropertySheet.Predicate , PropertySheet.Predicate
......
...@@ -39,6 +39,7 @@ class CategoryBudgetVariation(BudgetVariation): ...@@ -39,6 +39,7 @@ class CategoryBudgetVariation(BudgetVariation):
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
, PropertySheet.XMLObject , PropertySheet.XMLObject
, PropertySheet.SimpleItem , PropertySheet.SimpleItem
, PropertySheet.CategoryCore
, PropertySheet.SortIndex , PropertySheet.SortIndex
, PropertySheet.Path , PropertySheet.Path
, PropertySheet.Predicate , PropertySheet.Predicate
......
...@@ -89,6 +89,7 @@ class Domain(Predicate, MetaNode, MetaResource): ...@@ -89,6 +89,7 @@ class Domain(Predicate, MetaNode, MetaResource):
, PropertySheet.Predicate , PropertySheet.Predicate
, PropertySheet.Domain , PropertySheet.Domain
, PropertySheet.SortIndex , PropertySheet.SortIndex
, PropertySheet.CategoryCore
) )
security.declareProtected( Permissions.AccessContentsInformation, 'getRelativeUrl' ) security.declareProtected( Permissions.AccessContentsInformation, 'getRelativeUrl' )
......
...@@ -60,6 +60,7 @@ class GeographicAddress(Coordinate, Base): ...@@ -60,6 +60,7 @@ class GeographicAddress(Coordinate, Base):
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
, PropertySheet.SimpleItem , PropertySheet.SimpleItem
, PropertySheet.CategoryCore
, PropertySheet.GeographicAddress , PropertySheet.GeographicAddress
) )
......
...@@ -54,6 +54,7 @@ class InternetProtocolAddress(Base, Coordinate): ...@@ -54,6 +54,7 @@ class InternetProtocolAddress(Base, Coordinate):
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
, PropertySheet.SimpleItem , PropertySheet.SimpleItem
, PropertySheet.CategoryCore
, PropertySheet.InternetProtocolAddress , PropertySheet.InternetProtocolAddress
) )
......
...@@ -67,6 +67,7 @@ class MailMessage(Event, CMFMailInMessage): ...@@ -67,6 +67,7 @@ class MailMessage(Event, CMFMailInMessage):
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
, PropertySheet.XMLObject , PropertySheet.XMLObject
, PropertySheet.DublinCore , PropertySheet.DublinCore
, PropertySheet.CategoryCore
, PropertySheet.Task , PropertySheet.Task
, PropertySheet.Arrow , PropertySheet.Arrow
, PropertySheet.Movement , PropertySheet.Movement
......
...@@ -188,6 +188,7 @@ class Movement(XMLObject, Amount): ...@@ -188,6 +188,7 @@ class Movement(XMLObject, Amount):
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
, PropertySheet.SimpleItem , PropertySheet.SimpleItem
, PropertySheet.CategoryCore
, PropertySheet.Amount , PropertySheet.Amount
, PropertySheet.Task , PropertySheet.Task
, PropertySheet.Arrow , PropertySheet.Arrow
......
...@@ -39,7 +39,8 @@ class PeriodicityLineMixin(PeriodicityMixin): ...@@ -39,7 +39,8 @@ class PeriodicityLineMixin(PeriodicityMixin):
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.AccessContentsInformation) security.declareObjectProtected(Permissions.AccessContentsInformation)
property_sheets = (PropertySheet.PeriodicityTerm,) property_sheets = ( PropertySheet.PeriodicityTerm,
PropertySheet.CategoryCore, )
security.declareProtected(Permissions.AccessContentsInformation, 'getPeriodicityTermStopDate') security.declareProtected(Permissions.AccessContentsInformation, 'getPeriodicityTermStopDate')
def getPeriodicityTermStopDate(self, start_date, default=None): def getPeriodicityTermStopDate(self, start_date, default=None):
......
...@@ -76,6 +76,7 @@ class Predicate(XMLObject, Folder): ...@@ -76,6 +76,7 @@ class Predicate(XMLObject, Folder):
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
, PropertySheet.Predicate , PropertySheet.Predicate
, PropertySheet.CategoryCore
, PropertySheet.SortIndex , PropertySheet.SortIndex
) )
......
...@@ -64,6 +64,7 @@ class Telephone(Coordinate, Base): ...@@ -64,6 +64,7 @@ class Telephone(Coordinate, Base):
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
, PropertySheet.SimpleItem , PropertySheet.SimpleItem
, PropertySheet.CategoryCore
, PropertySheet.Telephone , PropertySheet.Telephone
) )
# This is a list of regex. # This is a list of regex.
......
...@@ -56,6 +56,7 @@ class TradeModelCell(TradeModelLine, MappedValue): ...@@ -56,6 +56,7 @@ class TradeModelCell(TradeModelLine, MappedValue):
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
, PropertySheet.SimpleItem , PropertySheet.SimpleItem
, PropertySheet.CategoryCore
, PropertySheet.Amount , PropertySheet.Amount
, PropertySheet.Price , PropertySheet.Price
, PropertySheet.TradeModelLine , PropertySheet.TradeModelLine
......
...@@ -56,6 +56,7 @@ class TradeModelLine(Predicate, XMLMatrix, Amount): ...@@ -56,6 +56,7 @@ class TradeModelLine(Predicate, XMLMatrix, Amount):
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
, PropertySheet.SimpleItem , PropertySheet.SimpleItem
, PropertySheet.CategoryCore
, PropertySheet.Amount , PropertySheet.Amount
, PropertySheet.Price , PropertySheet.Price
, PropertySheet.TradeModelLine , PropertySheet.TradeModelLine
......
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