[web2py] Re: Deploy with postgresql

2017-02-05 Thread Ben Lawrence
ok, my dumbness the AppConfig module doesn't like '=' not aligned so instead of this ; db configuration [db] uri= postgres://x:x/ migrate= 1 pool_size = 10 I had this [db] uri = postgres://x:x/ migrate= 1 pool_size = 10 and that is why as I understa

[web2py] response.files.append or insert syntax

2017-02-05 Thread Andrea Fae'
What is the meaning and syntax of lines like this? Where I can find? response.files.append(URL(r=request,c='static',f='myview.css') Thanks -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/we

[web2py] Fullcalendar questions

2017-02-05 Thread Andrea Fae'
I want to use this add-on with web2py https://fullcalendar.io/scheduler/ How to load resource data from a database, for example? I need scheduler information with web2py. Is there any person with experience using this add-on? Thank you -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] response.files.append or insert syntax

2017-02-05 Thread Nico de Groot
response.files is a list of filenames that will be included while rendering the view. You can add your own .css and .js files to this list using append and insert. See the Web2py book for details http://www.web2py.com/books/default/chapter/29/05/the-views?search=response.files.append Nico de Gr

[web2py] Re: response.files.append or insert syntax

2017-02-05 Thread Andrea Fae'
Yes, thank you, but why this syntax? r=request,c='static',f='myview.css' Il giorno domenica 5 febbraio 2017 15:36:02 UTC+1, Nico de Groot ha scritto: > > response.files is a list of filenames that will be included while > rendering the view. You can add your own .css and .js files to this list >

[web2py] SQLite lock (using DAL in a module)

2017-02-05 Thread Jesse Hunt
Good afternoon all, I am experiencing issues while trying to perform operations using my DAL from a module. I recently moved code from the default controller to a module for better coding practices. The code was running previous to the move, but now I experience an error ( database is locked

[web2py] jsonpickle instead of pickle

2017-02-05 Thread nexususer68
hello is it possible to use jsonpickle instead of pickle (or cpickle) when serializing sessions, in order to interchange sessions between web2py and node.js without overhead regards -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (So

[web2py] Using an inherited database with special characters in field names in table

2017-02-05 Thread William López
Is there any way to use an inherited mssql database with field names in the tables with: "ventas_año", "teléfono", "dirección". The database and its tables are used in an application with VFP9 and I want to develop a new application in web2py. I've tried doing it this way and it did not work: F

[web2py] Database question, problem adding column

2017-02-05 Thread martin
Hi, I have an app in production to which I am trying to add a new column to an existing table. I have done this kind of thing before but now I am getting (1054, u"Unknown column 'product.category_tags' in 'field list'") (category_tags being the new column name) I have tried combinations of migr

[web2py] Re: Fullcalendar questions

2017-02-05 Thread Massimo Di Pierro
Here is a project created by some students of mine that used a previous version of fullcalendar https://github.com/mdipierro/kusoma/blob/master/controllers/calendar.py Perhaps it can be useful. On Sunday, 5 February 2017 07:44:22 UTC-6, Andrea Fae' wrote: > > I want to use this add-on with web2p

[web2py] Hide css of my application

2017-02-05 Thread Alessio Varalta
Hi, I have a web2py application. I use in my project web2py but also rails, and with rails you can comprim all css in a single file...you can make this operation with web2py? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code

Re: [web2py] Hide css of my application

2017-02-05 Thread António Ramos
try using gulp or grunt to automate that task of compress/uglify css and/or js files... 2017-02-05 17:35 GMT+00:00 Alessio Varalta < alessio.vara...@ethicalsoftware.it>: > Hi, I have a web2py application. > I use in my project web2py but also rails, and with rails you can comprim > all css in a s

[web2py] Re: Fullcalendar questions

2017-02-05 Thread Andrea Fae'
Thanks for suggestion. I will try to see if it's useful for me. My compliments for web2py. Andrea Il giorno domenica 5 febbraio 2017 16:16:16 UTC+1, Massimo Di Pierro ha scritto: > > Here is a project created by some students of mine that used a previous > version of fullcalendar > https://gith

[web2py] Fullcalendar scheduler

2017-02-05 Thread Andrea Fae'
Any people can tell me how to load from database table resources to show using this add-on? https://fullcalendar.io/scheduler/ Any suggestion? Thanks a lot -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.

Re: [web2py] SQLite lock (using DAL in a module)

2017-02-05 Thread António Ramos
(i´m not an expert here but i faced the same problem) I moved to postgresql and no more database locks. sqlite does not allow to have scheduler and your code writting to the database at the same , or at least that was my understanding... Regards António 2017-02-03 14:01 GMT+00:00 Jesse Hunt :

[web2py] get previous inserted record with the same product id

2017-02-05 Thread 黄祥
let say i have a table with the record that compare the product price with the previous product price e.g. *models/db.py* def on_define_nav(table): table.daily_return.compute = lambda r: float(r['nav_per_unit'] ) - float(r['previous_nav_per_unit'] ) table.daily_return_percentage.compute = lambda

[web2py] Appengine to cloud sql connection error : no driver available ('MySQLdb', 'pymysql', 'mysqlconnecto

2017-02-05 Thread sa
While trying to connect google cloud sql from appengine-web2py it is giving following error: RuntimeError: Failure to connect, tried 5 times: Traceback (most recent call last): File "/base/data/home/apps/s~eappair-201601/20170131t082737.398849371354660874/gluon/packages/dal/pydal/base.py" , lin

[web2py] Re: response.files.append or insert syntax

2017-02-05 Thread Massimo Di Pierro
That's an onld syntax. You can do response.files.append(URL('static','myview.css')) On Sunday, 5 February 2017 09:12:04 UTC-6, Andrea Fae' wrote: > > Yes, thank you, but why this syntax? r=request,c='static',f='myview.css' > > Il giorno domenica 5 febbraio 2017 15:36:02 UTC+1, Nico de Groot ha

[web2py] Re: jsonpickle instead of pickle

2017-02-05 Thread Massimo Di Pierro
we do not support it at this time. On Sunday, 5 February 2017 09:12:29 UTC-6, nexususe...@gmail.com wrote: > > hello > is it possible to use jsonpickle instead of pickle (or cpickle) > when serializing sessions, in order to interchange sessions > between web2py and node.js without overhead > > r