~jcsackett/charmworld/bac-tag-constraints

« back to all changes in this revision

Viewing changes to charmworld/testing/factory.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:
146
146
    address = get_address(charm, promulgated)
147
147
    charm["store_url"] = make_store_url(1, address)
148
148
    store_data = {
149
 
        "address": address,
150
149
        "store_checked": "Thu Dec  6 17:42:05 2012"
151
150
    }
152
151
    if charm_error:
249
248
    add_store_data(charm, promulgated, charm_error)
250
249
    charm.update({
251
250
        '_id': charm['branch_spec'],
 
251
        'address': get_address(charm, promulgated),
252
252
        "branch_dir": os.path.join(branch_root, charm['name']),
253
253
        "categories": categories,
254
254
        "changes": changes,