Author: jerome
Date: 2009-03-19 17:32:59 +0100 (Thu, 19 Mar 2009)
New Revision: 4156

Modified:
   
software_suite_v2/libraries/python/webRadioDiscover/trunk/webRadioDiscover/webRadioContainer.py
Log:
* Fixed a bug with user registered functions.

Modified: 
software_suite_v2/libraries/python/webRadioDiscover/trunk/webRadioDiscover/webRadioContainer.py
===================================================================
--- 
software_suite_v2/libraries/python/webRadioDiscover/trunk/webRadioDiscover/webRadioContainer.py
     2009-03-19 16:21:51 UTC (rev 4155)
+++ 
software_suite_v2/libraries/python/webRadioDiscover/trunk/webRadioDiscover/webRadioContainer.py
     2009-03-19 16:32:59 UTC (rev 4156)
@@ -49,6 +49,14 @@
         '''
         Object initialization.
         '''
+        pass
+    
+    
+    
+    def initAll(self):
+        '''
+        Init object.
+        '''
         #Getting pickle struct from ftp. 
         if(self.__URLCheckConnection()):
             separator = "/"
@@ -85,7 +93,6 @@
             self.__triggerStructLoaded()
         else:
             self.__triggerNoWebRadioFound()
-            
     
     
     
@@ -374,11 +381,19 @@
         # Return the result
         return result
     
+
     
+def structLoaded():
+    print("pickle web radios loaded")
  
 if __name__ == "__main__":
 
     conteneur = WebRadioContainer()
+    
+    #Adding an event.
+    conteneur.setOnStructLoaded(structLoaded, [])
+    conteneur.initAll()
+    
     for webradio in conteneur.getWebRadios():
         print(webradio.getLoweredName())
         


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to