Commit b096a431 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Addes target_solver type for portal type groups.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30275 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 30aa4cef
# -*- coding: utf-8 -*-
############################################################################## ##############################################################################
# #
# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved. # Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
...@@ -1057,6 +1058,14 @@ class ERP5Site(FolderMixIn, CMFSite): ...@@ -1057,6 +1058,14 @@ class ERP5Site(FolderMixIn, CMFSite):
""" """
return self._getPortalGroupedTypeList('divergence_tester') return self._getPortalGroupedTypeList('divergence_tester')
security.declareProtected(Permissions.AccessContentsInformation,
'getPortalTargetSolverTypeList')
def getPortalTargetSolverTypeList(self):
"""
Return target solver types.
"""
return self._getPortalGroupedTypeList('target_solver')
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'getPortalCalendarPeriodTypeList') 'getPortalCalendarPeriodTypeList')
def getPortalCalendarPeriodTypeList(self): def getPortalCalendarPeriodTypeList(self):
......
# -*- coding: utf-8 -*-
############################################################################## ##############################################################################
# #
# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved. # Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
...@@ -259,8 +260,10 @@ class ERP5TypeInformation(XMLObject, ...@@ -259,8 +260,10 @@ class ERP5TypeInformation(XMLObject,
'document', 'web_document', 'file_document', 'document', 'web_document', 'file_document',
'recent_document', 'my_document', 'template_document', 'recent_document', 'my_document', 'template_document',
'crawler_index', 'crawler_index',
# Solvers and simulation
'divergence_tester', 'target_solver',
# MRP # MRP
'divergence_tester', 'calendar_period', 'calendar_period',
# Project # Project
'project', 'project',
# budget # budget
......
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