Beispiel #1
0
 def recv_target(self, src):
     for obj in src:
         if obj in self.received: continue
         self.received.add(obj)
         try:
             obj.get_attr(self.frame, self.anchor,
                          self.attrname).connect(self.recv)
         except NodeAttrError:
             self.raise_expt(
                 ErrorConfig.AttributeNotFound(obj, self.attrname))
     return
Beispiel #2
0
 def check_undefined(self):
     if not self.received: return
     if self.types: return
     self.raise_expt(
         ErrorConfig.AttributeNotFound(self.target, self.attrname))
     return