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
|
@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):
|
||||||
|
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user