Merge branch 'ss/improve_logging_using_str' into next
This commit is contained in:
commit
e614838a1f
@ -125,6 +125,9 @@ class Account(CustomConfig.ConfigHelperMixin):
|
|||||||
def getname(self):
|
def getname(self):
|
||||||
return self.name
|
return self.name
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return self.name
|
||||||
|
|
||||||
def getsection(self):
|
def getsection(self):
|
||||||
return 'Account ' + self.getname()
|
return 'Account ' + self.getname()
|
||||||
|
|
||||||
@ -253,7 +256,7 @@ class SyncableAccount(Account):
|
|||||||
thread = InstanceLimitedThread(\
|
thread = InstanceLimitedThread(\
|
||||||
instancename = 'FOLDER_' + self.remoterepos.getname(),
|
instancename = 'FOLDER_' + self.remoterepos.getname(),
|
||||||
target = syncfolder,
|
target = syncfolder,
|
||||||
name = "Folder sync [%s]" % self.name,
|
name = "Folder sync [%s]" % self,
|
||||||
args = (self.name, remoterepos, remotefolder, localrepos,
|
args = (self.name, remoterepos, remotefolder, localrepos,
|
||||||
statusrepos, quick))
|
statusrepos, quick))
|
||||||
thread.setDaemon(1)
|
thread.setDaemon(1)
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Base folder support
|
# Base folder support
|
||||||
# Copyright (C) 2002 John Goerzen
|
# Copyright (C) 2002-2011 John Goerzen & contributors
|
||||||
# <jgoerzen@complete.org>
|
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
@ -72,6 +72,9 @@ class BaseRepository(CustomConfig.ConfigHelperMixin):
|
|||||||
def getname(self):
|
def getname(self):
|
||||||
return self.name
|
return self.name
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return self.name
|
||||||
|
|
||||||
def getuiddir(self):
|
def getuiddir(self):
|
||||||
return self.uiddir
|
return self.uiddir
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user