~jcsackett/charmworld/bac-tag-constraints

« back to all changes in this revision

Viewing changes to charmworld/models.py

[r=adeuring,abentley][bug=1204985][author=adeuring] do not try to use non-existent value charm['store_data']['address'] in templates; property Charm.address added.

Show diffs side-by-side

added added

removed removed

Lines of Context:
205
205
 
206
206
    _COMMON_REPRESENTATION = {
207
207
        # Provided by Lp charms queue.
 
208
        'address': '',
208
209
        'branch_spec': '',
209
210
        'bzr_branch': '',
210
211
        'branch_deleted': False,
298
299
        return False
299
300
 
300
301
    @property
 
302
    def address(self):
 
303
        """The charm's cs: URL without a charm revision ID."""
 
304
        return self._representation['address']
 
305
 
 
306
    @property
301
307
    def branch_spec(self):
302
308
        """The location of the charm's branch.
303
309
 
421
427
 
422
428
    @property
423
429
    def store_url(self):
424
 
        """The charm's deployment URL."""
 
430
        """The charm's deployment URL, including the Charm revision ID."""
425
431
        return self._representation['store_url']
426
432
 
427
433
    @property