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

Modified Files:
        item.py 
Log Message:
fix len() calc

Index: item.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/item.py,v
retrieving revision 1.42
retrieving revision 1.43
diff -C2 -d -r1.42 -r1.43
*** item.py     4 Jan 2004 10:20:05 -0000       1.42
--- item.py     4 Jan 2004 18:19:16 -0000       1.43
***************
*** 10,13 ****
--- 10,16 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.43  2004/01/04 18:19:16  dischi
+ # fix len() calc
+ #
  # Revision 1.42  2004/01/04 10:20:05  dischi
  # fix missing DIRECTORY_USE_MEDIAID_TAG_NAMES for all kinds of parents
***************
*** 385,398 ****
  
          if attr[:4] == 'len(' and attr[-1] == ')':
!             try:
                  r = self.info[attr[4:-1]]
!             except:
!                 try:
!                     r = getattr(self,attr[4:-1])
!                 except:
!                     return 0
                  
              if r != None:
                  return len(r)
  
          else:
--- 388,401 ----
  
          if attr[:4] == 'len(' and attr[-1] == ')':
!             r = None
!             if self.info and self.info.has_key(attr[4:-1]):
                  r = self.info[attr[4:-1]]
! 
!             if not r and hasattr(self, attr[4:-1]):
!                 r = getattr(self,attr[4:-1])
                  
              if r != None:
                  return len(r)
+             return 0
  
          else:




-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to