[Osr-101] On the semantics of checkout and checkin

Thomas Comiotto comiotto at rcfmedia.ch
Wed Aug 23 01:11:38 CEST 2006


Hi Andi

Am 22.08.2006 um 23:29 schrieb Andreas Wuest:
>
> <introspection>
>   <resource url="file:///afs/wyona.org/document.xml" name="Some 
> Document">
>     <save url="file:///afs/wyona.org/document.xml"/>
>   </resource>
> </introspection>
>
> might not cut it, because when opening that file for editing, the 
> client does not know that he has to open it for writing, instead of 
> simply loading it.
>
> <introspection>
>   <resource url="file:///afs/wyona.org/document.xml" name="Some 
> Document">
>     <edit>
>       <open url="file:///afs/wyona.org/document.xml" method="WRITE"/>
>       <save url="file:///afs/wyona.org/document.xml"/>
>     </edit>
>   </resource>
> </introspection>
>

Hehe, this means <open method="WRITE"/> instead of <checkout/>? And 
<close/> instead of <checkin/> ? If so we would also have to add some 
corresponding exception types for that. If not, checkout/checkin covers 
it all - hurray, we finally have found a meaninful usecase for them.


> makes it clear for the client what to do. If you want to open it for 
> simple reading, you can still use the url provided by the resource 
> element, but without a special method.
>
> If you people think I might be badly off on a tangent, please say so. 
> I just wanted to reinforce that it might be a good idea to make things 
> very explicit, instead of cramming meaning into URLs which are 
> attached to some parent element like resource.

Sure. But then again, IIRC till yesterday ev we didn't even make 
<resource/> explicit..

--
Bests
Thomas


>
> -- 
> Kind regards,
> Andi
>
> _______________________________________________
> Osr-101 mailing list
> Osr-101 at wyona.org
> http://wyona.com/cgi-bin/mailman/listinfo/osr-101
>




More information about the Osr-101 mailing list