コード例 #1
0
 def on_tag(self, evt):
     """tag selected files or directory"""
     selections = self.get_selection()
     if not selections:
         display_message(_("Your must select a directory or a file to tag"),
                         title="No item selected")
     for selection in selections:
         get_facade().tag_file(selection, self.owner.tag_value.GetValue())
     self.owner.do_modified(True)
コード例 #2
0
 def on_unshare(self, evt):
     """share all files in directory"""
     selections = self.get_selection()
     if not selections:
         display_message(_("Your must select a directory or a file to unshare"),
                         title="No item selected")
     for selection in selections:
         get_facade().recursive_share(selection, False)
     self.owner.do_modified(True)