[web2py] Re: ValueError: Field is already bound to a table <-- need a fix for this

2017-07-16 Thread Anthony
On Saturday, July 15, 2017 at 12:47:04 PM UTC-4, Joe Barnhart wrote: > Hmm... That's gonna be a problem. > > > This is occurring in an SQLFORM... which is in a modal pop-up box... over a > tabbed structure with about 5 more SQLFORMS...  plus 5 or 6 jQuery > DataTables... all powered by the

[web2py] Re: Ajax upload, working in localhost (rocket), but not working in prodution (nginx)

2017-07-16 Thread Leonel Câmara
You are using the generic json view. By default generic views are only allowed on localhost. You need to allow it for your function by adding something like this to your models. response.generic_patterns = ['default/echo_upload.json'] -- Resources: - http://web2py.com -

[web2py] Re: Ajax upload, working in localhost (rocket), but not working in prodution (nginx)

2017-07-16 Thread Anthony
On Sunday, July 16, 2017 at 7:20:33 AM UTC-4, Leonel Câmara wrote: > You are using the generic json view. By default generic views are only > allowed on localhost. You need to allow it for your function by adding > something like this to your models. > > > response.generic_patterns =

[web2py] Re: ValueError: Field is already bound to a table <-- need a fix for this

2017-07-16 Thread Leonel Câmara
Joe can you show us some code? I've already fixed two bugs related to this, one on the DAL and another in web2py, I want to make sure yours isn't a new one. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: ValueError: Field is already bound to a table <-- need a fix for this

2017-07-16 Thread Leonel Câmara
I believe this DAL change is actually showing bugs in web2py we need to change SQLFORM.factory to clone the fields. Then we need to fix common_fields in the DAL so it makes clones of the fields. For now if you need a quickfix for your application you can clone the fields you send to the

[web2py] Re: ValueError: Field is already bound to a table <-- need a fix for this

2017-07-16 Thread Anthony
You mentioned the field was being re-bound to the same table, which does not appear to be the case below, as SQLFORM. factory creates its own dummy table. Was this causing another problem in some other context? Anthony On Sunday, July 16, 2017 at 4:34:25 PM UTC-4, Joe Barnhart wrote: > Yes...

[web2py] Re: ValueError: Field is already bound to a table <-- need a fix for this

2017-07-16 Thread Leonel Câmara
Joe the fix on the DAL wasn't for your problem, Your problem was fixed in web2py here: https://github.com/web2py/web2py/pull/1686/commits/ce0b2557470ecb7c92719645293cb00785fe48bc -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source

[web2py] Re: ValueError: Field is already bound to a table <-- need a fix for this

2017-07-16 Thread Joe Barnhart
Yes... Massimo helped me come up with a workaround for my case. I am using SQLFORM.factory to create a form to edit two tables joined together. One table is used to index entries in a bunch of other tables by a 6-tuple. Since these are all swimming related, the tuple is (sex, upper_age,

[web2py] Re: ValueError: Field is already bound to a table <-- need a fix for this

2017-07-16 Thread Leonel Câmara
Oh, good to know, it was the bug i've fixed in SQLFORM.factory then. It will be fixed in the next version and you will be able to rollback your workaround. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: ValueError: Field is already bound to a table <-- need a fix for this

2017-07-16 Thread Joe Barnhart
Found the issue and a workaround see below. -- 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

[web2py] Re: ValueError: Field is already bound to a table <-- need a fix for this

2017-07-16 Thread Joe Barnhart
I think I tried your fix but it didn't work. None of my fields were "common". Massimo had pointed out the fix on Github. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list

Re: [web2py] Re: Ajax upload, working in localhost (rocket), but not working in prodution (nginx)

2017-07-16 Thread Junior Phanter
I'm returning for feedback. I changed the controller, so I will not be using generic pattern, correct? Another problem solved was that the pillow, strangely, was not processing the sent image. I uninstalled and reinstalled again so far everything is fine. Here's the change (red): Thanks Leonel

[web2py] Re: ValueError: Field is already bound to a table <-- need a fix for this

2017-07-16 Thread Joe Barnhart
You are correct. By using the SQLFORM.factory function the table was, indeed, different. I blame the lapse on the inability of neurons to function in the 106 degree heat we're having in the Sacramento area today. -- Joe On Sunday, July 16, 2017 at 2:53:10 PM UTC-7, Anthony wrote: > > You

[web2py] Re: ValueError: Field is already bound to a table <-- need a fix for this

2017-07-16 Thread Joe Barnhart
Yes that fix looks exactly on point. -- Joe On Sunday, July 16, 2017 at 3:28:22 PM UTC-7, Leonel Câmara wrote: > > Joe the fix on the DAL wasn't for your problem, Your problem was fixed in > web2py here: > >

[web2py] Re: Web2py like clone in Java?

2017-07-16 Thread Rimantas Nedzinskas
Hi, Take a look at cuba-platform (www.cuba-platform.com) You'll find all the features you have listed and much more. On Friday, October 15, 2010 at 12:38:19 AM UTC+1, DJ wrote: > > Hello web2py people, > > I was in a discussion recently telling my friend how great Web2Py was > for programmer