예제 #1
0
 def xml(self):
     """
     this returns the object src_element element as a string
     based on the class name (using tag here)
     we set xml_header to False because we only want the header
     on our top level tree
     """
     return util.element_to_xml(self.etree,xml_header=False)
예제 #2
0
 def xml(self):
     """convenience property that returns the XML string of
     the OpenClip instance's etree
     """
     return util.element_to_xml(self.etree)
예제 #3
0
 def __unicode__(self):
     """
     this returns the object etree element as a unicode string
     """
     return util.element_to_xml(self.etree)