Re: [web2py] Re: Future of web2py

2018-11-21 Thread 黄祥
another alternative for vue admin: https://github.com/PanJiaChen/vue-element-admin best regards, stifan -- 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) ---

[web2py] Re: Hierarchy (BOM) using closure table with triggers in DAL?

2018-11-21 Thread BigBaaadBob
The use case is manufacturing. Large complicated manufacturing with special requirements. And SAP need not apply... :-) On Wednesday, November 21, 2018 at 1:26:56 PM UTC-8, Dave S wrote: > > > > On Wednesday, November 21, 2018 at 10:33:13 AM UTC-8, BigBaaadBob wrote: >> >> I'm just trying to

[web2py] Vuepy = Vue.js - (NOde.js + webpack) + RapydScript_in_browser + CodeMirror

2018-11-21 Thread Val K
I did it! just try https://valq7711.github.io/vuepy/demo/ -- 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

Re: [web2py] Re: Migrations

2018-11-21 Thread Dave S
On Wednesday, November 21, 2018 at 5:32:29 AM UTC-8, Ben Duncan wrote: > > Ok, I turned migration on for tables, and it gave errors because of > foreign keyes. > Everything looks exactly like the docs spell out. > > I'm not sure I see the reasoning for the stuff in directory 'database'. >

[web2py] Re: Hierarchy (BOM) using closure table with triggers in DAL?

2018-11-21 Thread Dave S
On Wednesday, November 21, 2018 at 10:33:13 AM UTC-8, BigBaaadBob wrote: > > I'm just trying to find a good solid way of doing the BOM pattern using > the DAL, and pretty much all of the decent articles I've found say the > Closure Table method is the best trade-off, especially for large-ish

[web2py] Re: Scheduler Replacement

2018-11-21 Thread Dave S
On Wednesday, November 21, 2018 at 10:31:13 AM UTC-8, Boris Aramis Aguilar Rodríguez wrote: > > TL;DR : Do you guys know or has experience with an alternative scheduler > to web2py's one that you would recommend? we use features such as > scheduling tasks at a specific time, repetitions,

[web2py] Re: Hierarchy (BOM) using closure table with triggers in DAL?

2018-11-21 Thread BigBaaadBob
I'm just trying to find a good solid way of doing the BOM pattern using the DAL, and pretty much all of the decent articles I've found say the Closure Table method is the best trade-off, especially for large-ish and deep-ish BOM structures. But, I'm not dogmatic. How would you code up a

[web2py] Scheduler Replacement

2018-11-21 Thread Boris Aramis Aguilar Rodríguez
TL;DR : Do you guys know or has experience with an alternative scheduler to web2py's one that you would recommend? we use features such as scheduling tasks at a specific time, repetitions, timeouts, and check the task current state. Any further comments, advice and experience is really

[web2py] Re: Hierarchy (BOM) using closure table with triggers in DAL?

2018-11-21 Thread Val K
Why do you have to use this crutches (despite they are genius)? Now, even Sqlite3 supports 'with recursive' queries. And what do you mean under BOM and large tree? If we are talking about BOM of real (physical) object like a car or even an aircraft carrier, I think it is not large tree only

Re: [web2py] Re: Future of web2py

2018-11-21 Thread António Ramos
Just an admin with vue and vuetify https://github.com/tookit/vue-material-admin Em qua, 21 de nov de 2018 às 17:24, António Ramos escreveu: > Just my 2 cents > If we are on to Vuejs the better options is not bootstrap, its vuetify... > they were made to be together.. > > Em ter, 20 de nov de

Re: [web2py] Re: Future of web2py

2018-11-21 Thread António Ramos
Just my 2 cents If we are on to Vuejs the better options is not bootstrap, its vuetify... they were made to be together.. Em ter, 20 de nov de 2018 às 19:23, Fernando Lucas escreveu: > Did you think about the JS framework, https://aurelia.io/? > Thank's > Fernando Lucas > > Em seg, 29 de mai de

[web2py] Re: Hierarchy (BOM) using closure table with triggers in DAL?

2018-11-21 Thread BigBaaadBob
I went ahead and coded something up, inspired by Massimo's Preorder Traversal example. I wouldn't be offended if people suggest how to make it better/faster, perhaps by combining stuff in the Link function into one query instead of many. # Demonstrate closure tables. Deletion of nodes is left

Re: [web2py] Re: Migrations

2018-11-21 Thread Ben Duncan
Ok, I turned migration on for tables, and it gave errors because of foreign keyes. Everything looks exactly like the docs spell out. I'm not sure I see the reasoning for the stuff in directory 'database'. I'm going ahead putting back migration=False on all the tables, since It works that way and

Re: [web2py] Re: Migrations

2018-11-21 Thread Ben Duncan
I tried enable fake migrations (Backend has tables), nothing was created in databases, but everything works as it should .. *Ben Duncan* DBA / Chief Software Architect Mississippi State Supreme Court Electronic Filing Division On Tue, Nov 20, 2018 at 4:20 PM Dave S wrote: > > > On Tuesday,

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

2018-11-21 Thread Val K
If want to validators do their stuff, just try db_app.doc_images.validate_and_insert(... , file=doc) db_app.doc_images.file.store - just a helper that sanitizes the filename, adds a unique prefix and saves the file + returns its real (OS) name So, in your example, the validation happens too

[web2py] Re: Changing color of a cell function of another cell value

2018-11-21 Thread Yann Dulondel
Le mercredi 21 novembre 2018 10:51:16 UTC+1, Yann Dulondel a écrit : > > Hi all, > I have a container number and a function that check the number is valid. > The result of the function is store in field cntnumok (boolean). > I found that we can change the color with "represent" and found an

[web2py] Changing color of a cell function of another cell value

2018-11-21 Thread Yann Dulondel
Hi all, I have a container number and a function that check the number is valid. The result of the function is store in field cntnumok (boolean). I found that we can change the color with "represent" and found an example in webgroup. db.articles.conteneur.represent = lambda v, row: SPAN(v,

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

2018-11-21 Thread Константин Комков
loadDoc = db_app.doc_images.validate_and_insert(person='{0} {1} {2}'.format(session.abit_f,session.abit_i,session.abit_o),file=db_app.doc_images.file.store(doc,doc.filename)) I see another expansion yet. And loadDoc.errors.as_dict() contain {'file','enter valid filename'}. -- Resources: -