[web2py] Re: Migrate from sqlite to mysql

2019-02-08 Thread 黄祥
> > - what version of mysql do I have to install to my PC where I have 2.17 > version of web2py? Where can I find? > in windows env there are mysql and mariadb *ref:* https://downloads.mariadb.org https://dev.mysql.com/downloads/mysql/ - is it necessary to install drivers or it is still includ

[web2py] Re: Is there any way to preprocess a view before its rendered?

2019-02-08 Thread Alfonso Serra
This would be a solution: At gluon/templates.py line 790, poll for "*response.parseview*" which is a custom function that will get the template text and return a modified one: else: text = filename.read() response = context.get("response") if response and respon

[web2py] Re: Folder sessions

2019-02-08 Thread Dave S
On Wednesday, February 6, 2019 at 4:01:51 AM UTC-8, Константин Комков wrote: > > If I use first method my services was stoped and cannot be run, enother > method open in text editor file web2py.py. The better for me use nssm > becouse I can delete folder session manually(online 2 - 10 students)

[web2py] Re: Is there any way to preprocess a view before its rendered?

2019-02-08 Thread Alfonso Serra
Those are all good alternatives. ill investigate the js option but cant process a view with js delimiters as \{{ as they will be interepreted by python. response.render is not documented but found an example at http://web2py.com/books/default/chapter/29/08/emails-and-sms?search=response.render

[web2py] Migrate from sqlite to mysql

2019-02-08 Thread Andrea Fae'
Hello everybody I have some questions about an appllication I want to migrate from SQLite db to MySql in windows: - what version of mysql do I have to install to my PC where I have 2.17 version of web2py? Where can I find? - is it necessary to install drivers or it is still included in my web2py

[web2py] Re: Is there any way to preprocess a view before its rendered?

2019-02-08 Thread Anthony
It's just a file, so read it in, do whatever you want with it, and then call response.render() with the results. A simpler approach is to see if you can use alternative delimiters with your JS library. If the library doesn't allow that, you can use alternative delimiters in the original code, r

Re: [web2py] Accessing MySQL data without define tables

2019-02-08 Thread Ben Duncan
Did you set up the db_define table for the database in models. For example, the accounting package I am working on for our Supreme Court has and external postgres database. >From the DDL, I've created, for example, the "ship to code" file (we reuse for something else) -

[web2py] Accessing MySQL data without define tables

2019-02-08 Thread Jon Subscripted
Hi everyone, I'm trying to access the data stored in my app db from a different piece of software (apart from my web2py app). But I get an error AttributeError. Based on the manual: http://www.web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Using-DAL-without-define-tables I

[web2py] Is there any way to preprocess a view before its rendered?

2019-02-08 Thread Alfonso Serra
Hi. The question would be if theres any way to run a function taking a composed unprocessed view as argument to return a modified one, before its executed and rendered. The problem im trying to solve is because handlebars, jquery or knockout js are using the same delimiters as web2py. Im awa