コード例 #1
0
 def OnPull(self, event):  # wxGlade: DevilMainFrame.<event_handler>
     server = self.combo_box_5.GetValue()
     loc = self.remote[server]
     """ Pull """
     obj = FileController(self.directory)
     obj.pull(loc)
     reactor.run()
     self.sb.SetStatusText("Pulled successfully")
コード例 #2
0
 def OnPull(self, event):  # wxGlade: DevilMainFrame.<event_handler>
     server = self.combo_box_5.GetValue()
     loc=self.remote[server]
     """ Pull """
     obj=FileController(self.directory)
     obj.pull(loc)
     reactor.run()
     self.sb.SetStatusText("Pulled successfully")
コード例 #3
0
 def remote_push(self, directory, loc):
     print loc, "\n"
     print directory
     print "received push request"
     f = FileController(directory)
     f.pull(loc, False)
     print "pull completed"
     return 1
コード例 #4
0
 def remote_push(self,directory,loc):
     print loc,"\n"
     print directory
     print "received push request"
     f = FileController(directory)
     f.pull(loc,False)
     print "pull completed"
     return 1