[web2py] SQLCustomType str -> list:int not working, 1.99.7

2012-05-09 Thread DanielB
Hi I just updated my web2py from 1.99.4 to 1.99.7 and a select to my db stopped working. The field is a SQLCustomType that has native type "string" and type "list:integer", this worked fine before but now it doesn't decode the value. BaseAdapter parse_value in dal.py if isinstance(value, uni

[web2py] form.insert slow when inserting many elements

2012-05-30 Thread DanielB
Hi, I have a custom form that has a dynamic size with a for-loop that inserts checkboxes into the form. This works fine in small numbers, but when I increase the number of checkboxes inserted I noticed the page takes longer and longer to load. (obviously it's going to take longer but it's not

[web2py] Re: form.insert slow when inserting many elements

2012-05-31 Thread DanielB
e list code? > > Anthony > > On Wednesday, May 30, 2012 8:12:39 AM UTC-4, DanielB wrote: >> >> Hi, >> >> I have a custom form that has a dynamic size with a for-loop that inserts >> checkboxes into the form. >> This works fine in small numbers, but when

[web2py] Re: form.insert slow when inserting many elements

2012-05-31 Thread DanielB
Ok cool, I will try the SQLFORM.factory thing for this form. But for other forms where there actually is a real table in use I don't want to modify the model like that when I just need to add some extra checkboxes. I don't usually care for the wrapping of table, tr and tds, so is it correct th

[web2py] Re: Log tickets

2012-01-09 Thread DanielB
I agree. In the future I can see myself wanting to using something like this. Do want /Daniel

[web2py] Legacy database adaptation in web2py, best way?

2011-06-23 Thread DanielB
So we have a legacy database that has a suboptimal structure, but we cannot change it right now. What we want is to create a business layer in-between web2py and this database so that web2py thinks it is using a much better database structure in order for the development in web2py to be what we wan

[web2py] Problem discovered when unit testing IS_IN_DB

2011-08-18 Thread DanielB
So I have unit tests that tests validation in a form that has a field with requires=IS_NULL_OR(IS_IN_DB( set )) When this validator is run in normal environment (without unit- testing) this works flawlessly but in my unit test it kept failing... then I discovered that the code in IS_IN_DB's __call_