Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CastorScript
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
atlas-tdaq-software
CastorScript
Commits
7bbc207a
Commit
7bbc207a
authored
13 years ago
by
Wainer Vandelli
Browse files
Options
Downloads
Patches
Plain Diff
Allow init parameters for backend module
parent
c79e26c4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Script/Conf.cfg
+3
-0
3 additions, 0 deletions
Script/Conf.cfg
Script/Conf.py
+9
-8
9 additions, 8 deletions
Script/Conf.py
with
12 additions
and
8 deletions
Script/Conf.cfg
+
3
−
0
View file @
7bbc207a
...
...
@@ -57,6 +57,9 @@ Filenameparser: 'SFOFileNameParser'
# Module
provide backend access functions
BackendModule:
'castorstorage'
# Backend
specific parameters
BackendModuleConf:
{}
#[Manager]
##########
MANAGER THREAD ##########
...
...
This diff is collapsed.
Click to expand it.
Script/Conf.py
+
9
−
8
View file @
7bbc207a
...
...
@@ -5,16 +5,10 @@ __version__='$Revision$'
from
config
import
Config
from
collections
import
namedtuple
class
DrivenPool
:
def
__init__
(
self
,
list
):
self
.
projecttag
=
list
[
0
]
self
.
streamtype
=
list
[
1
]
self
.
streamname
=
list
[
2
]
self
.
pool
=
list
[
3
]
self
.
targetdir
=
list
[
4
]
self
.
stagehost
=
list
[
5
]
DrivenPool
=
namedtuple
(
'
Point
'
,
[
'
projecttag
'
,
'
streamtype
'
,
'
streamname
'
,
'
pool
'
,
'
targetdir
'
,
'
stagehost
'
])
class
Conf
:
...
...
@@ -84,6 +78,13 @@ class Conf:
except
AttributeError
:
self
.
backend
=
__import__
(
'
castorstorage
'
,
globals
(),
locals
())
#Backend params
try
:
self
.
backend
.
init
(
cfg
.
BackendModuleConf
)
except
AttributeError
:
pass
########## MANAGER THREAD ##########
# Directory List where to get Data Files (list of strings)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment