Merge branch 'master' of ssh://git.onelab.eu/git/sfa
authorSandrine Avakian <sandrine.avakian@inria.fr>
Tue, 15 Oct 2013 10:05:10 +0000 (12:05 +0200)
committerSandrine Avakian <sandrine.avakian@inria.fr>
Tue, 15 Oct 2013 10:05:10 +0000 (12:05 +0200)
sfa/client/sfaadmin.py
sfa/importer/plimporter.py

index 9dd40f8..94ba881 100755 (executable)
@@ -261,7 +261,7 @@ Users having a GID/PubKey correpondence NOT OK: %s and are: \n%s\n\n"%(len(NOKEY
         """Initialize or upgrade the db"""
         from sfa.storage.dbschema import DBSchema
         dbschema=DBSchema()
-        dbschema.init_or_upgrade
+        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)
index 26d1ccd..41325a8 100644 (file)
@@ -376,7 +376,7 @@ class PlImporter:
             # being improperly handled, and where the whole loop on persons
             # could be performed twice with the same person...
             # so hopefully we do not need to eliminate duplicates explicitly here anymore
-            site_record.reg_pis = site_pis
+            site_record.reg_pis = list(set(site_pis))
             dbsession.commit()
 
             # import slices