Update of /cvsroot/pymerase/pymerase/pymerase
In directory sc8-pr-cvs1:/tmp/cvs-serv19611
Modified Files:
ClassMembers.py
Log Message:
Added getAttributeNames, first used for to report list of valid attributes for an error message
Index: ClassMembers.py
===================================================================
RCS file: /cvsroot/pymerase/pymerase/pymerase/ClassMembers.py,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** ClassMembers.py 25 Apr 2003 23:51:28 -0000 1.23
--- ClassMembers.py 30 May 2003 00:53:06 -0000 1.24
***************
*** 614,617 ****
--- 614,622 ----
return map(lambda x: self.attributes[x], self.attributes_order)
+ def getAttributeNames(self, translatorName):
+ """Return list of attribute names
+ """
+ return map(lambda x: x.getName(translatorName), self.getAttributes())
+
def addAttribute(self, class_attribute, insert=0):
"""Store field object in a way to allow random and sequential access.
|