Re: [web2py] Anyone in or near Barcelona?

2020-10-16 Thread Warwick JC
I once had a project with: nick.d.kreiss...@gmail.com Then he was in Barcelona On Thu, Oct 15, 2020, 15:43 i.r...@appichar.com.au wrote: > Hi - I'm looking for someone based in or around Barcelona with > Python/web2py experience who might be able to help with a couple of > projects I've built /

Re: [web2py] Re: How do I prevent going back to previous page after user is logged out?

2020-08-03 Thread Warwick JC
Thanks guys. They both work well. Regards On Mon, Aug 3, 2020, 21:01 Rahul wrote: > Another simple way is -- > To pop out session variables like in code below for all the login session > variables and redirect the user wherer-ever you want them to be. > This way since no valid session exists

[web2py] How to shorten URL name for web2py with multiple controllers

2020-08-06 Thread Warwick JC
Hello. I only note that this works only for the index page. routers = dict( # base router BASE=dict( default_application='init', ), # app specific router rivelar=dict( default_controller='default', default_function='index' ) ) I would also like to

[web2py] making url shorter in web2py and google appengine

2020-08-06 Thread Warwick JC
Hello, I followed this example on URL shortening. I wonder how can I do with multiple controllers in the app. Will the example below be pythonic? routers = dict( BASE = dict(

Re: [web2py] Re: How do I prevent going back to previous page after user is logged out?

2020-08-02 Thread Warwick JC
Hi Thanks for this. I put these functions in the model.py, I hope its correct. def __on_login(): redirect(URL('index')) return None def __on_logout(): redirect(URL('index')) return None On Fri, 31 Jul 2020 at 11:49, 'Annet' via web2py-users < web2py@googlegroups.com> wrote: >

Re: [web2py] Re: login expiration time

2020-07-24 Thread Warwick JC
Thanks. Is it wrong to have iframe pages from the same app? Regards On Fri, 24 Jul 2020 at 15:20, villas wrote: > If you are using an iframe to display a page from the same app, I have > the impression that your design might be wrong. You will probably find a > better way after you give this a

[web2py] How do I prevent going back to previous page after user is logged out?

2020-07-27 Thread Warwick JC
I have a page that when logging in from a previous logout, the login page redirects back to the same page. I want to have a default redirect to the index page instead. Using auth.settings.login_next = URL('default','index') does not help. 1. Is there a better way out in js or some form

Re: [web2py] Re: login expiration time

2020-07-28 Thread Warwick JC
ur website, e.g. advertisements. > > The iframe allows a method of ceding control of a portion of your screen > to be taken over and used by 'someone else' e.g. perhaps a credit card > payment gateway, a PDF viewer, or simply pages from other websites. > > > On Friday, 24 July 2

Re: [web2py] Re: login expiration time

2020-07-25 Thread Warwick JC
24 July 2020 23:21:03 UTC+3, Warwick JC wrote: > > Thanks. > Is it wrong to have iframe pages from the same app? > Regards > > On Fri, 24 Jul 2020 at 15:20, villas wrote: > >> If you are using an iframe to display a page from the same app, I have >> the impres

Re: [web2py] Any alternative to installing web2py on laptop

2020-07-19 Thread Warwick JC
I also just use a local folder to run Web2py. You can still use the laptop by downloading the source file and unpacking it to a local folder. Regards On Mon, Jul 20, 2020, 08:32 AGRogers wrote: > Sure. pythonanywhere.com is where I started. > > Maybe it can run from a USB stick? I think it is

[web2py] login expiration time

2020-07-23 Thread Warwick JC
Hello. I have a web2py html page (e.g. idex.html) that has another page in iframe within the app. After session timeout, I get redirected back to the login page which works at the iframe page and not the main page. I used this in the model.py: auth.settings.expiration = 1800 The problem

Re: [web2py] Module error

2020-12-07 Thread Warwick JC
Easier and crazy way I do is install the requests module in modules folder or site packages. On Mon, Dec 7, 2020, 16:51 Gaël Princivalle wrote: > > Hello. > > Moving an app to another server I've this error: > No module named > applications.myapp.modules.requests > > Of course I've the modules

Re: [web2py] Module error

2020-12-07 Thread Warwick JC
I had the same issue with pygal. After putting the pygal moduIe in the modules folder all was sorted. On Mon, Dec 7, 2020, 18:43 Gaël Princivalle wrote: > That's crazy for sure. > The modules are in the modules folder . > I don't understand why they don't appear in the modules list and why >

Re: [web2py] web2py 2.21.1 is OUT

2020-11-28 Thread Warwick JC
Thank you for your great product. Regards On Sat, Nov 28, 2020, 07:22 Massimo Di Pierro wrote: > > Hello everybody, > > first of all my apologies to you all. I have been absent from this list > for some time, mostly because busy with py4web. > > I made a new release (2.21.1) of web2py which

[web2py] How to customize email settings.

2020-12-02 Thread Warwick JC
I recently successfully used the configured email settings as follows: mail = auth.settings.mailer mail.settings.server = 'smtp.gmail.com:587' mail.settings.sender = 'usern...@gmail.com' auth.settings.registration_requires_verification = True I noted that the email arrived with the sender name

[web2py] Hide multiple controller names and functions.

2020-11-23 Thread Warwick JC
Following on this , is there a way one can do the same with multiple controllers and thier functions? For me it only works for one controller. Regards -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -