Changeset 3106:6b85f6d641e0 in livinglogic.python.xist

Show
Ignore:
Timestamp:
01/05/08 23:29:51 (12 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Fix RequiredAttrMissingWarning?.repr(). Fix tags in docstring. Add docformat.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/ll/xist/xsc.py

    r3088 r3106  
    3232except ImportError: 
    3333    ipipe = None 
     34 
     35 
     36__docformat__ = "xist" 
     37 
    3438 
    3539local = threading.local() 
     
    267271 
    268272    def __str__(self): 
    269         return "Required attribute%s %s missing in %s" % (("s" if len(self.reqattrs)>1 else ""), ", ".join(attr.__class__.__name__ for attr in self.reqattrs), self.attrs._str(fullname=True, xml=False, decorate=False)) 
     273        return "Required attribute%s %s missing in %s" % (("s" if len(self.reqattrs)>1 else ""), ", ".join(repr(attr) for attr in self.reqattrs), self.attrs._str(fullname=True, xml=False, decorate=False)) 
    270274 
    271275 
     
    25272531    def set_xml(self, name, value): 
    25282532        """ 
    2529         <par>Set the attribute with the XML <arg>name</arg> to the value <arg>value</arg>. 
     2533        <par>Set the attribute with the XML <arg>name</arg> to the value <arg>value</arg>.</par> 
    25302534        <par>The newly set attribute will be returned.</par> 
    25312535        """