Re: [web2py] Re: from desktop to web2py

2015-05-08 Thread 黄祥
just an idea, i think you need 2 form, 1 for the upload file and store the value into session, and put it on another form, using requires = IS_IN_SET() *e.g. not tested* *create your 1st form and store the value of uploaded file into session* a = open(form.vars.upload_file, 'wb').write(session.upl

[web2py] Re: Creating a grid based on queries pertaining to a primary db table, and a table that references it

2015-05-08 Thread Spokes
Hi, Dave. Yes, that seems to be an accurate summary of what I was attempting to do. On Friday, May 8, 2015 at 3:25:24 PM UTC-5, Dave S wrote: > > > > On Friday, May 8, 2015 at 11:55:13 AM UTC-7, Spokes wrote: >> >> I'd like to create a grid based on criteria relating to a primary table, >> and

[web2py] Re: Creating a grid based on queries pertaining to a primary db table, and a table that references it

2015-05-08 Thread Dave S
On Friday, May 8, 2015 at 11:55:13 AM UTC-7, Spokes wrote: > > I'd like to create a grid based on criteria relating to a primary table, > and a table that references that primary table. Slightly modifying the > example from the web2py docs, let's say the primary table is 't_person', > and it's

Re: [web2py] Re: 'exposes' and 'edit views' order in editor

2015-05-08 Thread Niphlod
that was exactly what I was thinking about: same order for both, and alphabetical is kinda universal. Won't be a long-standing issue but right now I need to go to bed. Can you please raise an issue on github ? Just to keep it tracked. -- Resources: - http://web2py.com - http://web2py.com/boo

Re: [web2py] Re: 'exposes' and 'edit views' order in editor

2015-05-08 Thread Gael Princivalle
Well for my personal advice, alphabetic order is the universal way to organize informations. I use only view links, so for my personal use only views, but I think it's useful having also functions in alphabetic order. -- Gael Princivalle 2015-05-08 21:43 GMT+02:00 Niphlod :

[web2py] Re: 'exposes' and 'edit views' order in editor

2015-05-08 Thread Niphlod
for both functions and views or only for views ? On Friday, May 8, 2015 at 5:28:55 PM UTC+2, Gael Princivalle wrote: > > Is it possible in new web2py versions to change it to alphabetical? > > Il giorno venerdì 8 maggio 2015 17:07:10 UTC+2, Niphlod ha scritto: >> >> the order comes from glob.glob(

[web2py] Creating a grid based on queries pertaining to a primary db table, and a table that references it

2015-05-08 Thread Spokes
I'd like to create a grid based on criteria relating to a primary table, and a table that references that primary table. Slightly modifying the example from the web2py docs, let's say the primary table is 't_person', and it's referenced by the table, 't_thing'. I'd like the grid to list 't_pers

[web2py] action about:blank

2015-05-08 Thread goome
Hello i created a form(initially witj sqlform.factory, then by FORM() function, but the the form come up with action set to about:blank. I tried to explicitly set the action with _action='#'), but still the form created has action = about:blank. The for has a select. This has been happening only

Re: [web2py] Re: from desktop to web2py

2015-05-08 Thread goome
Thank you for your help Dave. I try explain myself better: i have a form where the user upload an excel file. I need to process that file, but only some rows of them. And i need to let the user select which rows. Thanks a lot Il giorno venerdì 8 maggio 2015 01:06:11 UTC+2, Dave S ha scritto: > >

[web2py] Re: 'exposes' and 'edit views' order in editor

2015-05-08 Thread Gael Princivalle
Is it possible in new web2py versions to change it to alphabetical? Il giorno venerdì 8 maggio 2015 17:07:10 UTC+2, Niphlod ha scritto: > > the order comes from glob.glob() . from what I recalled, it returned > alphabetically sorted results. > Seems instead - checking the docs - that "The list i

[web2py] Re: 'exposes' and 'edit views' order in editor

2015-05-08 Thread Niphlod
the order comes from glob.glob() . from what I recalled, it returned alphabetically sorted results. Seems instead - checking the docs - that "The list is in arbitrary order" . sorry for the misdirection. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github

Re: [web2py] Re: MSSQLAdapter missing?

2015-05-08 Thread Niphlod
again, not a web2py issue per se. what does happen when you do this ? import pyodbc connStr = 'DRIVER={ODBC Driver 11 for SQL Server};SERVER=server;DATABASE=database;port=port;domain=WSPG;UID=user;PWD=passwd' conn = pyodbc.connect(connStr) cur = conn.cursor() cur.execute('select 1') print cur.fe

Re: [web2py] Re: MSSQLAdapter missing?

2015-05-08 Thread José Ricardo Borba
@Carl, Maybe if you install/clone web2py again, with pydal embedding working (since tomorrow night), you can get succes now? Try and tell. Best regards, 2015-05-08 11:31 GMT-03:00 Carl Petersen : > OK, I deinstalled the dist-packages version of pyDAL (I had just tried it > on the off-chance th

[web2py] Re: MSSQLAdapter missing?

2015-05-08 Thread Carl Petersen
OK, I deinstalled the dist-packages version of pyDAL (I had just tried it on the off-chance that it would work anyway) It is now using the embedded version of pyDAL. Unfortunately, still the same error. I ran the command from the microsoft odbc driver manager instructions to verify my instal

[web2py] Re: 'exposes' and 'edit views' order in editor

2015-05-08 Thread Gael Princivalle
So I have to check my alphabet knowledge, here is how my views are displayed in the editor: fuzz, googleaf365ee20ab65216, user, news, ordine_verifica, fattoria_didattica, contatti, test, attivita_fattoria_didattica, carrello, chi_siamo, index, test2, ordine_indirizzo, in_progress, prodotto, pro

Re: [web2py] Re: 'exposes' and 'edit views' order in editor

2015-05-08 Thread Gael Princivalle
So I have to check my alphabet knowledge, here is how my views are displayed in the editor: fuzz, googleaf365ee20ab65216, user, news, ordine_verifica, fattoria_didattica, contatti, test, attivita_fattoria_didattica, carrello, chi_siamo, index, test2, ordine_indirizzo, in_progress, prodotto, prodot

[web2py] Re: 'exposes' and 'edit views' order in editor

2015-05-08 Thread Niphlod
views are alphabetical. On Friday, May 8, 2015 at 2:49:47 PM UTC+2, Gael Princivalle wrote: > > Ok for 'exposes' they are in the order they are define. > And for 'edit views' ? > > Il giorno venerdì 8 maggio 2015 13:24:14 UTC+2, Niphlod ha scritto: >> >> hopefully they either are alphabetical or i

[web2py] Re: 'exposes' and 'edit views' order in editor

2015-05-08 Thread Gael Princivalle
Ok for 'exposes' they are in the order they are define. And for 'edit views' ? Il giorno venerdì 8 maggio 2015 13:24:14 UTC+2, Niphlod ha scritto: > > hopefully they either are alphabetical or in the same order they're > defined :D ... some logic should be there :P > > On Friday, May 8, 2015 at 1

[web2py] Re: 'exposes' and 'edit views' order in editor

2015-05-08 Thread Niphlod
hopefully they either are alphabetical or in the same order they're defined :D ... some logic should be there :P On Friday, May 8, 2015 at 10:07:50 AM UTC+2, Gael Princivalle wrote: > > Hello. > > When I open in the editor a controller, at the top controller functions > are listed in 'exposes' a

Re: [web2py] Pydal issues

2015-05-08 Thread Niphlod
fixed, btw. On Thursday, May 7, 2015 at 9:49:40 PM UTC+2, José Borba wrote: > > Thank you, Niphlod and Richard, to take care about. > > Cheers, > > 2015-05-07 16:18 GMT-03:00 Niphlod >: > >> unfortunately, bad commit happens. we know already. >> https://github.com/web2py/web2py/commit/6f91fdd8332

[web2py] 'exposes' and 'edit views' order in editor

2015-05-08 Thread Gael Princivalle
Hello. When I open in the editor a controller, at the top controller functions are listed in 'exposes' and 'edit views'. I don't understand which is the order criteria for these lists. brands, user, news, index Is there a way to have these lists in an alphabetic order? brands, index, news, user