Author: dmeyer
Date: Sat Feb  3 20:18:31 2007
New Revision: 9149

Modified:
   trunk/ui/src/audio/interface.py
   trunk/ui/src/image/interface.py
   trunk/ui/src/media.py
   trunk/ui/src/video/interface.py

Log:
rename display_type to mediatype in MediaPlugin

Modified: trunk/ui/src/audio/interface.py
==============================================================================
--- trunk/ui/src/audio/interface.py     (original)
+++ trunk/ui/src/audio/interface.py     Sat Feb  3 20:18:31 2007
@@ -59,7 +59,7 @@
     """
     Plugin to handle all kinds of audio items
     """
-    display_type = [ 'audio' ]
+    mediatype = [ 'audio' ]
 
     def plugin_activate(self, level):
         """

Modified: trunk/ui/src/image/interface.py
==============================================================================
--- trunk/ui/src/image/interface.py     (original)
+++ trunk/ui/src/image/interface.py     Sat Feb  3 20:18:31 2007
@@ -53,7 +53,7 @@
     """
     Plugin to handle all kinds of image items
     """
-    display_type = [ 'image' ]
+    mediatype = [ 'image' ]
 
     def plugin_activate(self, level):
         """

Modified: trunk/ui/src/media.py
==============================================================================
--- trunk/ui/src/media.py       (original)
+++ trunk/ui/src/media.py       Sat Feb  3 20:18:31 2007
@@ -36,10 +36,10 @@
 class MediaPlugin(plugin.Plugin):
     """
     Plugin class for medias handled in a directory/playlist.
-    self.display_type is a list of display types where this media
+    self.mediatype is a list of display types where this media
     should be displayed, [] for always.
     """
-    display_type = []
+    mediatype = []
 
     def __init__(self, name=''):
         plugin.Plugin.__init__(self, name)
@@ -85,15 +85,15 @@
 
 
 
-def get_plugins(display_type=None):
+def get_plugins(mediatype=None):
     """
-    Return all MediaPlugins for the given display_type. If display_type
+    Return all MediaPlugins for the given mediatype. If mediatype
     is None, return all MediaPlugins.
     """
-    if not display_type:
+    if not mediatype:
         return plugin.get('media')
     ret = []
     for p in plugin.get('media'):
-        if not p.display_type or display_type in p.display_type:
+        if not p.mediatype or mediatype in p.mediatype:
             ret.append(p)
     return ret

Modified: trunk/ui/src/video/interface.py
==============================================================================
--- trunk/ui/src/video/interface.py     (original)
+++ trunk/ui/src/video/interface.py     Sat Feb  3 20:18:31 2007
@@ -54,7 +54,7 @@
     """
     Plugin to handle all kinds of video items
     """
-    display_type = [ 'video' ]
+    mediatype = [ 'video' ]
 
     def plugin_activate(self, level):
         """

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to