patch-ohloh_widgets__macro.py 1.0 KB

1234567891011121314151617181920
  1. --- ohloh_widgets/macro.py.orig 2010-07-04 06:54:44 UTC
  2. +++ ohloh_widgets/macro.py
  3. @@ -46,7 +46,7 @@ class OhlohWidgetMacro(MacroWithValidati
  4. ![[OhlohWidget(project_id, widget_name)]]
  5. The macro gets two parameters which you can get from Ohloh's widget page
  6. - for your project (!http://www.ohloh.net/p/<project name>/widgets) when you
  7. + for your project (!https://www.ohloh.net/p/<project name>/widgets) when you
  8. look at the embeddable HTML snippet:
  9. * project_id -- a 6 digit number which identifies your project
  10. @@ -70,7 +70,7 @@ class OhlohWidgetMacro(MacroWithValidati
  11. def url(self, parameters):
  12. query_string = ''
  13. - url_template = 'http://www.ohloh.net/p/%(project_id)d/widgets/%(widget_name)s.js'
  14. + url_template = 'https://www.ohloh.net/p/%(project_id)d/widgets/%(widget_name)s.js'
  15. widget_name = parameters.widget_name
  16. if '?' in widget_name:
  17. parameters['widget_name'], query_parameters = widget_name.split('?', 1)