[kupfer: 6/7] plugin.clawsmail: action SendFileByMail only available for files.
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer: 6/7] plugin.clawsmail: action SendFileByMail only available for files.
- Date: Fri, 11 Dec 2009 17:12:12 +0000 (UTC)
commit 80b0e613734b76842c0ff22f1271ca85ffdccc5a
Author: Karol BÄ?dkowski <karol bedkowsk+gh gmail com>
Date: Fri Dec 11 17:40:14 2009 +0100
plugin.clawsmail: action SendFileByMail only available for files.
kupfer/plugin/clawsmail.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/kupfer/plugin/clawsmail.py b/kupfer/plugin/clawsmail.py
index 3d270aa..c0a0eba 100644
--- a/kupfer/plugin/clawsmail.py
+++ b/kupfer/plugin/clawsmail.py
@@ -122,6 +122,9 @@ class SendFileByMail(Action):
def get_description(self):
return _("Create new mail in ClawsMail and attach selected file")
+ def valid_for_item(self, item):
+ return os.path.isfile(item.object)
+
class ClawsContactsSource(AppLeafContentMixin, Source, FilesystemWatchMixin):
appleaf_content_id = 'claws-mail'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]