uninstalled apps backup under deposit
This commit is contained in:
2
VERSION
2
VERSION
@@ -1 +1 @@
|
||||
Version 2.0.9 (2012-09-13 21:48:36) stable
|
||||
Version 2.0.9 (2012-09-14 08:47:38) stable
|
||||
|
||||
@@ -366,10 +366,15 @@ def uninstall():
|
||||
else:
|
||||
session.flash = T('no permission to uninstall "%s"', app)
|
||||
redirect(URL('site'))
|
||||
if app_uninstall(app, request):
|
||||
session.flash = T('application "%s" uninstalled', app)
|
||||
else:
|
||||
try:
|
||||
filename = app_pack(app, request, raise_ex=True)
|
||||
except:
|
||||
session.flash = T('unable to uninstall "%s"', app)
|
||||
else:
|
||||
if app_uninstall(app, request):
|
||||
session.flash = T('application "%s" uninstalled', app)
|
||||
else:
|
||||
session.flash = T('unable to uninstall "%s"', app)
|
||||
redirect(URL('site'))
|
||||
return dict(app=app, dialog=dialog)
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ def app_pack(app, request, raise_ex=False):
|
||||
"""
|
||||
try:
|
||||
app_cleanup(app, request)
|
||||
filename = apath('../deposit/%s.w2p' % app, request)
|
||||
filename = apath('../deposit/web2py.app.%s.w2p' % app, request)
|
||||
w2p_pack(filename, apath(app, request))
|
||||
return filename
|
||||
except Exception, e:
|
||||
|
||||
Reference in New Issue
Block a user