Update of /cvsroot/freevo/freevo/src
In directory sc8-pr-cvs1:/tmp/cvs-serv18134

Modified Files:
        config.py plugin.py 
Log Message:
fixed TRUE/FALSE problems

Index: config.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/config.py,v
retrieving revision 1.50
retrieving revision 1.51
diff -C2 -d -r1.50 -r1.51
*** config.py   14 Sep 2003 20:47:48 -0000      1.50
--- config.py   19 Sep 2003 18:57:43 -0000      1.51
***************
*** 23,26 ****
--- 23,29 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.51  2003/09/19 18:57:43  dischi
+ # fixed TRUE/FALSE problems
+ #
  # Revision 1.50  2003/09/14 20:47:48  outlyer
  # * TRUE/FALSE wasn't working in Python 2.3...
***************
*** 181,188 ****
  DEBUG = 0
  
! # add TRUE and FALSE to __builtin__ for older python versions
! if float(sys.version[0:3]) < 2.4:
!     __builtin__.__dict__['TRUE']  = 1
!     __builtin__.__dict__['FALSE'] = 0
  
  #
--- 184,196 ----
  DEBUG = 0
  
! # add True and False to __builtin__ for older python versions
! if float(sys.version[0:3]) < 2.3:
!     __builtin__.__dict__['True']  = 1
!     __builtin__.__dict__['False'] = 0
! 
! # temp solution until this is fixed to True and False
! # in all freevo modules
! __builtin__.__dict__['TRUE']  = 1
! __builtin__.__dict__['FALSE'] = 0
  
  #

Index: plugin.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/plugin.py,v
retrieving revision 1.41
retrieving revision 1.42
diff -C2 -d -r1.41 -r1.42
*** plugin.py   14 Sep 2003 20:09:36 -0000      1.41
--- plugin.py   19 Sep 2003 18:57:43 -0000      1.42
***************
*** 10,13 ****
--- 10,16 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.42  2003/09/19 18:57:43  dischi
+ # fixed TRUE/FALSE problems
+ #
  # Revision 1.41  2003/09/14 20:09:36  dischi
  # removed some TRUE=1 and FALSE=0 add changed some debugs to _debug_
***************
*** 19,55 ****
  # support for plugins to add defaults to config
  #
- # Revision 1.38  2003/09/09 18:36:11  dischi
- # add a plugin helper to get more informations about the plugins
- #
- # Revision 1.37  2003/09/05 16:29:28  dischi
- # make special function to init only one specific plugin
- #
- # Revision 1.36  2003/09/03 20:10:13  dischi
- # Make sure a plugin is only loaded once with the same args and type
- #
- # Revision 1.35  2003/09/01 18:45:28  dischi
- # update doc
- #
- # Revision 1.34  2003/08/31 17:15:00  dischi
- # default level is 10 now to make it possible to set items before default ones
- #
- # Revision 1.33  2003/08/31 14:18:31  dischi
- # added support for a progress callback (0-100)
- #
- # Revision 1.32  2003/08/30 17:03:02  dischi
- # support for eventhandler in ItemPlugins
- #
- # Revision 1.31  2003/08/30 07:58:57  dischi
- # Fix item plugin handling
- #
- # Revision 1.30  2003/08/27 15:25:47  mikeruelle
- # Start of Radio Support
- #
- # Revision 1.29  2003/08/23 12:51:41  dischi
- # removed some old CVS log messages
- #
- # Revision 1.28  2003/08/22 17:51:29  dischi
- # Some changes to make freevo work when installed into the system
- #
  # -----------------------------------------------------------------------
  # Freevo - A Home Theater PC framework
--- 22,25 ----
***************
*** 75,79 ****
  
  
! import os
  import traceback
  from event import Event
--- 45,49 ----
  
  
! import os, sys
  import traceback
  from event import Event
***************
*** 81,84 ****
--- 51,57 ----
  DEBUG = 0
  
+ if float(sys.version[0:3]) < 2.3:
+     True  = 1
+     False = 0
  
  #
***************
*** 126,130 ****
      will also be passed to this plugin. This works only for VideoItems right
      now (each item type must support it directly). If the function returns
!     TRUE, the event won't be passed to other eventhandlers and also not to
      the item itself.
      
--- 99,103 ----
      will also be passed to this plugin. This works only for VideoItems right
      now (each item type must support it directly). If the function returns
!     True, the event won't be passed to other eventhandlers and also not to
      the item itself.
      
***************
*** 155,159 ****
      def eventhandler(self, event, menuw=None):
          events no one else wants will be passed to this functions, when
!         you also set the variable event_listener to TRUE, the object will
          get all events
      def shutdown(self):
--- 128,132 ----
      def eventhandler(self, event, menuw=None):
          events no one else wants will be passed to this functions, when
!         you also set the variable event_listener to True, the object will
          get all events
      def shutdown(self):
***************
*** 165,170 ****
          self.poll_counter   = 0         # poll counter, don't change this
          self.poll_interval  = 1         # poll every x*0.1 seconds
!         self.poll_menu_only = TRUE      # poll only when menu is active
!         self.event_listener = FALSE     # process all events
  
  #
--- 138,143 ----
          self.poll_counter   = 0         # poll counter, don't change this
          self.poll_interval  = 1         # poll every x*0.1 seconds
!         self.poll_menu_only = True      # poll only when menu is active
!         self.event_listener = False     # process all events
  
  #
***************
*** 248,252 ****
      global __plugin_basedir__
      
!     __initialized__ = TRUE
      __plugin_basedir__ = os.environ['FREEVO_PYTHON']
  
--- 221,225 ----
      global __plugin_basedir__
      
!     __initialized__ = True
      __plugin_basedir__ = os.environ['FREEVO_PYTHON']
  
***************
*** 351,355 ****
  #
  
! __initialized__        = FALSE
  __all_plugins__        = []
  __plugin_number__      = 0
--- 324,328 ----
  #
  
! __initialized__        = False
  __all_plugins__        = []
  __plugin_number__      = 0




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to