[web2py] bug http.py / mod_wsgi

2012-09-03 Thread Corne Dickens
situation: apache / mod_wsgi reproduce: in routes.py routes_onerror = [('appname/*','/appname/error/index')] controllers/error.py response.status = request.vars.code return dict() setting response.status is here to make sure that I keep the same status code.. This results in mod_wsgi (pid=11

[web2py] _custom_commit

2012-09-03 Thread Corne Dickens
See https://groups.google.com/forum/?fromgroups#!topic/web2py-developers/pSF3WbO2B5o _custom_commit is commented out right now.. (is this intentionally? And if so, what would be the way to call a custom commit now in case your not using DAL?) --

[web2py] Re: _custom_commit

2012-09-03 Thread Corne Dickens
I don't mind thad it's custom_commit instead of _custom_commit, but using the old one doesn't trigger an exception (its valid code), so nobody will notice anything right away.. --

[web2py] import modules

2012-06-28 Thread Corne Dickens
Hi, Web2py imports modules from the site-packages directory which is a great way to build a project withoud any 'external' dependencies. Only it does not work with modules installed by python easy-install. Python it's self uses a site module for this, which can be added to web2py in an easy way

[web2py] Bug in url parsing / extensions

2012-06-28 Thread Corne Dickens
Hi, There are a few places in the code which are a bit buggy (it looks like code that should be 'changed' already but where skipped) It is about parsing the extension from the erquest url. In some places rsplit is used (which is correct) but in other places split is used which can cause proble

[web2py] Re: import modules

2012-06-29 Thread Corne Dickens
; > and call "import this" in your apps. > > > Il giorno giovedì 28 giugno 2012 16:27:58 UTC+2, Corne Dickens ha scritto: >> >> Hi, >> >> Web2py imports modules from the site-packages directory which is a great >> way to build a project withoud an

[web2py] Re: import modules

2012-07-04 Thread Corne Dickens
ried to do and didn't work that with the submitted patch > works...)? > > > Il giorno venerdì 29 giugno 2012 10:33:07 UTC+2, Corne Dickens ha scritto: >> >> It depends on what you do.. >> >> Just installing with PIP or easy_install works.. >> I

Re: [web2py] Reload routes command line?

2012-10-03 Thread Corne Dickens
Op woensdag 3 oktober 2012 00:42:47 UTC+2 schreef rochacbruno het volgende: > > You could do that from the command line, too, with a python script. >> > > I understood that it need to run under the current running environment > right? if I have a server running (apache) and I open a web2py conso

[web2py] LOAD / restful requests problem

2012-02-20 Thread Corne Dickens
Hi, Currently it is not possible to use LOAD with ajax=False, together with the request.restful decorator. -> a minimal example: controllers/default.py @request.restful() def index(): def GET(*args,**vars): return dict() return locals() @request.restful() def test(): def GE

[web2py] Auth / default checks

2012-02-20 Thread Corne Dickens
Hi, Just an idea for the web2p auth system, why not introduce a standard group 'public' which is assigned to all visitors (not only logged in users) The main advantage of this would be, that you in an easy way can change all access rights for all requests. By (allways) using the has_permission d

[web2py] Re: PhoneGap, JqueryMobile and login/session management

2011-09-16 Thread Corne Dickens
> I suppose I could Ajax in a username/password and store the session_id > either in a cookie or local storage? PhoneGap uses a browser, and by default handles cookies.. A ajax request with username/password is enough, web2py sends back a result with a cookie header and PhoneGap remembers this. Th

[web2py] bug compileapp.py

2011-09-21 Thread Corne Dickens
Hi, In compileapp.py line 317 (compile_views) there is a regex that matches ^[\w/]+\.\w+$, but the mobile views are called view.mobile.html (instead of the normal view.html). Now when you try to compile an app the mobile views are left out. Simple solution would be to allow dots in the filename

[web2py] Re: bug compileapp.py

2011-09-21 Thread Corne Dickens
21, 7:03 am, Corne Dickens wrote: > > > Hi, > > > In compileapp.py line 317 (compile_views) there is a regex that > > matches ^[\w/]+\.\w+$, but the mobile views are called > > view.mobile.html (instead of the normal view.html). > > > Now when you

[web2py] Re: bug compileapp.py

2011-09-21 Thread Corne Dickens
Fixed, Thanks Corne On 22 sep, 03:45, Massimo Di Pierro wrote: > Should now be fixed. pelase check it. Thanks > > massimo > > On Sep 21, 7:03 am, Corne Dickens wrote: > > > Hi, > > > In compileapp.py line 317 (compile_views) there is a regex that > > matc

[web2py] Android sl4a

2011-06-16 Thread Corne Dickens
web2py Version 1.96.4 under sl4a (android / python 2.6.2) does not start due to a few errors. The first one is in dal.py It seems that there was already half fixed, the problem is in path_encoding = sys.getfilesystemencoding() or locale.getdefaultlocale()[1] the result is empty here. There is on

[web2py] Re: Cythonizing web2py in its current state-possible? useful?

2013-07-12 Thread Corne Dickens
I'm not 100% sure about the state right now, but I did try to use cython a while ago.. Result was -> some fixes are needed (not all files in gluon compile out of the box) and it was slower.. -- --- You received this message because you are subscribed to the Google Groups "web2py-users" gro

[web2py] Re: c.r.m. source

2013-08-15 Thread Corne Dickens
It's somewhere half way on the page.. CustomerRelationshipManagement source: https://github.com/mdipierro/web2py-appliances/tree/master/CustomerRelationshipManagement download: https://raw.github.com/mdipierro/web2py-appliances/master/CustomerRelationshipManagement/web2py.app.CustomerRelationship