[pygr-notify] Issue 31 in pygr: Fix bug in sqlgraph.SQLTable.generic_iterator; add associated tests

codesite-noreply at google.com codesite-noreply at google.com
Tue Sep 2 19:04:15 PDT 2008


Issue 31: Fix bug in sqlgraph.SQLTable.generic_iterator; add associated  
tests
http://code.google.com/p/pygr/issues/detail?id=31

New issue report by ti... at idyll.org:
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.


Attachments:
	Basic-SQLTable-tests-and-resulting-bug-fix-for-gene.patch  5.0 KB


Issue attributes:
	Status: Assigned
	Owner: ti... at idyll.org
	Labels: Type-Defect Priority-Medium

-- 
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings



More information about the pygr-notify mailing list