Re: [web2py] cluster: distributed locks

2012-01-27 Thread Sebastian E. Ovide
yes... very similar... I guess that just deleting the JS part and creating a new DB object within the plugin (so that it has it own ttransaction) will make the work... thanks On Thu, Jan 26, 2012 at 9:20 AM, Bruno Rocha rochacbr...@gmail.com wrote: I dont know if it is related, but there is a

Re: [web2py] cluster: distributed locks

2012-01-26 Thread Sebastian E. Ovide
ok, I guess that the answer is no... (or I didn't formulate the question correctly) On Thu, Jan 19, 2012 at 11:51 PM, sebastian sebastianov...@gmail.comwrote: Hi All, just thinking on how to implement a distributed locking system in web2py using a DB: one row per each lock, lock_name is

Re: [web2py] cluster: distributed locks

2012-01-26 Thread Bruno Rocha
I dont know if it is related, but there is a Locking plugin http://web2py.com/plugins/default/locking On Thu, Jan 26, 2012 at 7:05 AM, Sebastian E. Ovide sebastianov...@gmail.com wrote: ok, I guess that the answer is no... (or I didn't formulate the question correctly) On Thu, Jan 19,

[web2py] cluster: distributed locks

2012-01-19 Thread sebastian
Hi All, just thinking on how to implement a distributed locking system in web2py using a DB: one row per each lock, lock_name is unique, if the row doesn't exist, then it is locked, if the row exist already, then it cannot be lock as it is already locked ! I'd like to create a module like