Re: [web2py] Re: web2py online debugger under python3

2020-07-16 Thread AGRogers
Hi Seth I have no idea sorry. I would like to know the answer to this question though. Andrew On Fri, 17 Jul 2020, 7:28 am Seth J, wrote: > So, what would you recommend for "remote debugging" situation? I have > web2py running on internal firewalled Windows 2016 Server and have been >

[web2py] Auth - overlapping permissions problem

2020-07-16 Thread Paul Ellis
the situation is that I have permissions associated with auth_groups. eg. user, team leader, business leader, oversight now I need a "secretary" or "accounts" group which has access to some business leader features i.e reports. Some team leader features ie. price maintainence. But does not

Re: [web2py] Re: web2py online debugger under python3

2020-07-16 Thread Seth J
So, what would you recommend for "remote debugging" situation? I have web2py running on internal firewalled Windows 2016 Server and have been struggling to adopt anything for debugging purposes. On Tuesday, May 5, 2020 at 9:11:00 PM UTC-4 roge...@gmail.com wrote: > Hi Clemens > > I think a

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

2020-07-16 Thread mostwanted
I have created a calendar that assigns lesson_times & class_rooms randomly. So far it has been working properly until a conflic arose, one lecturer being assigned 2 classes at the same time, another one one class_room being assigned different lectures at the same time! I wanna avoid these *. *

[web2py] Re: how to update a database field with a random value selected from a list using random.choice()

2020-07-16 Thread mostwanted
This is very impressive Villas, you see, this is what I meant by a better way of doing this, thank you. On Thursday, July 16, 2020 at 11:56:01 AM UTC+2, villas wrote: > > Hi Mostwanted > We always can optimise our code. > The dict could have keys for each possible session. Then you only need

[web2py] Re: how to update a database field with a random value selected from a list using random.choice()

2020-07-16 Thread villas
Hi Mostwanted We always can optimise our code. The dict could have keys for each possible session. Then you only need one line to produce a random time. Maybe your onvalidation only requires two lines of code! Please look at this... def my_form_processing(form): times = { 'single

[web2py] Re: how to update a database field with a random value selected from a list using random.choice()

2020-07-16 Thread mostwanted
The dictionary makes it less cubersome: def my_form_processing(form): times=dict({'single_session_times':['0830-0930hrs', '0930-1030hrs', '1100-1200','1200-1300', '1400-1500', '1500-1600', '1600-1700'], 'evening_single_session_times':['1730-1830', '1830-1930'],

Re: [web2py] Re: how to update a database field with a random value selected from a list using random.choice()

2020-07-16 Thread mostwanted
Hahahaha sometimes you put in a single delimeter & it all comes down crumbling! On Thursday, July 16, 2020 at 2:22:45 AM UTC+2, AGRogers wrote: > > >>>My motto is: get something working and move on! > > Haha. A modified version I need to remember: Get something working and > don't go back and