Skip to content

Exception on setting attribute filters #4

@sergirubio

Description

@sergirubio

This settings:

PySignalSimulator.AttributeFilters = PNV: ['state','PLCAttribute']

Provokes this exception:

VaccaPanel.setModel.get_attrs_form(TEST/SIM/EVENTS,[" ['state'", "'PLCAttribute']"])
MainThread WARNING 2016-11-01 09:48:30,967 VaccaPanel.TEST/SIM/EVENTS: Traceback (most recent call last):
File "/home/srubio/PYTHON/vacca/panel.py", line 464, in setModel
self._attrs.append(self.get_attrs_form(device=model,filters=attrs,parent=self))
File "/home/srubio/PYTHON/taurus/qt/qtgui/panel/taurusdevicepanel.py", line 375, in get_attrs_form
if a and searchCl(a.strip(),t.strip()):
File "/home/srubio/PYTHON/taurus/qt/qtgui/panel/taurusdevicepanel.py", line 65, in searchCl
return re.search(m.lower(),k.lower())
File "/usr/lib64/python2.7/re.py", line 146, in search
return _compile(pattern, flags).search(string)
File "/usr/lib64/python2.7/re.py", line 251, in _compile
raise error, v # invalid expression
error: unexpected end of regular expression

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions