fandango.device.FolderDS module

class fandango.device.FolderDS.FolderAPI(mask=None)[source]

Bases: fandango.tango.ProxiesDict, fandango.objects.SingletonMap

The FolderAPI object will allow to access all FolderDS instances in the system. This will allow to easily save, read, list files in the Folder ecosystem. Files can be tracked by any host, using get_all_hosts() and get_host_devices() methods.

find(device, mask='', N=0, strict=False)[source]

Method for finding devices or files find(device): will return devices or folders matching the given string find(device,file): will return files matching the given argument for the given devices

get_all_devices(exported=False)[source]
get_device(dev, exported=True)[source]
get_device_name(proxy)[source]
get_host_devices(host)[source]
read(uri, filename='')[source]
save(device, filename, data, add_timestamp=False, asynch=True)[source]

FolderDS device, filename WITHOUT PATH!, data to be saved add_timestamp: whether to add or not timestamp at the end of filename asynch: if True, the save() call will not wait for the command to complete

class fandango.device.FolderDS.FolderDS(cl, name)[source]

Bases: fandango.dynamic.DynamicDS

The FolderDS Device Server will allow to write/save/list text files between tango devices

GetFile(filename)[source]
GetFileTime(filename)[source]
ListFiles(mask)[source]
SaveFile(argin)[source]
SaveText(argin)[source]
always_executed_hook()[source]
delete_device()[source]
init_device()[source]
list_files(mask, files=None)[source]
read_SaveFolder(attr)[source]
read_attr_hardware(data)[source]
save_text_file(filename, data)[source]
class fandango.device.FolderDS.FolderDSClass(name)[source]

Bases: fandango.dynamic.DynamicDSClass

attr_list = {'SaveFolder': [[PyTango._PyTango.CmdArgType.DevString, PyTango._PyTango.AttrDataFormat.SCALAR, PyTango._PyTango.AttrWriteType.READ]]}
class_property_list = {'ExtraDevices': [PyTango._PyTango.CmdArgType.DevVarStringArray, 'Devices from other tango hosts to be shown in FolderGUI', []]}
cmd_list = {'SaveFile': [[PyTango._PyTango.CmdArgType.DevVarStringArray, 'filename,contents'], [PyTango._PyTango.CmdArgType.DevVarStringArray, 'filename, size'], {'Display level': PyTango._PyTango.DispLevel.EXPERT}], 'GetFileTime': [[PyTango._PyTango.CmdArgType.DevString, 'filename'], [PyTango._PyTango.CmdArgType.DevDouble, 'modified timestamp'], {'Display level': PyTango._PyTango.DispLevel.EXPERT}], 'Help': [[PyTango._PyTango.CmdArgType.DevVoid, ''], [PyTango._PyTango.CmdArgType.DevString, 'python docstring']], 'ListFiles': [[PyTango._PyTango.CmdArgType.DevString, 'filename mask'], [PyTango._PyTango.CmdArgType.DevVarStringArray, 'file list'], {'Display level': PyTango._PyTango.DispLevel.EXPERT}], 'GetFile': [[PyTango._PyTango.CmdArgType.DevString, 'filename'], [PyTango._PyTango.CmdArgType.DevString, 'contents'], {'Display level': PyTango._PyTango.DispLevel.EXPERT}], 'SaveText': [[PyTango._PyTango.CmdArgType.DevVarStringArray, 'filename,contents'], [PyTango._PyTango.CmdArgType.DevVarStringArray, 'filename, size'], {'Display level': PyTango._PyTango.DispLevel.EXPERT}]}
device_property_list = {'DefaultMethod': [PyTango._PyTango.CmdArgType.DevString, 'Method to be used when calling SaveFile()', ['SaveText']], 'SaveFolder': [PyTango._PyTango.CmdArgType.DevString, 'Folder for saving/retrieving data files', ['/tmp/folderds']]}
fandango.device.FolderDS.main(args=None)[source]
fandango.device.FolderDS.test(args=None)[source]