[web2py] Progressive Web Apps

2018-12-13 Thread Martin Weissenboeck
I am just learning how to write Progressive Web Applications (PWA). I think PWAs are a very important step towards app-like websites. There is a lot of good examples on developers.google.com. One example has the following structure: webroot |--images/ |--scripts/ |--styles/ |--favicon.ico |--index

[web2py] DAL reference to table define after

2018-12-13 Thread António Ramos
How can a table X reference a field in other table Y that is defined after table X ? I have 2 tables that have fields that reference each other table fields... and i get an error regards António -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2p

Re: [web2py] DAL reference to table define after

2018-12-13 Thread Ben Duncan
Ok, if you are asking about a having multiple references to multiple tables, you can't.. For example I have the following foreign keyes defined for a AR Customer record: ALTER TABLE ar_cusmas ADD CONSTRAINT ar_cusmas_company_fkey FOREIGN KEY( company_number ) REFERENCES company (company_n

Re: [web2py] Re: Unable to land in reset password page

2018-12-13 Thread Arindam Dasgupta
Hi Anthony, You are right. Old links are not taking me to the reset password page. Instead they are taking me to the default page. But new links are taking me to the reset page. Best Regards, Arindam On Wed, Dec 12, 2018 at 3:50 AM Anthony wrote: > On Tuesday, December 11, 2018 at 12:30:21 PM

[web2py] How do I import Libraries in Web2py

2018-12-13 Thread Arindam Dasgupta
Hi, I have a general question in my mind that how do I import a library in web2py. For example should I need a library like "openpyxl" or "matplotlib.pyplot" what do I do? I am talking about the pythonanywhere framework available online through "https://www.pythonanywhere.com";. I should not exp

Re: [web2py] lgoin_bare WTF???

2018-12-13 Thread Anthony
On Wednesday, December 12, 2018 at 6:57:07 PM UTC-5, Ben Duncan wrote: > > Yes, I wanted to just use the auth_table. > Everything else is controlled outside of the normal mechs .. > If you don't want to use the Auth login mechanism, then I suppose you can write your own logic. Keep in mind you wi

Re: [web2py] How do I import Libraries in Web2py

2018-12-13 Thread Ben Duncan
Are you talking about running IN pythonanywhere cloud? If you are talking about running locally but including the libraries, you would install the libraries, then put the include statements in models/0.py or models/db.py and modify the sys search path as referenced in: https://docs.python.org/2/t

Re: [web2py] lgoin_bare WTF???

2018-12-13 Thread Ben Duncan
Thanks Anthony. I'm trying to maintain some reference to the auth mechanism , but our needs get a little more convoluted. Some Background Info: This is a accounting system (AR/AP/GL/IV/OE/PR/BI/BR/RMA/ ..etc) based upon about 30 years of collected source I have for Chancery / Circuit Clerks for F

[web2py] Re: lgoin_bare WTF???

2018-12-13 Thread Leonel Câmara
You don't need to change the auth mechanisms for that. You can simply use common filters. I actually have something similar to your requirements in one of my projects. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code)

[web2py] Re: DAL reference to table define after

2018-12-13 Thread Leonel Câmara
Are you not using lazy tables? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups

Re: [web2py] lgoin_bare WTF???

2018-12-13 Thread Anthony
Got it, but I don't see login_bare/login_user/update_groups getting in the way of any of that. The update_groups method simply adds a dictionary of the user's current group ids/roles to the session, which can be used instead of doing a database lookup on each request. You are free to ignore it.

Re: [web2py] lgoin_bare WTF???

2018-12-13 Thread Ben Duncan
Ok, thanks, will revisit it. I was getting insert errors from it before. Maybe my ignorance ... *Ben Duncan* DBA / Chief Software Architect Mississippi State Supreme Court Electronic Filing Division On Thu, Dec 13, 2018 at 2:14 PM Anthony wrote: > Got it, but I don't see login_bare/login_user

Re: [web2py] lgoin_bare WTF???

2018-12-13 Thread Ben Duncan
Ok, I seem to have it working now: My Code Snippets if anyone is interested: controllers/default.py def user_bare(): alg = 'pbkdf2(1000,20,sha512)' custom_auth_table.password.requires = None username, password = request.post_vars['username'], request.post_vars['password'] session.

Re: [web2py] lgoin_bare WTF???

2018-12-13 Thread Ben Duncan
*Ben Duncan* DBA / Chief Software Architect Mississippi State Supreme Court Electronic Filing Division Argg ... spoke to soon : Errors : web2py™ Version 2.17.2-stable+timestamp.2018.10.06.18.54.02 Python Python 2.7.13: /usr/bin/python (prefix: /opt/rh/python27/root/usr) Traceback 1. 2. 3. 4. 5.

Re: [web2py] lgoin_bare WTF???

2018-12-13 Thread Ben Duncan
Ok, I THINK the error is due to our custome tables ie: Group is defined as : db.define_table('auth_group', Field('group_id', type='integer'), Field('role', type='string', length=50), Field('description', type='string', length=256), Field('company_number', type='integer', default=0)