[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

[web2py] Re: How to prevent submitting form details that already exist as a record in the database

2020-07-23 Thread mostwanted
Thank you Villas, you've been much helpful On Thursday, July 23, 2020 at 2:05:49 PM UTC+2, villas wrote: > > As you've discovered, random doesn't work in this context. Make an array > of class attendee numbers and then allocate the class which has the fewest > students. > > > On Thursday, 23

[web2py] Re: How to prevent submitting form details that already exist as a record in the database

2020-07-23 Thread villas
As you've discovered, random doesn't work in this context. Make an array of class attendee numbers and then allocate the class which has the fewest students. On Thursday, 23 July 2020 12:50:00 UTC+1, mostwanted wrote: > > Well the whole concept behind this application was that allocation of

[web2py] Re: How to prevent submitting form details that already exist as a record in the database

2020-07-23 Thread mostwanted
Well the whole concept behind this application was that allocation of spaces in time, days & class rooms should be automatic, the user should just select the lecturer, the subject & the period the subject takes (Double session=2hrs, Single session=1hr) from there after the user submits that

[web2py] Re: How to prevent submitting form details that already exist as a record in the database

2020-07-23 Thread villas
Suggestion: Your idea of overriding the user's selections with random choices seems strange. Why not ask the user to specify a date and then show him which classes are available nearest that date/time? He can then choose one of those. On Wednesday, 22 July 2020 19:04:27 UTC+1, mostwanted

Re: [web2py] Use cron

2020-07-23 Thread Martin Weissenboeck
Ubuntu 16 Dave S schrieb am Do., 23. Juli 2020, 11:29: > > > On Thursday, July 23, 2020 at 2:15:43 AM UTC-7, mweissen wrote: >> >> Yes, I could use the scheduler. But it's a very small app (only 50 lines >> of code) and I wanted to learn how to use cron. >> Regards, Martin >> >> >> > What OS

Re: [web2py] Use cron

2020-07-23 Thread Dave S
On Thursday, July 23, 2020 at 2:15:43 AM UTC-7, mweissen wrote: > > Yes, I could use the scheduler. But it's a very small app (only 50 lines > of code) and I wanted to learn how to use cron. > Regards, Martin > > > What OS are you running on? /dps > AGRogers > schrieb am Do., 23. Juli

Re: [web2py] Starting 2 web2py standalone applications at the same time

2020-07-23 Thread Dave S
On Thursday, July 23, 2020 at 1:29:42 AM UTC-7, mostwanted wrote: > > Is there a way to define the port in a bat script that launches the app? > > Of course. port is just a command line parameter for the web2py command, which you can wrap in the bat Knowing what port to use is the tricky

Re: [web2py] Use cron

2020-07-23 Thread Martin Weissenboeck
Yes, I could use the scheduler. But it's a very small app (only 50 lines of code) and I wanted to learn how to use cron. Regards, Martin AGRogers schrieb am Do., 23. Juli 2020, 10:56: > Sorry, can't help there. I have just started to use the Scheduler which is > part of web2py. It was easy to

Re: [web2py] Use cron

2020-07-23 Thread AGRogers
Sorry, can't help there. I have just started to use the Scheduler which is part of web2py. It was easy to setup and seems to work well. Is there a reason you can't use it? On Thu, 23 Jul 2020, 1:53 pm Martin Weissenboeck, wrote: > I use web2py with nginx.Now I need cron . I have read, that habe

Re: [web2py] Starting 2 web2py standalone applications at the same time

2020-07-23 Thread mostwanted
Is there a way to define the port in a bat script that launches the app? On Thursday, July 23, 2020 at 9:16:28 AM UTC+2, AGRogers wrote: > > I think you just need to run each on a different port. > > On Thu, 23 Jul 2020, 3:57 pm mostwanted, > > wrote: > >> Hi Guys, how can i install 2 web2py

Re: [web2py] Starting 2 web2py standalone applications at the same time

2020-07-23 Thread AGRogers
I think you just need to run each on a different port. On Thu, 23 Jul 2020, 3:57 pm mostwanted, wrote: > Hi Guys, how can i install 2 web2py binary standalone applications in one > computer & start them at the same time without them interfering with one > another? > > I am asking this because

[web2py] Altering details of a rejected form automatically for another save attempt without the user's interference

2020-07-23 Thread mostwanted
I asked this in a previous question I posted but felt it may not be picked up quick enough, I dont mean to be repetitive i just need help on it immediately! After a form has failed to save because that information already exists in the database I wanna try & alter the value that determines a