Changeset 07ec84


Ignore:
Timestamp:
Dec 5, 2011, 11:49:26 AM (9 years ago)
Author:
rene <rene@…>
Branches:
ng_0.9
Children:
11bcb73
Parents:
02ceef
Message:

added last-used and created column in rdf

Files:
10 edited

Legend:

Unmodified
Added
Removed
  • content/vI_rdfDataTree.js

    r02ceef r07ec84  
    104104    },
    105105
    106     addNewDatum : function(resource, name, localIdentityData, idData) {
     106    addNewDatum : function(resource, name, localIdentityData, idData, used, changed) {
     107        var usedDate = new Date(parseFloat(used));
     108        var changedDate = new Date(parseFloat(changed));
    107109        var pref = {    recipientCol : name,
    108110                indexCol : idData.length + 1 + ".",
     
    111113//              smtpKey : localIdentityData.smtp.key,
    112114                idCol : localIdentityData.id.value,
     115                usedCol : used?usedDate.toLocaleString():"",
     116                changedCol : changed?changedDate.toLocaleString():"",
    113117//              idKey : localIdentityData.id.key,
    114118                resource : resource,
  • content/vI_rdfDataTree.xul

    r02ceef r07ec84  
    156156            class="sortDirectionIndicator"
    157157            persist="hidden width ordinal sortDirection"/>     
     158        <splitter class="tree-splitter" />
     159        <treecol id="usedCol_email" label="&vI_rdfDataTree.usedColumn.label;" flex="10"
     160            class="sortDirectionIndicator"
     161            persist="hidden width ordinal sortDirection"/>     
     162        <splitter class="tree-splitter" />
     163        <treecol id="changedCol_email" label="&vI_rdfDataTree.changedColumn.label;" flex="10"
     164            class="sortDirectionIndicator"
     165            persist="hidden width ordinal sortDirection"/>     
    158166    </treecols>
    159167    <treechildren id="configTreeBody_email" ondblclick="if (event.button == 0) virtualIdentityExtension.rdfDataTreeCollection.modifySelected();" />
     
    193201            class="sortDirectionIndicator"
    194202            persist="hidden width ordinal sortDirection"/>     
     203        <splitter class="tree-splitter" />
     204        <treecol id="usedCol_maillist" label="&vI_rdfDataTree.usedColumn.label;" flex="10"
     205            class="sortDirectionIndicator"
     206            persist="hidden width ordinal sortDirection"/>     
     207        <splitter class="tree-splitter" />
     208        <treecol id="changedCol_maillist" label="&vI_rdfDataTree.changedColumn.label;" flex="10"
     209            class="sortDirectionIndicator"
     210            persist="hidden width ordinal sortDirection"/>     
    195211    </treecols>
    196212    <treechildren id="configTreeBody_maillist" ondblclick="if (event.button == 0) virtualIdentityExtension.rdfDataTreeCollection.modifySelected();" />
     
    229245            class="sortDirectionIndicator"
    230246            persist="hidden width ordinal sortDirection"/>     
     247        <splitter class="tree-splitter" />
     248        <treecol id="usedCol_newsgroup" label="&vI_rdfDataTree.usedColumn.label;" flex="10"
     249            class="sortDirectionIndicator"
     250            persist="hidden width ordinal sortDirection"/>     
     251        <splitter class="tree-splitter" />
     252        <treecol id="changedCol_newsgroup" label="&vI_rdfDataTree.changedColumn.label;" flex="10"
     253            class="sortDirectionIndicator"
     254            persist="hidden width ordinal sortDirection"/>     
    231255    </treecols>
    232256    <treechildren id="configTreeBody_newsgroup" ondblclick="if (event.button == 0) virtualIdentityExtension.rdfDataTreeCollection.modifySelected();" />
     
    270294            class="sortDirectionIndicator"
    271295            persist="hidden width ordinal"/>       
     296        <splitter class="tree-splitter" />
     297        <treecol id="usedCol_filter" label="&vI_rdfDataTree.usedColumn.label;" flex="10"
     298            class="sortDirectionIndicator"
     299            persist="hidden width ordinal sortDirection"/>     
     300        <splitter class="tree-splitter" />
     301        <treecol id="changedCol_filter" label="&vI_rdfDataTree.changedColumn.label;" flex="10"
     302            class="sortDirectionIndicator"
     303            persist="hidden width ordinal sortDirection"/>     
    272304    </treecols>
    273305    <treechildren id="configTreeBody_filter" ondblclick="if (event.button == 0) virtualIdentityExtension.rdfDataTreeCollection.modifySelected();" />
  • locale/cs-CZ/vI_rdfDataTree.dtd

    r02ceef r07ec84  
    1111<!ENTITY vI_rdfDataTree.idColumn.label "Identita">
    1212<!ENTITY vI_rdfDataTree.smtpColumn.label "SMTP">
     13<!ENTITY vI_rdfDataTree.usedColumn.label "Used"> <!-- translate -->
     14<!ENTITY vI_rdfDataTree.changedColumn.label "Created"> <!-- translate -->
    1315<!ENTITY vI_rdfDataTree.menuEntry.label "Datové úloÅŸiÅ¡tě Virtual Identity">
    1416
  • locale/de-DE/vI_rdfDataTree.dtd

    r02ceef r07ec84  
    1111<!ENTITY vI_rdfDataTree.idColumn.label "IdentitÀt">
    1212<!ENTITY vI_rdfDataTree.smtpColumn.label "SMTP">
     13<!ENTITY vI_rdfDataTree.usedColumn.label "Genutzt">
     14<!ENTITY vI_rdfDataTree.changedColumn.label "Erstellt">
    1315<!ENTITY vI_rdfDataTree.menuEntry.label "Virtual Identity Daten-Speicher">
    1416
  • locale/en-US/vI_rdfDataTree.dtd

    r02ceef r07ec84  
    1111<!ENTITY vI_rdfDataTree.idColumn.label "Identity">
    1212<!ENTITY vI_rdfDataTree.smtpColumn.label "SMTP">
     13<!ENTITY vI_rdfDataTree.usedColumn.label "Used">
     14<!ENTITY vI_rdfDataTree.changedColumn.label "Created">
    1315<!ENTITY vI_rdfDataTree.menuEntry.label "Virtual Identity Data-Storage">
    1416
  • locale/es-ES/vI_rdfDataTree.dtd

    r02ceef r07ec84  
    1111<!ENTITY vI_rdfDataTree.idColumn.label "Identidad">
    1212<!ENTITY vI_rdfDataTree.smtpColumn.label "SMTP">
     13<!ENTITY vI_rdfDataTree.usedColumn.label "Used"> <!-- translate -->
     14<!ENTITY vI_rdfDataTree.changedColumn.label "Created"> <!-- translate -->
    1315<!ENTITY vI_rdfDataTree.menuEntry.label "Almacén de datos de Virtual Identity">
    1416
  • locale/fr/vI_rdfDataTree.dtd

    r02ceef r07ec84  
    1111<!ENTITY vI_rdfDataTree.idColumn.label "Identité">
    1212<!ENTITY vI_rdfDataTree.smtpColumn.label "SMTP">
     13<!ENTITY vI_rdfDataTree.usedColumn.label "Used"> <!-- translate -->
     14<!ENTITY vI_rdfDataTree.changedColumn.label "Created"> <!-- translate -->
    1315<!ENTITY vI_rdfDataTree.menuEntry.label "Stockage de données de Virtual Identity">
    1416
  • locale/nl/vI_rdfDataTree.dtd

    r02ceef r07ec84  
    1111<!ENTITY vI_rdfDataTree.idColumn.label "Identiteit">
    1212<!ENTITY vI_rdfDataTree.smtpColumn.label "SMTP">
     13<!ENTITY vI_rdfDataTree.usedColumn.label "Used"> <!-- translate -->
     14<!ENTITY vI_rdfDataTree.changedColumn.label "Created"> <!-- translate -->
    1315<!ENTITY vI_rdfDataTree.menuEntry.label "Virtual Identity gegevensopslag">
    1416
  • locale/ru-RU/vI_rdfDataTree.dtd

    r02ceef r07ec84  
    1414<!ENTITY vI_rdfDataTree.idColumn.label "УчетМая запОсь">
    1515<!ENTITY vI_rdfDataTree.smtpColumn.label "SMTP-сервер">
     16<!ENTITY vI_rdfDataTree.usedColumn.label "Used"> <!-- translate -->
     17<!ENTITY vI_rdfDataTree.changedColumn.label "Created"> <!-- translate -->
    1618<!ENTITY vI_rdfDataTree.menuEntry.label "ХраМОлОще вОртуальМыÑ
    1719 Ð»ÐžÑ‡ÐœÑ‹Ñ
  • modules/vI_rdfDatasource.js

    r02ceef r07ec84  
    6161    _rdfNSIdentities :  "vIAccounts/id",
    6262    _rdfNSSMTPservers : "vIAccounts/smtp",
    63 
     63   
    6464    _virtualIdentityID : "{dddd428e-5ac8-4a81-9f78-276c734f75b8}",
    6565   
     
    618618            var id = this._getRDFValue(resource, "id")
    619619            var smtp = this._getRDFValue(resource, "smtp")
     620            var used = this._getRDFValue(resource, "timeUsed")
     621            var changed = this._getRDFValue(resource, "timeChanged")
    620622            if (!smtp) smtp = NO_SMTP_TAG;
    621623            let self = this;
    622624            var localIdentityData = new identityData(email, fullName, id, smtp, new identityDataExtras(self, resource))
    623             addNewDatum (resource, name, localIdentityData, idData)
     625            addNewDatum (resource, name, localIdentityData, idData, used, changed)
    624626        }
    625627    },
     
    737739        if (!smtp) smtp = NO_SMTP_TAG;
    738740       
    739         Log.debug("email='" + email +
     741        let _date = new Date();
     742        this._setRDFValue(resource, "timeUsed", _date.getTime());
     743       
     744        Log.debug("email='" + email +
    740745            "' fullName='" + fullName + "' id='" + id + "' smtp='" + smtp + "'");
     746       
    741747        let self = this;
    742         var localIdentityData = new identityData(email, fullName, id, smtp, new identityDataExtras(self, resource))
     748        var localIdentityData = new identityData(email, fullName, id, smtp, new identityDataExtras(self, resource))
    743749        return localIdentityData;
    744750    },
     
    805811//           Log.debug("extras: " + localIdentityData.extras.status());
    806812        }
     813       
     814        let _date = new Date();
     815        this._setRDFValue(resource, "timeChanged", _date.getTime());
    807816       
    808817//      Log.debug("updateRDF add " + resource.ValueUTF8 + " at position " + position);
Note: See TracChangeset for help on using the changeset viewer.