First DB pass

svn: r2884
This commit is contained in:
Don Allingham
2004-02-21 06:11:59 +00:00
parent c6ba4dfdcc
commit e878549bfd
63 changed files with 1701 additions and 2719 deletions

View File

@@ -118,7 +118,7 @@ class AddMediaObject:
if description == "":
description = os.path.basename(filename)
mobj = RelLib.Photo()
mobj = RelLib.MediaObject()
mobj.set_description(description)
mobj.set_mime_type(type)
self.db.add_object(mobj)
@@ -135,6 +135,7 @@ class AddMediaObject:
if self.update:
self.update()
self.object = mobj
self.db.commit_media_object(self.object)
def on_name_changed(self,obj):
"""