[web2py] Though I changed datetime format to %d-%m-%Y %H:%M in web2py_ajax.html it gives the old results?

2016-06-17 Thread Steve Joe
Do I have to change it anywhere else too? -- 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 Goog

[web2py] Re: How can I customize the look and feel of SQLFORM.grid???

2016-06-17 Thread Anthony
On Friday, June 17, 2016 at 6:45:15 PM UTC-4, Greenpoise wrote: > > The typo is just here. Where can I see the components of the grid? > Not sure what you mean. You can always inspect the HTML in the browser. Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - h

[web2py] Re: How can I customize the look and feel of SQLFORM.grid???

2016-06-17 Thread Greenpoise
The typo is just here. Where can I see the components of the grid? Thanks On Friday, June 17, 2016 at 3:42:55 PM UTC-7, Anthony wrote: > > Not sure if this is the issue, but you are missing a closing quote. > > On Friday, June 17, 2016 at 6:39:18 PM UTC-4, Greenpoise wrote: >> >> like this for

[web2py] Re: How can I customize the look and feel of SQLFORM.grid???

2016-06-17 Thread Anthony
Not sure if this is the issue, but you are missing a closing quote. On Friday, June 17, 2016 at 6:39:18 PM UTC-4, Greenpoise wrote: > > like this for example? > > http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/

[web2py] Re: How can I customize the look and feel of SQLFORM.grid???

2016-06-17 Thread Greenpoise
like this for example? 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 "web2py-users" group. To

[web2py] Re: How can I customize the look and feel of SQLFORM.grid???

2016-06-17 Thread Anthony
Or override its styles in a custom CSS file that gets loaded later. On Friday, June 17, 2016 at 6:17:06 PM UTC-4, greenpoise wrote: > > Should I edit web2py-bootstrap3.css directly? > > > Thanks > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2

[web2py] How can I customize the look and feel of SQLFORM.grid???

2016-06-17 Thread greenpoise
Should I edit web2py-bootstrap3.css directly? Thanks -- 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 subscribe

[web2py] Re: Rocket server and Windows POST

2016-06-17 Thread Dave S
On Friday, June 17, 2016 at 7:34:18 AM UTC-7, Niphlod wrote: > > how can it be a rocket issue when the variable is the client and not the > server ? > By not handling a common error condition? By setting the timeout too long?Not requiring a keep-alive (aka heartbeat) on an open-but-quiet c

Re: [web2py] Re: search results returned by SQLFORM.grid in loaded component {{=LOAD( ....

2016-06-17 Thread Al Ex
Thank you. Formname was already assigned. Yes I need to show the code, I will simplify it a little, at the moment it does not look so nice to read, maybe during this process the bug will also show up ;-) -- Al Ex From: Anthony Reply: web2py@googlegroups.com Date: June 17, 2016 at 10:28:39 PM

[web2py] Re: search results returned by SQLFORM.grid in loaded component {{=LOAD( ....

2016-06-17 Thread Anthony
The first place I would look is your code, which you have not shown. ;-) On Friday, June 17, 2016 at 4:02:59 PM UTC-4, alex wrote: > > In a index.html view I load a component "test.load" containing an > SQLFORM.grid with searchable=True. > When I perform a search, the results do not appear insid

[web2py] Re: search results returned by SQLFORM.grid in loaded component {{=LOAD( ....

2016-06-17 Thread Ron Chatterjee
Try to stick a formname in the grid. formname='something' See if it works. On Friday, June 17, 2016 at 4:02:59 PM UTC-4, alex wrote: > > In a index.html view I load a component "test.load" containing an > SQLFORM.grid with searchable=True. > When I perform a search, the results do not appear i

[web2py] search results returned by SQLFORM.grid in loaded component {{=LOAD( ....

2016-06-17 Thread Al Ex
In a index.html view I load a component "test.load" containing an SQLFORM.grid with searchable=True. When I perform a search, the results do not appear inside the index.html any more. A new page "test.load” opens with the results. For sure I am doing something wrong, or I am missing something, bec

Re: [web2py] Why is this simple join not rendering?

2016-06-17 Thread greenpoise
Thanks Massimiliano! On Friday, June 17, 2016 at 3:46:05 AM UTC-7, Massimiliano wrote: > > I think you need to refer to fields in this way: > > {{=customer.customer.first_name}} > {{=customer.customer_type.type_name}} > > On Fri, Jun 17, 2016 at 8:56 AM, Greenpoise > wrote: > >> so I have this

Re: [web2py] Problem with custom upload

2016-06-17 Thread Richard Vézina
No problem, I am glad you found your mistake. Richard On Fri, Jun 17, 2016 at 11:54 AM, 'Annet' via web2py-users < web2py@googlegroups.com> wrote: > Hi Richard, > > Thanks for your reply, renaming the application did not solve the problem. > However, > having a closer look at my code, I found th

Re: [web2py] Problem with custom upload

2016-06-17 Thread 'Annet' via web2py-users
Hi Richard, Thanks for your reply, renaming the application did not solve the problem. However, having a closer look at my code, I found that in: upload=URL('dbmodel', 'static', 'uploads', folder, args=request.vars.image)) 'static', 'uploads' should be 'static/uploads' I am sorry for bothering

[web2py] maxtextlengths is not working for me

2016-06-17 Thread Anthony
Yes, there is a problem with smartgrid - most of the arguments must now be dictionaries with table names as keys (so you need to specify this for each table). An issue has been filed to restore the original behavior. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - h

[web2py] maxtextlengths is not working for me

2016-06-17 Thread Valdeck Rowe
This one does not work, it gives the default behavior. maxtextlengths = { 'scenario_step.activity' : 80, 'use_case.title' : 40, 'scenario_step_target.target_use_case':30 }, This works however, but is not individualized to the different f

[web2py] Re: Rocket server and Windows POST

2016-06-17 Thread Niphlod
how can it be a rocket issue when the variable is the client and not the server ? On Friday, June 17, 2016 at 1:36:29 AM UTC+2, Dave S wrote: > > I'm a bad boy and still using the Rocket server that comes with web2py. > Today I ran into an interesting case. My client code sends a dump file to

Re: [web2py] Problem with custom upload

2016-06-17 Thread Richard Vézina
What happen if you put back org instead of com it is does fix things it kind of confirm that the issue come in part from there... On Fri, Jun 17, 2016 at 10:25 AM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > Hello Annet, > > Are you changing routes? > > On Fri, Jun 17, 2016 at 9:12 AM,

Re: [web2py] Problem with custom upload

2016-06-17 Thread Richard Vézina
Hello Annet, Are you changing routes? On Fri, Jun 17, 2016 at 9:12 AM, 'Annet' via web2py-users < web2py@googlegroups.com> wrote: > I have the following function: > > def logo(): > vertexID = get_vertexID(auth, session) > folder = 'vertexID' + str(vertexID) > table.image.uploadfolder

Re: [web2py] Re: show map on grid view

2016-06-17 Thread 黄祥
thanks manuele, i've tried that but the result is same (no error occured but the result is not expected, google maps show almost take the sqlform grid view entirely). e.g. def check_point_admin(row): scr0 = SCRIPT(""" function initMap() { var mapDiv = document.getElementById(%s); document.getElem

[web2py] Problem with custom upload

2016-06-17 Thread 'Annet' via web2py-users
I have the following function: def logo(): vertexID = get_vertexID(auth, session) folder = 'vertexID' + str(vertexID) table.image.uploadfolder = os.path.join(request.env.applications_parent, 'applications', 'dbmodel', 'static', 'uploads', f

Re: [web2py] simple file uploader to database as a plugin

2016-06-17 Thread Manuele Pesenti
Il 14/06/16 20:50, Vic Ding ha scritto: > It works when I directly access the index page, however when I LOAD it > to other pages it stops working. No ticket, no error. > | > {{=LOAD('plugin_upload_file','index',args=('item',item_id),user_signature=True)}} > | > > > Any idea? maybe it could help:

Re: [web2py] How do I redirect to a different application from one application?

2016-06-17 Thread Manuele Pesenti
Il 17/06/16 14:31, Steve Joe ha scritto: > I know how redirect works. But I am not sure how to redirect to > another app on the same web2py site. > i dont want to put long url , something like this: > redirect("http://127.0.0.1:8000/port/";) > as it looks so naive > [...]

Re: [web2py] How do I redirect to a different application from one application?

2016-06-17 Thread Anthony
Use the URL function with the app name as the first argument. It's all in the docs. -- 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 mes

Re: [web2py] How do I redirect to a different application from one application?

2016-06-17 Thread Steve Joe
I know how redirect works. But I am not sure how to redirect to another app on the same web2py site. i dont want to put long url , something like this: redirect("http://127.0.0.1:8000/port/";) as it looks so naive On Friday, June 17, 2016 at 12:28:06 PM UTC+5:30, Manuele wrote: > > Il 17/06/16 0

Re: [web2py] How do I sort a list containing the rows of a db query according to a db table field?

2016-06-17 Thread Manuele Pesenti
Il 17/06/16 11:06, Steve Joe ha scritto: > def index(): > skills=db(db.skills.id>0).select() > pro_lang=[] > fake=[] > for skill in skills: > if skill.skilltype=="Programming Languages": > pro_lang.append(skill) > else: > fake.append(skill) >

[web2py] How do I sort a list containing the rows of a db query according to a db table field?

2016-06-17 Thread Anthony
Why don't you use orderby to have the database do the sorting? Since you will then loop through the records in order, both lists will be generated in order. Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https

[web2py] Re: db.commit() in module

2016-06-17 Thread Pierre
ok, now it is as clear as crystal :) thanks a lot guys. I appreciate your support soon moving on to the most attractive part : "his Majesty the Scheduler" -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.

Re: [web2py] Why is this simple join not rendering?

2016-06-17 Thread Massimiliano
I think you need to refer to fields in this way: {{=customer.customer.first_name}} {{=customer.customer_type.type_name}} On Fri, Jun 17, 2016 at 8:56 AM, Greenpoise wrote: > so I have this simple join: > > query = (db.customer.id > 0) & (db.customer_type.id > ==db.customer.customer_type) > >

[web2py] Dynamic path built for a .svg file using uuid and passing the constructed path to view not working

2016-06-17 Thread Rahul
Hi All, I am using uuid to create new temporary files for PYGAL chart. Although I can see the file being created and available in the file system. Even I can view the file in the browser, however when I serialize the path variable to be passed to the view, I get an error - A 404 not found

[web2py] Re: Why is this simple join not rendering?

2016-06-17 Thread Marlysson Silva
Pops up some traceback? Em sexta-feira, 17 de junho de 2016 03:56:57 UTC-3, Greenpoise escreveu: > > so I have this simple join: > > query = (db.customer.id > 0) & (db.customer_type.id > ==db.customer.customer_type) > > all_customers = db(query).select() > > return dict(all_customers = all

[web2py] Re: Update Pure HTML form

2016-06-17 Thread Jeff Riley
Anthony. It was me being a complete idiot. I had not removed the HTML form tags. I have attached the code that is working perfectly now. Thank you so much for have the patience of a Saint. On Wednesday, June 15, 2016 at 8:52:22 AM UTC-5, Jeff Riley wrote: > > All. I was going to link this t

[web2py] How do I sort a list containing the rows of a db query according to a db table field?

2016-06-17 Thread Steve Joe
def index(): skills=db(db.skills.id>0).select() pro_lang=[] fake=[] for skill in skills: if skill.skilltype=="Programming Languages": pro_lang.append(skill) else: fake.append(skill) # how do i sort both the arrays as per the field skill.co