a little pointer..... find(), exclude(), etc are methods of a "rows" object. Can you please try to cache using cache.disk ? If the error is the same, this is the "unfair" difference from cache.ram (that can cache pointers to a functions, objects, singletons, etc) vs all the other methods that have to pass through pickle.
On Thursday, September 13, 2012 4:09:17 PM UTC+2, Massimo Di Pierro wrote: > > I am not sure. Please open a ticket do it gets tracked. > > On Sep 13, 2012, at 9:03 AM, Bruno Rocha wrote: > > 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? > > > > -- > -- mail from:GoogleGroups "web2py-developers" mailing list > make speech: web2py-d...@googlegroups.com <javascript:> > unsubscribe: web2py-develop...@googlegroups.com <javascript:> > details : http://groups.google.com/group/web2py-developers > the project: http://code.google.com/p/web2py/ > official : http://www.web2py.com/ > > > > > --