Re: [web2py] Re: How to make this code work ...

2019-06-04 Thread Val K
Try xhttp.withCredentials = true -- 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

[web2py] Re: web2py on Raspbian and Python 2 or 3?

2019-06-04 Thread 黄祥
dont mess with the /usr/bin/ by create the symbolic link, the safest way perhaps you can create a shell script e.g. *start_web2py.sh* python3 /path_to_web2py/web2py.py then start your web2py server with ./start_web2py.sh best regards, stifan -- Resources: - http://web2py.com - http://web2py.c

Re: [web2py] Re: How to make this code work ...

2019-06-04 Thread Dave S
$ On Tuesday, June 4, 2019 at 6:00:44 PM UTC-7, Dave S wrote: > > > > On Tuesday, June 4, 2019 at 3:16:12 PM UTC-7, Ben Duncan wrote: >> >> I've been trying to run it ... When you click on the button it does >> nothing >> >> *Ben Duncan* >> DBA / Chief Software Architect >> Mississippi State Sup

[web2py] Re: web2py on Raspbian and Python 2 or 3?

2019-06-04 Thread lucas
so, what is the best way to direct web2py to use the python3 instead of the default python/python2.7? -- 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

Re: [web2py] Re: How to make this code work ...

2019-06-04 Thread Dave S
On Tuesday, June 4, 2019 at 3:16:12 PM UTC-7, Ben Duncan wrote: > > I've been trying to run it ... When you click on the button it does nothing > > *Ben Duncan* > DBA / Chief Software Architect > Mississippi State Supreme Court > Electronic Filing Division > > > When I replace the "ajax-info.tx

Re: [web2py] Re: setting up pscycopg2

2019-06-04 Thread Dave S
On Saturday, June 1, 2019 at 1:41:12 AM UTC-7, Nico Zanferrari wrote: > > Hi Dave, > > I've faced the same problem trying to add psycopg2 on MacOs binaries with > python 2.7. Following some advices, I've resolved it by installing unixodbc > (with brew) before it. > > I hope it helps, > Nico >

Re: [web2py] Re: How to make this code work ...

2019-06-04 Thread Ben Duncan
I've been trying to run it ... When you click on the button it does nothing *Ben Duncan* DBA / Chief Software Architect Mississippi State Supreme Court Electronic Filing Division On Tue, Jun 4, 2019 at 4:35 PM Anthony wrote: > What are you trying to do? That code should work fine in web2py, as

[web2py] Re: How to make this code work ...

2019-06-04 Thread Anthony
What are you trying to do? That code should work fine in web2py, as it's just Javascript. You just need to have it call a web2py URL. Of course, web2py includes some built-in mechanisms for handling Ajax requests, such as the ajax() Javascript function and the LOAD() helper to create Ajax compo

Re: [web2py] route 53 or Dns record

2019-06-04 Thread Carlos Costa
That's good! Not perfect, since after the user is redirected, the URL gets ugly anyway. But is quite good. My domains are not registered in godaddy, but I can migrate to it some day. Thanks for sharing. Em ter, 4 de jun de 2019 às 13:19, karthikeyan p < karthikiotdevelo...@gmail.com> escreveu: >

[web2py] Re: nssm does not work

2019-06-04 Thread Dave S
On Sunday, June 2, 2019 at 11:58:02 PM UTC-7, rāma wrote: > > I am using the latest version of NSSM - the Non-Sucking Service Manager; > both 2.24 and the prelease build 2.2.4-101 . > > Unfortunately for me, NSSM sucked big time and trying to get it working > with web2py was an utter waste of t

[web2py] How to make this code work ...

2019-06-04 Thread Ben Duncan
Ok, the following is code from w3 schools: https://www.w3schools.com/js/js_ajax_intro.asp The code is as follows : The XMLHttpRequest Object Change Content function loadDoc() { var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.readyState == 4 && th

Re: [web2py] Re: web2py managing capacity ?

2019-06-04 Thread Dave S
On Tuesday, June 4, 2019 at 9:12:24 AM UTC-7, karthikeyan p wrote: > > sorry , > Carlos Costa > , i typed wrongly ! > its scalability , i want to know web2py apps scalability ! > Well, that depends on your application (how much work your app does on a request), your front end, and your data

[web2py] Re: web2py delimiters conflict with vue.jsz

2019-06-04 Thread Anthony
See response.delimiters at http://web2py.com/books/default/chapter/29/04/the-core#response. You can set it in a model file to apply to all views, or within a particular controller or view to apply to a specific view. Anthony On Tuesday, June 4, 2019 at 2:20:30 PM UTC-4, Craig Matthews wrote: >

[web2py] Re: web2py delimiters conflict with vue.jsz

2019-06-04 Thread 黄祥
another way around perhaps can use response.delimiter ref: http://web2py.com/books/default/chapter/29/04/the-core?search=delimiter best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.googl

[web2py] web2py delimiters conflict with vue.jsz

2019-06-04 Thread Craig Matthews
I am currently running web2py Version 2.14.6-stable+timestamp.2016.05.10.00.21.47. Even though that is old, it is meeting my needs. I am currently learning vue.js and hoping to include it in my offerings. The obvious problem is that both web2py and vue.js use "{{" and "}}" as delimiters in the

Re: [web2py] route 53 or Dns record

2019-06-04 Thread karthikeyan p
hai carlos costa , i have an idea for that , i have domain registered with godaddy , go daddy subdomain forwarding is unlimited and its free too . you can add like this in subdomain section add subdomainname as *user1* , target url is *your.pythonanywhere.com/welcome/default/index/user

Re: [web2py] Re: web2py managing capacity ?

2019-06-04 Thread karthikeyan p
sorry , Carlos Costa , i typed wrongly ! its scalability , i want to know web2py apps scalability ! On Fri, May 24, 2019 at 8:22 PM Carlos Costa wrote: > sociability? > > Em sex, 24 de mai de 2019 às 05:18, 黄祥 > escreveu: > >> how to use it with postgresql ? >>> >> >> pls set the uri connecti

[web2py] Re: Routes to expose file

2019-06-04 Thread Daniel Guilhermino
Any other suggestions? Em sexta-feira, 31 de maio de 2019 21:57:34 UTC-3, Daniel Guilhermino escreveu: > > Hi Dave, > > I'm running the source package on ubuntu. > > Show Only this message: > > Internal server error > > Doesn't created an ticket. > > I need to make this file available for Google

Re: [web2py] Re: json.loads with cyrillic string

2019-06-04 Thread Константин Комков
Val K, yes, but I get json string from client js. вт, 4 июн. 2019 г., 17:01 Val K : > it is maybe not convenient when storing json as text file, to solve this > you can pass ensure_ascii=False to json.dumps > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - h

[web2py] Re: json.loads with cyrillic string

2019-06-04 Thread Val K
it is maybe not convenient when storing json as text file, to solve this you can pass ensure_ascii=False to json.dumps -- 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

[web2py] Re: json.loads with cyrillic string

2019-06-04 Thread Val K
In python2 it is so -- 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 "web2py-use

[web2py] Re: json.loads with cyrillic string

2019-06-04 Thread Константин Комков
Now is nothing, but I thought if I do b.get('fac')[0] I got something like u'\u0421\u0430\u0434\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u0430 \u0438 \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u043d\u043e\u0439 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b' . -- Res

[web2py] json.loads with cyrillic string

2019-06-04 Thread Val K
As far as I understand, strings are displayed in ascii format in the context of objects. What is confusing you? -- 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

Re: [web2py] Re: string vs text db field question

2019-06-04 Thread Eliezer (Vlad) Tseytkin
Everybody is lucky sometimes :) Thank you! On Tue, Jun 4, 2019, 9:12 AM Anthony wrote: > SQLite doesn't make a distinction between string and text nor have a > length limit, so yes, you're just "lucky" at the moment. If you plan to > migrate to something like Postgres, either explicitly set a h

[web2py] Re: string vs text db field question

2019-06-04 Thread Anthony
SQLite doesn't make a distinction between string and text nor have a length limit, so yes, you're just "lucky" at the moment. If you plan to migrate to something like Postgres, either explicitly set a higher limit or just use a text field. Anthony On Tuesday, June 4, 2019 at 5:30:05 AM UTC-4,

[web2py] json.loads with cyrillic string

2019-06-04 Thread Константин Комков
Hello! As I think my question is simple, but I don't find solution in internet yet. How can I get cyrillic symbols from that string: {"fo":["очная","очная","очная"],"fac":["Садоводства и ландшафтной архитектуры","Садоводства и ландшафтной архитектуры","Технологический"], "dir":["Садоводство","Лан

[web2py] string vs text db field question

2019-06-04 Thread Vlad
I've used a string field to keep certain info, and it works just fine, but I've just noticed that the strings I ended up saving in this field were around 1,000 characters long, sometimes even closer to 2,000. According to the docs, the default limit for a string field is 512. The limit doesn't

[web2py] Re: conditional {{include}} in view

2019-06-04 Thread Gilad Hoshmand
For those who arrive late, from the docs : {{if some_condition:}}{{include 'this_view.html'}}{{else:}}{{include 'that_view.html'}}{{pass}} -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://gi

[web2py] Re: new free toys

2019-06-04 Thread Leonel Câmara
I also made something not long ago, it's an excel formula parser you can use in python to process excel formulas https://github.com/aidhound/hotxlfp -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.c