Changeset 2519:7acc9f8f3720 in livinglogic.python.xist

Show
Ignore:
Timestamp:
05/19/06 10:06:29 (14 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Simplify xrepr() methods.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • _xist/xsc.py

    r2510 r2519  
    13071307    def __xattrs__(self, mode): 
    13081308        return ("startloc", _ipipe_type, _ipipe_ns, _ipipe_name, _ipipe_content, _ipipe_childrencount, _ipipe_attrscount) 
    1309  
    1310     def __xrepr__(self, mode): 
    1311         yield (-1, True) 
    1312         yield (ipipe.style_default, repr(self)) 
    13131309 
    13141310 
     
    34333429            loc = "" 
    34343430        return "<%s.%s element object (%s/%s)%s at 0x%x>" % (self.__class__.__module__, self.__fullname__(), infoc, infoa, loc, id(self)) 
    3435  
    3436     def __xrepr__(self, mode): 
    3437         yield (-1, True) 
    3438         yield (ipipe.style_default, repr(self)) 
    34393431 
    34403432    def __xiter__(self, mode): 
     
    39723964 
    39733965    def __xrepr__(self, mode): 
    3974         yield (-1, True) 
    39753966        if mode == "cell": 
    3976             yield (ipipe.style_url, self.xmlurl) 
    3977         else: 
    3978             yield (ipipe.style_default, repr(self)) 
     3967            yield (astyle.style_url, self.xmlurl) 
     3968        else: 
     3969            yield (astyle.style_default, repr(self)) 
    39793970 
    39803971    def __xiter__(self, mode): 
     
    45264517 
    45274518    def __xrepr__(self, mode): 
    4528         yield (-1, True) 
    4529         yield (ipipe.style_url, self.sysid) 
    4530         yield (ipipe.style_default, ":") 
     4519        yield (astyle.style_url, self.sysid) 
     4520        yield (astyle.style_default, ":") 
    45314521        for part in ipipe.xrepr(self.line, mode): 
    45324522            yield part 
    4533         yield (ipipe.style_default, ":") 
     4523        yield (astyle.style_default, ":") 
    45344524        for part in ipipe.xrepr(self.col, mode): 
    45354525            yield part