Message ID | 20170225120524.30861-4-stephen@that.guru |
---|---|
State | Superseded |
Headers | show
Return-Path: <patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vVn2067qVz9s7v for <incoming@patchwork.ozlabs.org>; Sat, 25 Feb 2017 23:13:44 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="key not found in DNS" (0-bit key; unprotected) header.d=that.guru header.i=@that.guru header.b="YTfP2521"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3vVn2052bszDqHl for <incoming@patchwork.ozlabs.org>; Sat, 25 Feb 2017 23:13:44 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="key not found in DNS" (0-bit key; unprotected) header.d=that.guru header.i=@that.guru header.b="YTfP2521"; dkim-atps=neutral X-Original-To: patchwork@lists.ozlabs.org Delivered-To: patchwork@lists.ozlabs.org Received: from relay111.mymailcheap.com (relay111.mymailcheap.com [159.100.251.43]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3vVn1k02c7zDqH6 for <patchwork@lists.ozlabs.org>; Sat, 25 Feb 2017 23:13:29 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="key not found in DNS" (0-bit key; unprotected) header.d=that.guru header.i=@that.guru header.b="YTfP2521"; dkim-atps=neutral Received: from relay101.mymailcheap.com (relay101.mymailcheap.com [159.100.249.66]) by relay111.mymailcheap.com (Postfix) with ESMTPS id 7EC4BB092 for <patchwork@lists.ozlabs.org>; Sat, 25 Feb 2017 12:05:56 +0000 (UTC) Received: from relay1007.mymailcheap.com (relay1007.mymailcheap.com [149.56.98.132]) by relay101.mymailcheap.com (Postfix) with ESMTPS id 30FE9120FF for <patchwork@lists.ozlabs.org>; Sat, 25 Feb 2017 12:05:51 +0000 (UTC) Received: from filter1001.mymailcheap.com (filter1001.mymailcheap.com [158.69.67.251]) by relay1007.mymailcheap.com (Postfix) with ESMTPS id 0E7241E1D4; Sat, 25 Feb 2017 07:05:45 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by filter1001.mymailcheap.com (Postfix) with ESMTP id DD42B20FB1; Sat, 25 Feb 2017 12:05:44 +0000 (UTC) Authentication-Results: filter1001.mymailcheap.com; dkim=permerror reason="key not found" header.d=that.guru header.i=@that.guru header.b=YTfP2521; dkim-adsp=none (unprotected policy); dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at filter1001.mymailcheap.com Received: from filter1001.mymailcheap.com ([127.0.0.1]) by localhost (filter1001.mymailcheap.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1N_H4buvivhH; Sat, 25 Feb 2017 12:05:43 +0000 (UTC) Received: from one.mxroute.com (one-outgoing.mxroute.com [23.92.70.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by filter1001.mymailcheap.com (Postfix) with ESMTPS; Sat, 25 Feb 2017 12:05:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=that.guru; s=default; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=cKJXnqg7qM7HzuhGyqiOFvtjRxheohm+i2IScbsMYHI=; b=YTfP2521IYQabE6X+FegJgx9Te agCjbAHCxvxUpSB0XqiDhp48PQSMtr6PY0tFaZOeJSJBZjH5YLNPQ+QM1ju97qJ+YXFdAeQHDl1qr Zxrlz5UjCopYv3wQ4HY4kSnMujjqGGbIkaMwRwwviiHKsKWUCe4WrX+nNWNJ6ij6/lIin7wNzc12K HFt1NsC+yYSSWEsFEF5WQLprH2XWdtTtc+hj9Pl4BVQ13Q2T3AB9EtjkAR6C1MxMrwY1llmeQw5/k ZhZ3pvJIJfjygaeQ7xUwQkLWrTLWQrrg/kuQdSKkgrSSrl94TiKvw2v1M20AX0bU1/JHZyNmlBrFR Pi+D2O7w==; From: Stephen Finucane <stephen@that.guru> To: patchwork@lists.ozlabs.org Subject: [PATCH 3/5] models: Add 'mbox_url' permalink for bundles Date: Sat, 25 Feb 2017 07:05:22 -0500 Message-Id: <20170225120524.30861-4-stephen@that.guru> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170225120524.30861-1-stephen@that.guru> References: <20170225120524.30861-1-stephen@that.guru> X-OutGoing-Spam-Status: No, score=-1.0 X-AuthUser: stephen@that.guru X-BeenThere: patchwork@lists.ozlabs.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Patchwork development <patchwork.lists.ozlabs.org> List-Unsubscribe: <https://lists.ozlabs.org/options/patchwork>, <mailto:patchwork-request@lists.ozlabs.org?subject=unsubscribe> List-Archive: <http://lists.ozlabs.org/pipermail/patchwork/> List-Post: <mailto:patchwork@lists.ozlabs.org> List-Help: <mailto:patchwork-request@lists.ozlabs.org?subject=help> List-Subscribe: <https://lists.ozlabs.org/listinfo/patchwork>, <mailto:patchwork-request@lists.ozlabs.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Patchwork" <patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org> |
diff --git a/patchwork/models.py b/patchwork/models.py index 27e576f..214b75c 100644 --- a/patchwork/models.py +++ b/patchwork/models.py @@ -744,6 +744,11 @@ class Bundle(models.Model): 'bundlename': self.name, }) + @models.permalink + def get_mbox_url(self): + return ('bundle-mbox', (), {'bundlename': self.name, + 'username': self.owner.username}) + class Meta: unique_together = [('owner', 'name')]
We're going to use this for downloading mboxes via the REST API. Signed-off-by: Stephen Finucane <stephen@that.guru> Cc: Daniel Axtens <dja@axtens.net> --- patchwork/models.py | 5 +++++ 1 file changed, 5 insertions(+)