Commit 869880bf authored by Łukasz Nowak's avatar Łukasz Nowak

- move SelectionTool from ERP5Form product to its Tool directory

 - refactor code to reflect this change


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29938 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3240ae49
......@@ -34,7 +34,7 @@ from Products.Formulator import Widget, Validator
from Products.Formulator.Field import ZMIField
from Products.Formulator.Errors import FormValidationError, ValidationError
from Selection import Selection, DomainSelection
from SelectionTool import createFolderMixInPageSelectionMethod
from Tool.SelectionTool import createFolderMixInPageSelectionMethod
from Products.ERP5Type.Utils import getPath
from Products.ERP5Type.Document import newTempBase
from Products.CMFCore.utils import getToolByName
......
......@@ -46,7 +46,7 @@ from Products.Formulator.Field import ZMIField
from Products.Formulator.DummyField import fields
from Products.Formulator import Widget, Validator
from Products.Formulator.Errors import FormValidationError, ValidationError
from SelectionTool import makeTreeList
from Tool.SelectionTool import makeTreeList
from Selection import Selection
from AccessControl import ClassSecurityInfo
from zLOG import LOG
......
......@@ -39,7 +39,7 @@ from Products.ERP5Type.Tool.BaseTool import BaseTool
from Products.ERP5Type import Permissions as ERP5Permissions
from Products.ERP5Type.TransactionalVariable import getTransactionalVariable
from Products.ERP5Form import _dtmldir
from Selection import Selection, DomainSelection
from Products.ERP5Form.Selection import Selection, DomainSelection
from ZPublisher.HTTPRequest import FileUpload
import md5
import string, re
......
......@@ -40,7 +40,8 @@ document_classes = updateGlobals( this_module, globals(),
permissions_module = Permissions)
# Define object classes and tools
import Form, FSForm, ListBox, ReportBox, MatrixBox, SelectionTool
import Form, FSForm, ListBox, ReportBox, MatrixBox
from Tool import SelectionTool
import OOoChart, PDFTemplate, Report, PDFForm, ParallelListField
import PlanningBox, POSBox, FormBox, EditorField, ProxyField, DurationField
import RelationField, ImageField, MultiRelationField, MultiLinkField, InputButtonField
......
......@@ -36,7 +36,7 @@ from Testing import ZODButil
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from AccessControl.SecurityManagement import newSecurityManager
from Products.ERP5Form.Selection import Selection
from Products.ERP5Form.SelectionTool import SelectionTool
from Products.ERP5Form.Tool.SelectionTool import SelectionTool
class TestSelectionTool(ERP5TypeTestCase):
......
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