Example #1
0
 def GET(self,version):
     apkName = fileManger.getApkName('/'.join([apkDir,version]))
     apkPath = '/'.join([apkDir,version,apkName])
     androidVersion = version
     QRimgPath = '/'.join([imgDir_,fileManger.getImgName(apkName)])
     fileManger.makeQrcode('/'.join([host,'static/apkFiles',version,apkName]), QRimgPath)
     return render.version(androidVersion,apkPath,apkName,QRimgPath)
Example #2
0
 def GET(self):
     newApkName = fileManger.getApkName(newApkDir)
     newApkPath = newApkDir + '/' + newApkName
     newImgName = fileManger.getImgName(newApkName)
     imgPath = imgDir_ +'/' + newImgName
     fileManger.makeQrcode(host + '/static/apkFiles/newApk/' + newApkName ,imgPath)
     versionList = fileManger.getVersionList(apkDir)
     
     return render.index(versionList,newApkName,newApkPath,imgPath)