[web2py] 2.18.5 admin UnicodeDecodeError

2019-04-25 Thread Jacinto Parga
Hi, It suddenly appeared. Version downloaded from source web. The same with github version. Error ticket for "admin" Ticket ID 127.0.0.1.2019-04-25.10-45-30.ec4c021c-532a-46c7-a8cd-6f9356fc7ab7 'ascii' codec can't decode byte 0x8b in position 1: ordinal not in range(128) Versión web2py™ Vers

[web2py] Re: 2.18.5 admin UnicodeDecodeError

2019-04-25 Thread Dave S
On Thursday, April 25, 2019 at 2:00:49 AM UTC-7, Jacinto Parga wrote: > > Hi, It suddenly appeared. Version downloaded from source web. The same > with github version. > > Error ticket for "admin" Ticket ID > > 127.0.0.1.2019-04-25.10-45-30.ec4c021c-532a-46c7-a8cd-6f9356fc7ab7 > 'ascii' codec

[web2py] MARKMIN - Sanitizing

2019-04-25 Thread Paul Ellis
I am using an editable span with some js to submit the input via ajax to the server. The span is only editable by admins. To give them some formatting options they can use MARKMIN in the span. The problem is it only seems to be one directional. How can I take the processed HTML and turn it bac

[web2py] Re: Connect to Sybase ASE 15.7

2019-04-25 Thread isi_jca
Using Python native module in SDK ASE 16, the connection is sucessful import sybpydb conn = sybpydb.connect(servername='TEST',user='Myuser', password='Pa$$w0rd') cur = conn.cursor() cur.execute("select succod, sucdesc from mydb..tsucursal") while True: row = cur.fetchone() if (not

[web2py] custom search

2019-04-25 Thread Andrea Fae'
I create a custom search, so not standard field with "Search" and "reset" button standard. How to click the button "Search" programmatically? thank you -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google

[web2py] custom widget search form

2019-04-25 Thread Andrea Fae'
Can anyone help me giving me an example of custom widget search form? Better with default values and if is it possible to click "Search" programmatically. Thank you very much -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source cod

[web2py] datepicker preserve selecred date after postback

2019-04-25 Thread Andrea Fae'
How to preserve datepicker selected date after postback using web2py in a javascript view... I think it's a javascript problem but I don't know how to fix it. thank you -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - h

[web2py] Re: Radio Buttons basic inline editing in SQLFORM.grid

2019-04-25 Thread Dave S
On Wednesday, April 24, 2019 at 4:16:56 PM UTC-7, Jacob wrote: > > Hello I'm still new to web2py and I'm currently working on an a grid which > utilises basic inline editing using the example from > http://www.web2pyslices.com/slice/show/1928/basic-inline-editing-in-sqlformgrid-no-plugin-no-jav

[web2py] Re: How to create js function before web2py.js send data to server?

2019-04-25 Thread Dave S
On Wednesday, April 24, 2019 at 10:34:39 AM UTC-7, Константин Комков wrote: > > I use two validation (client and server). Web2py has good mechanism, which > block submit button and change text with considering translate another > languages. > I need validate form when button was pushed and in t

[web2py] Re: How to build onvalidation routine for unique within location

2019-04-25 Thread João Matos
You shouldn't create a field called id. Check the recommendations on the docs. web2py creates an id (auto-increment) field automatically. Anyway, form.vars.* are only available on onvalidation if the field is editable. Check your grid config. Maybe adding field_id=db.brix_test.id would help. Ch

[web2py] Re: 2.18.5 admin UnicodeDecodeError

2019-04-25 Thread João Matos
Did you change the Python version? Check your path. Also, if clearing the sessions and errors doesn't work, try to delete all *.pyc in the web2py tree. Another possible origin are the databases if using SQLite. quinta-feira, 25 de Abril de 2019 às 10:00:49 UTC+1, Jacinto Parga escreveu: > > Hi,

[web2py] Re: datepicker preserve selecred date after postback

2019-04-25 Thread João Matos
Is the selected date in a db field? Then when editing the same field, the date picker should show the selected date. If the date is still not saved to a db field but only in js, then you can send it using something similar to this