Let me think about. I thought we were going to include a real version
control system eventually.
On Nov 20, 5:12 am, Baron <[EMAIL PROTECTED]> wrote:
> that would be great - I've been caught by that too
>
> On Nov 20, 4:24 pm, "mr.freeze" <[EMAIL PROTECTED]> wrote:
>
> > You can probably guess why I am suggesting this. Doh!
> > Just two new lines in applications/admin/controllers/default.py under
> > the edit def try/except block:
>
> > try:
> > olddata=data # GRAB OLD DATA
> > data=request.vars.data.replace('\r\n','\n').strip()+'\n'
> > open(apath(filename + '.bak'),'w').write(olddata) # SAVE TO BAK
> > FILE
> > open(apath(filename),'w').write(data)
> > response.flash=T("file saved on %(time)s",dict(time=time.ctime()))
> > except Exception: pass
>
> > You could even get fancy an add a Restore button.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---