Hi Julian, thank you for your response.

Hi all,

I have two questions regarding properties. Please, see 
intermixed.

Thanks

Andreas


On 28 Oct 2002 at 17:47, Julian Reschke wrote:

> > From: Andreas Probst [mailto:andpro77@;gmx.net]
> > Sent: Monday, October 28, 2002 5:36 PM
> > To: Slide Users Mailing List
> > Subject: Content-Language
> > 
> > 
> > Hi all,
> > 
> > the WebDAV spec defines the property DAV:getcontentlanguage. 
> > It's a live one, so I can't change it via Proppatch. 
> 
> Not true. "live" doesn't necessarily mean "read-only".

OK, I've just realized that I had misunderstood this. But 
unfortunatly this won't help me very much.

Class org.apache.slide.content.NodeProperty has the following 
four methods:
.isComputed()
.isDeadProperty()
.isLiveProperty()
.isProtected()

Which combinations are supposed to indicate that a property is 
writable?


>  
> > I would like the user to set the language so other users know, 
> > which language a resource contains. How can I make use of 
> > DAV:getcontentlanguage? Or should I just define another dead 
> > property which holds this information?
> 
> No. You should use DAV:getcontentlanguage.
> 

I tried it and observed the following:

- I can proppath DAV:getcontentlanguage to a collection resource, where it hasn't been 
set yet. It will accept even Strings like "deutsch", although it should be "de" (see 
3.10 Language Tags in RFC2068-Http/1.1)

- I can't change DAV:getcontentlanguage on a collection resource, where it has already 
been set

- I can't change DAV:getcontentlanguage on a file resource. It's set to "en" by 
default during create.

- Slide client 1.0.16 will say succeeded after Proppatch, although it did not succeed 
(Tomcat log says Rollback Transaction and it isn't changed)

- Slide client 2 (CVS 19 Oct) will exit to Windows command line without any message


So what should I do to set the content language of a resource?

Andreas

> Julian
> 
> --
> <green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760 


--
To unsubscribe, e-mail:   <mailto:slide-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:slide-user-help@;jakarta.apache.org>

Reply via email to