Changeset d80403a


Ignore:
Timestamp:
May 16, 2008, 7:07:24 PM (14 years ago)
Author:
rene <rene@…>
Branches:
master
Children:
ac3969
Parents:
86305b
Message:

upgrade to rdf 0.0.2, recipient Names now containing no Quotes around the FullName?

Location:
chrome/content/v_identity
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • chrome/content/v_identity/vI_rdfDatasource.js

    r86305b rd80403a  
    3838    //      .getService(Components.interfaces.nsIExtensionManager),
    3939   
    40     rdfVersion : "0.0.1",   // version of current implemented RDF-schema, internal only to trigger updates
     40    rdfVersion : "0.0.2",   // version of current implemented RDF-schema, internal only to trigger updates
    4141   
    4242    virtualIdentityID : "{dddd428e-5ac8-4a81-9f78-276c734f75b8}",
     
    6262    },
    6363   
    64     extUpgrade: function() {
     64    extUpgradeRequired: function() {
    6565        oldExtVersion = vI_rdfDatasource.getCurrentExtFileVersion()
    6666        var versionChecker = Components.classes["@mozilla.org/xpcom/version-comparator;1"]
     
    8282    },
    8383   
    84     initRDFDataSource: function() {
     84    storeRDFVersion: function() {
    8585        vI_rdfDatasource.__setRDFValue(
    8686            vI_rdfDatasource.rdfService.GetResource(vI_rdfDatasource.rdfNS + "virtualIdentity"), "rdfVersion",
  • chrome/content/v_identity/vI_upgrade.js

    r86305b rd80403a  
    5555        document.documentElement.getButton('next').setAttribute('disabled','true');
    5656       
    57         if (vI_rdfDatasource.extUpgrade()) vI_upgrade.extUpgrade();
     57        if (vI_rdfDatasource.extUpgradeRequired()) vI_upgrade.extUpgrade();
    5858        if (vI_rdfDatasource.rdfUpgradeRequired()) vI_upgrade.rdfUpgrade();
    5959       
     
    7070            vI_rdfDatasource.getCurrentRDFFileVersion() + "\nrdf-upgrade required.\n")
    7171        switch (vI_rdfDatasource.getCurrentRDFFileVersion()) {
    72             case null:
    73                 vI_rdfDatasource.initRDFDataSource();
    74         }
     72            case "0.0.1":
     73                vI_upgrade.__removeQuotesFromResourceName(); break;
     74        }
     75        vI_rdfDatasource.storeRDFVersion();
    7576        vI_notificationBar.dump("rdf-upgrade to " + vI_rdfDatasource.getCurrentRDFFileVersion() + " done.\n\n");
     77    },
     78   
     79    __removeQuotesFromResourceName : function() {
     80        vI_notificationBar.quiet = true;
     81        vI_rdfDatasource.readAllVIdentitiesFromRDF(vI_upgrade.__removeQuotesFromResourceNameCallback)
     82        vI_notificationBar.quiet = null;
     83        vI_notificationBar.dump("done.\n");
     84    },
     85   
     86    __removeQuotesFromResourceNameCallback : function(resource, type, name, localIdentityData) {
     87        vI_rdfDatasource.removeVIdentityFromRDF(resource);
     88        vI_rdfDatasource.updateRDF(name, type, localIdentityData);
     89        vI_notificationBar.quiet = null;
     90        vI_notificationBar.dump(".");
     91        vI_notificationBar.quiet = true;
    7692    },
    7793   
  • chrome/content/v_identity/vI_upgrade.xul

    r86305b rd80403a  
    4343<script type="application/x-javascript" src="chrome://v_identity/content/vI_account.js" />
    4444<script type="application/x-javascript" src="chrome://v_identity/content/vI_storage.js" />
     45<script type="application/x-javascript" src="chrome://v_identity/content/vI_helper.js" />
    4546<script type="application/x-javascript" src="chrome://v_identity/content/vI_notificationBar.js"/>
    4647<script type="application/x-javascript" src="chrome://v_identity/content/vI_rdfDatasource.js" />   
  • chrome/content/v_identity/vI_upgradeOverlay.js

    r86305b rd80403a  
    2626    init: function() {
    2727        vI_rdfDatasource.init() // just to be sure that Datasource is available
    28         if (vI_rdfDatasource.rdfUpgradeRequired() || vI_rdfDatasource.extUpgrade())     
    29             window.openDialog("chrome://v_identity/content/vI_upgrade.xul",0, // give the Dialog a unique id
    30                 "chrome, dialog, modal, alwaysRaised, resizable=yes").focus();
     28        if (vI_rdfDatasource.rdfUpgradeRequired() || vI_rdfDatasource.extUpgradeRequired())     
     29            window.open("chrome://v_identity/content/vI_upgrade.xul",0, // give the Dialog a unique id
     30                "chrome, modal, alwaysRaised, resizable=yes").focus();
    3131        else vI_account.cleanupSystem(); // always clean leftover accounts and directories
    3232    }
Note: See TracChangeset for help on using the changeset viewer.