issue 912, handle lists of more than 30 references on GAE, thanks Howesc

This commit is contained in:
mdipierro
2012-07-28 19:11:16 -05:00
parent 89e4caa9df
commit 9db2afdd06
3 changed files with 13 additions and 6 deletions
+4 -4
View File
@@ -240,19 +240,19 @@ def site():
fname = form_update.vars.url
elif form_update.accepted and form_update.vars.file:
fname = form_update.vars.file.filename
fname = request.vars.file.filename
appname = cleanpath(form_update.vars.name)
installed = app_install(appname, form_update.vars.file.file,
installed = app_install(appname, request.vars.file.file,
request, fname,
overwrite=form_update.vars.overwrite)
if f and installed:
if installed:
msg = 'application %(appname)s installed with md5sum: %(digest)s'
if MULTI_USER_MODE:
db.app.insert(name=appname,owner=auth.user.id)
log_progress(appname)
session.flash = T(msg, dict(appname=appname,
digest=md5_hash(installed)))
elif f and form_update.vars.overwrite:
elif form_update.vars.overwrite:
msg = 'unable to install application "%(appname)s"'
session.flash = T(msg, dict(appname=form_update.vars.name))