#2909: Make python activities more tolerant to missing metadata properties.

This commit is contained in:
Tomeu Vizoso 2007-09-08 16:11:47 +02:00
parent d19472930d
commit b3ad232b0c
2 changed files with 4 additions and 0 deletions

1
NEWS
View File

@ -1,3 +1,4 @@
* #2909: Make python activities more tolerant to missing metadata properties. (tomeu)
* #2653: Add audio/wav and audio/x-wav as Audio objects. (tomeu)
* Support moving of data files written to the datastore using standard Activity
write_file() API (dcbw)

View File

@ -284,6 +284,9 @@ class Activity(Window, gtk.Container):
#del self._jobject.metadata['ctime']
del self._jobject.metadata['mtime']
if not self._jobject.metadata.has_key('title'):
self._jobject.metadata['title'] = ''
try:
share_scope = self._jobject.metadata['share-scope']
title = self._jobject.metadata['title']