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

2014-07-11 Thread Omri Levy
7;] > print mydict.a --> no exception > > > > > On Thursday, July 10, 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

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

2014-07-09 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 automatic

[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 > > bes

[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 ne

[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) - http://github.com/web2py/we

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

2014-06-21 Thread Omri Levy
thub.com/web2py/web2py/archive/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 >> ref

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

2014-06-19 Thread Omri Levy
wrote: > > 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: >> >> >> sequence item 0: expected string, long found >> Versionweb2py™Version 2.9.5-stable+timestamp.

[web2py] Ticket in Appadmin when viewing a table

2014-06-19 Thread Omri Levy
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): File "G:\Dropbox\Coding Project

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

2014-06-19 Thread Omri Levy
ead, use the $.web2py.component() Javascript function. Something like: > > > > > > Anthony > > On Friday, June 13, 2014 7:47:34 PM UTC-4, Omri Levy wrote: >> >> Hi , >> >> So I have a ticket system, and I want to allow user to edit the ticket >> w

[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] 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 l

[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) -