lib/image.py
changeset 27 301d738b1181
parent 14 4b5478da5850
child 28 70b6c13d084f
--- a/lib/image.py	Thu Jan 31 17:28:02 2008 +0000
+++ b/lib/image.py	Thu Jan 31 17:58:03 2008 +0000
@@ -29,19 +29,19 @@
 class Image (object) :
     def __init__ (self, dir, name) :
         # the image filename, e.g. DSC3948.JPG
-        self.name = name
+        self.name = unicode(name)
 
         # the Folder object that we are in
         self.dir = dir
         
         # the relative path from the root to us
-        self.path = dir.pathFor(name)
+        self.path = dir.pathFor(self.name)
 
         # the basename+ext, e.g. DSCR3948, .JPG
-        self.base_name, self.ext = os.path.splitext(name)
+        self.base_name, self.ext = os.path.splitext(self.name)
         
         # our user-friendly title
-        self.title = name
+        self.title = self.name
 
         # our long-winded description
         self.descr = ''