I noted that this happens with memcached too.
<type 'exceptions.AttributeError'> 'list' object has no attribute 'find'
My cached .select(cache=(cache.memcache, 1200)) is retrived as a list.
Function argument list
(menus=[<Row {'show_order': 0, 'parent': 1, 'title': 'Co...2, 6, 3, 18, 20,
21), 'modified_by': 1, 'id': 2}>, <Row {'show_order': 0, 'parent': 1,
'title': 'Co...2, 6, 3, 18, 20, 41), 'modified_by': 1, 'id': 3}>, <Row
{'show_order': 0, 'parent': None, 'title': ...2, 6, 4, 19, 48, 10),
'modified_by': 1, 'id': 1}>, <Row {'show_order': 0, 'parent': 1, 'title':
'Pa...12, 6, 8, 6, 50, 55), 'modified_by': 1, 'id': 4}>, <Row
{'show_order': 0, 'parent': 1, 'title': 'Ne...12, 6, 8, 6, 51, 25),
'modified_by': 1, 'id': 5}>], visibility=1, parent=None, place='top')
Code listing
148.
149.
150.
151.
152.
153.
154.
155.
156.
157.
def get_menu(menus, visibility=1, parent=None, place="top"):
ret = []
if not parent:
ret = menus.find(lambda row: (row.parent == 0 or row.parent ==
None) and row.visibility == visibility and row.place == place)
else:
ret = menus.find(lambda row: row.parent == parent and
row.visibility == visibility and row.place == place)
return ret
and I cannot use .find or other methods, this does not happens when using
internal cache.ram.
Is that the expected behavior?
--