コード例 #1
0
ファイル: onclick.py プロジェクト: venu123/easy_share
def uploadfirst():
 print "uploading!..."  
 #fout=open("countyoutube.txt","r")

 #s1=fout.readline()
 #print s1
 global global_uname
 global global_albumTitle
 global global_passwd
 
 global_uname = str(unameLineEdit.text())
 global_passwd=str(passwdLineEdit.text())
 global_albumTitle=str(albumTitleLineEdit.text())

 #s2="firsttime"
 #if s1==s2:
 fouttest = open("login.log","w")
 fouttest.write("hello1")
       
 s1="notfirsttime"
 f1=open("/home/subrahmanya/countyoutube.txt","w")
#f2=open("/home/subrahmanya/detailsyoutube.txt","r")
 #s1="notfirsttime"
 username=global_uname
 passwrd=global_passwd
 title=global_albumTitle
 filepath=sys.argv[1]
	
	#string1 = "sandeep080"#string1.strip()
	#string2 = "helloWorld"#string2.strip()
	#string3 = sys.argv[2]#:"debug2"#string3.strip()
	#string4 = string4.strip()
	
	#print string1 + "<< uname if"
	#print string2 + "<< upasswd if"
	#print string3 + "<< title if"
	#print string4 + "<< filename if"
	#f2.close()
 f1.write(s1)
	#f2.close()
 f1.close()
	
	
 fouttest.write("hello4")
 fout=open("log.txt","w")
 fout.write(filepath)
 fout.close()
 fouttest.write("hello*")
 print "calling upload! in if"

	#global global_uname
	#string1 = global_uname
	#global global_passwd
	#string2 = global_passwd
	#global global_albumTitle
	#string3 = global_albumTitle
 add.details(username,passwrd)
 print filepath
 print title
 print username
 print passwrd
 picasa.post_to_picasa(filepath,title,username,passwrd)
 print "done!"

 fouttest.write("hello5")
コード例 #2
0
ファイル: login.py プロジェクト: gnayak7/Easy-Share
	def show(self):
		usr=le.text()
		password=le1.text()
		title=le2.text()
		
		add.details(usr,password,title)