summaryrefslogtreecommitdiff
path: root/www/trac-OhlohWidgetsMacro/files/patch-ohloh_widgets__macro.py
blob: bf0d163dce747bdaa7aad23e1306853437b3ffbe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- ./ohloh_widgets/macro.py.orig	2013-06-17 12:52:47.000000000 -0700
+++ ./ohloh_widgets/macro.py	2013-06-17 12:53:17.000000000 -0700
@@ -46,7 +46,7 @@
        ![[OhlohWidget(project_id, widget_name)]]
     
     The macro gets two parameters which you can get from Ohloh's widget page
-    for your project (!http://www.ohloh.net/p/<project name>/widgets) when you
+    for your project (!https://www.ohloh.net/p/<project name>/widgets) when you
     look at the embeddable HTML snippet:
     
      * project_id -- a 6 digit number which identifies your project
@@ -70,7 +70,7 @@
     
     def url(self, parameters):
         query_string = ''
-        url_template = 'http://www.ohloh.net/p/%(project_id)d/widgets/%(widget_name)s.js'
+        url_template = 'https://www.ohloh.net/p/%(project_id)d/widgets/%(widget_name)s.js'
         widget_name = parameters.widget_name
         if '?' in widget_name:
             parameters['widget_name'], query_parameters = widget_name.split('?', 1)