I don't know if it's what you mean (I think so), but, if we give this 
insert uri : 
USK at 
Hm8bpqp~ZZwlQ-8LkeTMaUnZ5azetIgjKR6Jl7kJSZ8,cQ5fjsF2ihIZ7pG3cExNLwnn~kiKgDtFoIxPplGIsN0,AQECAAE/Test/2/
and if the current edition is in fact 8, the insertion is done at the 
following uri :
USK at 
tkpnTUvdfGdNrN6Gqs~5mn4dU26suwAFV0R3Sv-7UL4,cQ5fjsF2ihIZ7pG3cExNLwnn~kiKgDtFoIxPplGIsN0,AQACAAE/Test/9

I use the jSite code for insertion, so, I think it should work fine.

Matthew Toseland a ?crit :
> It is possible for the node to choose a different edition number than the one 
> you specify if you insert as a USK. It will automatically skip editions that 
> are already occupied. Do you use this?
>
> On Wednesday 12 March 2008 06:06, dieppe at freenetproject.org wrote:
>   
>> Author: dieppe
>> Date: 2008-03-12 06:06:56 +0000 (Wed, 12 Mar 2008)
>> New Revision: 18483
>>
>> Modified:
>>    
>>     
> trunk/apps/thingamablog/src/net/sf/thingamablog/transport/FCPTransport.java
>   
>> Log:
>> In case the publish process fails, we revert the edition number.
>>
>>
>>
>> Modified: 
>>     
> trunk/apps/thingamablog/src/net/sf/thingamablog/transport/FCPTransport.java
>   
>> ===================================================================
>> --- 
>>     
> trunk/apps/thingamablog/src/net/sf/thingamablog/transport/FCPTransport.java   
> 2008-03-12 06:04:40 UTC (rev 18482)
>   
>> +++ 
>>     
> trunk/apps/thingamablog/src/net/sf/thingamablog/transport/FCPTransport.java   
> 2008-03-12 06:06:56 UTC (rev 18483)
>   
>> @@ -183,9 +183,11 @@
>>                  finished = success || "PutFailed".equals(messageName) || 
>>     
> messageName.endsWith("Error");
>   
>>              }            
>>          }
>> -        // If the publish has been made, we update the edition number to 
>>     
> the current edition
>   
>> +        // If the publish has been made, we update the edition number to 
>>     
> the current edition, otherwise, we revert it
>   
>>          if(finalURI != null){
>>              edition = 
>>     
> Integer.parseInt(finalURI.substring(finalURI.length()-1));
>   
>> +        } else {
>> +            edition--;
>>          }
>>          return success;
>>      }
>>
>> _______________________________________________
>> cvs mailing list
>> cvs at freenetproject.org
>> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs
>>
>>
>>     
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Devl mailing list
>> Devl at freenetproject.org
>> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl


Reply via email to