##// END OF EJS Templates
bundle2: implement a basic __repr__ for bundle2 part...
Pierre-Yves David -
r30872:1f51b465 default
parent child Browse files
Show More
@@ -862,6 +862,11 b' class bundlepart(object):'
862 self._generated = None
862 self._generated = None
863 self.mandatory = mandatory
863 self.mandatory = mandatory
864
864
865 def __repr__(self):
866 cls = "%s.%s" % (self.__class__.__module__, self.__class__.__name__)
867 return ('<%s object at %x; id: %s; type: %s; mandatory: %s>'
868 % (cls, id(self), self.id, self.type, self.mandatory))
869
865 def copy(self):
870 def copy(self):
866 """return a copy of the part
871 """return a copy of the part
867
872
General Comments 0
You need to be logged in to leave comments. Login now