~vcs-imports/elasticfox/trunk

« back to all changes in this revision

Viewing changes to src/chrome/content/ec2ui/preferences.js

  • Committer: jhatax
  • Date: 2009-03-10 00:54:14 UTC
  • Revision ID: vcs-imports@canonical.com-20090310005414-yf30cfw4jmyecjps
Bug fixes:
1. All the instance's groups are checked before prompting the user to open
either the SSH or RDP port prior to connecting to an instance
2. ICMP parameters are now correctly specified when authorizing ICMP rules
3. Added tagging for AMIs
4. Tags can be added via a toolbar "edit" button that looks like an 'i'
5. Instance Info is always populated with the AMI Manifest location (for you
Manish). This required adding a new API to the controller - describeImage
6. The AMI.id->AMI.location map is now correctly resurrected every time a call
is made to DescribeImages


M    src/chrome/content/ec2ui/instances_tab_overlay.xul
M    src/chrome/content/ec2ui/snapshotsview.js
M    src/chrome/content/ec2ui/controller.js
M    src/chrome/content/ec2ui/volumesview.js
M    src/chrome/content/ec2ui/client.js
M    src/chrome/content/ec2ui/instancesview.js
M    src/chrome/content/ec2ui/baseimagesview.js
M    src/chrome/content/ec2ui/preferences.js
M    src/chrome/content/ec2ui/volumes_tab_overlay.xul
AM   src/chrome/content/ec2ui/images/info.png
M    src/chrome/content/ec2ui/newpermissionauthorizer.js
M    src/chrome/content/ec2ui/session.js
M    src/chrome/content/ec2ui/amisview.js
M    src/chrome/content/ec2ui/images_tab_overlay.xul
M    src/chrome/content/ec2ui/model.js

Show diffs side-by-side

added added

removed removed

Lines of Context:
151
151
    KNOWN_ACCOUNT_IDS   : "ec2ui.known.account.ids",
152
152
    LAST_EC2_PKEY_FILE  : "ec2ui.last.ec2privatekey.file",
153
153
    ENDPOINTS           : "ec2ui.endpoints",
 
154
    IMAGE_TAGS          : "ec2ui.instancetags",
154
155
    INSTANCE_TAGS       : "ec2ui.instancetags",
155
156
    VOLUME_TAGS         : "ec2ui.volumetags",
156
157
    SNAPSHOT_TAGS       : "ec2ui.snapshotTags",
413
414
        return new WrappedMapEndpoints(endpointmap, this);
414
415
    },
415
416
 
 
417
    setImageTags : function(value) {
 
418
        this.setTags(this.IMAGE_TAGS, value);
 
419
    },
 
420
 
416
421
    setInstanceTags : function(value) {
417
422
        this.setTags(this.INSTANCE_TAGS, value);
418
423
    },
426
431
    },
427
432
 
428
433
    setTags : function(pref, value) {
429
 
        pref = pref + "." + this.getLastUsedAccount() + ".";
 
434
        pref = pref + "." + this.getLastUsedAccount();
430
435
        // Get the current endpoint
431
 
        pref = pref + this.getLastUsedEndpoint();
 
436
        pref = pref + "." + this.getLastUsedEndpoint();
432
437
 
433
438
        this.setStringPreference(pref, value.toJSONString());
434
439
    },
435
440
 
 
441
    getImageTags : function() {
 
442
        return this.getTags(this.IMAGE_TAGS);
 
443
    },
 
444
 
436
445
    getInstanceTags : function() {
437
446
        return this.getTags(this.INSTANCE_TAGS);
438
447
    },
447
456
 
448
457
    getTags : function(pref) {
449
458
        var orig = this.getStringPreference(pref, null);
450
 
        pref = pref + "." + this.getLastUsedAccount() + ".";
 
459
        pref = pref + "." + this.getLastUsedAccount();
451
460
        // Get the current endpoint
452
 
        pref = pref + this.getLastUsedEndpoint();
 
461
        pref = pref  + "." + this.getLastUsedEndpoint();
453
462
 
454
463
        var packedMap = this.getStringPreference(pref, orig);
455
464
        var unpackedMap = {};