Handler for collaborative_notes
authorRaniere Silva <raniere@rgaiacs.com>
Sun, 18 Jun 2017 07:57:19 +0000 (08:57 +0100)
committerRaniere Silva <raniere@rgaiacs.com>
Sun, 18 Jun 2017 07:57:19 +0000 (08:57 +0100)
See https://github.com/swcarpentry/workshop-template/issues/410

bin/workshop_check.py

index d3051bf1a9dca94682b810990e6927b53ba239af..39ee0bfe2bb87b8c2d054b6ba30845e45e787dff 100755 (executable)
@@ -227,12 +227,12 @@ def check_eventbrite(eventbrite):
 
 
 @look_for_fixme
-def check_etherpad(etherpad):
+def check_collaborative_notes(collaborative_notes):
     """
-    'etherpad' must be a valid URL.
+    'collaborative_notes' must be a valid URL.
     """
 
-    return bool(re.match(URL_PATTERN, etherpad))
+    return bool(re.match(URL_PATTERN, collaborative_notes))
 
 
 @look_for_fixme
@@ -292,7 +292,7 @@ HANDLERS = {
 
     'eventbrite': (False, check_eventbrite, 'Eventbrite key appears invalid'),
 
-    'etherpad':   (False, check_etherpad, 'Etherpad URL appears invalid'),
+    'collaborative_notes':   (False, check_collaborative_notes, 'Collaborative Notes URL appears invalid'),
 
     'venue':      (False, check_pass, 'venue name not specified'),