[web2py] Re: web2py 2.9.6 is out!

2014-09-03 Thread Jan Beilicke
Thanks a lot, great work! Fortunate coincidence: I wanted to use Sphinx for my current web2py project and was thinking about the best way to integrate it ... and there it is already! :) Kind regards, Jan Am Dienstag, 2. September 2014 04:08:25 UTC+2 schrieb Massimo Di Pierro: This is a

Re: [web2py] Re: web2py 2.9.6 is out!

2014-09-03 Thread António Ramos
Having the table of contents always available gives the user a better experience in my opinion. something like meteor docs http://docs.meteor.com/ 2014-09-02 22:40 GMT+01:00 Tim Richardson t...@growthpath.com.au: Someone a long time ago added a jump to the top button in the scroll bar.

[web2py] 2.9.6 broke custom view template delimiters

2014-09-03 Thread Jonathan New
In prior web2py versions, we can change the template delimiters by response.delimiters = ('?', '?') With 2.9.6, gluon/template.py in lines 282-290 were changed such that response.delimiters doesn't work. I tried response.app_settings = {'template_delimiters': ('?', '?')} which the new code

[web2py] SQLFORM.dictform fields show old values after submit?

2014-09-03 Thread stefaan
Hi, I'm trying to understand what I'm doing wrongly. After submission, old values reappear in the fields. Pressing F5 is required to show the updated values. I'm using the latest and greatest web2py ( 2.9.6-stable+timestamp.2014.09.02.01.57.55) Controller: --- def index(): if

[web2py] Version 2.9.6 indeed breaks backward compat for some users

2014-09-03 Thread Joe Barnhart
soapbox = True Version 2.9.6 does indeed make LIKE case-sensitive -- at least for Postgres and perhaps other databases. The change is that case sensitivity now mimics the underlying database that you are using at the moment. So if you're a MySql user you'll probably keep case-insensitive as

[web2py] Re: Version 2.9.6 indeed breaks backward compat for some users

2014-09-03 Thread Leonel Câmara
But there is a disconnect between the devs and users who just need to keep sites running without re-writing code because of an upgrade. There's no disconnect, if this breaks backwards compatibility it's a bug and it has to be fixed. I guess web2py needs more tests to prevent this from

Re: [web2py] Version 2.9.6 indeed breaks backward compat for some users

2014-09-03 Thread Johann Spies
On 3 September 2014 12:45, Joe Barnhart joe.barnh...@gmail.com wrote: I don't know whether it is possible in you case but a workaround maybe to the change the type of the fields searched in PostgreSQL to 'citext' which enables case insensitive indexing en searching in the backend. I have

[web2py] Re: web2py setup scripts for windows

2014-09-03 Thread Massimo Di Pierro
Yes. I will add them. Thank you! On Tuesday, 2 September 2014 19:28:58 UTC-5, 黄祥 wrote: dear all, just want to share web2py setup scripts for windows (tested on windows 7 ultimate 64 bit). hopefully it can be added on web2py/scripts in the future release. thanks and best regards, stifan

[web2py] Re: 2.9.6 broke custom view template delimiters

2014-09-03 Thread Massimo Di Pierro
This will be fixed today with a new emergency release. On Wednesday, 3 September 2014 05:02:15 UTC-5, Jonathan New wrote: In prior web2py versions, we can change the template delimiters by response.delimiters = ('?', '?') With 2.9.6, gluon/template.py in lines 282-290 were changed such

[web2py] Re: Version 2.9.6 indeed breaks backward compat for some users

2014-09-03 Thread Massimo Di Pierro
Hello Joe, yes we made this change. The problem is that its previous behavior was undetermined and was different across databases. So we treated it like a bug. LIKE is supposed to be case sensitive so we made sure like(...) is also case sensitive consistently across supported databases (or so

[web2py] web2py list of dictionaries

2014-09-03 Thread trr
In controller I create a list of dictionaries from an uploaded excel file. Then I populate the list to a html table. I use xlrd lib for reading excel file. The problem is the dictionary gets correctly populated from excel but when I append the dictionary to the list and enumerate the list it

[web2py] Re: Problem with auth.request_password

2014-09-03 Thread Leonardo Silvano
It worked this way, thank you :) Em terça-feira, 2 de setembro de 2014 14h18min11s UTC-3, Massimo Di Pierro escreveu: It appears there is a bug in reset_password. It will work if you do: http://domain/app/default/reset_password/verify/key; instead of

[web2py] Re: web2py list of dictionaries

2014-09-03 Thread stefaan
Try appending a copy of d to l. I think python secretly doesn't append d, but appends a reference to d. So currently, in each iteration you overwrite the same d. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: web2py list of dictionaries

2014-09-03 Thread stefaan
I forgot to mention that you can append a copy of d using l.append(d.copy()) -- 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

[web2py] Re: web2py setup scripts for windows

2014-09-03 Thread Niphlod
hell no. I don't want 7-zip installed by web2py. and an old FIXED build of apache. And a FIXED version of python. Without checks. And Apache. On Windows. No, No, No, No to the setup scripts for windows archive. The configuration is fixed, old, and a poor duplicate of the ones we still have in

[web2py] Re: web2py list of dictionaries

2014-09-03 Thread Leonel Câmara
Python isn't doing any secret, he keeps appending the same object to the list. Just move the dictionary variable declaration to inside your loop so it declares a new dictionary each turn. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: SQLFORM.dictform fields show old values after submit?

2014-09-03 Thread stefaan
Apparently I have to call if form.process(keepvalues=True).accepted instead. It makes sense only after you know about it ;) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list

[web2py] Re: Version 2.9.6 indeed breaks backward compat for some users

2014-09-03 Thread Anthony
On Wednesday, September 3, 2014 9:37:24 AM UTC-4, Massimo Di Pierro wrote: Hello Joe, yes we made this change. The problem is that its previous behavior was undetermined and was different across databases. So we treated it like a bug. LIKE is supposed to be case sensitive so we made sure

[web2py] getting type 'exceptions.IOError' [Errno 13] Permission denied over and over

2014-09-03 Thread JorgeH
Hello I just get the following error: type 'exceptions.IOError' [Errno 13] Permission denied everytime it points to a different line of the model. I discovered that by cleaning errors, cache and sessions, its work again. But now Im getting the error like every other time I test. Any hints??

[web2py] Re: web2py list of dictionaries

2014-09-03 Thread Joe Barnhart
Or, you could just move the line d = {} into the first while block. That will get you a new dictionary object for each pass. -- Joe On Wednesday, September 3, 2014 4:45:40 AM UTC-7, trr wrote: In controller I create a list of dictionaries from an uploaded excel file. Then I populate the

[web2py] Re: web2py list of dictionaries

2014-09-03 Thread Leonel Câmara
ahahah Joe that's exactly what I said. -- 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

[web2py] Oracle Database

2014-09-03 Thread 'Michael Gheith' via web2py-users
I'm trying to create a new application that will talk with an existing Oracle database. In models.py I have the following: db.define_table('CONSUMED_FILE_STATUSES', Field('CONSUMED_FILE_STATUS', type='string', length=25), Field('CONSUMED_FILE_STATUS_DESC', type='string', length=4000),

[web2py] Re: Oracle Database

2014-09-03 Thread Leonel Câmara
What's the primary key for that table if it doesn't have an ID? Web2py needs to know. If it's not an auto incrementing integer and it's say - the string in CONSUMED_FILE_STATUS - then you need to use keyed tables (declare primarykey=['CONSUMED_FILE_STATUS'] in your table definition). However,

[web2py] SQLFORM.smartgrid 'module' object has no attribute 'split'

2014-09-03 Thread 'FERNANDO VILLARROEL' via web2py-users
Hi All. I am trying to use SQLFORM.smartgrid: query=(db.cdr.accountcode==form.vars.nombre[0]) grid=SQLFORM.smartgrid(db.cdr,constraints=dict(cdr=query),details=False,create=False,editable=False,deletable=False,csv=False) But i received the follow exception: type 'exceptions.AttributeError'

[web2py] Call web2py jsonrpc service using jquery

2014-09-03 Thread Gliese 581 g
I am trying to make ajax jsonrpc call to my web service using jQuery as given below: $(document).ready(function() { $(#btnNext,#btnPrevious).click(function() { var req = { jsonrpc: 2.0, method: nextprevexample, id: (new Date).getTime()

[web2py] Re: Call web2py jsonrpc service using jquery

2014-09-03 Thread Anthony
Have you confirmed that the function is actually getting called? Anything in request.body? Anthony On Thursday, September 4, 2014 12:42:06 AM UTC-4, Gliese 581 g wrote: I am trying to make ajax jsonrpc call to my web service using jQuery as given below: $(document).ready(function() {