Calling SQLTable.iteritems() causes an error because the default 'cache_f'
function is incorrect.
'cache_f' defaults to the unbound class method cache_items(); it needs to
either be set to the bound method self.cache_items() (my solution) OR
'self' must be passed into cache_items() explicitly in the generic_iterator
function.
The patch also adds a new file, tests/sqltable_tests.py, that tests basic
dict reading behavior. DictMixin is used to provide 'get' functionality
among others. dict writing and deletion is not tested.
Original issue reported on code.google.com by the.good...@gmail.com on 3 Sep 2008 at 2:03
Original issue reported on code.google.com by
the.good...@gmail.com
on 3 Sep 2008 at 2:03Attachments: