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
:
>
> 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
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
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
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:
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.
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
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
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
>
> 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
-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
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)...
>
>
;
> 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
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
14 matches
Mail list logo