Typo in SimpleAccess and refinement in SimpleTable -- allow any object, just turn into string
svn: r13911
This commit is contained in:
parent
06b3d7dc1f
commit
145a517324
@ -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):
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user