* Wrote really basic password reset utility for the admin.
* Changed python2.4 bang line to python2.5 in tools/ directory. * Added some warnings about stopping the server before running various tools.
This commit is contained in:
parent
7973d87a7d
commit
13318ee807
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/python2.4
|
||||
#!/usr/bin/python2.5
|
||||
|
||||
import os
|
||||
import os.path
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/python2.4
|
||||
#!/usr/bin/python2.5
|
||||
|
||||
import os
|
||||
import os.path
|
||||
|
@ -82,6 +82,8 @@ class Initializer( object ):
|
|||
|
||||
|
||||
def main():
|
||||
print "IMPORTANT: Stop the Luminotes server before running this program."
|
||||
|
||||
if os.path.exists( "data.db" ):
|
||||
os.remove( "data.db" )
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/python2.4
|
||||
#!/usr/bin/python2.5
|
||||
|
||||
import os
|
||||
import os.path
|
||||
|
@ -24,6 +24,8 @@ class Reloader( object ):
|
|||
|
||||
|
||||
def main():
|
||||
print "IMPORTANT: Stop the Luminotes server before running this program."
|
||||
|
||||
scheduler = Scheduler()
|
||||
database = Database( scheduler, "data.db" )
|
||||
initializer = Reloader( scheduler, database )
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/python2.4
|
||||
#!/usr/bin/python2.5
|
||||
|
||||
import os
|
||||
import os.path
|
||||
|
@ -91,6 +91,8 @@ class Initializer( object ):
|
|||
|
||||
|
||||
def main( args ):
|
||||
print "IMPORTANT: Stop the Luminotes server before running this program."
|
||||
|
||||
scheduler = Scheduler()
|
||||
database = Database( scheduler, "data.db" )
|
||||
initializer = Initializer( scheduler, database, args and args[ 0 ] or None )
|
||||
|
|
Reference in New Issue