Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Nov 21st, 2012  |  syntax: Diff  |  size: 0.86 KB  |  views: 43  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. diff -aur kupfer-v208/kupfer/core/settings.py kupfer-v208.modified/kupfer/core/settings.py
  2. --- kupfer-v208/kupfer/core/settings.py 2012-06-01 10:51:14.000000000 -0700
  3. +++ kupfer-v208.modified/kupfer/core/settings.py        2012-11-21 14:48:11.876592441 -0800
  4. @@ -393,6 +393,8 @@
  5.                 """
  6.                 Get a list of (id_, name) tuples for the given @category_key
  7.                 """
  8. +               if not category_key in self._alternative_validators:
  9. +                       return
  10.                 validator = self._alternative_validators[category_key]
  11.                 for (id_, alternative) in self._alternatives[category_key].iteritems():
  12.                         name = alternative["name"]
  13. @@ -400,7 +402,8 @@
  14.                                 yield (id_, name)
  15.  
  16.         def get_all_alternatives(self, category_key):
  17. -               return self._alternatives[category_key]
  18. +               if category_key in self._alternatives:
  19. +                       return self._alternatives[category_key]
  20.  
  21.         def get_preferred_alternative(self, category_key):
  22.                 """
clone this paste RAW Paste Data