You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Lutz Frommberger <lu...@informatik.uni-bremen.de> on 2005/07/28 10:48:33 UTC

WebSVN configuration: allowDownloads

Hi there,

I hope I can ask a question regarding WebSVN. I want to restrict the use
of the download option on some repositories. There is an option in the
config file:

---snip--- 
// To change the global option for individual repositories, uncomment 
// and replicate the required line below (replacing 'myrep' for the 
// name of the repository to be changed). 

$config->findRepository("myrep")->allowDownload(); 
---snap--- 

But I did not manage to find out what I have to replace "myrep" with.
Everything I tried up to now (Repository name, Path, with and without ")
failed and brought

Parse error: parse error, unexpected T_OBJECT_OPERATOR in 
/etc/websvn/config.inc on line 176

Can anyone give me a hint or an example what to put there?

regards,
-- 
Lutz Frommberger
SFB/TR 8 Spatial Cognition - Project R3-[Q-Shape]
Cognitive Systems Research Group, Universität Bremen
http://www.cosy.informatik.uni-bremen.de/staff/lutz/

Re: WebSVN configuration: allowDownloads

Posted by Ryan Schmidt <su...@ryandesign.com>.
On 28.07.2005, at 12:48, Lutz Frommberger wrote:

> I hope I can ask a question regarding WebSVN.

While some of us may have used WebSVN, it's not this list's focus, so  
it would be best in the future to ask such questions on a WebSVN- 
specific list:

http://websvn.tigris.org/servlets/ProjectMailingListList


> I want to restrict the use of the download option on some  
> repositories. There is an option in the config file:
>
> ---snip---
> // To change the global option for individual repositories, uncomment
> // and replicate the required line below (replacing 'myrep' for the
> // name of the repository to be changed).
>
> $config->findRepository("myrep")->allowDownload();
> ---snap---
>
> But I did not manage to find out what I have to replace "myrep" with.
> Everything I tried up to now (Repository name, Path, with and  
> without ")
> failed and brought
>
> Parse error: parse error, unexpected T_OBJECT_OPERATOR in
> /etc/websvn/config.inc on line 176

The syntax $instance->method()->method() is only available as of  
PHP5. The error you got would be produced if you used PHP4.

I can find no system requirements listed on their page or within the  
WebSVN package. Somehow I don't think they intended for it to require  
PHP5. Maybe you should bring this up on one of their lists and see  
what they say.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org