def run(self, name): if not name: ValueError("No name provided. Could not create collection.") name = " ".join(name) print "Creating collection %s... " % name collection, plaintext_client_secret = Collection.register(self._db, name) print collection print ("RECORD THE FOLLOWING AUTHENTICATION DETAILS. " "The client secret cannot be recovered.") print "-" * 40 print "CLIENT ID: %s" % collection.client_id print "CLIENT SECRET: %s" % plaintext_client_secret