Commits

Author Commit Message Labels Comments Date
Jeremy Kerr
forms: Only pass post data to multiplepatchform if that was what was submitted When updating bundles, we get a spurious error message in the MultiplePatchForm; it's performing validation on the blank form data. This change only passes the post data to the MuliplePatchForm if we detect (through data['form']) that it was the MultiplePatchForm that was submitted. This fixes the current testsuite failure. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Jeremy Kerr
tests/bundle: Check for form errors during bundle updates Add a check for patchform errors during bundle update operations, both when logged in as a maintainer and a regular user. This exposes a problem with the maintainer patchform: we see an unexpected form error with the state input. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Jeremy Kerr
tests/bundle: Add bundle update tests, fix missing action behaviour Add a couple of tests for the bundle update views. This exposes a problem with no action is specified, so fix this too. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Jeremy Kerr
templates/bundle: Unify public bundle meta information Currently, the public bundle meta information (the download link before the list of patches) differs from that of the private bundle view. This change unifies this information with the private view. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Jeremy Kerr
tests/bundle: Add tests for public bundle views Ensure that public bundles are accessible, and that private ones are not. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Simo Sorce
views/bundle: Allow downloading public bundle as mbox Downloading single patches anonymously is allowed, we may as well allow downloading public bundles as mboxes. This patch also changes the file name to be bundle-<id>-<name>.mbox so that the file name is unique even if bundle names are reused. Signed-off-by: Simo Sorce <idra@samba.org> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Doug Anderson
pwclient: Add a little more space in 'pwclient list' New patch IDs are now 7 digits long on patchwork.kernel.org. Give a little more space. Signed-off-by: Doug Anderson <dianders@chromium.org> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Doug Anderson
xmlrpc: Avoid trying to marshall None for people with no name If a person sent patches with no real name, they may have None for their name. In this case just use their email address as their name. The previous pwclient error that would show up looks like: $ pwclient list -w anonymous@example.com Traceback (most recent call last): File ".../pwclient", line 631, in <module> main() File ".../pwclient", line 570, in main action_list(r…
Doug Anderson
pwclient: Add command for printing patch info This command prints raw information that patchwork has about a patch. This can be useful for debugging problems with patchwork. Signed-off-by: Doug Anderson <dianders@chromium.org> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Jeremy Kerr
templates: patchwork project URL fixes We need a trailing slash, and to update the URL in the about page too. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Jeremy Kerr
templates: Update patchwork project URL Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Simo Sorce
templates: Add link to the projects website in the projects view Allows the casual visitor to check out what all these projects actually are. Signed-off-by: Simo Sorce <idra@samba.org> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Simo Sorce
Add URL and SCM data to projects This allows us to display friendly links to the project website, web SCM UI and SCM URL. For example for the patchwork project these could be set to: web_url: http://jk.ozlabs.org/projects/patchwork/ scm_url: git://ozlabs.org/home/jk/git/patchwork webscm_url: http://git.ozlabs.org/?p=patchwork;a=tree Requires a DB schema upgrade Signed-off-by: Simo Sorce <idra@samba.org> Signed-off-by: Jeremy K…
Simo Sorce
Add shortcut to admin panel This patch adds a shortcut to the admin panel but only for users that are members of staff. Signed-off-by: Simo Sorce <idra@samba.org> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Ben Myers
pwclient: lookup patch_id given Message-Id Add a pwclient search option '-m' to look up a patch id given a Message-id. This is useful for automation and mailer hooks. Signed-off-by: Ben Myers <bpm@sgi.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Simo Sorce
Fix grant script patchwork_patchchangenotification_id_seq does not exist, so running this script simply fails with a rollback Signed-off-by: Simo Sorce <idra@samba.org> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Jeremy Kerr
bundles: Add check for duplicate bundles ... rather than failing with an IntegrityError. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Jeremy Kerr
requestcontext: Initialise 'messages' context var Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Jeremy Kerr
settings: Use new class for auth context processor Since django 1.2 auth module is in contrib, not core. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Jeremy Kerr
settings: Use class-based template loading API The TEMPLATE_LOADERS setting changed in django-1.2. Template loaders are now based on calsses rather than callables. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Jeremy Kerr
settings: Add message middleware This seems to be required for admin updates. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Jeremy Kerr
pwclient: Pass input to git-am as a UTF-8 string .. to prevent ascii codec exceptions. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Jeremy Kerr
requestcontext: Initialise 'messages' context var Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Jeremy Kerr
settings: Use new class for auth context processor Since django 1.2 auth module is in contrib, not core. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Jeremy Kerr
settings: Use class-based template loading API The TEMPLATE_LOADERS setting changed in django-1.2. Template loaders are now based on calsses rather than callables. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Jeremy Kerr
templates: Don't rely on bool(Page) The behaviour of bool(Page) changed in django 1.4 - it no longer evaluates to False when page has no objects. When checking for an empty patch list, use page.paginator.count. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Jeremy Kerr
models: Add connection parameter for HashField.db_type. This is required by django-1.4. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
dirkwallenstein
tests: Find test data relative to file location Make test execution independent of the current directory. Signed-off-by: Dirk Wallenstein <halsmit@t-online.de> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Jeremy Kerr
tests/notifications: Add test for escaped patch names .. to test for the fix introduced in 18986b7e. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Stefan Hajnoczi
notifications: do not HTML-escape patch change notifications Patch change notifications are text/plain emails and should not HTML-escape patch names. This means quotes and ampersands in patch names should not be turned into &quot; and &amp; HTML entities. Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
  1. Prev
  2. Next