TTW Edit Lost when there is a syntax error
This happens to me and my co-developer a lot. We make a bunch of changes to a file using Zope's TTW editor and go to save it, but there are syntax errors, and we lose the edits. Is there a patch to prevent this from happening? (And, if not, why not? Is there some hidden gotcha that prevents it?)
On Wed, 2003-06-04 at 13:31, Dennis Allison wrote:
This happens to me and my co-developer a lot. We make a bunch of changes to a file using Zope's TTW editor and go to save it, but there are syntax errors, and we lose the edits. Is there a patch to prevent this from happening? (And, if not, why not? Is there some hidden gotcha that prevents it?)
Back button - some browsers will keep it in your cache. Sounds like you are editing DTML, this doesnt happen in ZPT or Python and I really thing DTML should be treated the same, however... There are other ways to edit: External Editor, WebDAV, FTP or maybe even something like FileSystem Directory View. Check out External Editor for a start :) -- Andy McKay
I use vi with the external editor, but it has the same problem--if you write and close and there is a syntax error, the changes are lost. If I keep the edit open, there is a copy and you can recover--but there's no error information returned. And yes, we are using DTML. It with Python meets our needs very well. And now we have legacy code, etc. And the back button does not do the job--[back] takes you to the unedited version. The edits are lost :-( On Wed, 4 Jun 2003, Andy McKay wrote:
On Wed, 2003-06-04 at 13:31, Dennis Allison wrote:
This happens to me and my co-developer a lot. We make a bunch of changes to a file using Zope's TTW editor and go to save it, but there are syntax errors, and we lose the edits. Is there a patch to prevent this from happening? (And, if not, why not? Is there some hidden gotcha that prevents it?)
Back button - some browsers will keep it in your cache. Sounds like you are editing DTML, this doesnt happen in ZPT or Python and I really thing DTML should be treated the same, however...
There are other ways to edit: External Editor, WebDAV, FTP or maybe even something like FileSystem Directory View. Check out External Editor for a start :) -- Andy McKay
Dennis Allison wrote:
I use vi with the external editor, but it has the same problem--if you write and close and there is a syntax error, the changes are lost. If I keep the edit open, there is a copy and you can recover--but there's no error information returned.
And yes, we are using DTML. It with Python meets our needs very well. And now we have legacy code, etc.
Well, if you want to stick with the nastiness of DTML (of which your current problem is only a tiny part) then you'll have to put up with it :-( Yo ucan start writing new stuff in ZPT and leave your old stuff in DTML you know... Chris
You may have tried this already. I generally configure my browsers to check for newer version of cached pages "every time you start the browser", i.e. be careful not to set it to "automatic" or "every visit to the page". HTH, Stefan --On Mittwoch, 04. Juni 2003 13:31 -0700 Dennis Allison <allison@sumeru.stanford.EDU> wrote:
This happens to me and my co-developer a lot. We make a bunch of changes to a file using Zope's TTW editor and go to save it, but there are syntax errors, and we lose the edits. Is there a patch to prevent this from happening? (And, if not, why not? Is there some hidden gotcha that prevents it?)
-- The time has come to start talking about whether the emperor is as well dressed as we are supposed to think he is. /Pete McBreen/
participants (4)
-
Andy McKay -
Chris Withers -
Dennis Allison -
Stefan H. Holek