git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cc6bcae
)
added registry method sync_db
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Fri, 20 Jul 2012 14:58:06 +0000
(10:58 -0400)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Fri, 20 Jul 2012 14:58:06 +0000
(10:58 -0400)
sfa/client/sfaadmin.py
patch
|
blob
|
history
diff --git
a/sfa/client/sfaadmin.py
b/sfa/client/sfaadmin.py
index
c95f550
..
7640e93
100755
(executable)
--- a/
sfa/client/sfaadmin.py
+++ b/
sfa/client/sfaadmin.py
@@
-177,6
+177,12
@@
class RegistryCommands(Commands):
from sfa.importer import Importer
importer = Importer()
importer.run()
from sfa.importer import Importer
importer = Importer()
importer.run()
+
+ def sync_db(self):
+ """Initiailize or upgrade the db"""
+ from sfa.storage.dbschema import DBSchema
+ dbschema=DBSchema()
+ dbschema.init_or_upgrade
@args('-a', '--all', dest='all', metavar='<all>', action='store_true', default=False,
help='Remove all registry records and all files in %s area' % help_basedir)
@args('-a', '--all', dest='all', metavar='<all>', action='store_true', default=False,
help='Remove all registry records and all files in %s area' % help_basedir)