Re: [web2py] Re: Remove _extra from as_list()

2016-07-20 Thread Eric Christiaanse
Hi Anthony, I'm not including them. I'm only using with_alias() and the select in combination with as_list(). I would not expect to get the _extra as a little bonus when you use with_alias()... That's why I'm asking :) Greetings, Eric 2016-07-20 20:56 GMT+02:00 Anthony : > The "_extra" dicti

Re: [web2py] Re: Remove _extra from as_list()

2016-07-21 Thread Eric Christiaanse
Hi Anthony, My code is the following: # -*- coding: utf-8 -*- from gluon.serializers import json @auth.requires(lambda: AuthHelper.valid_token(), requires_login=False) @request.restful() def search(): session.forget() def post(*args, **vars): response.headers["Content-Type"] =

Re: [web2py] Re: Add version number to include javascript files

2013-11-28 Thread Eric Christiaanse
Okay, that's clear reaction and tip, tnx! I was thinking about the proposed solution, but many times I've found that Web2Py had build in solutions for my 'problems'. That's my I asked :) 2013/11/28 Niphlod > nope, there isn't . a PR has been raised for this but has been turned down > (for good

Re: [web2py] Re: cache.disk.clear() crashes in appadmin

2015-03-02 Thread Eric Christiaanse
Hi, It took me a LONG time to check the update, but I just did. I've updated to Web2Py 2.9.12 (this version contains the fix), and copied the appadmin.py to my project. When I call cacke.disk.clear() I still get an error :( To be exact this one: Traceback (most recent call last): File "/home/e

Re: [web2py] Re: cache.disk.clear() crashes in appadmin

2015-03-03 Thread Eric Christiaanse
Hi Leonel, Done that and cleaned the cache folder. When I call /appadmin/ccache the code breaks here: try: disk['ratio'] = disk['hits'] * 100 / value['hit_total'] The first time everything goes great with the from cache.disk.storage[key]: {'hit_total': 0, 'misses': 0} The second time it hit

Re: [web2py] Re: cache.disk.clear() crashes in appadmin

2015-03-03 Thread Eric Christiaanse
Hi, The folder itself is under svn control, the data in it isn't. It the cache folder created 'on demand'? When that's the case we can remove all svn control on it. 2015-03-03 15:01 GMT+01:00 Leonel Câmara : > Why is the cache folder under svn control? Files are keys values in the > current ca

Re: [web2py] Re: cache.disk.clear() crashes in appadmin

2015-03-05 Thread Eric Christiaanse
Hi Leonel, I've removed the cache folder from svn. Everything works fine now with cache removal :) Tnx! 2015-03-03 16:21 GMT+01:00 Leonel Câmara : > Yes, it is created on demand if it isn't there, go ahead and svn delete it. > > -- > Resources: > - http://web2py.com > - http://web2py.com/book