Пример #1
0
 def fget(self):
     if self._wildcard_target:
         return xAddress(('*', '*', '*'))
     else:
         return xAddress((self.target_vendor,
             self.target_device,
             self.target_instance),
             format_string=self.mode)
Пример #2
0
    def handle_header_body(self, toks):
        d = toks.asDict()
        if 'v' in d:
            self._msg.version = d['v']

        self._msg.hop = d['hop']

        if self._mode == 'xap' and 'class' in d:
            self._msg.schema_class, self._msg.schema_type = d['class'].split(
                '.')

        self._msg.source = xAddress((d['sv'], d['sd'], d['si']))

        if 'target' in d and d['target'] == '*':
            self._msg.target = xAddress(('*', '*', '*'))
        else:
            self._msg.target = xAddress((d['tv'], d['td'], d['ti']))
Пример #3
0
 def fget(self):
     return xAddress((self.source_vendor,
         self.source_device,
         self.source_instance),
         mode=self.mode)