PackageKit based package management

This pull request implements a packaging framework based on PackageKit.  Also, as a demo, it makes the ownCloud module use the package framework to install the owncloud package instead of shell script.
On Friday 26 December 2014 11:23 AM, fonfon wrote:
[...]
> 
> Couldn't you use the package names from |form.initial['package_names']|
> in
> https://github.com/SunilMohanAdapa/Plinth/blob/packagekit/plinth/views.py#L75
> to avoid this problem?

form.initial is available only available if the form is created with an
initial= argument.  The first time we are creating the form, we are
doing this because of the values are available to use from the
@package.required decorator.  However, the second time we create the
form, it is done by the menu router where we don't have the initial
values available.

For the values from the unbound form to be available in a bound form, we
need to use the POST values (which we don't want) or store it in a
session (per form) and retrieve it.  I don't think Django has a built in
mechanism to do the latter (Drupal has this transparently using a unique
form build id).

Correct me if I am wrong.

-- 
Sunil