~jcsackett/charmworld/bac-tag-constraints

« back to all changes in this revision

Viewing changes to charmworld/views/charms.py

  • Committer: Tarmac
  • Author(s): Brad Crittenden
  • Date: 2013-08-23 22:01:47 UTC
  • mfrom: (358.1.14 official-bundle-json)
  • Revision ID: tarmac-20130823220147-z0pg084iaro0afyh
[r=sinzui][bug=1215473][author=bac] Support official/promulgated bundles.  Change bundle to store basket_name and basket_revision separately rather than as on combined basket_id with name/rev.  Always use 'bundles' in the path for web and api requests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Copyright 2012, 2013 Canonical Ltd.  This software is licensed under the
2
2
# GNU Affero General Public License version 3 (see the file LICENSE).
3
3
 
4
 
from deform import Form
5
 
from deform import ValidationFailure
 
4
from deform import (
 
5
    Form,
 
6
    ValidationFailure,
 
7
)
6
8
import json
7
9
import os
8
10
import pymongo
22
24
    QADataSource,
23
25
)
24
26
from charmworld.utils import quote_key
25
 
from charmworld.views import log
26
 
from charmworld.views import SANITIZE
 
27
from charmworld.views import (
 
28
    log,
 
29
    SANITIZE,
 
30
)
27
31
from charmworld.views.api import API3
28
 
from charmworld.views.helpers import format_change
29
 
from charmworld.views.helpers import format_proof
30
 
from charmworld.views.helpers import found
31
 
from charmworld.views.helpers import interfaces
32
 
from charmworld.views.helpers import name_filter
33
 
from charmworld.views.helpers import sub_filter
 
32
from charmworld.views.helpers import (
 
33
    format_change,
 
34
    format_proof,
 
35
    found,
 
36
    interfaces,
 
37
    name_filter,
 
38
    sub_filter,
 
39
)
34
40
 
35
41
 
36
42
class CharmDetail(Charm):