Commit 4bff4ffd authored by Rafael Monnerat's avatar Rafael Monnerat

BugTracker was refactored. In the new design, Bug is a Ticket and Messages (Bug Lines) are events following a similar design of CRM. If you update only Bug.py, it will not require use data migration (it is expected not). 

If you update erp5_forge, one script is provided (at forge) to migrate old contents to the new design. BugModule_migrate in erp5_forge bt5, run the migration throw activities.

See UpdateNote to get more details of migration.   



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22733 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 18c2fb4c
...@@ -29,40 +29,35 @@ ...@@ -29,40 +29,35 @@
from AccessControl import ClassSecurityInfo from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet, Constraint, Interface from Products.ERP5Type import Permissions, PropertySheet, Constraint, Interface
from Products.ERP5Type.Core.Folder import Folder from Products.ERP5.Document.Ticket import Ticket
from Products.ERP5Type.XMLObject import XMLObject
from zLOG import LOG class Bug(Ticket):
class Bug(XMLObject, Folder):
"""
Bug means a bug report, a feature request or an issue.
""" """
LEGACY
# Default Properties This class is superceded by the Ticket class. Legacy
property_sheets = ( PropertySheet.Base Bug data should still be usable.
, PropertySheet.XMLObject """
, PropertySheet.CategoryCore
, PropertySheet.DublinCore
, PropertySheet.Task
, PropertySheet.Arrow
, PropertySheet.Bug
)
# CMF Type Definition meta_type = 'ERP5 Bug'
meta_type='ERP5 Bug' portal_type = 'Bug'
portal_type='Bug'
add_permission = Permissions.AddPortalContent add_permission = Permissions.AddPortalContent
isPortalContent = 1 isPortalContent = 1
isRADContent = 1 isRADContent = 1
isDelivery = 1
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.AccessContentsInformation) security.declareObjectProtected(Permissions.AccessContentsInformation)
def SearchableText(self): # Declarative properties
""" Used by the catalog for basic full text indexing """ property_sheets = ( PropertySheet.Base
return """ %s %s %s """ % ( self.getTitle(), , PropertySheet.XMLObject
self.getDescription(), , PropertySheet.CategoryCore
self.Bug_getFollowUpListAsText() ) , PropertySheet.DublinCore
, PropertySheet.Amount
, PropertySheet.Arrow
, PropertySheet.Price
, PropertySheet.Movement
, PropertySheet.Bug
)
This diff is collapsed.
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