[web2py] Re: Problem with starting project

2018-11-14 Thread Константин Комков
Stifan, after >>> import fdb debugger showed that error: 'bdb'.run(), line 400: exec cmd in globals, locals > '__main__'.(), line 1:import fdb I installed python and driver on another computer and have that error too. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - h

[web2py] Re: admin IDE for general use

2018-11-14 Thread lucas
well, I know that web2py is reading a py/txt file and uploading that into CodeMirror when the page is loaded to be edited under admin. then when saved it writes it back to the file to update it. I'd like to get the py/txt from a text field in PostgreSQL table. and then when its saved, it will

[web2py] Re: admin IDE for general use

2018-11-14 Thread Val K
> I'd like to be able to store and manage their code (text) as a text field > under PostgreSQL ... ... bring them to a default listing of their previous or current code > projects, click on a project or start a new project .. What do you mean under the code project - web2py app or just a

[web2py] Re: Problem with starting project

2018-11-14 Thread 黄祥
not sure why fdb not listed when you start web2py, think psycopgy2 is loaded while fdb is not perhaps you can test it first in the python environment, if it no error occured, then you can use it in web2py app *e.g.* python >>> import fdb best regards, stifan -- Resources: - http://web2py.com

[web2py] Re: admin IDE for general use

2018-11-14 Thread lucas
ok, I see that CodeMirror is the base editor. is there a web2py api of some sort that would allow us to inject whatever code, from whatever source, and then save and send that updated code to whatever source? so that the entire functionality of our web2py editor is still the same and working

[web2py] Re: Is it possible to share cache between two differente web2py applications?

2018-11-14 Thread Lisandro
I've created a pull request to achieve this: https://github.com/web2py/web2py/pull/2055 If it's not accepted (which is totally ok with me), I would like to know if I have some other alternative. Thanks! El lunes, 23 de enero de 2017, 17:29:22 (UTC-3), Lisandro escribió: > > I'm using RedisCache,

[web2py] Re: Problem with starting project

2018-11-14 Thread Константин Комков
[image: cmdFDB.png] As I undarstand I already installed fdb driver. [image: cmdWEB2PY.png] But when I start web2py in cmd I don't see that driver. How can I start it? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - ht

[web2py] Re: Column order in SQLFORM

2018-11-14 Thread Yann Dulondel
Works fine now, i'm not a pyhton dev and in dev language(powerbuilder) the {} define an array >From myfields={db.articles.bulk_id,db.articles.dossier,db.articles. date_sortie,db.articles.conteneur,db.articles.cod_ref} to myfields[db.articles.bulk_id,db.articles.dossier,db.articles.date_sortie, db.

[web2py] Re: plugin_jqmobile

2018-11-14 Thread Anthony
On Wednesday, November 14, 2018 at 3:47:33 AM UTC-5, lbjc1...@gmail.com wrote: > > Following this > > topic. > Are we still not using the plugin? > Right. That approach was dead 2.5 years ago and has not been revived since

[web2py] Re: Column order in SQLFORM

2018-11-14 Thread Anthony
I see you have defined your fields as a Python set object: myfields={db.articles.bulk_id,db.articles.dossier,db.articles. date_sortie,db.articles.conteneur,db.articles.cod_ref} Sets do not guarantee any particular order, and for non-integers, I think the order can even change from process to

[web2py] Re: How to work with files in multipart/form-data?

2018-11-14 Thread Константин Комков
Val K, thank you! All work. If somebody want to upload files using one button use it: controller: def loadDocs(): documents = request.vars for key in documents: doc = documents[key] db_app.doc_images.insert(person='{0} {1} {2}'.format(session.abit_f,session.abit_i,session.a

[web2py] admin IDE for general use

2018-11-14 Thread Val K
See to CodeMirror on which web2py IDE is based -- 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

[web2py] admin IDE for general use

2018-11-14 Thread lucas
hello one and all, alright, so I have these seniors in college that need to learn some programming and I want them to use python and web2py as the development platform. I'd like to be able to store and manage their code (text) as a text field under PostgreSQL, but that would be transparent to

[web2py] Re: How to work with files in multipart/form-data?

2018-11-14 Thread Val K
Well, it's strange ... web2py should read filename from passed doc, but it seems it does not do it. Try to pass doc.filename as second arg to .store() -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.

[web2py] Re: How to work with files in multipart/form-data?

2018-11-14 Thread Константин Комков
Controller: > > def loadDocs(): > documents = request.vars > for key in documents: > doc = documents[key] > db_app.doc_images.insert(person='{0} {1} > {2}'.format(session.abit_f,session.abit_i,session.abit_o),file=db_app.doc_images.file.store(doc)) > return doc.filename

[web2py] Re: How to work with files in multipart/form-data?

2018-11-14 Thread Val K
Show controller code pls -- 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 "web2p

[web2py] Re: How to work with files in multipart/form-data?

2018-11-14 Thread Константин Комков
doc.filename = flower.jpg result file in uploads - doc_images.file.94aa36d88e4a9c73.4e6f6e65.txt I want to get - doc_images.file.94aa36d88e4a9c73.4e6f6e65.jpg -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.

Re: [web2py] Interacting with Postgres Integer Array Field

2018-11-14 Thread Val K
See Custom Field types in the book -- 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 Gro

[web2py] How to convert my view to pdf

2018-11-14 Thread mostwanted
I have been researching this topic alot because i am trying to achieve this, i want to convert my view exactly as it to PDF, i came across some information on web2py-appreport but I don't understand exactly how it works, maybe its my slow mind, i followed the examples in https://github.com/luca

Re: [web2py] '<'

2018-11-14 Thread mostwanted
I had to re-create my database from scratch too, i don't know where this error came from. Thanks for replying. Mostwanted On Wednesday, November 14, 2018 at 11:02:00 AM UTC+2, Lovedie JC wrote: > > I used to get such esp. when on of my files was corrupted in the > databases. > I'd reinstall we

[web2py] Re: How to work with files in multipart/form-data?

2018-11-14 Thread Val K
Check what does doc.filename look like -- 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] '<'

2018-11-14 Thread Lovedie JC
I used to get such esp. when on of my files was corrupted in the databases. I'd reinstall web2py or delete all files in the databases folder and copy back to the databases folder from a back up folder. Hope this helps On Mon, 12 Nov 2018 at 22:35, mostwanted wrote: > I'm pulling my hairs out ove

[web2py] plugin_jqmobile

2018-11-14 Thread lbjc1978
Following this topic. Are we still not using the plugin? I've tried it but it does not work. I need to have some pages (see below) to be mobile friendly for an app. {{extend 'layout.html'}} http://maxc