Update of /cvsroot/freevo/freevo/src/image
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32116
Modified Files:
imageitem.py
Log Message:
fix attr geometry and add formated date
Index: imageitem.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/image/imageitem.py,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** imageitem.py 24 Jan 2004 18:56:45 -0000 1.22
--- imageitem.py 13 Feb 2004 20:27:30 -0000 1.23
***************
*** 10,13 ****
--- 10,16 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.23 2004/02/13 20:27:30 dischi
+ # fix attr geometry and add formated date
+ #
# Revision 1.22 2004/01/24 18:56:45 dischi
# rotation is now stored in mediainfo
***************
*** 62,68 ****
import util
import os
import viewer
- import mmpython
from item import Item
--- 65,73 ----
import util
import os
+ import time
+ import mmpython
+ import config
import viewer
from item import Item
***************
*** 90,99 ****
return the specific attribute as string or an empty string
"""
! if key in [ "geometry" ]:
try:
! image = self.info
! if attr == 'geometry':
! print "geometry=%sx%s" % (image.width, image.height)
! return '%sx%s' % (image.width, image.height)
except:
pass
--- 95,109 ----
return the specific attribute as string or an empty string
"""
! if key == "geometry":
! if self['width'] and self['height']:
! return '%sx%s' % (self['width'], self['height'])
! return ''
!
! if key == "date":
try:
! t = str(Item.__getitem__(self, key))
! if t:
! return time.strftime(config.TV_DATETIMEFORMAT,
! time.strptime(t, '%Y:%m:%d %H:%M:%S'))
except:
pass
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog