prevent exception in admin, thanks Marin
This commit is contained in:
@@ -1 +1 @@
|
||||
Version 2.0.6 (2012-09-04 14:43:30) stable
|
||||
Version 2.0.6 (2012-09-04 14:47:09) stable
|
||||
|
||||
@@ -244,11 +244,15 @@ def site():
|
||||
DIV(T('Unable to download app because:'),PRE(str(e)))
|
||||
redirect(URL(r=request))
|
||||
fname = form_update.vars.url
|
||||
|
||||
|
||||
elif form_update.accepted and form_update.vars.file:
|
||||
fname = request.vars.file.filename
|
||||
f = request.vars.file.file
|
||||
|
||||
else:
|
||||
session.flash = 'No file uploaded and no URL specified'
|
||||
redirect(URL(r=request))
|
||||
|
||||
if f:
|
||||
appname = cleanpath(form_update.vars.name)
|
||||
installed = app_install(appname, f,
|
||||
|
||||
Reference in New Issue
Block a user