~jcsackett/charmworld/bac-tag-constraints

« back to all changes in this revision

Viewing changes to charmworld/testing/factory.py

  • Committer: Tarmac
  • Author(s): Abel Deuring
  • Date: 2013-08-07 13:31:20 UTC
  • mfrom: (334.1.5 etags)
  • Revision ID: tarmac-20130807133120-euu4igaar08e89iy
[r=abentley][bug=][author=adeuring] Add an Etag header to the API response for charm details.

Show diffs side-by-side

added added

removed removed

Lines of Context:
172
172
                   date_created=None, downloads=0,
173
173
                   downloads_in_past_30_days=0, is_featured=False,
174
174
                   promulgated=False, categories=None, branch_deleted=False,
175
 
                   proof=None, payload=None, empty_branch=False):
 
175
                   proof=None, payload=None, empty_branch=False, hash_=None):
176
176
    """Return the json of a charm."""
177
177
    if not description:
178
178
        description = """byobu-class provides remote terminal access through
299
299
                charm['name'], charm['branch_spec'], status, provider)
300
300
    if subordinate:
301
301
        charm['subordinate'] = True
 
302
    if hash_ is not None:
 
303
        charm['hash'] = hash_
302
304
    return process_charm(charm)
303
305
 
304
306