comparison roundup/admin.py @ 2736:402d6d556558

postgres backend open doesn't hide corruption in schema [SF#956375] *dbm-style backends nuke() method now clear id counters
author Richard Jones <richard@users.sourceforge.net>
date Fri, 08 Oct 2004 05:37:44 +0000
parents d68a444fcce3
children f6072f395f87
comparison
equal deleted inserted replaced
2735:85b9dcf908a2 2736:402d6d556558
14 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 14 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
15 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" 15 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
16 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, 16 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
17 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 17 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
18 # 18 #
19 # $Id: admin.py,v 1.78 2004-07-28 05:00:30 richard Exp $ 19 # $Id: admin.py,v 1.79 2004-10-08 05:37:44 richard Exp $
20 20
21 '''Administration commands for maintaining Roundup trackers. 21 '''Administration commands for maintaining Roundup trackers.
22 ''' 22 '''
23 __docformat__ = 'restructuredtext' 23 __docformat__ = 'restructuredtext'
24 24
451 If you re-initialise it, you will lose all the data! 451 If you re-initialise it, you will lose all the data!
452 Erase it? Y/N: """)) 452 Erase it? Y/N: """))
453 if ok.strip().lower() != 'y': 453 if ok.strip().lower() != 'y':
454 return 0 454 return 0
455 455
456 backend = tracker.get_backend_name()
457
456 # nuke it 458 # nuke it
457 tracker.nuke() 459 tracker.nuke()
460
461 # re-write the backend select file
462 init.write_select_db(tracker_home, backend)
458 463
459 # GO 464 # GO
460 tracker.init(password.Password(adminpw)) 465 tracker.init(password.Password(adminpw))
461 466
462 return 0 467 return 0

Roundup Issue Tracker: http://roundup-tracker.org/