nxsconfigserver 2.17.0__py3-none-any.whl → 2.18.0__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.
- nxsconfigserver/NXSConfigServer.py +35 -0
- nxsconfigserver/Release.py +1 -1
- nxsconfigserver/XMLConfigurator.py +14 -0
- {nxsconfigserver-2.17.0.dist-info → nxsconfigserver-2.18.0.dist-info}/METADATA +5 -2
- {nxsconfigserver-2.17.0.dist-info → nxsconfigserver-2.18.0.dist-info}/RECORD +8 -8
- {nxsconfigserver-2.17.0.data → nxsconfigserver-2.18.0.data}/scripts/NXSConfigServer +0 -0
- {nxsconfigserver-2.17.0.dist-info → nxsconfigserver-2.18.0.dist-info}/WHEEL +0 -0
- {nxsconfigserver-2.17.0.dist-info → nxsconfigserver-2.18.0.dist-info}/top_level.txt +0 -0
|
@@ -522,6 +522,38 @@ class NXSConfigServer(tango.LatestDeviceImpl):
|
|
|
522
522
|
return False
|
|
523
523
|
return True
|
|
524
524
|
|
|
525
|
+
def InstantiatedDataSources(self, argin):
|
|
526
|
+
""" InstantiatedDataSources command
|
|
527
|
+
|
|
528
|
+
:brief: Returns a list of required components
|
|
529
|
+
|
|
530
|
+
:param argin: DevVarStringArray list of component names
|
|
531
|
+
:type argin: :obj:`list` <:obj:`str`>
|
|
532
|
+
:returns: DevVarStringArray list of instantiated components
|
|
533
|
+
:rtype: :obj:`list` <:obj:`str`>
|
|
534
|
+
"""
|
|
535
|
+
self.debug_stream("In InstantiateDataSources()")
|
|
536
|
+
try:
|
|
537
|
+
self.set_state(tango.DevState.RUNNING)
|
|
538
|
+
argout = self.xmlc.instantiatedDataSources(argin)
|
|
539
|
+
self.set_state(tango.DevState.OPEN)
|
|
540
|
+
finally:
|
|
541
|
+
if self.get_state() == tango.DevState.RUNNING:
|
|
542
|
+
self.set_state(tango.DevState.OPEN)
|
|
543
|
+
|
|
544
|
+
return argout
|
|
545
|
+
|
|
546
|
+
def is_InstantiatedDataSources_allowed(self):
|
|
547
|
+
""" DataSources command State Machine
|
|
548
|
+
|
|
549
|
+
:returns: True if the operation allowed
|
|
550
|
+
:rtype: :obj:`bool`
|
|
551
|
+
"""
|
|
552
|
+
if self.get_state() in [tango.DevState.ON,
|
|
553
|
+
tango.DevState.RUNNING]:
|
|
554
|
+
return False
|
|
555
|
+
return True
|
|
556
|
+
|
|
525
557
|
def DataSources(self, argin):
|
|
526
558
|
""" DataSources command
|
|
527
559
|
|
|
@@ -1195,6 +1227,9 @@ class NXSConfigServerClass(tango.DeviceClass):
|
|
|
1195
1227
|
'InstantiatedComponents':
|
|
1196
1228
|
[[tango.DevVarStringArray, "list of component names"],
|
|
1197
1229
|
[tango.DevVarStringArray, "list of instantiated components"]],
|
|
1230
|
+
'InstantiatedDataSources':
|
|
1231
|
+
[[tango.DevVarStringArray, "list of component names"],
|
|
1232
|
+
[tango.DevVarStringArray, "list of instantiated datasources"]],
|
|
1198
1233
|
'DataSources':
|
|
1199
1234
|
[[tango.DevVarStringArray, "list of DataSource names"],
|
|
1200
1235
|
[tango.DevVarStringArray, "list of required DataSources"]],
|
nxsconfigserver/Release.py
CHANGED
|
@@ -353,6 +353,20 @@ class XMLConfigurator(object):
|
|
|
353
353
|
comps = [self.__instantiate(cp) for cp in comps]
|
|
354
354
|
return comps
|
|
355
355
|
|
|
356
|
+
def instantiatedDataSources(self, names):
|
|
357
|
+
""" instantiates the required datasources
|
|
358
|
+
|
|
359
|
+
:param names: list of datasource names
|
|
360
|
+
:type names: :obj:`list` <:obj:`str`>
|
|
361
|
+
:returns: list of instantiated datasources
|
|
362
|
+
:rtype: :obj:`list` <:obj:`str`>
|
|
363
|
+
"""
|
|
364
|
+
comps = []
|
|
365
|
+
if self.__mydb:
|
|
366
|
+
comps = self.__mydb.dataSources(names)
|
|
367
|
+
comps = [self.__instantiate(ds) for ds in comps]
|
|
368
|
+
return comps
|
|
369
|
+
|
|
356
370
|
def __instantiate(self, xmlcp):
|
|
357
371
|
""" instantiates the xml component
|
|
358
372
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: nxsconfigserver
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.18.0
|
|
4
4
|
Summary: Configuration Server for Nexus Data Writer
|
|
5
5
|
Home-page: http://github.com/jkotan/nexdatas/nxsconfigserver
|
|
6
6
|
Author: Jan Kotanski, Eugen Wintersberger , Halil Pasic
|
|
@@ -21,6 +21,9 @@ Classifier: Programming Language :: Python :: 3.7
|
|
|
21
21
|
Classifier: Programming Language :: Python :: 3.8
|
|
22
22
|
Classifier: Programming Language :: Python :: 3.9
|
|
23
23
|
Classifier: Programming Language :: Python :: 3.10
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
24
27
|
Requires-Dist: lxml
|
|
25
28
|
|
|
26
29
|
======================================================
|
|
@@ -96,7 +99,7 @@ with proper privileges.
|
|
|
96
99
|
Debian packages
|
|
97
100
|
^^^^^^^^^^^^^^^
|
|
98
101
|
|
|
99
|
-
Debian Bookworm, Bullseye, Buster and as well as Ubuntu
|
|
102
|
+
Debian Bookworm, Bullseye, Buster and as well as Ubuntu Plucky, Noble, Jammy packages can be found in the HDRI repository.
|
|
100
103
|
|
|
101
104
|
To install the debian packages, add the PGP repository key
|
|
102
105
|
|
|
@@ -2,13 +2,13 @@ nxsconfigserver/ComponentParser.py,sha256=oUEy3_0Q77992pAxR3k8CxzF5UP4hwc2beHYh9
|
|
|
2
2
|
nxsconfigserver/Errors.py,sha256=zFZlQNbZV6UlbGGBV149j1DQbPXAkTmYVgaR1QRIXP8,1956
|
|
3
3
|
nxsconfigserver/MYSQLDataBase.py,sha256=54bFG4KFLMkVYMme3bcybve24qgsxKTvCo7vP6RDjTI,22755
|
|
4
4
|
nxsconfigserver/Merger.py,sha256=t6xX2ETUIy1FYIXvmcEstTwKf9oq_jDtvXIDV6c4kV0,25327
|
|
5
|
-
nxsconfigserver/NXSConfigServer.py,sha256=
|
|
6
|
-
nxsconfigserver/Release.py,sha256=
|
|
5
|
+
nxsconfigserver/NXSConfigServer.py,sha256=kxHx0vugHEin9j5c0iizvIbbi0Z5S6E8MoMDY7csN6k,47113
|
|
6
|
+
nxsconfigserver/Release.py,sha256=9ewpv_XVl0c_YuOvqi-Ntvm7H_HchEUOXi0bWKva8I8,895
|
|
7
7
|
nxsconfigserver/StreamSet.py,sha256=sSvXJxoDufmt9_Xu5rFaQsp_4x9gww_zMv0NTiiyLlg,5799
|
|
8
|
-
nxsconfigserver/XMLConfigurator.py,sha256=
|
|
8
|
+
nxsconfigserver/XMLConfigurator.py,sha256=7EzAsnoD5WLzgdEfcq9u7ITNQKZ5Car9I2jxj2DI3hI,36899
|
|
9
9
|
nxsconfigserver/__init__.py,sha256=dAvNwdxRsIARsH--JgJBAxzyaX3KPzZNStQ6B7SLbjI,1718
|
|
10
|
-
nxsconfigserver-2.
|
|
11
|
-
nxsconfigserver-2.
|
|
12
|
-
nxsconfigserver-2.
|
|
13
|
-
nxsconfigserver-2.
|
|
14
|
-
nxsconfigserver-2.
|
|
10
|
+
nxsconfigserver-2.18.0.data/scripts/NXSConfigServer,sha256=VEAkby0R6UyckF-OofkVDPx3Mkn6rjPrl2xMbbBXqwo,986
|
|
11
|
+
nxsconfigserver-2.18.0.dist-info/METADATA,sha256=DsbF-BxvE5W8TpwyM_GnNx3_l6s0D-knin0jYLuHr7Y,14440
|
|
12
|
+
nxsconfigserver-2.18.0.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
|
13
|
+
nxsconfigserver-2.18.0.dist-info/top_level.txt,sha256=TFz-xXdq3yV2iwY44R0uY1F-zqwYDnOmcJlN9kdo1S8,16
|
|
14
|
+
nxsconfigserver-2.18.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|