[web2py] Re: Hosting question

2019-08-01 Thread Jose C
> > > I added the line in routes.py - While it restricts allowing > access to other applications like welcome it does not restrict > redirection - so in my case it still redirected to welcome application > mentioning something is wrong message. > > Odd. I have a similar setup to you

[web2py] py4web: how to import Template and change delimiters

2019-08-01 Thread Alex Beskopilny
Hi! I put lte-2.4.15 to py4web and lte works with controllers.py : from py4web import action, request, abort, redirect, URL from yatl.helpers import A from . common import db, session, T, cache, auth @action('index') @action.uses('index.html', ) #@action.uses(Template('index.html', delimiters

[web2py] How can I get value from my extra_fields?

2019-08-01 Thread Константин Комков
I added field 'language' im my auth_user table in database. My file db.py contain: auth = Auth(db, host_names=configuration.get('host.names')) *auth* *.settings.extra_fields['auth_user']= [Field('language')]* auth.define_tables(username=False, signature=False) How can I get value of language for

Re: [web2py] Re: Hosting question

2019-08-01 Thread Rahul Dhakate
Hi Jose, Have you removed welcome application from web2py applications folder or it still resides there but when accessed gives 404? I am using python 2.7.13 . I will try your settings for routes and get back to you. In the meantime you may access the sites here that I referred to - 1. www.ta

[web2py] Re: Hosting question

2019-08-01 Thread Paco Bernal
Yes, I discovered a few days ago that private folder can be accessed using the vps ip, so I have been playing with host names in appconfig.ini and with apache2 configuration and the only way to stop accessing private folder was adding a new virtualhost in apache for each vps ip with this: >

Re: [web2py] Re: Hosting question

2019-08-01 Thread Jose C
> > > Have you removed welcome application from web2py applications folder > or it still resides there but when accessed gives 404? I am using python > 2.7.13 . I will try your settings for routes and get back to you. > Normally I always delete the app, but for testing this issue I left

[web2py] Re: Hosting question

2019-08-01 Thread Jose C
> > I use Lets encrypt certificates and redirecting from 80 to 443, and I > don't touch virtualhost file in port 80 so for sure, i'm doing something > wrong with apache3 and for sure with host names in appconfig.ini > > [host] >> names = localhost:*, 127.0.0.1:*, *:*, * >> >> That is worrying.

Re: [web2py] Re: Hosting question

2019-08-01 Thread Rahul Dhakate
Hi Jose, I did the changes as per your suggestion. Now when I specify a default application it takes me to the same application when I access any domain. Secondly - If I specify my domain name without a www. prefix (example: artpic.in) I am navigated to welcome however the app is not show as

[web2py] Re: Hosting question

2019-08-01 Thread Dave S
On Thursday, August 1, 2019 at 1:37:37 AM UTC-7, Jose C wrote: > > I use Lets encrypt certificates and redirecting from 80 to 443, and I >> don't touch virtualhost file in port 80 so for sure, i'm doing something >> wrong with apache3 and for sure with host names in appconfig.ini >> >> [host] >

[web2py] Re: Hosting question

2019-08-01 Thread Paco Bernal
Thank you, Now it's working as spected. appconfig.ini [host] > names = subdomain:* > I removed the virtualhost regarding the dedicated ips and set DocumentRoot in port 80 for my subdomain to /dev/null Not sure if it's the right way but it's working now without expliciting having a virtualhos

[web2py] Re: Web2Py and ldap integration

2019-08-01 Thread Davidiam
Thank you very much for the info. In the mean time we have decided to use shibboleth because we had a lot of issues with the python modules on Windows and because the project added the requirement for sso. I will keep your solution as a reference for the future. -- Resources: - http://web2py

Re: [web2py] Web2Py with LDAP and SAML : Is it worth it for Windows ?

2019-08-01 Thread Davidiam
We are working on a Shibboleth implementation now. So far it is working better than the other tests we did on Windows. We wanted to test it using a localhost Shibboleth sp and idp but it wasn't clear to us how we needed to configure it. Thanks for the tip! -- Resources: - http://web2py.com -

[web2py] invoice table missing in estore appliance

2019-08-01 Thread Saranya S
Yes.. Even I got the same error with EStore application. Invoice table is referenced in the model, but no such table is defined in the model. Could anybody please help to fix this issue. I need to explore and understand the EStore application developed by Massimo. Thank you very much in advan

[web2py] Re: py4web: how to import Template and change delimiters

2019-08-01 Thread Massimo Di Pierro
Try from py4web.core import Template On Thursday, 1 August 2019 00:48:02 UTC-7, Alex Beskopilny wrote: > > Hi! > I put lte-2.4.15 to py4web and lte works with controllers.py : > > from py4web import action, request, abort, redirect, URL > from yatl.helpers import A > from . common import db,

[web2py] Re: py4web: how to import Template and change delimiters

2019-08-01 Thread Alex Beskopilny
Thanks Massimo! it works: deliniters="X0X0X0 Y1Y1Y1" and delimiters="[Z[ ]]" py4web was tested with urls lte-2.14.15 and ThreadPoolExecutor(max_workers=10) results: execution time: 98.3 sec, data_size= 3794965000, urls= 56000 bytes/sec= 38596744.13, req/sec= 569.54 четверг, 1 августа

[web2py] How can I get value from my extra_fields?

2019-08-01 Thread Val K
Try db.auth_user(auth.user_id).language -- 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

Re: [web2py] How can I get value from my extra_fields?

2019-08-01 Thread Константин Комков
It's query to database I thought that I can get it from session like auth.user. Thank you for answer! чт, 1 авг. 2019 г., 21:21 Val K : > Try db.auth_user(auth.user_id).language > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2p

Re: [web2py] Re: Hosting question

2019-08-01 Thread Jose C
Strange... 1) First of all, can you confirm this is a routes.py file in the web2py root directory and that there are not any routes.py (app-specific routers) files present in the app directories as well (that could be overriding the main routes.py)? 2) The config I posted is my live config (ot

Re: [web2py] How can I get value from my extra_fields?

2019-08-01 Thread Val K
Should be stored in the session too, did you try to logout/login? -- 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 ar

[web2py] Re: How can I get value from my extra_fields?

2019-08-01 Thread Константин Комков
I did'n try to login/logout. I do it and all work! -- 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

[web2py] Re: Pass variable from JavaScript function to controller: Using JSQueryBuilder

2019-08-01 Thread Paco Bernal
Hi ajax('{{=URL('default', 'showfilters')}}' + '?result1=' + result1 + '&result2='+result2, [], ':eval'); result1 = request.vars.result1 result2 = request.vars.result2 or ajax('{{=URL('default', 'showfilters')}}/' + result1 + '/' + result2, [], ':eval'); result1 = request.args(0) result2 =