diff options
author | Andi_G <andigros72@googlemail.com> | 2011-08-17 03:16:58 (GMT) |
---|---|---|
committer | Andi_G <andigros72@googlemail.com> | 2011-08-17 03:16:58 (GMT) |
commit | 620f33411bb91181797eb1050e7906246a73e065 (patch) | |
tree | 7a79df590453d459b9c98cba54bba4982d5163fa | |
parent | 71ebbc0a1d1e063c56609c95f87191c94c55b4aa (diff) |
started to add non-url text identification
-rw-r--r-- | annoactivity.py | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/annoactivity.py b/annoactivity.py index 483ebbf..d999881 100644 --- a/annoactivity.py +++ b/annoactivity.py @@ -143,6 +143,9 @@ class AnnoActivity(activity.Activity): self._fileserver = None self._object_id = handle.object_id self._url = '' + self._title = '' + self._author = '' + self._toc_model = None self._mimetype = None @@ -664,7 +667,9 @@ class AnnoActivity(activity.Activity): self.read_file(jobject.file_path) properties = jobject.metadata.get_dictionary().copy() _logger.debug('\n\n\nthe metadata properties: %s' % str(properties)) - self._url = properties['url'] + self._url = properties['url'] + self._title = properties['title'] + self._author = properties['author'] finally: chooser.destroy() del chooser @@ -736,7 +741,10 @@ class AnnoActivity(activity.Activity): str(self._model.props.page) self.metadata['Anno_zoom'] = str(self._view.get_current_page()) - self.metadata['url'] = self._url + self.metadata['url'] = self._url + _logger.debug(str('set url to %s' % self._url)) + self.metadata['title'] = self._title + self.metadata['author'] = self._author self._view.update_metadata(self) @@ -749,9 +757,7 @@ class AnnoActivity(activity.Activity): self.metadata['Anno_search'] = \ self._edit_toolbar._search_entry.props.text - self.metadata['activity'] = self.get_bundle_id() - self.metadata['url'] = self._url - _logger.debug(str('set url to %s' % self._url)) + self.metadata['activity'] = self.get_bundle_id() os.link(self._tempfile, file_path) |