wuttaweb.views.upgrades¶
Upgrade Views
- class wuttaweb.views.upgrades.UpgradeView(request, context=None)[source]¶
Master view for upgrades.
Default route prefix is
upgrades.Notable URLs provided by this class:
/upgrades//upgrades/new/upgrades/XXX/upgrades/XXX/edit/upgrades/XXX/delete
- delete_instance(obj)[source]¶
We override this method to delete any files associated with the upgrade, in addition to deleting the upgrade record. It calls
delete_files()to accomplish this.
- execute_instance(obj, user, progress=None)[source]¶
This will invoke
do_execute()on the upgrade handler.It returns a different “success” message based on whether or not the execute call failed. (Even if the upgrade command fails, the overall execution did technically complete okay.)