While we are at it, there is a new thread that touches on this - teamwork. Could we perhaps use this keepalive feature to notify the user if the file has been changed by someone else while he is editing it (or warn it that it is being edited by others when opening it).
On Mar 2, 2:19 am, mdipierro <[email protected]> wrote: > This is fixed. The current version in trunk is almost identical to > your with one difference: > it uses keepalive instead of asking the user to reload. > I prefer keepalive because it can does not require changing > web2py_ajax.html. > The version in trunk also handles conflics, restore, retrieve and > connection errors. > > Thank you for all your work on this. Your code was crucial to get this > done. > > Massimo > > On Mar 1, 4:53 pm, Boris Manojlovic <[email protected]> > wrote: > > > Hi Massimo, > > > please pull my code from branch ajaxeditor. > > That code should cover much more cases, and i still work on it. Please look > > into it as it is much cleaner and better code. > > > You have typo in current trunk (launchpad) while i tried your code > > > +++ /bazar/xx/gluon/sql.py 2009-03-01 23:41:16.000000000 +0100 > > --- /bazar/devel/gluon/sql.py 2009-03-01 19:09:22.000000000 +0100 > > @@ -560,7 +560,7 @@ > > > def __init__(self, uri='sqlite://dummy.db', pool_size=0, pools=0): > > self._uri = str(uri) > > + self._pool_size = pool_size or pools # for backward compatibility > > - self._pool_size = pools_size or pools # for backward compatibility > > self['_lastsql'] = '' > > self.tables = SQLCallableList() > > pid = thread.get_ident() > > > On Sun, Mar 1, 2009 at 8:37 PM, mdipierro <[email protected]> wrote: > > > > 90% of the times takes longer to handle a ticket than patch the code. > > > > On Mar 1, 1:33 pm, Greg Fuller <[email protected]> wrote: > > > > I've only been hanging around here a short time, but this is not the > > > > first time I've seen Massimo make a patch while the thread is still > > > > fresh. Just skip the ticket why don't you. Impressive. > > > > > On Mar 1, 11:39 am, mdipierro <[email protected]> wrote: > > > > > > Hi Boris, > > > > > > Your patch is in trunk with some minor modifications. > > > > > 1) if you are on the die page there is an ajax keeplive so that > > > > > session does not expire. > > > > > 2) When you press save there is a box that changes color and tells you > > > > > if the code was saved > > > > > 3) If the server does not respond (no save or no keepalive) the box > > > > > turns red. > > > > > > Massimo > > > -- > > "Only two things are infinite, the universe and human stupidity, and I'm not > > sure about the former."-Albert Einstein --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

