reqmgr2 2.3.10__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- PSetTweaks/PSetTweak.py +449 -0
- PSetTweaks/WMTweak.py +621 -0
- PSetTweaks/__init__.py +3 -0
- Utils/CPMetrics.py +270 -0
- Utils/CertTools.py +62 -0
- Utils/EmailAlert.py +50 -0
- Utils/ExtendedUnitTestCase.py +62 -0
- Utils/FileTools.py +182 -0
- Utils/IteratorTools.py +80 -0
- Utils/MathUtils.py +31 -0
- Utils/MemoryCache.py +119 -0
- Utils/Patterns.py +24 -0
- Utils/Pipeline.py +137 -0
- Utils/PortForward.py +97 -0
- Utils/ProcessStats.py +103 -0
- Utils/PythonVersion.py +17 -0
- Utils/Signals.py +36 -0
- Utils/TemporaryEnvironment.py +27 -0
- Utils/Throttled.py +227 -0
- Utils/Timers.py +130 -0
- Utils/Timestamps.py +86 -0
- Utils/TokenManager.py +143 -0
- Utils/Tracing.py +60 -0
- Utils/TwPrint.py +98 -0
- Utils/Utilities.py +308 -0
- Utils/__init__.py +11 -0
- WMCore/ACDC/Collection.py +57 -0
- WMCore/ACDC/CollectionTypes.py +12 -0
- WMCore/ACDC/CouchCollection.py +67 -0
- WMCore/ACDC/CouchFileset.py +238 -0
- WMCore/ACDC/CouchService.py +73 -0
- WMCore/ACDC/DataCollectionService.py +485 -0
- WMCore/ACDC/Fileset.py +94 -0
- WMCore/ACDC/__init__.py +11 -0
- WMCore/Algorithms/Alarm.py +39 -0
- WMCore/Algorithms/MathAlgos.py +274 -0
- WMCore/Algorithms/MiscAlgos.py +67 -0
- WMCore/Algorithms/ParseXMLFile.py +115 -0
- WMCore/Algorithms/Permissions.py +27 -0
- WMCore/Algorithms/Singleton.py +58 -0
- WMCore/Algorithms/SubprocessAlgos.py +129 -0
- WMCore/Algorithms/__init__.py +7 -0
- WMCore/Cache/GenericDataCache.py +98 -0
- WMCore/Cache/WMConfigCache.py +572 -0
- WMCore/Cache/__init__.py +0 -0
- WMCore/Configuration.py +651 -0
- WMCore/DAOFactory.py +47 -0
- WMCore/DataStructs/File.py +177 -0
- WMCore/DataStructs/Fileset.py +140 -0
- WMCore/DataStructs/Job.py +182 -0
- WMCore/DataStructs/JobGroup.py +142 -0
- WMCore/DataStructs/JobPackage.py +49 -0
- WMCore/DataStructs/LumiList.py +734 -0
- WMCore/DataStructs/Mask.py +219 -0
- WMCore/DataStructs/MathStructs/ContinuousSummaryHistogram.py +197 -0
- WMCore/DataStructs/MathStructs/DiscreteSummaryHistogram.py +92 -0
- WMCore/DataStructs/MathStructs/SummaryHistogram.py +117 -0
- WMCore/DataStructs/MathStructs/__init__.py +0 -0
- WMCore/DataStructs/Pickleable.py +24 -0
- WMCore/DataStructs/Run.py +256 -0
- WMCore/DataStructs/Subscription.py +175 -0
- WMCore/DataStructs/WMObject.py +47 -0
- WMCore/DataStructs/WorkUnit.py +112 -0
- WMCore/DataStructs/Workflow.py +60 -0
- WMCore/DataStructs/__init__.py +8 -0
- WMCore/Database/CMSCouch.py +1349 -0
- WMCore/Database/ConfigDBMap.py +29 -0
- WMCore/Database/CouchUtils.py +118 -0
- WMCore/Database/DBCore.py +198 -0
- WMCore/Database/DBCreator.py +113 -0
- WMCore/Database/DBExceptionHandler.py +57 -0
- WMCore/Database/DBFactory.py +110 -0
- WMCore/Database/DBFormatter.py +177 -0
- WMCore/Database/Dialects.py +13 -0
- WMCore/Database/ExecuteDAO.py +327 -0
- WMCore/Database/MongoDB.py +241 -0
- WMCore/Database/MySQL/Destroy.py +42 -0
- WMCore/Database/MySQL/ListUserContent.py +20 -0
- WMCore/Database/MySQL/__init__.py +9 -0
- WMCore/Database/MySQLCore.py +132 -0
- WMCore/Database/Oracle/Destroy.py +56 -0
- WMCore/Database/Oracle/ListUserContent.py +19 -0
- WMCore/Database/Oracle/__init__.py +9 -0
- WMCore/Database/ResultSet.py +44 -0
- WMCore/Database/Transaction.py +91 -0
- WMCore/Database/__init__.py +9 -0
- WMCore/Database/ipy_profile_couch.py +438 -0
- WMCore/FwkJobReport/FileInfo.py +131 -0
- WMCore/FwkJobReport/Report.py +1646 -0
- WMCore/FwkJobReport/ReportEmu.py +122 -0
- WMCore/FwkJobReport/XMLParser.py +606 -0
- WMCore/FwkJobReport/__init__.py +15 -0
- WMCore/GroupUser/CouchObject.py +127 -0
- WMCore/GroupUser/Decorators.py +51 -0
- WMCore/GroupUser/Group.py +33 -0
- WMCore/GroupUser/Interface.py +73 -0
- WMCore/GroupUser/User.py +96 -0
- WMCore/GroupUser/__init__.py +11 -0
- WMCore/Lexicon.py +836 -0
- WMCore/REST/Auth.py +202 -0
- WMCore/REST/CherryPyPeriodicTask.py +166 -0
- WMCore/REST/Error.py +333 -0
- WMCore/REST/Format.py +642 -0
- WMCore/REST/HeartbeatMonitorBase.py +90 -0
- WMCore/REST/Main.py +623 -0
- WMCore/REST/Server.py +2435 -0
- WMCore/REST/Services.py +24 -0
- WMCore/REST/Test.py +120 -0
- WMCore/REST/Tools.py +38 -0
- WMCore/REST/Validation.py +250 -0
- WMCore/REST/__init__.py +1 -0
- WMCore/ReqMgr/CherryPyThreads/AuxCacheUpdateTasks.py +31 -0
- WMCore/ReqMgr/CherryPyThreads/BuildParentLock.py +116 -0
- WMCore/ReqMgr/CherryPyThreads/CouchDBCleanup.py +110 -0
- WMCore/ReqMgr/CherryPyThreads/HeartbeatMonitor.py +154 -0
- WMCore/ReqMgr/CherryPyThreads/StatusChangeTasks.py +131 -0
- WMCore/ReqMgr/CherryPyThreads/StepChainParentageFixTask.py +104 -0
- WMCore/ReqMgr/CherryPyThreads/__init__.py +0 -0
- WMCore/ReqMgr/DataStructs/AuthzByStatus.py +113 -0
- WMCore/ReqMgr/DataStructs/DefaultConfig/CAMPAIGN_CONFIG.py +116 -0
- WMCore/ReqMgr/DataStructs/DefaultConfig/DAS_RESULT_FILTER.py +3 -0
- WMCore/ReqMgr/DataStructs/DefaultConfig/EDITABLE_SPLITTING_PARAM_CONFIG.py +42 -0
- WMCore/ReqMgr/DataStructs/DefaultConfig/UNIFIED_CONFIG.py +240 -0
- WMCore/ReqMgr/DataStructs/DefaultConfig/__init__.py +0 -0
- WMCore/ReqMgr/DataStructs/ReqMgrConfigDataCache.py +65 -0
- WMCore/ReqMgr/DataStructs/Request.py +293 -0
- WMCore/ReqMgr/DataStructs/RequestError.py +21 -0
- WMCore/ReqMgr/DataStructs/RequestStatus.py +209 -0
- WMCore/ReqMgr/DataStructs/RequestType.py +13 -0
- WMCore/ReqMgr/DataStructs/__init__.py +0 -0
- WMCore/ReqMgr/ReqMgrCouch.py +74 -0
- WMCore/ReqMgr/Service/Auxiliary.py +319 -0
- WMCore/ReqMgr/Service/RegExp.py +16 -0
- WMCore/ReqMgr/Service/Request.py +681 -0
- WMCore/ReqMgr/Service/RequestAdditionalInfo.py +317 -0
- WMCore/ReqMgr/Service/RestApiHub.py +68 -0
- WMCore/ReqMgr/Service/WMStatsInfo.py +46 -0
- WMCore/ReqMgr/Service/__init__.py +0 -0
- WMCore/ReqMgr/Tools/__init__.py +0 -0
- WMCore/ReqMgr/Tools/cms.py +243 -0
- WMCore/ReqMgr/Utils/AuxValidation.py +53 -0
- WMCore/ReqMgr/Utils/Validation.py +341 -0
- WMCore/ReqMgr/Utils/__init__.py +0 -0
- WMCore/ReqMgr/Web/ReqMgrService.py +780 -0
- WMCore/ReqMgr/Web/__init__.py +0 -0
- WMCore/ReqMgr/Web/tools.py +211 -0
- WMCore/ReqMgr/Web/utils.py +291 -0
- WMCore/ReqMgr/WebGui/FrontPage.py +38 -0
- WMCore/ReqMgr/WebGui/__init__.py +0 -0
- WMCore/ReqMgr/__init__.py +1 -0
- WMCore/Services/AlertManager/AlertManagerAPI.py +111 -0
- WMCore/Services/AlertManager/__init__.py +0 -0
- WMCore/Services/CRIC/CRIC.py +238 -0
- WMCore/Services/CRIC/__init__.py +0 -0
- WMCore/Services/DBS/DBS3Reader.py +1044 -0
- WMCore/Services/DBS/DBSConcurrency.py +44 -0
- WMCore/Services/DBS/DBSErrors.py +113 -0
- WMCore/Services/DBS/DBSReader.py +23 -0
- WMCore/Services/DBS/DBSUtils.py +139 -0
- WMCore/Services/DBS/DBSWriterObjects.py +381 -0
- WMCore/Services/DBS/ProdException.py +133 -0
- WMCore/Services/DBS/__init__.py +8 -0
- WMCore/Services/FWJRDB/FWJRDBAPI.py +118 -0
- WMCore/Services/FWJRDB/__init__.py +0 -0
- WMCore/Services/HTTPS/HTTPSAuthHandler.py +66 -0
- WMCore/Services/HTTPS/__init__.py +0 -0
- WMCore/Services/LogDB/LogDB.py +201 -0
- WMCore/Services/LogDB/LogDBBackend.py +191 -0
- WMCore/Services/LogDB/LogDBExceptions.py +11 -0
- WMCore/Services/LogDB/LogDBReport.py +85 -0
- WMCore/Services/LogDB/__init__.py +0 -0
- WMCore/Services/MSPileup/__init__.py +0 -0
- WMCore/Services/MSUtils/MSUtils.py +54 -0
- WMCore/Services/MSUtils/__init__.py +0 -0
- WMCore/Services/McM/McM.py +173 -0
- WMCore/Services/McM/__init__.py +8 -0
- WMCore/Services/MonIT/Grafana.py +133 -0
- WMCore/Services/MonIT/__init__.py +0 -0
- WMCore/Services/PyCondor/PyCondorAPI.py +154 -0
- WMCore/Services/PyCondor/PyCondorUtils.py +105 -0
- WMCore/Services/PyCondor/__init__.py +0 -0
- WMCore/Services/ReqMgr/ReqMgr.py +261 -0
- WMCore/Services/ReqMgr/__init__.py +0 -0
- WMCore/Services/ReqMgrAux/ReqMgrAux.py +419 -0
- WMCore/Services/ReqMgrAux/__init__.py +0 -0
- WMCore/Services/RequestDB/RequestDBReader.py +267 -0
- WMCore/Services/RequestDB/RequestDBWriter.py +39 -0
- WMCore/Services/RequestDB/__init__.py +0 -0
- WMCore/Services/Requests.py +624 -0
- WMCore/Services/Rucio/Rucio.py +1287 -0
- WMCore/Services/Rucio/RucioUtils.py +74 -0
- WMCore/Services/Rucio/__init__.py +0 -0
- WMCore/Services/RucioConMon/RucioConMon.py +128 -0
- WMCore/Services/RucioConMon/__init__.py +0 -0
- WMCore/Services/Service.py +400 -0
- WMCore/Services/StompAMQ/__init__.py +0 -0
- WMCore/Services/TagCollector/TagCollector.py +155 -0
- WMCore/Services/TagCollector/XMLUtils.py +98 -0
- WMCore/Services/TagCollector/__init__.py +0 -0
- WMCore/Services/UUIDLib.py +13 -0
- WMCore/Services/UserFileCache/UserFileCache.py +160 -0
- WMCore/Services/UserFileCache/__init__.py +8 -0
- WMCore/Services/WMAgent/WMAgent.py +63 -0
- WMCore/Services/WMAgent/__init__.py +0 -0
- WMCore/Services/WMArchive/CMSSWMetrics.py +526 -0
- WMCore/Services/WMArchive/DataMap.py +463 -0
- WMCore/Services/WMArchive/WMArchive.py +33 -0
- WMCore/Services/WMArchive/__init__.py +0 -0
- WMCore/Services/WMBS/WMBS.py +97 -0
- WMCore/Services/WMBS/__init__.py +0 -0
- WMCore/Services/WMStats/DataStruct/RequestInfoCollection.py +300 -0
- WMCore/Services/WMStats/DataStruct/__init__.py +0 -0
- WMCore/Services/WMStats/WMStatsPycurl.py +145 -0
- WMCore/Services/WMStats/WMStatsReader.py +445 -0
- WMCore/Services/WMStats/WMStatsWriter.py +273 -0
- WMCore/Services/WMStats/__init__.py +0 -0
- WMCore/Services/WMStatsServer/WMStatsServer.py +134 -0
- WMCore/Services/WMStatsServer/__init__.py +0 -0
- WMCore/Services/WorkQueue/WorkQueue.py +492 -0
- WMCore/Services/WorkQueue/__init__.py +0 -0
- WMCore/Services/__init__.py +8 -0
- WMCore/Services/pycurl_manager.py +574 -0
- WMCore/Storage/Backends/AWSS3Impl.py +110 -0
- WMCore/Storage/Backends/CPImpl.py +125 -0
- WMCore/Storage/Backends/FNALImpl.py +229 -0
- WMCore/Storage/Backends/GFAL2Impl.py +260 -0
- WMCore/Storage/Backends/LCGImpl.py +236 -0
- WMCore/Storage/Backends/SRMV2Impl.py +248 -0
- WMCore/Storage/Backends/TestFallbackToOldBackend.py +130 -0
- WMCore/Storage/Backends/UnittestImpl.py +188 -0
- WMCore/Storage/Backends/VandyImpl.py +110 -0
- WMCore/Storage/Backends/XRDCPImpl.py +314 -0
- WMCore/Storage/Backends/__init__.py +29 -0
- WMCore/Storage/DeleteMgr.py +255 -0
- WMCore/Storage/Execute.py +82 -0
- WMCore/Storage/FileManager.py +448 -0
- WMCore/Storage/Plugins/CPImpl.py +45 -0
- WMCore/Storage/Plugins/Examples/SRMV2Impl.py +188 -0
- WMCore/Storage/Plugins/Examples/XRDCPImpl.py +64 -0
- WMCore/Storage/Plugins/Examples/__init__.py +1 -0
- WMCore/Storage/Plugins/FNALImpl.py +329 -0
- WMCore/Storage/Plugins/GFAL2Impl.py +84 -0
- WMCore/Storage/Plugins/LCGImpl.py +91 -0
- WMCore/Storage/Plugins/TestFailImpl.py +33 -0
- WMCore/Storage/Plugins/TestLocalCopyImpl.py +48 -0
- WMCore/Storage/Plugins/TestWinImpl.py +28 -0
- WMCore/Storage/Plugins/VandyImpl.py +109 -0
- WMCore/Storage/Plugins/__init__.py +17 -0
- WMCore/Storage/Registry.py +105 -0
- WMCore/Storage/RucioFileCatalog.py +247 -0
- WMCore/Storage/SiteLocalConfig.py +353 -0
- WMCore/Storage/StageInMgr.py +257 -0
- WMCore/Storage/StageOutError.py +69 -0
- WMCore/Storage/StageOutImpl.py +303 -0
- WMCore/Storage/StageOutImplV2.py +97 -0
- WMCore/Storage/StageOutMgr.py +390 -0
- WMCore/Storage/StoreFail.py +73 -0
- WMCore/Storage/TestImpl.py +71 -0
- WMCore/Storage/TrivialFileCatalog.py +383 -0
- WMCore/Storage/__init__.py +0 -0
- WMCore/WMBase.py +50 -0
- WMCore/WMConnectionBase.py +164 -0
- WMCore/WMException.py +183 -0
- WMCore/WMExceptions.py +269 -0
- WMCore/WMFactory.py +76 -0
- WMCore/WMInit.py +228 -0
- WMCore/WMLogging.py +108 -0
- WMCore/WMRuntime/Bootstrap.py +459 -0
- WMCore/WMRuntime/Monitors/PerformanceMonitor.py +308 -0
- WMCore/WMRuntime/Monitors/TestMonitor.py +197 -0
- WMCore/WMRuntime/Monitors/WMRuntimeMonitor.py +115 -0
- WMCore/WMRuntime/Monitors/__init__.py +8 -0
- WMCore/WMRuntime/ProcessMonitor.py +157 -0
- WMCore/WMRuntime/Sandbox.py +56 -0
- WMCore/WMRuntime/SandboxCreator.py +199 -0
- WMCore/WMRuntime/ScriptFactory.py +53 -0
- WMCore/WMRuntime/ScriptInterface.py +30 -0
- WMCore/WMRuntime/ScriptInvoke.py +120 -0
- WMCore/WMRuntime/Scripts/SetupCMSSWPset.py +826 -0
- WMCore/WMRuntime/Scripts/__init__.py +7 -0
- WMCore/WMRuntime/Startup.py +57 -0
- WMCore/WMRuntime/StepSpace.py +75 -0
- WMCore/WMRuntime/TaskSpace.py +144 -0
- WMCore/WMRuntime/Tools/Plugins/__init__.py +7 -0
- WMCore/WMRuntime/Tools/Scram.py +465 -0
- WMCore/WMRuntime/Tools/__init__.py +8 -0
- WMCore/WMRuntime/Unpacker.py +175 -0
- WMCore/WMRuntime/Watchdog.py +329 -0
- WMCore/WMRuntime/__init__.py +8 -0
- WMCore/WMSpec/ConfigSectionTree.py +442 -0
- WMCore/WMSpec/Makers/Handlers/MakeJob.py +46 -0
- WMCore/WMSpec/Makers/Handlers/MakeJobSlave.py +66 -0
- WMCore/WMSpec/Makers/Handlers/__init__.py +9 -0
- WMCore/WMSpec/Makers/Interface/CreateWorkArea.py +466 -0
- WMCore/WMSpec/Makers/Interface/__init__.py +9 -0
- WMCore/WMSpec/Makers/JobMaker.py +33 -0
- WMCore/WMSpec/Makers/TaskMaker.py +229 -0
- WMCore/WMSpec/Makers/__init__.py +9 -0
- WMCore/WMSpec/Persistency.py +135 -0
- WMCore/WMSpec/StdSpecs/DQMHarvest.py +156 -0
- WMCore/WMSpec/StdSpecs/DataProcessing.py +75 -0
- WMCore/WMSpec/StdSpecs/Express.py +506 -0
- WMCore/WMSpec/StdSpecs/PromptReco.py +220 -0
- WMCore/WMSpec/StdSpecs/ReReco.py +280 -0
- WMCore/WMSpec/StdSpecs/Repack.py +219 -0
- WMCore/WMSpec/StdSpecs/Resubmission.py +213 -0
- WMCore/WMSpec/StdSpecs/StdBase.py +1412 -0
- WMCore/WMSpec/StdSpecs/StepChain.py +672 -0
- WMCore/WMSpec/StdSpecs/StoreResults.py +124 -0
- WMCore/WMSpec/StdSpecs/TaskChain.py +777 -0
- WMCore/WMSpec/StdSpecs/__init__.py +9 -0
- WMCore/WMSpec/Steps/BuildMaster.py +87 -0
- WMCore/WMSpec/Steps/BuildTools.py +201 -0
- WMCore/WMSpec/Steps/Builder.py +97 -0
- WMCore/WMSpec/Steps/Builders/AlcaHarvest.py +31 -0
- WMCore/WMSpec/Steps/Builders/CMSSW.py +34 -0
- WMCore/WMSpec/Steps/Builders/DQMUpload.py +34 -0
- WMCore/WMSpec/Steps/Builders/DeleteFiles.py +34 -0
- WMCore/WMSpec/Steps/Builders/LogArchive.py +34 -0
- WMCore/WMSpec/Steps/Builders/LogCollect.py +34 -0
- WMCore/WMSpec/Steps/Builders/StageOut.py +34 -0
- WMCore/WMSpec/Steps/Builders/__init__.py +8 -0
- WMCore/WMSpec/Steps/Diagnostic.py +89 -0
- WMCore/WMSpec/Steps/Diagnostics/AlcaHarvest.py +72 -0
- WMCore/WMSpec/Steps/Diagnostics/CMSSW.py +302 -0
- WMCore/WMSpec/Steps/Diagnostics/DQMUpload.py +70 -0
- WMCore/WMSpec/Steps/Diagnostics/DeleteFiles.py +67 -0
- WMCore/WMSpec/Steps/Diagnostics/Generic.py +18 -0
- WMCore/WMSpec/Steps/Diagnostics/LogArchive.py +76 -0
- WMCore/WMSpec/Steps/Diagnostics/LogCollect.py +80 -0
- WMCore/WMSpec/Steps/Diagnostics/StageOut.py +77 -0
- WMCore/WMSpec/Steps/Diagnostics/__init__.py +8 -0
- WMCore/WMSpec/Steps/Emulator.py +62 -0
- WMCore/WMSpec/Steps/Emulators/AlcaHarvest.py +50 -0
- WMCore/WMSpec/Steps/Emulators/CMSSW.py +52 -0
- WMCore/WMSpec/Steps/Emulators/DQMUpload.py +50 -0
- WMCore/WMSpec/Steps/Emulators/DeleteFiles.py +50 -0
- WMCore/WMSpec/Steps/Emulators/LogArchive.py +83 -0
- WMCore/WMSpec/Steps/Emulators/LogCollect.py +66 -0
- WMCore/WMSpec/Steps/Emulators/StageOut.py +50 -0
- WMCore/WMSpec/Steps/Emulators/__init__.py +10 -0
- WMCore/WMSpec/Steps/ExecuteMaster.py +208 -0
- WMCore/WMSpec/Steps/Executor.py +210 -0
- WMCore/WMSpec/Steps/Executors/AlcaHarvest.py +206 -0
- WMCore/WMSpec/Steps/Executors/CMSSW.py +473 -0
- WMCore/WMSpec/Steps/Executors/DQMUpload.py +295 -0
- WMCore/WMSpec/Steps/Executors/DeleteFiles.py +161 -0
- WMCore/WMSpec/Steps/Executors/LogArchive.py +309 -0
- WMCore/WMSpec/Steps/Executors/LogCollect.py +284 -0
- WMCore/WMSpec/Steps/Executors/StageOut.py +325 -0
- WMCore/WMSpec/Steps/Executors/__init__.py +8 -0
- WMCore/WMSpec/Steps/Fetchers/CMSSWFetcher.py +49 -0
- WMCore/WMSpec/Steps/Fetchers/FetcherInterface.py +45 -0
- WMCore/WMSpec/Steps/Fetchers/PileupFetcher.py +247 -0
- WMCore/WMSpec/Steps/Fetchers/URLFetcher.py +61 -0
- WMCore/WMSpec/Steps/Fetchers/__init__.py +9 -0
- WMCore/WMSpec/Steps/StepFactory.py +213 -0
- WMCore/WMSpec/Steps/TaskEmulator.py +75 -0
- WMCore/WMSpec/Steps/Template.py +204 -0
- WMCore/WMSpec/Steps/Templates/AlcaHarvest.py +76 -0
- WMCore/WMSpec/Steps/Templates/CMSSW.py +613 -0
- WMCore/WMSpec/Steps/Templates/DQMUpload.py +59 -0
- WMCore/WMSpec/Steps/Templates/DeleteFiles.py +70 -0
- WMCore/WMSpec/Steps/Templates/LogArchive.py +84 -0
- WMCore/WMSpec/Steps/Templates/LogCollect.py +105 -0
- WMCore/WMSpec/Steps/Templates/StageOut.py +105 -0
- WMCore/WMSpec/Steps/Templates/__init__.py +10 -0
- WMCore/WMSpec/Steps/WMExecutionFailure.py +21 -0
- WMCore/WMSpec/Steps/__init__.py +8 -0
- WMCore/WMSpec/Utilities.py +63 -0
- WMCore/WMSpec/WMSpecErrors.py +12 -0
- WMCore/WMSpec/WMStep.py +347 -0
- WMCore/WMSpec/WMTask.py +1980 -0
- WMCore/WMSpec/WMWorkload.py +2288 -0
- WMCore/WMSpec/WMWorkloadTools.py +370 -0
- WMCore/WMSpec/__init__.py +9 -0
- WMCore/WorkQueue/DataStructs/CouchWorkQueueElement.py +148 -0
- WMCore/WorkQueue/DataStructs/WorkQueueElement.py +274 -0
- WMCore/WorkQueue/DataStructs/__init__.py +0 -0
- WMCore/WorkQueue/__init__.py +13 -0
- WMCore/Wrappers/JsonWrapper/JSONThunker.py +342 -0
- WMCore/Wrappers/JsonWrapper/__init__.py +7 -0
- WMCore/Wrappers/__init__.py +6 -0
- WMCore/__init__.py +10 -0
- reqmgr2-2.3.10.data/data/bin/wmc-dist-patch +15 -0
- reqmgr2-2.3.10.data/data/bin/wmc-dist-unpatch +8 -0
- reqmgr2-2.3.10.data/data/bin/wmc-httpd +3 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/_id +1 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/couchapp.json +5 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/language +1 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/views/config_by_label/map.js +12 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/views/config_by_md5hash/map.js +7 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/views/config_by_owner/map.js +15 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/views/config_by_psethash/map.js +7 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/views/config_type/map.js +10 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/views/group_name/map.js +10 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/views/groups/map.js +10 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/views/groups/reduce.js +12 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/views/owner_name_group/map.js +7 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/views/runseq_by_owner/map.js +10 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/views/runsequence_type/map.js +10 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/views/seedseq_by_owner/map.js +10 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/views/types/map.js +7 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/_id +1 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/couchapp.json +5 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/language +1 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/updates/totalstats.js +39 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/updates/updaterequest.js +105 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/validate_doc_update.js +6 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/bycampaign/map.js +5 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/bydatapileup/map.js +21 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/bydate/map.js +14 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/byinputdataset/map.js +21 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/bymcpileup/map.js +21 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/byoriginalrequest/map.js +6 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/byoutputdataset/map.js +7 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/byparentageflag/map.js +5 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/byprepid/map.js +22 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/byrequest/map.js +3 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/bystatus/map.js +7 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/bystatusandrequestor/map.js +3 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/bystatusandtime/map.js +7 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/bystatusandtypeandrequestor/map.js +3 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/byteamandstatus/map.js +5 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/bytype/map.js +3 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/childresubmissionrequests/map.js +10 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/requestsbystatusandtype/map.js +3 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/requestsincludeparents/map.js +11 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgrAux/_id +1 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgrAux/couchapp.json +5 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgrAux/filters/filterDeletedDocs.js +3 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgrAux/language +1 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgrAux/validate_doc_update.js +6 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgrAux/views/byconfig/map.js +5 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/ColVis.css +76 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/font-awesome.min.css +4 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/badge-circle-check-16.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/badge-circle-cross-16.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/badge-circle-plus-16.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/badge-square-check-16.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/cms_logo.gif +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/cms_logo.jpeg +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_flat_55_fbec88_40x100.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_glass_100_e4f1fb_1x400.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_glass_80_d7ebf9_1x400.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_glass_85_dfeffc_1x400.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_highlight-hard_55_5c9ccc_1x100.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_inset-soft_100_fcfdfd_1x100.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_217bc0_256x240.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_2694e8_256x240.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_2e83ff_256x240.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_469bdd_256x240.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_6da8d5_256x240.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_cd0a0a_256x240.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_d8e7f3_256x240.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_f9bd01_256x240.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/warning-16.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/jquery-ui-1.12.0.css +1312 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/jquery.dataTables.css +241 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/logdb.css +60 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/main_layout.css +565 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/fonts/FontAwesome.otf +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/fonts/fontawesome-webfont.eot +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/fonts/fontawesome-webfont.svg +565 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/fonts/fontawesome-webfont.ttf +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/fonts/fontawesome-webfont.woff +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/fonts/fontawesome-webfont.woff2 +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/Sorting icons.psd +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/back_disabled.jpg +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/back_enabled.jpg +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/error.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/favicon.ico +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/forward_disabled.jpg +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/forward_enabled.jpg +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/loader-1.gif +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/module.caption.backg.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/module.caption.backg.rolledup.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/rollup.gif +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/sort_asc.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/sort_asc_disabled.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/sort_both.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/sort_desc.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/sort_desc_disabled.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/stable.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/warning.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/index.html +105 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/index.html.min +106 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/index.html.org +125 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Controller/WMStats.ActiveRequestController.js +61 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Controller/WMStats.GenericController.js +38 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Controller/WMStats.WorkloadSummaryController.js +12 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Controller/import.js +6 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/T0/WMStats.RequestSummary.js +71 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/T0/WMStats.RunSummary.js +70 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/T1/WMStats.AgentRequestSummary.js +28 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/T1/WMStats.CMSSWSummary.js +28 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/T1/WMStats.CampaignSummary.js +28 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/T1/WMStats.ReqMgrRequest.js +10 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/T1/WMStats.RequestSummary.js +190 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.Agents.js +98 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.Alerts.js +21 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.Campaigns.js +25 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.GenericRequests.js +728 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.History.js +78 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.JobDetails.js +19 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.JobSummary.js +32 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.LogDBData.js +93 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.LogMessage.js +38 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.SiteSummary.js +24 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.Sites.js +25 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.Tasks.js +107 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.WorkloadSummary.js +20 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats._StructBase.js +37 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/import.js +29 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T0/WMStats.ActiveRequestModel.js +9 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T0/WMStats.RequestLogDetailModel.js +17 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T0/WMStats.RequestLogModel.js +14 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T0/WMStats.RequestModel.js +3 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T0/WMStats.RequestSearchModel.js +8 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T1/WMStats.ActiveRequestModel.js +9 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T1/WMStats.ReqMgrRequestModel.js +8 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T1/WMStats.RequestLogDetailModel.js +18 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T1/WMStats.RequestLogModel.js +14 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T1/WMStats.RequestSearchModel.js +8 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats.AgentModel.js +3 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats.AlertModel.js +6 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats.HistoryModel.js +14 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats.JobDetailModel.js +22 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats.JobSummaryModel.js +18 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats.WorkloadSummaryModel.js +8 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats._AjaxModelBase.js +55 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats._ModelBase.js +77 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats._RequestModelBase.js +127 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/import.js +26 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/ViewModels/WMStats.ViewModel.js +511 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/ViewModels/import.js +2 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Controls/T0/WMStats.Controls.js +117 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Controls/T1/WMStats.Controls.js +158 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Controls/WMStats.CommonControls.js +100 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Controls/import.js +10 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Graphs/WMStats.SiteHistoryGraph.js +8 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Graphs/import.js +3 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T0/WMStats.CategoryDetailList.js +38 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T0/WMStats.RequestAlertGUI.js +128 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T0/WMStats.RequestDataList.js +25 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T0/WMStats.RequestDetailList.js +68 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T0/WMStats.RequestSummaryList.js +31 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T1/WMStats.CategoryDetailList.js +54 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T1/WMStats.RequestAlertGUI.js +81 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T1/WMStats.RequestDataList.js +26 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T1/WMStats.RequestDetailList.js +122 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T1/WMStats.RequestSummaryList.js +35 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T1/WMStats.ResubmissionList.js +64 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/WMStats.AgentDetailList.js +137 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/WMStats.CategoryTitle.js +20 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/WMStats.HTMLList.js +12 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/WMStats.JobDetailList.js +178 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/WMStats.RequestLogList.js +88 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/WMStats.RequestTitle.js +33 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/import.js +25 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T0/WMStats.ActiveRequestTable.js +142 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T0/WMStats.RunSummaryTable.js +77 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T0/WMStats.TaskSummaryTable.js +127 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T0/addCategoryMap.js +10 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/WMStats.ActiveRequestTable.js +132 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/WMStats.ActiveRequestTableWithJob.js +164 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/WMStats.AgentRequestSummaryTable.js +78 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/WMStats.CMSSWSummaryTable.js +76 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/WMStats.CampaignSummaryTable.js +76 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/WMStats.SiteSummaryTable.js +63 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/WMStats.TaskSummaryTable.js +124 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/addCategoryMap.js +17 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/WMStats.JobSummaryTable.js +71 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/WMStats.Table.js +70 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/WMStats.TableController.js +130 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/WMStats.WorkloadSummaryTable.js +62 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/import.js +26 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/WMStats.CategoryMap.js +45 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/WMStats.View.IndexHTML.js +137 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/import.js +3 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/WMStats.Ajax.js +74 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/WMStats.Couch.js +83 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/WMStats.Globals.js +200 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/WMStats.Utils.js +283 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/import-all.min.js +7 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/loader.js +27 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/minified/global.min.js +639 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/minified/import-all-t0.min.js +4317 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/minified/import-all-t1.min.js +4972 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/lib/jquery.dataTables.columnFilter.js +732 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/lib/namespace.js +23 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/filters/deleteFatDocFilter.js +3 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/filters/filterDeletedDocs.js +3 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/filters/repfilter.js +7 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/rewrites.json +110 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/shows/redirect.js +23 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/updates/agentInfo.js +17 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/updates/generalFields.js +11 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/updates/insertRequest.js +13 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/updates/jobLogArchiveLocation.js +10 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/updates/jobStateTransition.js +17 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/updates/jobSummaryState.js +5 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/updates/totalStats.js +39 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/validate_doc_update.js +10 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/img/cms_logo.jpg +0 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/img/details_closed.gif +0 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/img/details_open.gif +0 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/img/feed-icon.png +0 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/img/gradientfromtop.gif +0 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/img/loading-small.gif +0 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/img/loading.gif +0 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/img/shadow.gif +0 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/index.html +67 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/javascript/ajax_utils.js +104 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/javascript/config.js +10 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/javascript/md5.js +184 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/javascript/prototype.js +7510 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/javascript/requestsview.js +189 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/javascript/task_splitting.js +190 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/javascript/utils.js +337 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/admin.tmpl +217 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/apis.tmpl +36 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/approve.tmpl +112 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/assign.tmpl +252 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/batch.tmpl +72 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/batches.tmpl +63 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/confirm.tmpl +34 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/create.tmpl +112 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/doc.tmpl +152 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/error.tmpl +6 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/filter_sort.tmpl +55 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/generic.tmpl +6 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/index.tmpl +24 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/main.tmpl +33 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/manualConversions.txt +57 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/menu.tmpl +16 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/requests.tmpl +51 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/search.tmpl +22 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/validate.tmpl +9 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/workflow.tmpl +34 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/style/kube.min.css +1 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/style/main.css +194 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/style/style.css +249 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/admin.tmpl +217 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/apis.tmpl +36 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/approve.tmpl +114 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/assign.tmpl +253 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/batch.tmpl +72 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/batches.tmpl +63 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/confirm.tmpl +35 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/create.tmpl +112 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/doc.tmpl +153 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/error.tmpl +6 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/filter_sort.tmpl +55 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/generic.tmpl +6 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/index.tmpl +24 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/json/DataProcessing.tmpl +34 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/json/MonteCarlo.tmpl +29 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/json/ReDigi.tmpl +41 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/json/ReReco.tmpl +38 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/json/Resubmission.tmpl +22 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/json/StoreResults.tmpl +24 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/main.tmpl +33 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/menu.tmpl +16 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/requests.tmpl +51 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/search.tmpl +22 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/validate.tmpl +9 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/workflow.tmpl +34 -0
- reqmgr2-2.3.10.dist-info/LICENSE +202 -0
- reqmgr2-2.3.10.dist-info/METADATA +24 -0
- reqmgr2-2.3.10.dist-info/NOTICE +16 -0
- reqmgr2-2.3.10.dist-info/RECORD +678 -0
- reqmgr2-2.3.10.dist-info/WHEEL +5 -0
- reqmgr2-2.3.10.dist-info/top_level.txt +3 -0
reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/lib/jquery.dataTables.columnFilter.js
ADDED
|
@@ -0,0 +1,732 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* File: jquery.dataTables.columnFilter.js
|
|
3
|
+
* Version: 1.4.7.
|
|
4
|
+
* Author: Jovan Popovic
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2012 Jovan Popovic, all rights reserved.
|
|
7
|
+
*
|
|
8
|
+
* This source file is free software, under either the GPL v2 license or a
|
|
9
|
+
* BSD style license, as supplied with this software.
|
|
10
|
+
*
|
|
11
|
+
* This source file is distributed in the hope that it will be useful, but
|
|
12
|
+
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
13
|
+
* or FITNESS FOR A PARTICULAR PURPOSE.
|
|
14
|
+
*
|
|
15
|
+
* Parameters:"
|
|
16
|
+
* @sPlaceHolder String Place where inline filtering function should be placed ("tfoot", "thead:before", "thead:after"). Default is "tfoot"
|
|
17
|
+
* @sRangeSeparator String Separator that will be used when range values are sent to the server-side. Default value is "~".
|
|
18
|
+
* @sRangeFormat string Default format of the From ... to ... range inputs. Default is From {from} to {to}
|
|
19
|
+
* @aoColumns Array Array of the filter settings that will be applied on the columns
|
|
20
|
+
*/
|
|
21
|
+
(function ($) {
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
$.fn.columnFilter = function (options) {
|
|
25
|
+
|
|
26
|
+
var asInitVals, i, label, th;
|
|
27
|
+
|
|
28
|
+
//var sTableId = "table";
|
|
29
|
+
var sRangeFormat = "From {from} to {to}";
|
|
30
|
+
//Array of the functions that will override sSearch_ parameters
|
|
31
|
+
var afnSearch_ = new Array();
|
|
32
|
+
var aiCustomSearch_Indexes = new Array();
|
|
33
|
+
|
|
34
|
+
var oFunctionTimeout = null;
|
|
35
|
+
|
|
36
|
+
var fnOnFiltered = function () { };
|
|
37
|
+
|
|
38
|
+
function _fnGetColumnValues(oSettings, iColumn, bUnique, bFiltered, bIgnoreEmpty) {
|
|
39
|
+
///<summary>
|
|
40
|
+
///Return values in the column
|
|
41
|
+
///</summary>
|
|
42
|
+
///<param name="oSettings" type="Object">DataTables settings</param>
|
|
43
|
+
///<param name="iColumn" type="int">Id of the column</param>
|
|
44
|
+
///<param name="bUnique" type="bool">Return only distinct values</param>
|
|
45
|
+
///<param name="bFiltered" type="bool">Return values only from the filtered rows</param>
|
|
46
|
+
///<param name="bIgnoreEmpty" type="bool">Ignore empty cells</param>
|
|
47
|
+
|
|
48
|
+
// check that we have a column id
|
|
49
|
+
if (typeof iColumn == "undefined") return new Array();
|
|
50
|
+
|
|
51
|
+
// by default we only wany unique data
|
|
52
|
+
if (typeof bUnique == "undefined") bUnique = true;
|
|
53
|
+
|
|
54
|
+
// by default we do want to only look at filtered data
|
|
55
|
+
if (typeof bFiltered == "undefined") bFiltered = true;
|
|
56
|
+
|
|
57
|
+
// by default we do not wany to include empty values
|
|
58
|
+
if (typeof bIgnoreEmpty == "undefined") bIgnoreEmpty = true;
|
|
59
|
+
|
|
60
|
+
// list of rows which we're going to loop through
|
|
61
|
+
var aiRows;
|
|
62
|
+
|
|
63
|
+
// use only filtered rows
|
|
64
|
+
if (bFiltered == true) aiRows = oSettings.aiDisplay;
|
|
65
|
+
// use all rows
|
|
66
|
+
else aiRows = oSettings.aiDisplayMaster; // all row numbers
|
|
67
|
+
|
|
68
|
+
// set up data array
|
|
69
|
+
var asResultData = new Array();
|
|
70
|
+
|
|
71
|
+
for (var i = 0, c = aiRows.length; i < c; i++) {
|
|
72
|
+
iRow = aiRows[i];
|
|
73
|
+
var aData = oTable.fnGetData(iRow);
|
|
74
|
+
var sValue = aData[iColumn];
|
|
75
|
+
|
|
76
|
+
// ignore empty values?
|
|
77
|
+
if (bIgnoreEmpty == true && sValue.length == 0) continue;
|
|
78
|
+
|
|
79
|
+
// ignore unique values?
|
|
80
|
+
else if (bUnique == true && jQuery.inArray(sValue, asResultData) > -1) continue;
|
|
81
|
+
|
|
82
|
+
// else push the value onto the result data array
|
|
83
|
+
else asResultData.push(sValue);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
return asResultData.sort();
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
function _fnColumnIndex(iColumnIndex) {
|
|
90
|
+
if (properties.bUseColVis)
|
|
91
|
+
return iColumnIndex;
|
|
92
|
+
else
|
|
93
|
+
return oTable.fnSettings().oApi._fnVisibleToColumnIndex(oTable.fnSettings(), iColumnIndex);
|
|
94
|
+
//return iColumnIndex;
|
|
95
|
+
//return oTable.fnSettings().oApi._fnColumnIndexToVisible(oTable.fnSettings(), iColumnIndex);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
function fnCreateInput(oTable, regex, smart, bIsNumber, iFilterLength, iMaxLenght) {
|
|
99
|
+
var sCSSClass = "text_filter";
|
|
100
|
+
if (bIsNumber)
|
|
101
|
+
sCSSClass = "number_filter";
|
|
102
|
+
|
|
103
|
+
label = label.replace(/(^\s*)|(\s*$)/g, "");
|
|
104
|
+
var currentFilter = oTable.fnSettings().aoPreSearchCols[i].sSearch;
|
|
105
|
+
var search_init = 'search_init ';
|
|
106
|
+
var inputvalue = label;
|
|
107
|
+
if (currentFilter != '' && currentFilter != '^') {
|
|
108
|
+
if (bIsNumber && currentFilter.charAt(0) == '^')
|
|
109
|
+
inputvalue = currentFilter.substr(1); //ignore trailing ^
|
|
110
|
+
else
|
|
111
|
+
inputvalue = currentFilter;
|
|
112
|
+
search_init = '';
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
var input = $('<input type="text" class="' + search_init + sCSSClass + '" value="' + inputvalue + '"/>');
|
|
116
|
+
if (iMaxLenght != undefined && iMaxLenght != -1) {
|
|
117
|
+
input.attr('maxlength', iMaxLenght);
|
|
118
|
+
}
|
|
119
|
+
th.html(input);
|
|
120
|
+
if (bIsNumber)
|
|
121
|
+
th.wrapInner('<span class="filter_column filter_number" />');
|
|
122
|
+
else
|
|
123
|
+
th.wrapInner('<span class="filter_column filter_text" />');
|
|
124
|
+
|
|
125
|
+
asInitVals[i] = label;
|
|
126
|
+
var index = i;
|
|
127
|
+
|
|
128
|
+
if (bIsNumber && !oTable.fnSettings().oFeatures.bServerSide) {
|
|
129
|
+
input.keyup(function () {
|
|
130
|
+
/* Filter on the column all numbers that starts with the entered value */
|
|
131
|
+
oTable.fnFilter('^' + this.value, _fnColumnIndex(index), true, false); //Issue 37
|
|
132
|
+
fnOnFiltered();
|
|
133
|
+
});
|
|
134
|
+
} else {
|
|
135
|
+
input.keyup(function () {
|
|
136
|
+
if (oTable.fnSettings().oFeatures.bServerSide && iFilterLength != 0) {
|
|
137
|
+
//If filter length is set in the server-side processing mode
|
|
138
|
+
//Check has the user entered at least iFilterLength new characters
|
|
139
|
+
|
|
140
|
+
var currentFilter = oTable.fnSettings().aoPreSearchCols[index].sSearch;
|
|
141
|
+
var iLastFilterLength = $(this).data("dt-iLastFilterLength");
|
|
142
|
+
if (typeof iLastFilterLength == "undefined")
|
|
143
|
+
iLastFilterLength = 0;
|
|
144
|
+
var iCurrentFilterLength = this.value.length;
|
|
145
|
+
if (Math.abs(iCurrentFilterLength - iLastFilterLength) < iFilterLength
|
|
146
|
+
//&& currentFilter.length == 0 //Why this?
|
|
147
|
+
) {
|
|
148
|
+
//Cancel the filtering
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
else {
|
|
152
|
+
//Remember the current filter length
|
|
153
|
+
$(this).data("dt-iLastFilterLength", iCurrentFilterLength);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
/* Filter on the column (the index) of this element */
|
|
157
|
+
oTable.fnFilter(this.value, _fnColumnIndex(index), regex, smart); //Issue 37
|
|
158
|
+
fnOnFiltered();
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
input.focus(function () {
|
|
163
|
+
if ($(this).hasClass("search_init")) {
|
|
164
|
+
$(this).removeClass("search_init");
|
|
165
|
+
this.value = "";
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
input.blur(function () {
|
|
169
|
+
if (this.value == "") {
|
|
170
|
+
$(this).addClass("search_init");
|
|
171
|
+
this.value = asInitVals[index];
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
function fnCreateRangeInput(oTable) {
|
|
177
|
+
|
|
178
|
+
th.html(_fnRangeLabelPart(0));
|
|
179
|
+
var sFromId = oTable.attr("id") + '_range_from_' + i;
|
|
180
|
+
var from = $('<input type="text" class="number_range_filter" id="' + sFromId + '" rel="' + i + '"/>');
|
|
181
|
+
th.append(from);
|
|
182
|
+
th.append(_fnRangeLabelPart(1));
|
|
183
|
+
var sToId = oTable.attr("id") + '_range_to_' + i;
|
|
184
|
+
var to = $('<input type="text" class="number_range_filter" id="' + sToId + '" rel="' + i + '"/>');
|
|
185
|
+
th.append(to);
|
|
186
|
+
th.append(_fnRangeLabelPart(2));
|
|
187
|
+
th.wrapInner('<span class="filterColumn filter_number_range" />');
|
|
188
|
+
var index = i;
|
|
189
|
+
aiCustomSearch_Indexes.push(i);
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
//------------start range filtering function
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
/* Custom filtering function which will filter data in column four between two values
|
|
197
|
+
* Author: Allan Jardine, Modified by Jovan Popovic
|
|
198
|
+
*/
|
|
199
|
+
//$.fn.dataTableExt.afnFiltering.push(
|
|
200
|
+
oTable.dataTableExt.afnFiltering.push(
|
|
201
|
+
function (oSettings, aData, iDataIndex) {
|
|
202
|
+
if (oTable.attr("id") != oSettings.sTableId)
|
|
203
|
+
return true;
|
|
204
|
+
// Try to handle missing nodes more gracefully
|
|
205
|
+
if (document.getElementById(sFromId) == null)
|
|
206
|
+
return true;
|
|
207
|
+
var iMin = document.getElementById(sFromId).value * 1;
|
|
208
|
+
var iMax = document.getElementById(sToId).value * 1;
|
|
209
|
+
var iValue = aData[_fnColumnIndex(index)] == "-" ? 0 : aData[_fnColumnIndex(index)] * 1;
|
|
210
|
+
if (iMin == "" && iMax == "") {
|
|
211
|
+
return true;
|
|
212
|
+
}
|
|
213
|
+
else if (iMin == "" && iValue <= iMax) {
|
|
214
|
+
return true;
|
|
215
|
+
}
|
|
216
|
+
else if (iMin <= iValue && "" == iMax) {
|
|
217
|
+
return true;
|
|
218
|
+
}
|
|
219
|
+
else if (iMin <= iValue && iValue <= iMax) {
|
|
220
|
+
return true;
|
|
221
|
+
}
|
|
222
|
+
return false;
|
|
223
|
+
}
|
|
224
|
+
);
|
|
225
|
+
//------------end range filtering function
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
$('#' + sFromId + ',#' + sToId, th).keyup(function () {
|
|
230
|
+
|
|
231
|
+
var iMin = document.getElementById(sFromId).value * 1;
|
|
232
|
+
var iMax = document.getElementById(sToId).value * 1;
|
|
233
|
+
if (iMin != 0 && iMax != 0 && iMin > iMax)
|
|
234
|
+
return;
|
|
235
|
+
|
|
236
|
+
oTable.fnDraw();
|
|
237
|
+
fnOnFiltered();
|
|
238
|
+
});
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
function fnCreateDateRangeInput(oTable) {
|
|
245
|
+
th.html(_fnRangeLabelPart(0));
|
|
246
|
+
var sFromId = oTable.attr("id") + '_range_from_' + i;
|
|
247
|
+
var from = $('<input type="text" class="date_range_filter" id="' + sFromId + '" rel="' + i + '"/>');
|
|
248
|
+
from.datepicker();
|
|
249
|
+
th.append(from);
|
|
250
|
+
th.append(_fnRangeLabelPart(1));
|
|
251
|
+
var sToId = oTable.attr("id") + '_range_to_' + i;
|
|
252
|
+
var to = $('<input type="text" class="date_range_filter" id="' + sToId + '" rel="' + i + '"/>');
|
|
253
|
+
th.append(to);
|
|
254
|
+
th.append(_fnRangeLabelPart(2));
|
|
255
|
+
th.wrapInner('<span class="filterColumn filter_date_range" />');
|
|
256
|
+
to.datepicker();
|
|
257
|
+
var index = i;
|
|
258
|
+
aiCustomSearch_Indexes.push(i);
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
//------------start date range filtering function
|
|
262
|
+
|
|
263
|
+
//$.fn.dataTableExt.afnFiltering.push(
|
|
264
|
+
oTable.dataTableExt.afnFiltering.push(
|
|
265
|
+
function (oSettings, aData, iDataIndex) {
|
|
266
|
+
if (oTable.attr("id") != oSettings.sTableId)
|
|
267
|
+
return true;
|
|
268
|
+
|
|
269
|
+
var dStartDate = from.datepicker("getDate");
|
|
270
|
+
|
|
271
|
+
var dEndDate = to.datepicker("getDate");
|
|
272
|
+
|
|
273
|
+
if (dStartDate == null && dEndDate == null) {
|
|
274
|
+
return true;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
var dCellDate = null;
|
|
278
|
+
try {
|
|
279
|
+
if (aData[_fnColumnIndex(index)] == null || aData[_fnColumnIndex(index)] == "")
|
|
280
|
+
return false;
|
|
281
|
+
dCellDate = $.datepicker.parseDate($.datepicker.regional[""].dateFormat, aData[_fnColumnIndex(index)]);
|
|
282
|
+
} catch (ex) {
|
|
283
|
+
return false;
|
|
284
|
+
}
|
|
285
|
+
if (dCellDate == null)
|
|
286
|
+
return false;
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
if (dStartDate == null && dCellDate <= dEndDate) {
|
|
290
|
+
return true;
|
|
291
|
+
}
|
|
292
|
+
else if (dStartDate <= dCellDate && dEndDate == null) {
|
|
293
|
+
return true;
|
|
294
|
+
}
|
|
295
|
+
else if (dStartDate <= dCellDate && dCellDate <= dEndDate) {
|
|
296
|
+
return true;
|
|
297
|
+
}
|
|
298
|
+
return false;
|
|
299
|
+
}
|
|
300
|
+
);
|
|
301
|
+
//------------end date range filtering function
|
|
302
|
+
|
|
303
|
+
$('#' + sFromId + ',#' + sToId, th).change(function () {
|
|
304
|
+
oTable.fnDraw();
|
|
305
|
+
fnOnFiltered();
|
|
306
|
+
});
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
function fnCreateColumnSelect(oTable, aData, iColumn, nTh, sLabel, bRegex) {
|
|
312
|
+
if (aData == null)
|
|
313
|
+
aData = _fnGetColumnValues(oTable.fnSettings(), iColumn, true, false, true);
|
|
314
|
+
var index = iColumn;
|
|
315
|
+
var currentFilter = oTable.fnSettings().aoPreSearchCols[i].sSearch;
|
|
316
|
+
|
|
317
|
+
var r = '<select class="search_init select_filter"><option value="" class="search_init">' + sLabel + '</option>';
|
|
318
|
+
var j = 0;
|
|
319
|
+
var iLen = aData.length;
|
|
320
|
+
for (j = 0; j < iLen; j++) {
|
|
321
|
+
if (typeof (aData[j]) != 'object') {
|
|
322
|
+
var selected = '';
|
|
323
|
+
if (escape(aData[j]) == currentFilter) selected = 'selected ';
|
|
324
|
+
r += '<option ' + selected + ' value="' + escape(aData[j]) + '">' + aData[j] + '</option>';
|
|
325
|
+
}
|
|
326
|
+
else {
|
|
327
|
+
var selected = '';
|
|
328
|
+
if (bRegex) {
|
|
329
|
+
//Do not escape values if they are explicitely set to avoid escaping special characters in the regexp
|
|
330
|
+
if (aData[j].value == currentFilter) selected = 'selected ';
|
|
331
|
+
r += '<option ' + selected + 'value="' + aData[j].value + '">' + aData[j].label + '</option>';
|
|
332
|
+
} else {
|
|
333
|
+
if (escape(aData[j].value) == currentFilter) selected = 'selected ';
|
|
334
|
+
r += '<option ' + selected + 'value="' + escape(aData[j].value) + '">' + aData[j].label + '</option>';
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
var select = $(r + '</select>');
|
|
340
|
+
nTh.html(select);
|
|
341
|
+
nTh.wrapInner('<span class="filterColumn filter_select" />');
|
|
342
|
+
select.change(function () {
|
|
343
|
+
//var val = $(this).val();
|
|
344
|
+
if ($(this).val() != "") {
|
|
345
|
+
$(this).removeClass("search_init");
|
|
346
|
+
} else {
|
|
347
|
+
$(this).addClass("search_init");
|
|
348
|
+
}
|
|
349
|
+
if (bRegex)
|
|
350
|
+
oTable.fnFilter($(this).val(), iColumn, bRegex); //Issue 41
|
|
351
|
+
else
|
|
352
|
+
oTable.fnFilter(unescape($(this).val()), iColumn); //Issue 25
|
|
353
|
+
fnOnFiltered();
|
|
354
|
+
});
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
function fnCreateSelect(oTable, aData, bRegex) {
|
|
358
|
+
var oSettings = oTable.fnSettings();
|
|
359
|
+
if (aData == null && oSettings.sAjaxSource != "" && !oSettings.oFeatures.bServerSide) {
|
|
360
|
+
// Add a function to the draw callback, which will check for the Ajax data having
|
|
361
|
+
// been loaded. Use a closure for the individual column elements that are used to
|
|
362
|
+
// built the column filter, since 'i' and 'th' (etc) are locally "global".
|
|
363
|
+
oSettings.aoDrawCallback.push({
|
|
364
|
+
"fn": (function (iColumn, nTh, sLabel) {
|
|
365
|
+
return function () {
|
|
366
|
+
// Only rebuild the select on the second draw - i.e. when the Ajax
|
|
367
|
+
// data has been loaded.
|
|
368
|
+
if (oSettings.iDraw == 2 && oSettings.sAjaxSource != null && oSettings.sAjaxSource != "" && !oSettings.oFeatures.bServerSide) {
|
|
369
|
+
return fnCreateColumnSelect(oTable, null, _fnColumnIndex(iColumn), nTh, sLabel, bRegex); //Issue 37
|
|
370
|
+
}
|
|
371
|
+
};
|
|
372
|
+
})(i, th, label),
|
|
373
|
+
"sName": "column_filter_" + i
|
|
374
|
+
});
|
|
375
|
+
}
|
|
376
|
+
// Regardless of the Ajax state, build the select on first pass
|
|
377
|
+
fnCreateColumnSelect(oTable, aData, _fnColumnIndex(i), th, label, bRegex); //Issue 37
|
|
378
|
+
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
function fnCreateCheckbox(oTable, aData) {
|
|
382
|
+
|
|
383
|
+
if (aData == null)
|
|
384
|
+
aData = _fnGetColumnValues(oTable.fnSettings(), i, true, true, true);
|
|
385
|
+
var index = i;
|
|
386
|
+
|
|
387
|
+
var r = '', j, iLen = aData.length;
|
|
388
|
+
|
|
389
|
+
//clean the string
|
|
390
|
+
var localLabel = label.replace('%', 'Perc').replace("&", "AND").replace("$", "DOL").replace("£", "STERL").replace("@", "AT").replace(/\s/g, "_");
|
|
391
|
+
localLabel = localLabel.replace(/[^a-zA-Z 0-9]+/g, '');
|
|
392
|
+
//clean the string
|
|
393
|
+
|
|
394
|
+
//button label override
|
|
395
|
+
if (properties.sFilterButtonText != null || properties.sFilterButtonText != undefined) {
|
|
396
|
+
labelBtn = properties.sFilterButtonText;
|
|
397
|
+
} else {
|
|
398
|
+
labelBtn = label;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
var relativeDivWidthToggleSize = 10;
|
|
402
|
+
var numRow = 12; //numero di checkbox per colonna
|
|
403
|
+
var numCol = Math.floor(iLen / numRow);
|
|
404
|
+
if (iLen % numRow > 0) {
|
|
405
|
+
numCol = numCol + 1;
|
|
406
|
+
};
|
|
407
|
+
|
|
408
|
+
//count how many column should be generated and split the div size
|
|
409
|
+
var divWidth = 100 / numCol - 2;
|
|
410
|
+
|
|
411
|
+
var divWidthToggle = relativeDivWidthToggleSize * numCol;
|
|
412
|
+
|
|
413
|
+
if (numCol == 1) {
|
|
414
|
+
divWidth = 20;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
var divRowDef = '<div style="float:left; min-width: ' + divWidth + '%; " >';
|
|
418
|
+
var divClose = '</div>';
|
|
419
|
+
|
|
420
|
+
var uniqueId = oTable.attr("id") + localLabel;
|
|
421
|
+
var buttonId = "chkBtnOpen" + uniqueId;
|
|
422
|
+
var checkToggleDiv = uniqueId + "-flt-toggle";
|
|
423
|
+
r += '<button id="' + buttonId + '" class="checkbox_filter" > ' + labelBtn + '</button>'; //filter button witch open dialog
|
|
424
|
+
r += '<div id="' + checkToggleDiv + '" '
|
|
425
|
+
+ 'title="' + label + '" '
|
|
426
|
+
+ 'class="toggle-check ui-widget-content ui-corner-all" style="width: ' + (divWidthToggle) + '%; " >'; //dialog div
|
|
427
|
+
//r+= '<div align="center" style="margin-top: 5px; "> <button id="'+buttonId+'Reset" class="checkbox_filter" > reset </button> </div>'; //reset button and its div
|
|
428
|
+
r += divRowDef;
|
|
429
|
+
|
|
430
|
+
for (j = 0; j < iLen; j++) {
|
|
431
|
+
|
|
432
|
+
//if last check close div
|
|
433
|
+
if (j % numRow == 0 && j != 0) {
|
|
434
|
+
r += divClose + divRowDef;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
//check button
|
|
438
|
+
r += '<input class="search_init checkbox_filter" type="checkbox" id= "' + aData[j] + '" name= "' + localLabel + '" value="' + aData[j] + '" >' + aData[j] + '<br/>';
|
|
439
|
+
|
|
440
|
+
var checkbox = $(r);
|
|
441
|
+
th.html(checkbox);
|
|
442
|
+
th.wrapInner('<span class="filterColumn filter_checkbox" />');
|
|
443
|
+
//on every checkbox selection
|
|
444
|
+
checkbox.change(function () {
|
|
445
|
+
|
|
446
|
+
var search = '';
|
|
447
|
+
var or = '|'; //var for select checks in 'or' into the regex
|
|
448
|
+
var resSize = $('input:checkbox[name="' + localLabel + '"]:checked').size();
|
|
449
|
+
$('input:checkbox[name="' + localLabel + '"]:checked').each(function (index) {
|
|
450
|
+
|
|
451
|
+
//search = search + ' ' + $(this).val();
|
|
452
|
+
//concatenation for selected checks in or
|
|
453
|
+
if ((index == 0 && resSize == 1)
|
|
454
|
+
|| (index != 0 && index == resSize - 1)) {
|
|
455
|
+
or = '';
|
|
456
|
+
}
|
|
457
|
+
//trim
|
|
458
|
+
search = search.replace(/^\s+|\s+$/g, "");
|
|
459
|
+
search = search + $(this).val() + or;
|
|
460
|
+
or = '|';
|
|
461
|
+
|
|
462
|
+
});
|
|
463
|
+
|
|
464
|
+
for (var jj = 0; jj < iLen; jj++) {
|
|
465
|
+
if (search != "") {
|
|
466
|
+
$('#' + aData[jj]).removeClass("search_init");
|
|
467
|
+
} else {
|
|
468
|
+
$('#' + aData[jj]).addClass("search_init");
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
//execute search
|
|
473
|
+
oTable.fnFilter(search, index, true, false);
|
|
474
|
+
fnOnFiltered();
|
|
475
|
+
});
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
//filter button
|
|
479
|
+
$('#' + buttonId).button();
|
|
480
|
+
//dialog
|
|
481
|
+
$('#' + checkToggleDiv).dialog({
|
|
482
|
+
//height: 140,
|
|
483
|
+
autoOpen: false,
|
|
484
|
+
//show: "blind",
|
|
485
|
+
hide: "blind",
|
|
486
|
+
buttons: [{
|
|
487
|
+
text: "Reset",
|
|
488
|
+
click: function () {
|
|
489
|
+
//$('#'+buttonId).removeClass("filter_selected"); //LM remove border if filter selected
|
|
490
|
+
$('input:checkbox[name="' + localLabel + '"]:checked').each(function (index3) {
|
|
491
|
+
$(this).attr('checked', false);
|
|
492
|
+
$(this).addClass("search_init");
|
|
493
|
+
});
|
|
494
|
+
oTable.fnFilter('', index, true, false);
|
|
495
|
+
fnOnFiltered();
|
|
496
|
+
return false;
|
|
497
|
+
}
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
text: "Close",
|
|
501
|
+
click: function () { $(this).dialog("close"); }
|
|
502
|
+
}
|
|
503
|
+
]
|
|
504
|
+
});
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
$('#' + buttonId).click(function () {
|
|
508
|
+
|
|
509
|
+
$('#' + checkToggleDiv).dialog('open');
|
|
510
|
+
var target = $(this);
|
|
511
|
+
$('#' + checkToggleDiv).dialog("widget").position({ my: 'top',
|
|
512
|
+
at: 'bottom',
|
|
513
|
+
of: target
|
|
514
|
+
});
|
|
515
|
+
|
|
516
|
+
return false;
|
|
517
|
+
});
|
|
518
|
+
|
|
519
|
+
var fnOnFilteredCurrent = fnOnFiltered;
|
|
520
|
+
|
|
521
|
+
fnOnFiltered = function () {
|
|
522
|
+
var target = $('#' + buttonId);
|
|
523
|
+
$('#' + checkToggleDiv).dialog("widget").position({ my: 'top',
|
|
524
|
+
at: 'bottom',
|
|
525
|
+
of: target
|
|
526
|
+
});
|
|
527
|
+
fnOnFilteredCurrent();
|
|
528
|
+
};
|
|
529
|
+
//reset
|
|
530
|
+
/*
|
|
531
|
+
$('#'+buttonId+"Reset").button();
|
|
532
|
+
$('#'+buttonId+"Reset").click(function(){
|
|
533
|
+
$('#'+buttonId).removeClass("filter_selected"); //LM remove border if filter selected
|
|
534
|
+
$('input:checkbox[name="'+localLabel+'"]:checked').each(function(index3) {
|
|
535
|
+
$(this).attr('checked', false);
|
|
536
|
+
$(this).addClass("search_init");
|
|
537
|
+
});
|
|
538
|
+
oTable.fnFilter('', index, true, false);
|
|
539
|
+
return false;
|
|
540
|
+
});
|
|
541
|
+
*/
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
function _fnRangeLabelPart(iPlace) {
|
|
548
|
+
switch (iPlace) {
|
|
549
|
+
case 0:
|
|
550
|
+
return sRangeFormat.substring(0, sRangeFormat.indexOf("{from}"));
|
|
551
|
+
case 1:
|
|
552
|
+
return sRangeFormat.substring(sRangeFormat.indexOf("{from}") + 6, sRangeFormat.indexOf("{to}"));
|
|
553
|
+
default:
|
|
554
|
+
return sRangeFormat.substring(sRangeFormat.indexOf("{to}") + 4);
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
|
|
559
|
+
|
|
560
|
+
|
|
561
|
+
oTable = this;
|
|
562
|
+
|
|
563
|
+
var defaults = {
|
|
564
|
+
sPlaceHolder: "foot",
|
|
565
|
+
sRangeSeparator: "~",
|
|
566
|
+
iFilteringDelay: 500,
|
|
567
|
+
aoColumns: null,
|
|
568
|
+
sRangeFormat: "From {from} to {to}"
|
|
569
|
+
};
|
|
570
|
+
|
|
571
|
+
properties = $.extend(defaults, options);
|
|
572
|
+
|
|
573
|
+
return this.each(function () {
|
|
574
|
+
|
|
575
|
+
if (!oTable.fnSettings().oFeatures.bFilter)
|
|
576
|
+
return;
|
|
577
|
+
asInitVals = new Array();
|
|
578
|
+
|
|
579
|
+
aoFilterCells = oTable.fnSettings().aoFooter[0];
|
|
580
|
+
|
|
581
|
+
var oHost = oTable.fnSettings().nTFoot; //Before fix for ColVis
|
|
582
|
+
var sFilterRow = "tr"; //Before fix for ColVis
|
|
583
|
+
|
|
584
|
+
if (properties.sPlaceHolder == "head:after") {
|
|
585
|
+
var tr = $("tr:first", oTable.fnSettings().nTHead).detach();
|
|
586
|
+
//tr.appendTo($(oTable.fnSettings().nTHead));
|
|
587
|
+
if (oTable.fnSettings().bSortCellsTop) {
|
|
588
|
+
tr.prependTo($(oTable.fnSettings().nTHead));
|
|
589
|
+
//tr.appendTo($("thead", oTable));
|
|
590
|
+
aoFilterCells = oTable.fnSettings().aoHeader[1];
|
|
591
|
+
}
|
|
592
|
+
else {
|
|
593
|
+
tr.appendTo($(oTable.fnSettings().nTHead));
|
|
594
|
+
//tr.prependTo($("thead", oTable));
|
|
595
|
+
aoFilterCells = oTable.fnSettings().aoHeader[0];
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
sFilterRow = "tr:last";
|
|
599
|
+
oHost = oTable.fnSettings().nTHead;
|
|
600
|
+
|
|
601
|
+
} else if (properties.sPlaceHolder == "head:before") {
|
|
602
|
+
|
|
603
|
+
if (oTable.fnSettings().bSortCellsTop) {
|
|
604
|
+
var tr = $("tr:first", oTable.fnSettings().nTHead).detach();
|
|
605
|
+
tr.appendTo($(oTable.fnSettings().nTHead));
|
|
606
|
+
aoFilterCells = oTable.fnSettings().aoHeader[1];
|
|
607
|
+
} else {
|
|
608
|
+
aoFilterCells = oTable.fnSettings().aoHeader[0];
|
|
609
|
+
}
|
|
610
|
+
/*else {
|
|
611
|
+
//tr.prependTo($("thead", oTable));
|
|
612
|
+
sFilterRow = "tr:first";
|
|
613
|
+
}*/
|
|
614
|
+
|
|
615
|
+
sFilterRow = "tr:first";
|
|
616
|
+
|
|
617
|
+
oHost = oTable.fnSettings().nTHead;
|
|
618
|
+
|
|
619
|
+
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
//$(sFilterRow + " th", oHost).each(function (index) {//bug with ColVis
|
|
623
|
+
$(aoFilterCells).each(function (index) {//fix for ColVis
|
|
624
|
+
i = index;
|
|
625
|
+
var aoColumn = { type: "text",
|
|
626
|
+
bRegex: false,
|
|
627
|
+
bSmart: true,
|
|
628
|
+
iMaxLenght: -1,
|
|
629
|
+
iFilterLength: 0
|
|
630
|
+
};
|
|
631
|
+
if (properties.aoColumns != null) {
|
|
632
|
+
if (properties.aoColumns.length < i || properties.aoColumns[i] == null)
|
|
633
|
+
return;
|
|
634
|
+
aoColumn = properties.aoColumns[i];
|
|
635
|
+
}
|
|
636
|
+
//label = $(this).text(); //Before fix for ColVis
|
|
637
|
+
label = $($(this)[0].cell).text(); //Fix for ColVis
|
|
638
|
+
if (aoColumn.sSelector == null) {
|
|
639
|
+
//th = $($(this)[0]);//Before fix for ColVis
|
|
640
|
+
th = $($(this)[0].cell); //Fix for ColVis
|
|
641
|
+
}
|
|
642
|
+
else {
|
|
643
|
+
th = $(aoColumn.sSelector);
|
|
644
|
+
if (th.length == 0)
|
|
645
|
+
th = $($(this)[0].cell);
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
if (aoColumn != null) {
|
|
649
|
+
if (aoColumn.sRangeFormat != null)
|
|
650
|
+
sRangeFormat = aoColumn.sRangeFormat;
|
|
651
|
+
else
|
|
652
|
+
sRangeFormat = properties.sRangeFormat;
|
|
653
|
+
switch (aoColumn.type) {
|
|
654
|
+
case "null":
|
|
655
|
+
break;
|
|
656
|
+
case "number":
|
|
657
|
+
fnCreateInput(oTable, true, false, true, aoColumn.iFilterLength, aoColumn.iMaxLenght);
|
|
658
|
+
break;
|
|
659
|
+
case "select":
|
|
660
|
+
if (aoColumn.bRegex != true)
|
|
661
|
+
aoColumn.bRegex = false;
|
|
662
|
+
fnCreateSelect(oTable, aoColumn.values, aoColumn.bRegex);
|
|
663
|
+
break;
|
|
664
|
+
case "number-range":
|
|
665
|
+
fnCreateRangeInput(oTable);
|
|
666
|
+
break;
|
|
667
|
+
case "date-range":
|
|
668
|
+
fnCreateDateRangeInput(oTable);
|
|
669
|
+
break;
|
|
670
|
+
case "checkbox":
|
|
671
|
+
fnCreateCheckbox(oTable, aoColumn.values);
|
|
672
|
+
break;
|
|
673
|
+
case "text":
|
|
674
|
+
default:
|
|
675
|
+
bRegex = (aoColumn.bRegex == null ? false : aoColumn.bRegex);
|
|
676
|
+
bSmart = (aoColumn.bSmart == null ? false : aoColumn.bSmart);
|
|
677
|
+
fnCreateInput(oTable, bRegex, bSmart, false, aoColumn.iFilterLength, aoColumn.iMaxLenght);
|
|
678
|
+
break;
|
|
679
|
+
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
});
|
|
683
|
+
|
|
684
|
+
for (j = 0; j < aiCustomSearch_Indexes.length; j++) {
|
|
685
|
+
//var index = aiCustomSearch_Indexes[j];
|
|
686
|
+
var fnSearch_ = function () {
|
|
687
|
+
var id = oTable.attr("id");
|
|
688
|
+
return $("#" + id + "_range_from_" + aiCustomSearch_Indexes[j]).val() + properties.sRangeSeparator + $("#" + id + "_range_to_" + aiCustomSearch_Indexes[j]).val();
|
|
689
|
+
};
|
|
690
|
+
afnSearch_.push(fnSearch_);
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
if (oTable.fnSettings().oFeatures.bServerSide) {
|
|
694
|
+
|
|
695
|
+
var fnServerDataOriginal = oTable.fnSettings().fnServerData;
|
|
696
|
+
|
|
697
|
+
oTable.fnSettings().fnServerData = function (sSource, aoData, fnCallback) {
|
|
698
|
+
|
|
699
|
+
for (j = 0; j < aiCustomSearch_Indexes.length; j++) {
|
|
700
|
+
var index = aiCustomSearch_Indexes[j];
|
|
701
|
+
|
|
702
|
+
for (k = 0; k < aoData.length; k++) {
|
|
703
|
+
if (aoData[k].name == "sSearch_" + index)
|
|
704
|
+
aoData[k].value = afnSearch_[j]();
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
aoData.push({ "name": "sRangeSeparator", "value": properties.sRangeSeparator });
|
|
708
|
+
|
|
709
|
+
if (fnServerDataOriginal != null) {
|
|
710
|
+
try {
|
|
711
|
+
fnServerDataOriginal(sSource, aoData, fnCallback, oTable.fnSettings()); //TODO: See Issue 18
|
|
712
|
+
} catch (ex) {
|
|
713
|
+
fnServerDataOriginal(sSource, aoData, fnCallback);
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
else {
|
|
717
|
+
$.getJSON(sSource, aoData, function (json) {
|
|
718
|
+
fnCallback(json);
|
|
719
|
+
});
|
|
720
|
+
}
|
|
721
|
+
};
|
|
722
|
+
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
});
|
|
726
|
+
|
|
727
|
+
};
|
|
728
|
+
|
|
729
|
+
|
|
730
|
+
|
|
731
|
+
|
|
732
|
+
})(jQuery);
|