def __init__(self, name, parent, **kwargs): TaurusAttribute.__init__(self, name, parent, **kwargs) v = self.getNameValidator() urigroups = v.getUriGroups(name) # store the hdf5 path for future readouts self._attr_name = urigroups.get("attrname") self._last_value = None wantpolling = not self.isUsingEvents() haspolling = self.isPollingEnabled() if wantpolling: self._activatePolling() elif haspolling and not wantpolling: self.disablePolling()
def __init__(self, name, parent, **kwargs): TaurusAttribute.__init__(self, name, parent, **kwargs) v = self.getNameValidator() v.getUriGroups(name) groups = v.getUriGroups(name) self.handler = schemesMap[groups['scheme']]() self._attr_name = groups.get("attrname") self._last_value = None wantpolling = not self.isUsingEvents() haspolling = self.isPollingEnabled() if wantpolling: self._activatePolling() elif haspolling and not wantpolling: self.disablePolling()