-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump to 1.7.1 and add stub for --collab (#226)
* Bump to 1.7.1 and add stub for --collab * Lowercase --collab help text
- Loading branch information
Showing
3 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
__version__ = 'v1.7.0' | ||
__version__ = 'v1.7.1' | ||
|
||
FILE_NAME = 'ok' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
from client.protocols.common import models | ||
from client.utils import format | ||
|
||
import logging | ||
|
||
log = logging.getLogger(__name__) | ||
|
||
class CollaborateProtocol(models.Protocol): | ||
|
||
# Timeouts are specified in seconds. | ||
SHORT_TIMEOUT = 30 | ||
LONG_TIMEOUT = 30 | ||
API_ENDPOINT = '{prefix}://{server}' | ||
FIREBASE_CONFIG = { | ||
'apiKey': "AIzaSyAFJn-q5SbxJnJcPVFhjxd25DA5Jusmd74", | ||
'authDomain': "ok-server.firebaseapp.com", | ||
'databaseURL': "https://ok-server.firebaseio.com", | ||
'storageBucket': "ok-server.appspot.com" | ||
} | ||
|
||
FILE_TIME_FORMAT = '%m_%d_%H_%M_%S' | ||
TIME_FORMAT = '%m/%d %H:%M:%S' | ||
BACKUP_DIRECTORY = 'ok-collab' | ||
COLLAB_SERVER = 'collab.cs61a.org' | ||
|
||
def run(self, messages): | ||
if not self.args.collab: | ||
return | ||
|
||
with format.block("-"): | ||
print("Collaboration will be available soon.") | ||
|
||
protocol = CollaborateProtocol |