I am running from source, but still seem to have the issue. On Monday, March 12, 2018 at 1:55:51 AM UTC-4, Val K wrote: > > Hi! > If you're Windows user it's requires to run web2py from source (not > web2py.exe) to get modules that are installed on your machine
I was doing some testing and it seems to work perfectly fine when I run it from default.py. However, any time I try to run it from the controller I need it in, it doesn't work. I even created the "test" function that worked for you, and I still get the "AttributeError: 'dict' object has no attribute 'append'". This one has really got me scratching my head. On Monday, March 12, 2018 at 7:14:59 AM UTC-4, Leonel Câmara wrote: > > This controller worked fine for me: > > def test(): > from collections import defaultdict > g = defaultdict(list) > g['somekey'].append('somevalue') > return response.json(g) > > > > You probably have a bug in your view. You can show us the code if you want. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.