[pytango] 91/122: Expose LatestDeviceImpl
Sandor Bodo-Merle
sbodomerle-guest at moszumanska.debian.org
Thu Sep 28 19:18:22 UTC 2017
This is an automated email from the git hooks/post-receive script.
sbodomerle-guest pushed a commit to tag v9.2.1
in repository pytango.
commit c47217b7ac144a2f9dc99caaf13e625b2ae9a4b9
Author: Vincent Michel <vincent.michel at maxlab.lu.se>
Date: Thu Nov 17 11:32:37 2016 +0100
Expose LatestDeviceImpl
---
tango/__init__.py | 115 ++++++++++++++++++++++++++++--------------------------
tango/server.py | 7 ++--
2 files changed, 62 insertions(+), 60 deletions(-)
diff --git a/tango/__init__.py b/tango/__init__.py
index e0817ae..7cc0c94 100644
--- a/tango/__init__.py
+++ b/tango/__init__.py
@@ -18,60 +18,62 @@ http://pytango.readthedocs.io
from __future__ import print_function
-__all__ = [ 'AccessControlType', 'ApiUtil', 'ArchiveEventInfo',
-'ArchiveEventProp', 'ArgType', 'AsynCall', 'AsynReplyNotArrived', 'AttReqType',
-'Attr', 'AttrConfEventData', 'AttrData', 'AttrDataFormat', 'AttrList',
-'AttrProperty', 'AttrQuality', 'AttrReadEvent', 'AttrSerialModel',
-'AttrWriteType', 'AttrWrittenEvent', 'Attribute', 'AttributeAlarm',
-'AttributeAlarmInfo', 'AttributeConfig', 'AttributeConfig_2',
-'AttributeConfig_3', 'AttributeDimension', 'AttributeEventInfo',
-'AttributeInfo', 'AttributeInfoEx', 'AttributeInfoList', 'AttributeInfoListEx',
-'AttributeList', 'AttributeProxy', 'ChangeEventInfo', 'ChangeEventProp',
-'Pipe', 'PipeConfig', 'PipeWriteType',
-'CmdArgType', 'CmdDoneEvent', 'CommandInfo', 'CommandInfoList',
-'CommunicationFailed', 'Connection', 'ConnectionFailed',
-'ConstDevString', 'DServer', 'DataReadyEventData', 'Database', 'DbData',
-'DbDatum', 'DbDevExportInfo', 'DbDevExportInfos', 'DbDevImportInfo',
-'DbDevImportInfos', 'DbDevFullInfo', 'DbDevInfo', 'DbDevInfos', 'DbHistory',
-'DbHistoryList', 'DbServerInfo', 'DbServerData', 'DebugIt', 'DevBoolean', 'DevCommandInfo',
-'DevDouble', 'DevEncoded', 'DevError', 'DevFailed', 'DevFloat', 'DevInt',
-'DevLong', 'DevLong64', 'DevShort', 'DevSource', 'DevState', 'DevString',
-'DevUChar', 'DevULong', 'DevULong64', 'DevUShort', 'DevEnum', 'DevVarBooleanArray',
-'DevVarCharArray', 'DevVarDoubleArray', 'DevVarDoubleStringArray',
-'DevVarFloatArray', 'DevVarLong64Array', 'DevVarLongArray',
-'DevVarLongStringArray', 'DevVarShortArray', 'DevVarStringArray',
-'DevVarULong64Array', 'DevVarULongArray', 'DevVarUShortArray',
-'DevVoid', 'DeviceAttribute', 'DeviceAttributeConfig',
-'DeviceAttributeHistory', 'DeviceClass', 'DeviceData', 'DeviceDataList',
-'DeviceDataHistory', 'DeviceDataHistoryList',
-'DeviceImpl', 'DeviceInfo', 'DeviceProxy',
-'DeviceUnlocked', 'Device_2Impl', 'Device_3Impl', 'Device_4Impl', 'Device_5Impl',
-'DispLevel', 'EncodedAttribute', 'ErrSeverity', 'ErrorIt',
-'EventData', 'EventProperties', 'EventSystemFailed', 'EventType',
-'Except', 'ExtractAs', 'FMT_UNKNOWN', 'FatalIt', 'Group', 'GroupAttrReply',
-'GroupAttrReplyList', 'GroupCmdReply', 'GroupCmdReplyList',
-'GroupReply', 'GroupReplyList', 'IMAGE', 'ImageAttr', 'InfoIt',
-'KeepAliveCmdCode', 'Level', 'LockCmdCode', 'LockerInfo', 'LockerLanguage',
-'LogIt', 'LogLevel', 'LogTarget', 'Logger', 'Logging', 'MessBoxType',
-'MultiAttribute', 'MultiAttrProp', 'MultiClassAttribute', 'NamedDevFailed',
-'NamedDevFailedList', 'NonDbDevice', 'NonSupportedFeature',
-'NotAllowed', 'NumpyType', 'PeriodicEventInfo', 'PeriodicEventProp',
-'PollCmdCode', 'PollDevice',
-'PollObjType', 'READ', 'READ_WITH_WRITE', 'READ_WRITE', 'Release', 'SCALAR',
-'SPECTRUM', 'SerialModel', 'SpectrumAttr', 'StdDoubleVector',
-'StdGroupAttrReplyVector', 'StdGroupCmdReplyVector', 'StdGroupReplyVector',
-'StdLongVector', 'StdNamedDevFailedVector', 'StdStringVector', 'SubDevDiag',
-'TangoStream', 'TimeVal', 'UserDefaultAttrProp', 'UserDefaultPipeProp', 'Util',
-'WAttribute', 'WRITE', 'WarnIt', 'WrongData', 'WrongNameSyntax', '__version__',
-'__version_description__', '__version_info__', '__version_long__',
-'__version_number__', 'alarm_flags', 'asyn_req_type', 'cb_sub_model',
-'class_factory', 'class_list', 'constants', 'constructed_class',
-'cpp_class_list', 'delete_class_list', 'get_class', 'get_classes',
-'get_constructed_class', 'get_constructed_classes', 'get_cpp_class',
-'get_cpp_classes', 'is_array_type', 'is_float_type',
-'is_int_type', 'is_numerical_type', 'is_scalar_type', 'numpy_image',
-'numpy_spectrum', 'numpy_type', 'obj_2_str', 'raise_asynch_exception',
-'seqStr_2_obj', 'AutoTangoMonitor', 'AutoTangoAllowThreads']
+__all__ = [
+ 'AccessControlType', 'ApiUtil', 'ArchiveEventInfo',
+ 'ArchiveEventProp', 'ArgType', 'AsynCall', 'AsynReplyNotArrived', 'AttReqType',
+ 'Attr', 'AttrConfEventData', 'AttrData', 'AttrDataFormat', 'AttrList',
+ 'AttrProperty', 'AttrQuality', 'AttrReadEvent', 'AttrSerialModel',
+ 'AttrWriteType', 'AttrWrittenEvent', 'Attribute', 'AttributeAlarm',
+ 'AttributeAlarmInfo', 'AttributeConfig', 'AttributeConfig_2',
+ 'AttributeConfig_3', 'AttributeDimension', 'AttributeEventInfo',
+ 'AttributeInfo', 'AttributeInfoEx', 'AttributeInfoList', 'AttributeInfoListEx',
+ 'AttributeList', 'AttributeProxy', 'ChangeEventInfo', 'ChangeEventProp',
+ 'Pipe', 'PipeConfig', 'PipeWriteType',
+ 'CmdArgType', 'CmdDoneEvent', 'CommandInfo', 'CommandInfoList',
+ 'CommunicationFailed', 'Connection', 'ConnectionFailed',
+ 'ConstDevString', 'DServer', 'DataReadyEventData', 'Database', 'DbData',
+ 'DbDatum', 'DbDevExportInfo', 'DbDevExportInfos', 'DbDevImportInfo',
+ 'DbDevImportInfos', 'DbDevFullInfo', 'DbDevInfo', 'DbDevInfos', 'DbHistory',
+ 'DbHistoryList', 'DbServerInfo', 'DbServerData', 'DebugIt', 'DevBoolean', 'DevCommandInfo',
+ 'DevDouble', 'DevEncoded', 'DevError', 'DevFailed', 'DevFloat', 'DevInt',
+ 'DevLong', 'DevLong64', 'DevShort', 'DevSource', 'DevState', 'DevString',
+ 'DevUChar', 'DevULong', 'DevULong64', 'DevUShort', 'DevEnum', 'DevVarBooleanArray',
+ 'DevVarCharArray', 'DevVarDoubleArray', 'DevVarDoubleStringArray',
+ 'DevVarFloatArray', 'DevVarLong64Array', 'DevVarLongArray',
+ 'DevVarLongStringArray', 'DevVarShortArray', 'DevVarStringArray',
+ 'DevVarULong64Array', 'DevVarULongArray', 'DevVarUShortArray',
+ 'DevVoid', 'DeviceAttribute', 'DeviceAttributeConfig',
+ 'DeviceAttributeHistory', 'DeviceClass', 'DeviceData', 'DeviceDataList',
+ 'DeviceDataHistory', 'DeviceDataHistoryList',
+ 'DeviceImpl', 'DeviceInfo', 'DeviceProxy',
+ 'DeviceUnlocked', 'Device_2Impl', 'Device_3Impl', 'Device_4Impl', 'Device_5Impl',
+ 'DispLevel', 'EncodedAttribute', 'ErrSeverity', 'ErrorIt',
+ 'EventData', 'EventProperties', 'EventSystemFailed', 'EventType',
+ 'Except', 'ExtractAs', 'FMT_UNKNOWN', 'FatalIt', 'Group', 'GroupAttrReply',
+ 'GroupAttrReplyList', 'GroupCmdReply', 'GroupCmdReplyList',
+ 'GroupReply', 'GroupReplyList', 'IMAGE', 'ImageAttr', 'InfoIt',
+ 'KeepAliveCmdCode', 'Level', 'LockCmdCode', 'LockerInfo', 'LockerLanguage',
+ 'LogIt', 'LogLevel', 'LogTarget', 'Logger', 'Logging', 'MessBoxType',
+ 'MultiAttribute', 'MultiAttrProp', 'MultiClassAttribute', 'NamedDevFailed',
+ 'NamedDevFailedList', 'NonDbDevice', 'NonSupportedFeature',
+ 'NotAllowed', 'NumpyType', 'PeriodicEventInfo', 'PeriodicEventProp',
+ 'PollCmdCode', 'PollDevice',
+ 'PollObjType', 'READ', 'READ_WITH_WRITE', 'READ_WRITE', 'Release', 'SCALAR',
+ 'SPECTRUM', 'SerialModel', 'SpectrumAttr', 'StdDoubleVector',
+ 'StdGroupAttrReplyVector', 'StdGroupCmdReplyVector', 'StdGroupReplyVector',
+ 'StdLongVector', 'StdNamedDevFailedVector', 'StdStringVector', 'SubDevDiag',
+ 'TangoStream', 'TimeVal', 'UserDefaultAttrProp', 'UserDefaultPipeProp', 'Util',
+ 'WAttribute', 'WRITE', 'WarnIt', 'WrongData', 'WrongNameSyntax', '__version__',
+ '__version_description__', '__version_info__', '__version_long__',
+ '__version_number__', 'alarm_flags', 'asyn_req_type', 'cb_sub_model',
+ 'class_factory', 'class_list', 'constants', 'constructed_class',
+ 'cpp_class_list', 'delete_class_list', 'get_class', 'get_classes',
+ 'get_constructed_class', 'get_constructed_classes', 'get_cpp_class',
+ 'get_cpp_classes', 'is_array_type', 'is_float_type',
+ 'is_int_type', 'is_numerical_type', 'is_scalar_type', 'numpy_image',
+ 'numpy_spectrum', 'numpy_type', 'obj_2_str', 'raise_asynch_exception',
+ 'seqStr_2_obj', 'AutoTangoMonitor', 'AutoTangoAllowThreads',
+ 'LatestDeviceImpl']
__docformat__ = "restructuredtext"
@@ -120,7 +122,8 @@ if os.name == 'nt':
else:
from . import _tango
-from ._tango import (AccessControlType, ApiUtil, ArchiveEventInfo,
+from ._tango import (
+ AccessControlType, ApiUtil, ArchiveEventInfo,
AsynCall, AsynReplyNotArrived, AttReqType, Attr, AttrConfEventData,
AttrDataFormat, AttrList, AttrProperty, AttrQuality, AttrReadEvent,
AttrSerialModel, AttrWriteType, AttrWrittenEvent, Attribute,
@@ -176,7 +179,7 @@ from .log4tango import TangoStream, LogIt, DebugIt, InfoIt, WarnIt, \
ErrorIt, FatalIt
from .device_server import ChangeEventProp, PeriodicEventProp, \
ArchiveEventProp, AttributeAlarm, EventProperties, AttributeConfig, \
- AttributeConfig_2, AttributeConfig_3, MultiAttrProp
+ AttributeConfig_2, AttributeConfig_3, MultiAttrProp, LatestDeviceImpl
from .pipe import PipeConfig
from .attribute_proxy import AttributeProxy, get_attribute_proxy
from .group import Group
diff --git a/tango/server.py b/tango/server.py
index 5f13098..6784c73 100644
--- a/tango/server.py
+++ b/tango/server.py
@@ -28,7 +28,8 @@ from ._tango import DevFailed, Except, GreenMode
from .attr_data import AttrData
from .pipe_data import PipeData
from .device_class import DeviceClass
-from .utils import get_latest_device_class, is_seq, is_non_str_seq
+from .device_server import LatestDeviceImpl
+from .utils import is_seq, is_non_str_seq
from .utils import scalar_to_array_type, TO_TANGO_TYPE
__all__ = ["DeviceMeta", "Device", "LatestDeviceImpl", "attribute",
@@ -38,8 +39,6 @@ __all__ = ["DeviceMeta", "Device", "LatestDeviceImpl", "attribute",
API_VERSION = 2
-LatestDeviceImpl = get_latest_device_class()
-
def _get_tango_type_format(dtype=None, dformat=None):
if dformat is None:
@@ -575,7 +574,7 @@ class Device(LatestDeviceImpl):
def delete_device(self):
pass
- delete_device.__doc__ == LatestDeviceImpl.delete_device.__doc__
+ delete_device.__doc__ = LatestDeviceImpl.delete_device.__doc__
def read_attr_hardware(self, attr_list):
return LatestDeviceImpl.read_attr_hardware(self, attr_list)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pytango.git
More information about the debian-science-commits
mailing list