[pitivi] effects: Stricter EffectFactory constructor parameters
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [pitivi] effects: Stricter EffectFactory constructor parameters
- Date: Tue, 30 Sep 2014 07:31:47 +0000 (UTC)
commit 293d2435f5a6c88dbae30989a5f6a39a29bff693
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Tue Sep 30 01:02:34 2014 +0200
    effects: Stricter EffectFactory constructor parameters
 pitivi/effects.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/pitivi/effects.py b/pitivi/effects.py
index 66665bb..d13d7c8 100644
--- a/pitivi/effects.py
+++ b/pitivi/effects.py
@@ -139,18 +139,18 @@ BLACKLISTED_PLUGINS = ["ldaspa"]
 ICON_WIDTH = 48 + 2 * 6  # 48 pixels, plus a margin on each side
 
 
-class EffectFactory():
+class EffectFactory(object):
     """
     Factories that applies an effect on a stream
     """
-    def __init__(self, effect_name, media_type, categories=[_("Uncategorized")],
-                human_name="", description="", icon=None):
+    def __init__(self, effect_name, media_type, categories,
+                human_name, description):
+        object.__init__(self)
         self.effect_name = effect_name
         self.media_type = media_type
         self.categories = categories
         self.description = description
         self.human_name = human_name
-        self._icon = icon
 
 
 class EffectsManager(object):
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]