[web2py] Re: web2py apache2 setup with htaccess authorization

2013-02-18 Thread Chr_M
2py. In a model add: > > if not session.authorized: > if request.post_vars.password == '123456': session.authorized = True > else: raise > HTTP(200,HTML(BODY(FORM('Password:',INPUT(_name='password'),INPUT(_type='submit'.xml()) &g

[web2py] Re: web2py apache2 setup with htaccess authorization

2013-02-17 Thread Chr_M
: > > Why do you want to use htaccess instead of web2py own authentication. > htaccess is such a primitive system. > > > On Sunday, 17 February 2013 06:26:09 UTC-6, Chr_M wrote: >> >> I come from a PHP background and when I wanted to have a website (or a >> part) be

[web2py] web2py apache2 setup with htaccess authorization

2013-02-17 Thread Chr_M
I come from a PHP background and when I wanted to have a website (or a part) behind a login screen (for example for beta testing) I could do that with a htaccess and htpasswd file (with Apache2). I have deployed a web2py website with Apache2, but I can not figure out how to have this website be

[web2py] Re: Code changes not honored (by web2py?)

2012-12-12 Thread Chr_M
webserver (maybe this does not occur when using apache2 or lighttpd?). On Wednesday, December 12, 2012 6:33:26 PM UTC+1, Massimo Di Pierro wrote: > > Instead of tack_changes() try this: > > from gluon.custom_import import custom_importer as __import__ > > On Wednesday, 12 Decembe

[web2py] Re: Code changes not honored (by web2py?)

2012-12-12 Thread Chr_M
rds, Chris On Wednesday, December 12, 2012 3:12:27 PM UTC+1, Massimo Di Pierro wrote: > > Why do you use __import__(class2) instead of > > import class2 > > If you do the latter, does track changes work? > > On Wednesday, 12 December 2012 01:33:41 UTC-6, Chr_M wrote:

[web2py] Re: Code changes not honored (by web2py?)

2012-12-11 Thread Chr_M
Monday, December 10, 2012 4:34:33 PM UTC+1, Massimo Di Pierro wrote: > > It should work when you do it. > > Which python version? Which web2py version? > > On Monday, 10 December 2012 02:57:20 UTC-6, Chr_M wrote: >> >> I call this function at the top of my db.

[web2py] Re: Code changes not honored (by web2py?)

2012-12-10 Thread Chr_M
onday, December 10, 2012 10:03:43 AM UTC+1, Lazarof wrote: > > Hi! > Are you using Ajax callback funcion? > > понедельник, 10 декабря 2012 г., 1:34:09 UTC+4 пользователь Chr_M написал: >> >> Sometimes the changes in the code of a module (in the modules directory) >&g

[web2py] Re: Code changes not honored (by web2py?)

2012-12-10 Thread Chr_M
t; must be a model file, before the modules are imported, not in the modules > themselves which are otherwise cached and therefore the line may or may not > be executed. > > Massimo > > On Sunday, 9 December 2012 15:34:09 UTC-6, Chr_M wrote: >> >> Sometimes the

[web2py] Code changes not honored (by web2py?)

2012-12-09 Thread Chr_M
Sometimes the changes in the code of a module (in the modules directory) are not working when requesting the url that uses these modules. in the modules directory I have a subdirectory with python files that form a package (__init__.py file in this subdirectory). I have added from gluon.custom

Re: [web2py] Database table prefix

2012-11-27 Thread Chr_M
> > Richard > > On Fri, Nov 23, 2012 at 3:09 PM, Chr_M >wrote: > >> That, but even the same app using different tables in the same db (but >> for different cliënts)... >> >> Regards, Chris >> >> >> >> On Friday, November 2

Re: [web2py] Database table prefix

2012-11-26 Thread Chr_M
-and-multi-tenancy>or > just using separate databases (in the latter case, you could just define > the DAL connection string dynamically to refer to the appropriate database)? > > Anthony > > On Monday, November 26, 2012 10:09:18 AM UTC-5, Chr_M wrote: >> >> I guess t

Re: [web2py] Database table prefix

2012-11-26 Thread Chr_M
I guess that nobody has ever had a need for this and that there is not really a solution for it? Regards, Chris On Friday, November 23, 2012 9:09:24 PM UTC+1, Chr_M wrote: > > That, but even the same app using different tables in the same db (but for > different cliënts)... > >

Re: [web2py] Database table prefix

2012-11-24 Thread Chr_M
; > On Fri, Nov 23, 2012 at 10:57 AM, Chr_M >wrote: > >> Hi, >> >> I am new to web2py and am migrating an application to web2py. All the >> tables have a prefix that changes for the different deployments of the >> application. Is there a way in web2py to have a

[web2py] Database table prefix

2012-11-23 Thread Chr_M
Hi, I am new to web2py and am migrating an application to web2py. All the tables have a prefix that changes for the different deployments of the application. Is there a way in web2py to have a prefix for all the tables in the database that I can change easely for different deployments? At this