From patchwork Mon Sep 2 20:39:22 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Antonio Terceiro X-Patchwork-Id: 19695 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ye0-f199.google.com (mail-ye0-f199.google.com [209.85.213.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9D97424869 for ; Mon, 2 Sep 2013 20:39:25 +0000 (UTC) Received: by mail-ye0-f199.google.com with SMTP id l13sf5327969yen.10 for ; Mon, 02 Sep 2013 13:39:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:mime-version:to:from:subject :message-id:date:reply-to:sender:errors-to:precedence :x-original-sender:x-original-authentication-results:mailing-list :list-id:list-post:list-help:list-archive:list-unsubscribe :content-type; bh=pqx2Tb0Ts/0EEajOrhmKgj+iC38G+SF8ohkV5XvCux0=; b=NW5haLQ/bESyhmxXfO/N8saEnEIjkUhAb2dlVvrJmx2c+vrDz+m2hCPTKLd1Zy6xoX dO2dpQRIvC2lP5fgNVb7r5rxz+8ESBpIvr370uVoW0EMNC+q3O/RorRnC6JJ2s5LxeNd X/Pd9bt0I90oRYZMKBnW6VEbPt5/ohscznpADRK5d5cOaIwuzpaLXLiWyNZ30epcOIBF VmChFJYssTfyNin/qqQlcwB3Zzgyz5q60kCPhIFZVoIw6nf/cI2j1FGPBhdQ5cySxfCW pKx101iyWT4H0lYLKOu1clLgBgte5x2Xmr9DsKYpwRMr8BUS50j8QC79b6qk7pLihprq w/Ng== X-Received: by 10.236.125.232 with SMTP id z68mr717767yhh.56.1378154365159; Mon, 02 Sep 2013 13:39:25 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.121.104 with SMTP id lj8ls2407348qeb.11.gmail; Mon, 02 Sep 2013 13:39:25 -0700 (PDT) X-Received: by 10.220.169.203 with SMTP id a11mr2199531vcz.26.1378154364981; Mon, 02 Sep 2013 13:39:24 -0700 (PDT) Received: from mail-ve0-f179.google.com (mail-ve0-f179.google.com [209.85.128.179]) by mx.google.com with ESMTPS id tj1si3547719vdc.118.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 02 Sep 2013 13:39:24 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.179 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.179; Received: by mail-ve0-f179.google.com with SMTP id c13so3355062vea.38 for ; Mon, 02 Sep 2013 13:39:24 -0700 (PDT) X-Gm-Message-State: ALoCoQnAY+lc7fBfGjs1oL54oVLoBMTSwVdS3En7xzKGqS8Au6v5xmI5abaS5rURovoQZm/V5ebo X-Received: by 10.220.91.16 with SMTP id k16mr4728649vcm.21.1378154364673; Mon, 02 Sep 2013 13:39:24 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp132531vcz; Mon, 2 Sep 2013 13:39:24 -0700 (PDT) X-Received: by 10.180.188.202 with SMTP id gc10mr15365218wic.3.1378154363244; Mon, 02 Sep 2013 13:39:23 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id hb10si5503533wjc.162.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 02 Sep 2013 13:39:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) client-ip=91.189.90.7; Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1VGauA-0005wV-E1 for ; Mon, 02 Sep 2013 20:39:22 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 5A77FE056A for ; Mon, 2 Sep 2013 20:39:22 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-dashboard X-Launchpad-Branch: ~linaro-validation/lava-dashboard/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 417 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-dashboard/trunk] Rev 417: Remove requirement for trailing slash when giving bundle stream names Message-Id: <20130902203922.7795.54048.launchpad@ackee.canonical.com> Date: Mon, 02 Sep 2013 20:39:22 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: list X-Generated-By: Launchpad (canonical.com); Revision="16753"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: da4afe38f6bb2f5f521375a0e0454fc9274a748f X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: noreply@launchpad.net X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.179 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Merge authors: Antonio Terceiro (terceiro) Related merge proposals: https://code.launchpad.net/~terceiro/lava-dashboard/down-with-the-trailing-slash/+merge/183260 proposed by: Antonio Terceiro (terceiro) review: Approve - Stevan Radaković (stevanr) ------------------------------------------------------------ revno: 417 [merge] committer: Antonio Terceiro branch nick: trunk timestamp: Mon 2013-09-02 17:36:10 -0300 message: Remove requirement for trailing slash when giving bundle stream names modified: dashboard_app/models.py --- lp:lava-dashboard https://code.launchpad.net/~linaro-validation/lava-dashboard/trunk You are subscribed to branch lp:lava-dashboard. To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-dashboard/trunk/+edit-subscription === modified file 'dashboard_app/models.py' --- dashboard_app/models.py 2013-09-02 13:48:15 +0000 +++ dashboard_app/models.py 2013-09-02 20:36:10 +0000 @@ -275,6 +275,8 @@ Returns user, group, slug, is_public, is_anonymous Raises ValueError if the pathname is not well formed """ + if not pathname.endswith('/'): + pathname = pathname + '/' pathname_parts = pathname.split('/') if len(pathname_parts) < 3: raise ValueError("Pathname too short: %r" % pathname)