.bak files are used for reverting to the previous state of the file (accomplished via the 'Revert' button at bottom of edit form); they are created and checked for in the 'edit' function of admin/ controllers/default.py
your guess about the spaces is probably correct (no tabs, only spaces are used in the edit form); you may wish to set your usual editor to replace tabs with spaces (4) for Python programming On Apr 14, 8:03 pm, 黄祥 <steve.van.chris...@gmail.com> wrote: > hi, > > why when i edited my code web2py framework in broswer it will produce > *.bak file? what is it use for? is it for undo function? > and 1 more things when i use tab (i mean in editor) it take more > little file space rather than when i save it on browser (using 4 blank > space for replace the tab)? > did anyone know about it? > > thanks and best regards, > > steve van christie