[Erp5-report] r30610 - /erp5/trunk/products/ERP5/PropertySheet/SolverSelection.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Nov 13 23:30:50 CET 2009
Author: jp
Date: Fri Nov 13 23:30:50 2009
New Revision: 30610
URL: http://svn.erp5.org?rev=30610&view=rev
Log:
Temporary version (aq properties are useless - only the solver category is useful)
Modified:
erp5/trunk/products/ERP5/PropertySheet/SolverSelection.py
Modified: erp5/trunk/products/ERP5/PropertySheet/SolverSelection.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/PropertySheet/SolverSelection.py?rev=30610&r1=30609&r2=30610&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/PropertySheet/SolverSelection.py [utf8] (original)
+++ erp5/trunk/products/ERP5/PropertySheet/SolverSelection.py [utf8] Fri Nov 13 23:30:50 2009
@@ -27,26 +27,34 @@
#
##############################################################################
+from Products.CMFCore.Expression import Expression
class SolverSelection:
"""
Solver Selection provides provides properties to
- store a selection of solver portal types. It uses
- for now lines property type but will later use
- categories (since portal types are portal types).
+ store a selection of solver portal types.
"""
_properties = (
- { 'id' : 'delivery_solver',
- 'description' : 'Applicable Deliver Solver Portal Types',
- 'type' : 'lines',
- 'default' : (),
- 'mode' : 'w' },
- { 'id' : 'target_solver',
- 'description' : 'Applicable Target Solver Portal Types',
- 'type' : 'lines',
- 'default' : (),
- 'mode' : 'w' },
+ # XXX - this can not work and must be moved to MixIn (pt of pt)
+ { 'id' : 'delivery_solver_id',
+ 'description' : 'The ID the delivery solver which is selected',
+ 'type' : 'string',
+ 'acquisition_base_category' : ('solver',),
+ 'acquisition_portal_type' : Expression('python:portal.getPortalDeliverySolverTypeList()'),
+ 'acquisition_copy_value' : 0,
+ 'acquisition_accessor_id' : 'getId',
+ 'acquisition_depends' : None,
+ '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',)
More information about the Erp5-report
mailing list