Update of /cvsroot/freevo/freevo/src/video
In directory sc8-pr-cvs1:/tmp/cvs-serv20595/src/video
Modified Files:
videoitem.py
Log Message:
moved getattr to item.py
Index: videoitem.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/video/videoitem.py,v
retrieving revision 1.54
retrieving revision 1.55
diff -C2 -d -r1.54 -r1.55
*** videoitem.py 20 Jun 2003 18:46:53 -0000 1.54
--- videoitem.py 20 Jun 2003 19:38:31 -0000 1.55
***************
*** 10,13 ****
--- 10,16 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.55 2003/06/20 19:38:31 dischi
+ # moved getattr to item.py
+ #
# Revision 1.54 2003/06/20 18:46:53 dischi
# set menu type to video and info_item type to track for DVD/VCD menu
***************
*** 286,296 ****
return the specific attribute as string or an empty string
"""
! a = Item.getattr(self, attr)
! if not a and self.info and self.info.has_key(attr):
! if attr == 'length':
! a = '%s:%s' % (self.info[attr] / 60, self.info[attr] % 60)
! else:
! a = str(self.info[attr])
! return a
# ------------------------------------------------------------------------
--- 289,295 ----
return the specific attribute as string or an empty string
"""
! if self.info and self.info.has_key(attr) and attr == 'length':
! return '%d:%02d' % (int(self.info[attr] / 60), int(self.info[attr] % 60))
! return Item.getattr(self, attr)
# ------------------------------------------------------------------------
-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog