py3 print
This commit is contained in:
parent
4874c8e119
commit
894f15ec85
8
main.py
8
main.py
@ -47,7 +47,7 @@ class SeafileUploader():
|
|||||||
for lib in self.libs:
|
for lib in self.libs:
|
||||||
if self.seaf_lib is not None and lib.id == self.seaf_lib.id:
|
if self.seaf_lib is not None and lib.id == self.seaf_lib.id:
|
||||||
select = i
|
select = i
|
||||||
print "set %s" % lib.name
|
print("set %s" % lib.name)
|
||||||
drop.addItem(lib.name)
|
drop.addItem(lib.name)
|
||||||
i=i+1
|
i=i+1
|
||||||
drop.setCurrentIndex(select)
|
drop.setCurrentIndex(select)
|
||||||
@ -112,7 +112,7 @@ class SeafileUploader():
|
|||||||
settings.setValue("name-format", self.nameFormat)
|
settings.setValue("name-format", self.nameFormat)
|
||||||
settings.setValue("upload-scheme", self.upload_scheme)
|
settings.setValue("upload-scheme", self.upload_scheme)
|
||||||
#settings.setValue("name-format", self.settingsDialog.group_name.input_name.text)
|
#settings.setValue("name-format", self.settingsDialog.group_name.input_name.text)
|
||||||
print self.seaf_lib, self.lib_path
|
print(self.seaf_lib, self.lib_path)
|
||||||
settings.endGroup()
|
settings.endGroup()
|
||||||
settings.endGroup()
|
settings.endGroup()
|
||||||
|
|
||||||
@ -180,12 +180,12 @@ class SeafileUploader():
|
|||||||
selected_lib = drop.currentText
|
selected_lib = drop.currentText
|
||||||
if not drop.isEnabled(): return #not populated
|
if not drop.isEnabled(): return #not populated
|
||||||
self.lib_path = self.settingsDialog.group_location.widget_location.pathEdit.text
|
self.lib_path = self.settingsDialog.group_location.widget_location.pathEdit.text
|
||||||
print self.lib_path, selected_lib
|
print(self.lib_path, selected_lib)
|
||||||
if self.libs is None: return
|
if self.libs is None: return
|
||||||
for lib in self.libs:
|
for lib in self.libs:
|
||||||
if lib.name == selected_lib:
|
if lib.name == selected_lib:
|
||||||
self.seaf_lib = lib
|
self.seaf_lib = lib
|
||||||
print "%s user selected" % selected_lib
|
print("%s user selected" % selected_lib)
|
||||||
|
|
||||||
|
|
||||||
def login(self,user,password):
|
def login(self,user,password):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user