Re: [web2py] Which file to upload an analytics platform?

2017-01-26 Thread Joe
Thanks Donald, Yeah, that's what I thought. Cheers, Joe On Friday, January 27, 2017 at 8:13:41 AM UTC+8, Donald McClymont wrote: > > As far as I can see pythonanywhere still doesn't provide php and piwik has > this as required. So I think that can be asked back to pythonanywhere > guys.

Re: [web2py] Which file to upload an analytics platform?

2017-01-26 Thread Donald McClymont
As far as I can see pythonanywhere still doesn't provide php and piwik has this as required. So I think that can be asked back to pythonanywhere guys. Possibly it can be installed somehow. Otherwise you would need to host piwik at least elsewhere or use another analytics solution. Donald

Re: [web2py] Which file to upload an analytics platform?

2017-01-26 Thread Joe
Hi Richard, Thanks for your reply. I went through the entire file system on Pythonanywhere and I put the folder everywhere I possibly could. It's not working anywhere. Of course, I asked this question on the Pythonanywhere forum and they referred me here. They don't have the answer. They say,

[web2py] Re: How to architect a public facing data subset

2017-01-26 Thread Mark Graves
+1 for Leonel On Wednesday, January 25, 2017 at 7:51:49 PM UTC-6, Dave S wrote: > > > > On Wednesday, January 25, 2017 at 4:31:20 PM UTC-8, Leonel Câmara wrote: >> >> web2py permissions not enough? >> >> If not, I guess you could make 2 applications which had 2 different >> users/roles in the

[web2py] Re: strip characters str.translate()

2017-01-26 Thread Richard
I gave a look at .regexp()... I not really works even if I do something like this : import string strip_characters = string.punctuation + ' ' The following don't work because the pattern is not found as the database entries are not altered before the check :

Re: [web2py] Which file to upload an analytics platform?

2017-01-26 Thread Richard Vézina
I too, think there is no requirement about init, except that without modifying route ou router py to point on you specific app you need to call it init or create a symbolic links pointing to it at the applications/ folder in order to web2py to serve you app when you access IP or domain address...

[web2py] Re: Scheduler is_ticker and deadlock issues

2017-01-26 Thread Niphlod
I think I posted the relevant number of queries issued to the backend for a given number of workers but I do daily use the scheduler on an mssql db and it can easily handle at least 10 workers (with the default heartbeat). Locking kicks in maybe once or twice a day, which means 1 or 2 on 28800

Re: [web2py] Which file to upload an analytics platform?

2017-01-26 Thread Donald McClymont
I don't think there is any overall pythonanwhere rule to use init. I have sites on pythonanywhere and no init folder. Donald -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list

[web2py] Re: deploy web2py on CentOS 6.8 nginx + uwsgi

2017-01-26 Thread Dave S
On Thursday, January 26, 2017 at 9:08:29 AM UTC-8, Áureo Dias Neto wrote: > > Hello guys, i want to deploy my app to CentOS vesion 6.8, and use nginx + > uwsgi, on users can access with static ip.. > > Tell me how to? > Background reading is

[web2py] Re: Scheduler is_ticker and deadlock issues

2017-01-26 Thread Dave S
On Thursday, January 26, 2017 at 9:45:20 AM UTC-8, Jason Solack wrote: > > using mssql, the code itself is in gluon scheduler.py - this happens with > no interaction from the app > > How do you instantiate the Scheduler? Is the mssql engine on the same machine as any of the web2py nodes? Are

[web2py] Re: Scheduler is_ticker and deadlock issues

2017-01-26 Thread Jason Solack
using mssql, the code itself is in gluon scheduler.py - this happens with no interaction from the app On Thursday, January 26, 2017 at 12:03:41 PM UTC-5, Dave S wrote: > > > > On Thursday, January 26, 2017 at 8:44:25 AM UTC-8, Jason Solack wrote: >> >> So the issue is we run 6 workers on a

[web2py] deploy web2py on CentOS 6.8 nginx + uwsgi

2017-01-26 Thread Áureo Dias Neto
Hello guys, i want to deploy my app to CentOS vesion 6.8, and use nginx + uwsgi, on users can access with static ip.. Tell me how to? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: Scheduler is_ticker and deadlock issues

2017-01-26 Thread Dave S
On Thursday, January 26, 2017 at 8:44:25 AM UTC-8, Jason Solack wrote: > > So the issue is we run 6 workers on a machine and it works. If we do 3 > workers on 2 machines we get deadlocks. That is no exaggeration - 6 > records in our worker table and we're getting dealocks. > > Which DB are

[web2py] Re: Scheduler is_ticker and deadlock issues

2017-01-26 Thread Jason Solack
So the issue we run 6 workers on a machine and it works. If we do 3 workers on 2 machines we get deadlocks. That is no exaggeration - 6 records in our worker table and we're getting dealocks. On Wednesday, January 25, 2017 at 3:05:37 AM UTC-5, Niphlod wrote: > > you *should* have one

Re: [web2py] Re: vue.js

2017-01-26 Thread Richard Vézina
Do you use the web2py layout.html? Did you set proper web2py delimiters? http://web2py.com/books/default/chapter/29/05/the-views#The-views Vue.JS use {{}} as web2py you need to change web2py delimiters, I like (so it stays readable) : response.delimiters = ('{[',']}') Richard On Thu, Jan

Re: [web2py] Which file to upload an analytics platform?

2017-01-26 Thread Richard Vézina
Not sure how this could help : https://forum.piwik.org/t/piwik-log-analysis/7114/16 On Thu, Jan 26, 2017 at 10:28 AM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > Hello Joe, > > You can try and see what's happen... In web2py with not special rooting > the index page is

Re: [web2py] Which file to upload an analytics platform?

2017-01-26 Thread Richard Vézina
Hello Joe, You can try and see what's happen... In web2py with not special rooting the index page is app_name/default.html which is in the controllers folders... But I am not sure it make sens to put anything into app tree as nothing get access directly there without passing by the middleware...

[web2py] Re: vue.js

2017-01-26 Thread 'John Philip' via web2py-users
Hi Massimo, I downloaded your scaffolding app but for some reason in the main.html file vuejs does not seem to recognize ${doc.title} and ${doc.body} . Am I missing something? thanks and regards, John On Sunday, September 25, 2016 at 5:25:51 AM UTC+2, Massimo Di Pierro wrote: > > I am

[web2py] Which file to upload an analytics platform?

2017-01-26 Thread Joe
I want to install an analytics platform to the server. My app is on Pythonanywhere. The analytics platform I want to install is Piwik I am supposed to upload all the files to a sub-directory in my public www folder, for example *http://mydomain.com/analytics/* I am just

Re: [web2py] global name 'T' is not defined

2017-01-26 Thread Marlysson Silva
What caveats could happen have making this? Em quarta-feira, 25 de janeiro de 2017 13:04:42 UTC-3, Anthony escreveu: > > On Wednesday, January 25, 2017 at 4:40:40 AM UTC-5, mweissen wrote: >> >> Try in the module: >> >> from gluon import current >> T = current.T >> > > Don't do T=current.T at the

[web2py] Re: Set the Atom Editor to auto complete web2py

2017-01-26 Thread Marlysson Silva
Try this: http://web2py.com/books/default/chapter/29/14/other-recipes#Developing-with-IDEs-WingIDE-Rad2Py-Eclipse-and-PyCharm Em quarta-feira, 7 de setembro de 2016 21:30:49 UTC-3, Rafael Oliveira escreveu: > > > Good Morning. I wanted to set the Atom Editor to auto complete web2py, > already

[web2py] Re: Form field defaults the second time through

2017-01-26 Thread Dave S
On Sunday, January 22, 2017 at 2:56:07 PM UTC-8, Val K wrote: > > The problem is that one controller is used for generation and process > form. it's like different modes > pre-populating form by assignments form.vars.name=... could be used > only for the request form, when form is submitted

[web2py] Re: Form field defaults the second time through

2017-01-26 Thread Dave S
On Thursday, January 19, 2017 at 10:02:04 PM UTC-8, Armando Hernandez wrote: > > Assuming PostDate is a field of type datetime Try this before calling > SQLFORM > db.QuarterMaster.PostDate.default = request.now > > If PostDate is a field of type date use > db.QuarterMaster.PostDate.default =

[web2py] Re: pass arguments to menu item

2017-01-26 Thread Andrea Fae'
You are great! Thank you very much. Il giorno giovedì 26 gennaio 2017 01:06:48 UTC+1, Leonel Câmara ha scritto: > > Yes, I'm sorry Andrea, I don't use the grid much nowadays, that's because > you're using request.args(0) and the grid also uses args, when it sees your > arg it thinks it should