Skip to content
Browse files

donn't show categories if none is selected

svn path=/plumi.content/trunk/; revision=231439
  • Loading branch information...
1 parent aac91bb commit d5596b17f554f69ce4e9c50dd8a34336d3e548bb clopy committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 plumi/content/browser/brain_rendering.py
View
6 plumi/content/browser/brain_rendering.py
@@ -42,13 +42,13 @@ def render_feature_video(self):
@property
def categories(self):
- if self.video['getCategories'] == 'none':
- return None
+ if self.video['getCategories'] == 'none' or self.video['getCategories'] == ():
+ return tuple()
return VideoView(self.__parent__.context,self.__parent__.request).get_categories_dict(self.video['getCategories'])
@property
def country(self):
- if self.video['getCountries'] == '':
+ if self.video['getCountries'] == '' or self.video['getCountries'] == 'none':
return None
return VideoView(self.__parent__.context,self.__parent__.request).get_country_info(self.video['getCountries'])

0 comments on commit d5596b1

Please sign in to comment.
Something went wrong with that request. Please try again.