• Arnaud Fontaine's avatar
    WIP: ZODB Components: Migrate SelectionTool from filesystem. · 03a1712f
    Arnaud Fontaine authored
    TODO:
      + Cannot be merged as Upgrader requires UI access and without Selections
        it is not really useable...
      + Monkey patch FolderMixIn wrapping its method with Selections:
        Products.ERP5Form.SelectionTool.candidate_method_id_list:
         foldDomain
         setFlatListMode
         nextLanePage
         callSelectionFor
         setListboxDisplayMode
         viewPrevious
         setPage
         getSelectionParams
         getSelectionNameList
         checkAll
         setSelectionFor
         setDomainRoot
         getListboxDisplayMode
         setReportRoot
         getSelectionDomainDictFor
         selectionHasChanged
         setSelectionColumns
         getSelectionSortOrder
         setSelectionToAll
         getSelectionCheckedValueList
         getSelectionUidList
         setDomainDictFromParam
         setLanePath
         getSelectionInvertModeUidListFor
         unfoldDomain
         getSelectionIndexFor
         lastPage
         unfoldReport
         getSelectionChecksum
         setReportTreeMode
         setSelectionQuickSortOrder
         foldReport
         getSelectionFor
         previousPage
         setSelectionInvertModeFor
         getSelectionParamsFor
         setSelectionSortOrder
         setSelectionParamsFor
         setDomainRootFromParam
         getSelectionCheckedUidsFor
         getSelectionInvertModeFor
         nextPage
         setDomainTreeMode
         setSelectionToIds
         setSelectionCheckedUidsFor
         getSelectionValueList
         getSelectionListUrlFor
         viewNext
         getSelectionReportDictFor
         uncheckAll
         getSelectionNames
         getSelectionStats
         getSelectionColumns
         previousLanePage
         getSelectionSelectedValueList
         viewFirst
         setSelectionStats
         firstPage
         updateSelectionCheckedUidList
         viewLast
         clearCachedContainer
        => Should perhaps be moved to Folder.py (implemented in SelectionTool to
           avoid ERP5Type depending on ERP5Form: it probably makes no sense anymore
           though...).
      + makeTreeList() and createFolderMixInPageSelectionMethod() used in
        ERP5Form.{PlanningBox,ListBox} but these cannot be migrated (non-ERP5 objects).
      + Products.ERP5Type.tests.testFunctionalAnonymousSelection => erp5_ui_test? What about monkey patch?
      + Fix pylint warnings.
    03a1712f
__init__.py 8.92 KB