~vincent-vandevyvre/qarte/trunk

« back to all changes in this revision

Viewing changes to loaders.py

  • Committer: Vincent Vande Vyvre
  • Date: 2016-01-26 11:17:25 UTC
  • Revision ID: vincent.vandevyvre@oqapy.eu-20160126111725-mthsyiu1z3gs3vnk
Fix bug 1537785

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
# This file is part of Qarte
5
5
#    
6
6
# Author : Vincent Vande Vyvre <vincent.vandevyvre@oqapy.eu>
7
 
# Copyright: 2011-2015 Vincent Vande Vyvre
 
7
# Copyright: 2011-2016 Vincent Vande Vyvre
8
8
# Licence: GPL3
9
9
# Home page : https://launchpad.net/qarte
10
10
#
188
188
            self.print_(msg)
189
189
 
190
190
        else:
191
 
            msg = u"File: {0}\n\t  Renamed: {1} ".format(self.target, dest)
 
191
            try:
 
192
                msg = u"File: {0}\n\t  Renamed: {1} ".format(self.target, dest)
 
193
            except:
 
194
                # syndrome fedora
 
195
                msg = u"File renamed"
192
196
            self.print_(msg)
193
197
            self.main.last_loaded = dest
194
198
 
197
201
 
198
202
        Debugging usage.
199
203
        """
200
 
        cmd[-3] = "'%s'" % cmd[-3]
201
 
        l = " ".join(cmd)
202
 
        sys.stdout.write("\nUse this command into a terminal:\n%s\n\n" % l)
 
204
        cmd[-3] = unicode("'%s'" % cmd[-3])
 
205
        try:
 
206
            l = u" ".join(cmd)
 
207
            sys.stdout.write("\nUse this command into a terminal:\n%s\n\n" % l)
 
208
        except:
 
209
            pass
203
210
 
204
211
    def print_(self, msg):
205
212
        if self.is_daemon: