[Moin-devel] CVS: MoinMoin Page.py,1.101,1.102
J?rgen Hermann
jhermann at users.sourceforge.net
Fri Feb 8 13:03:18 EST 2002
- Previous message (by thread): [Moin-devel] CVS: MoinMoin config.py,1.53,1.54 eventlog.py,1.5,1.6
- Next message (by thread): [Moin-devel] CVS: dist/wiki/data/text EventStats,NONE,1.1 EventStats_2fHitCounts,NONE,1.1 EventStats_2fUserAgents,NONE,1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/moin/MoinMoin
In directory usw-pr-cvs1:/tmp/cvs-serv21173
Modified Files:
Page.py
Log Message:
Create backup dir on page save
Index: Page.py
===================================================================
RCS file: /cvsroot/moin/MoinMoin/Page.py,v
retrieving revision 1.101
retrieving revision 1.102
diff -C2 -r1.101 -r1.102
*** Page.py 5 Feb 2002 00:29:52 -0000 1.101
--- Page.py 8 Feb 2002 21:02:19 -0000 1.102
***************
*** 743,747 ****
page_filename = self._text_filename()
! if os.path.isdir(config.backup_dir) and os.path.isfile(page_filename) \
and not is_deprecated:
os.rename(page_filename, os.path.join(config.backup_dir,
--- 743,750 ----
page_filename = self._text_filename()
! if not os.path.isdir(config.backup_dir):
! os.mkdir(config.backup_dir, 0777 & config.umask)
!
! if os.path.isfile(page_filename) \
and not is_deprecated:
os.rename(page_filename, os.path.join(config.backup_dir,
- Previous message (by thread): [Moin-devel] CVS: MoinMoin config.py,1.53,1.54 eventlog.py,1.5,1.6
- Next message (by thread): [Moin-devel] CVS: dist/wiki/data/text EventStats,NONE,1.1 EventStats_2fHitCounts,NONE,1.1 EventStats_2fUserAgents,NONE,1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Moin-devel
mailing list