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 @return: list of events in the database
@rtype: list @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) self.dbase.get_event_from_handle)
def all_sources(self): def all_sources(self):

View File

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