Commit 94e32900 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Removed Factory Type Information

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10046 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 845b717b
......@@ -43,6 +43,7 @@ class ProjectReport(Delivery):
The amount of time on a particular project relates to a client.
A expense relates to a project.
OUTPHASED BY TASK REPORT
"""
meta_type = 'ERP5 Project Report'
......@@ -67,48 +68,3 @@ class ProjectReport(Delivery):
# Declarative Interface
__implements__ = ( )
# Factory Type Information
factory_type_information = \
{ 'id' : portal_type
, 'meta_type' : meta_type
, 'description' : 'Use Project Report to track times and expenses in a consulting firm'
, 'icon' : 'document_icon.gif'
, 'product' : 'ERP5'
, 'factory' : 'addProjectReport'
, 'immediate_view' : 'project_report_view'
, 'allow_discussion' : 1
, 'allowed_content_types': ('Delivery Line',
)
, 'actions' :
( { 'id' : 'view'
, 'name' : 'View'
, 'action' : 'project_report_view'
, 'category' : 'object_view'
, 'permissions' : (
Permissions.View, )
}
, { 'id' : 'print'
, 'name' : 'Print'
, 'action' : 'project_report_print'
, 'category' : 'object_print'
, 'permissions' : (
Permissions.View, )
}
, { 'id' : 'metadata'
, 'name' : 'Metadata'
, 'action' : 'metadata_edit'
, 'category' : 'object_view'
, 'permissions' : (
Permissions.ModifyPortalContent, )
}
, { 'id' : 'translate'
, 'name' : 'Translate'
, 'action' : 'translation_template'
, 'category' : 'object_action'
, 'permissions' : (
Permissions.View, )
}
)
}
......@@ -58,60 +58,6 @@ class SetPricing(MappedValue, XMLMatrix):
, PropertySheet.Pricing
)
# Factory Type Information
factory_type_information = \
{ 'id' : portal_type
, 'meta_type' : meta_type
, 'description' : """\
Une ligne tarifaire."""
, 'icon' : 'pricing_icon.gif'
, 'product' : 'ERP5'
, 'factory' : 'addPricing'
, 'immediate_view' : 'pricing_view'
, 'allow_discussion' : 1
, 'allowed_content_types': ('',
)
, 'filter_content_types' : 1
, 'global_allow' : 1
, 'actions' :
( { 'id' : 'view'
, 'name' : 'View'
, 'category' : 'object_view'
, 'action' : 'pricing_view'
, 'permissions' : (
Permissions.View, )
}
, { 'id' : 'list'
, 'name' : 'Object Contents'
, 'category' : 'object_action'
, 'action' : 'folder_contents'
, 'permissions' : (
Permissions.View, )
}
, { 'id' : 'print'
, 'name' : 'Print'
, 'category' : 'object_print'
, 'action' : 'pricing_print'
, 'permissions' : (
Permissions.View, )
}
, { 'id' : 'metadata'
, 'name' : 'Metadata'
, 'category' : 'object_view'
, 'action' : 'metadata_edit'
, 'permissions' : (
Permissions.View, )
}
, { 'id' : 'translate'
, 'name' : 'Translate'
, 'category' : 'object_action'
, 'action' : 'translation_template_view'
, 'permissions' : (
Permissions.TranslateContent, )
}
)
}
security.declareProtected(Permissions.ModifyPortalContent, '_setQuantityRangeList')
def _setQuantityRangeList(self, category_list):
"""
......
......@@ -62,57 +62,3 @@ class Transaction(Delivery):
, PropertySheet.Reference
)
# CMF Factory Type Information
factory_type_information = \
{ 'id' : portal_type
, 'meta_type' : meta_type
, 'description' : """\
An order..."""
, 'icon' : 'transaction_icon.gif'
, 'product' : 'ERP5'
, 'factory' : 'addTransaction'
, 'immediate_view' : 'transaction_view'
, 'allow_discussion' : 1
, 'allowed_content_types': ('Movement',
)
, 'filter_content_types' : 1
, 'global_allow' : 1
, 'actions' :
( { 'id' : 'view'
, 'name' : 'View'
, 'category' : 'object_view'
, 'action' : 'transaction_view'
, 'permissions' : (
Permissions.View, )
}
, { 'id' : 'list'
, 'name' : 'Object Contents'
, 'category' : 'object_action'
, 'action' : 'folder_contents'
, 'permissions' : (
Permissions.View, )
}
, { 'id' : 'print'
, 'name' : 'Print'
, 'category' : 'object_print'
, 'action' : 'transaction_print'
, 'permissions' : (
Permissions.View, )
}
, { 'id' : 'metadata'
, 'name' : 'Metadata'
, 'category' : 'object_view'
, 'action' : 'metadata_edit'
, 'permissions' : (
Permissions.View, )
}
, { 'id' : 'translate'
, 'name' : 'Translate'
, 'category' : 'object_action'
, 'action' : 'translation_template_view'
, 'permissions' : (
Permissions.TranslateContent, )
}
)
}
......@@ -67,49 +67,6 @@ class VariatedProperty(XMLObject, XMLMatrix):
# Declarative interfaces
__implements__ = ( Interface.Variated, )
# Factory Type Information
factory_type_information = \
{ 'id' : portal_type
, 'meta_type' : meta_type
, 'description' : """\
A VariatedProperty."""
, 'icon' : 'variated_reference_icon.gif'
, 'product' : 'ERP5'
, 'factory' : 'addVariatedProperty'
, 'immediate_view' : 'variated_property_view'
, 'actions' :
( { 'id' : 'view'
, 'name' : 'View'
, 'category' : 'object_view'
, 'action' : 'variated_property_view'
, 'permissions' : (
Permissions.View, )
}
, { 'id' : 'print'
, 'name' : 'Print'
, 'category' : 'object_print'
, 'action' : 'variated_reference_print'
, 'permissions' : (
Permissions.View, )
}
, { 'id' : 'metadata'
, 'name' : 'Metadata'
, 'category' : 'object_view'
, 'action' : 'metadata_edit'
, 'permissions' : (
Permissions.View, )
}
, { 'id' : 'translate'
, 'name' : 'Translate'
, 'category' : 'object_action'
, 'action' : 'translation_template_view'
, 'permissions' : (
Permissions.TranslateContent, )
}
)
}
security.declareProtected( Permissions.ModifyPortalContent, 'newCellContent' )
def newCellContent(self, id, **kw):
"""
......
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