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

Temporary version (aq properties are useless - only the solver category is useful)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30610 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c54d8593
...@@ -27,26 +27,34 @@ ...@@ -27,26 +27,34 @@
# #
############################################################################## ##############################################################################
from Products.CMFCore.Expression import Expression
class SolverSelection: class SolverSelection:
""" """
Solver Selection provides provides properties to Solver Selection provides provides properties to
store a selection of solver portal types. It uses store a selection of solver portal types.
for now lines property type but will later use
categories (since portal types are portal types).
""" """
_properties = ( _properties = (
{ 'id' : 'delivery_solver', # XXX - this can not work and must be moved to MixIn (pt of pt)
'description' : 'Applicable Deliver Solver Portal Types', { 'id' : 'delivery_solver_id',
'type' : 'lines', 'description' : 'The ID the delivery solver which is selected',
'default' : (), 'type' : 'string',
'mode' : 'w' }, 'acquisition_base_category' : ('solver',),
{ 'id' : 'target_solver', 'acquisition_portal_type' : Expression('python:portal.getPortalDeliverySolverTypeList()'),
'description' : 'Applicable Target Solver Portal Types', 'acquisition_copy_value' : 0,
'type' : 'lines', 'acquisition_accessor_id' : 'getId',
'default' : (), 'acquisition_depends' : None,
'mode' : 'w' }, 'mode' : 'r' },
{ 'id' : 'target_solver_id',
'description' : 'The title of the source organisation of this movement',
'type' : 'string',
'acquisition_base_category' : ('solver',),
'acquisition_portal_type' : Expression('python:portal.getPortalTargetSolverTypeList()'),
'acquisition_copy_value' : 0,
'acquisition_accessor_id' : 'getId',
'acquisition_depends' : None,
'mode' : 'r' },
) )
_categories = ('solver',) _categories = ('solver',)
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