On Thursday 29 May 2008 15:02, [EMAIL PROTECTED] wrote: > Author: batosai > Date: 2008-05-29 14:02:33 +0000 (Thu, 29 May 2008) > New Revision: 20133 > > Modified: > trunk/apps/WoT/src/plugins/WoT/Identity.java > trunk/apps/WoT/src/plugins/WoT/IdentityInserter.java > Log: > Increment edition number after insert.
If you're inserting as a USK, you need to get the edition number from FCP. If
you're inserting as an SSK you need to handle collisions.
>
> Modified: trunk/apps/WoT/src/plugins/WoT/Identity.java
> ===================================================================
> --- trunk/apps/WoT/src/plugins/WoT/Identity.java 2008-05-29 12:54:19 UTC
(rev 20132)
> +++ trunk/apps/WoT/src/plugins/WoT/Identity.java 2008-05-29 14:02:33 UTC
(rev 20133)
> @@ -93,4 +93,12 @@
> this.publishTrustList = publishTrustList;
> }
>
> + public int getEdition() {
> + return edition;
> + }
> +
> + public void setEdition(int edition) {
> + this.edition = edition;
> + }
> +
> }
>
> Modified: trunk/apps/WoT/src/plugins/WoT/IdentityInserter.java
> ===================================================================
> --- trunk/apps/WoT/src/plugins/WoT/IdentityInserter.java 2008-05-29
> 12:54:19
UTC (rev 20132)
> +++ trunk/apps/WoT/src/plugins/WoT/IdentityInserter.java 2008-05-29
> 14:02:33
UTC (rev 20133)
> @@ -101,6 +101,9 @@
> clientPut = new
ClientPutDiskDir(identity.getFullInsertURI(), "WoTinserter",
exportFile.getParent());
> fcp.sendMessage(clientPut);
> //TODO Cleanly handle errors. ATM, we don't even listen
> to them !
> +
> + identity.setEdition(identity.getEdition() + 1);
> + db.store(identity);
> }
> catch (Exception e) {
> System.out.println("Export failed !");
>
> _______________________________________________
> cvs mailing list
> [EMAIL PROTECTED]
> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs
>
>
pgpQWs2ge4w6w.pgp
Description: PGP signature
_______________________________________________ Devl mailing list [email protected] http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
