Filling out additional example files for storing secrets.
authorBryan <btbonval@gmail.com>
Tue, 10 Dec 2013 02:43:20 +0000 (21:43 -0500)
committerBryan <btbonval@gmail.com>
Tue, 10 Dec 2013 02:43:20 +0000 (21:43 -0500)
fabfile.py
karmaworld/secret/client_secrets.json.example [new file with mode: 0644]
karmaworld/secret/drive.py [deleted file]
karmaworld/secret/drive.py.example [new file with mode: 0644]

index 41ac5a9750b45e550474cceb2d5e91cbb9fbecda..b54cd52e03d9c4a99b790a3acbfaf7b112af2493 100644 (file)
@@ -252,7 +252,7 @@ def check_secrets():
     """
 
     secrets_path = env.code_root + '/karmaworld/secret'
-    secrets_files = ('filepicker.py', 'static_s3.py', 'db_settings.py')
+    secrets_files = ('filepicker.py', 'static_s3.py', 'db_settings.py', 'drive.py', 'client_secrets.json')
 
     errors = []
     for sfile in secrets_files:
diff --git a/karmaworld/secret/client_secrets.json.example b/karmaworld/secret/client_secrets.json.example
new file mode 100644 (file)
index 0000000..08df85e
--- /dev/null
@@ -0,0 +1,9 @@
+{
+  "web": {
+    "client_id": "",
+    "client_secret": "",
+    "redirect_uris": ["https://"],
+    "auth_uri": "",
+    "token_uri": ""
+  }
+}
diff --git a/karmaworld/secret/drive.py b/karmaworld/secret/drive.py
deleted file mode 100644 (file)
index ee87d22..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/usr/bin/env python
-# -*- coding:utf8 -*-
-# Copyright (C) 2012  FinalsClub Foundation
-""" DO NOT check this file into source control """
-
-GOOGLE_USER = 'GDRIVE_ACCOUNT'
diff --git a/karmaworld/secret/drive.py.example b/karmaworld/secret/drive.py.example
new file mode 100644 (file)
index 0000000..ee87d22
--- /dev/null
@@ -0,0 +1,6 @@
+#!/usr/bin/env python
+# -*- coding:utf8 -*-
+# Copyright (C) 2012  FinalsClub Foundation
+""" DO NOT check this file into source control """
+
+GOOGLE_USER = 'GDRIVE_ACCOUNT'