Typo in SimpleAccess and refinement in SimpleTable -- allow any object, just turn into string

svn: r13911
This commit is contained in:
Doug Blank 2009-12-24 22:19:30 +00:00
parent 06b3d7dc1f
commit 145a517324
2 changed files with 2 additions and 3 deletions

View File

@ -782,7 +782,7 @@ class SimpleAccess(object):
@return: list of events in the database
@rtype: list
"""
return self.__all_objects(self.dbase.get_events_cursor,
return self.__all_objects(self.dbase.get_event_cursor,
self.dbase.get_event_from_handle)
def all_sources(self):

View File

@ -268,8 +268,7 @@ class SimpleTable(object):
retval.append(item[0])
link = (item[1], item[2:])
else:
raise AttributeError, ("unknown object type: '%s': %s" %
(item, type(item)))
retval.append(str(item))
self.__link.append(link)
self.__rows.append(retval)