[web2py] Re: How to create object of 'Storage' In class I created?

2014-07-11 Thread Omri Levy
, 2014 4:23:41 AM UTC+2, Omri Levy wrote: Hi , I have created a class (that i put in models folder), and all it methods returns complicated dictionaries. When I try to access these variables like Storage (foo.bar) I get the following exception: 'dict' object has no attribute I thought

[web2py] How to create object of 'Storage' In class I created?

2014-07-10 Thread Omri Levy
Hi , I have created a class (that i put in models folder), and all it methods returns complicated dictionaries. When I try to access these variables like Storage (foo.bar) I get the following exception: 'dict' object has no attribute I thought that all dictionaries are being converted

[web2py] Debug Web2py with Wing IDE

2014-06-26 Thread Omri Levy
Hi , I asked Wing support the following question: I am using Web2py framework. I saw a video that says the Wing can debug a running python code no matter if it launched it itself. When reading this: http://wingware.com/doc/howtos/web2py I see that I can only debug Web2py in a way that I need

[web2py] Re: A way to trigger method on update?

2014-06-26 Thread Omri Levy
Thank you! :) On Thursday, June 26, 2014 12:25:00 AM UTC+3, 黄祥 wrote: afaik, compute didn't work on update. for onupdate, is execute on form level not on dal, please take a look at book chapter about that. ref: http://web2py.com/books/default/chapter/29/07/forms-and-validators best

[web2py] Re: A way to trigger method on update?

2014-06-25 Thread Omri Levy
Yes. I have read ALL the DAL section from the manual and I think you are right. I just wonder if I could use the 'compute' or 'filter in' function as well. I never heard of form 'on update'. Is it web2py feature? Thanks! :) On Wednesday, June 25, 2014 9:58:41 AM UTC+3, 黄祥 wrote: i think you

[web2py] A way to trigger method on update?

2014-06-24 Thread Omri Levy
Hi, Is there a way to call a method when certain field is updated? The intention is *not* to change the value of the field/represent it otherwise, but it has general purpose. Thanks! Omri. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: Ticket in Appadmin when viewing a table

2014-06-21 Thread Omri Levy
/master.zip Unzip it and copy web2py over the old one. On Thursday, 19 June 2014 17:28:41 UTC-5, Omri Levy wrote: Hi Massimo, Thanks , I experience this bug a lot, I think it's when I update list of references to the same table in the db. Can you please explain how to update? (do I need

[web2py] Re: Trying to use the LOAD helper, if a button is clicked

2014-06-19 Thread Omri Levy
the $.web2py.component() Javascript function. Something like: input type=button value=Edit onclick=$.web2py.component('{{=URL(' default', 'edit_page.load')}}', 'edit-form'); div id=edit-form/div Anthony On Friday, June 13, 2014 7:47:34 PM UTC-4, Omri Levy wrote: Hi , So I have a ticket system, and I

[web2py] Ticket in Appadmin when viewing a table

2014-06-19 Thread Omri Levy
type 'exceptions.TypeError' sequence item 0: expected string, long found Versionweb2py™Version 2.9.5-stable+timestamp.2014.03.16.02.35.39PythonPython 2.7.6: C:\Python27\python.exe (prefix: C:\Python27)Traceback 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. Traceback (most recent call last):

[web2py] Re: Ticket in Appadmin when viewing a table

2014-06-19 Thread Omri Levy
: think it is a bug. pushing a new version that should fix that. Check trunk in 5 minutes. On Monday, 16 June 2014 09:17:01 UTC-5, Omri Levy wrote: type 'exceptions.TypeError' sequence item 0: expected string, long found Versionweb2py™Version 2.9.5-stable+timestamp.2014.03.16.02.35.39PythonPython

[web2py] Trying to use the LOAD helper, if a button is clicked

2014-06-14 Thread Omri Levy
Hi , So I have a ticket system, and I want to allow user to edit the ticket without leaving the page. I don't want to LOAD the edit_page and hide it, but only load it once user is clicking on the ticket body. Another thing is, when user edits the ticket, he should again see changes on the same

[web2py] Adding information to certain input before added to db?

2014-06-06 Thread Omri Levy
When using SQLFORM, is it possible to check for certain input and change it before it is being stored in db? -- 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)

[web2py] Can I change a value from a form before it is processed?

2014-06-06 Thread Omri Levy
Hi , So the situation is this: I have table for posts - Only the user posted a message may see it and then table for shared_posts - The user created a post may enter user_ids here, and those users may also see the post I don't want to add record for each share, so shared posts is defined like