[viewvc-dev] ViewVC 1.1

"Phil Pinkerton" <[email protected]>
Newsgroups gmane.comp.version-control.cvs.viewcvs.devel
Message-ID <c70ccaee0803181324x783a8a33s28ea0ddbba74b7be__18018.9634244472$1205871975$gmane$org@mail.gmail.com>
A couple small item so far.

in the viewvc-1.1-dev-2008318 dist viewvc.conf file the second "forbidden =
"  should be "forbiddenre = " ??

now I am not a python programmer but in
viewvc-1.1-dev-2008318/lib/vcauth/forbiddenre/__init__.py
I think "forbidden" needs to be "forbiddenre"  ??

snip...
class ViewVCAuthorizer(vcauth.GenericViewVCAuthorizer):
  """A simple regular-expression-based authorizer."""
  def __init__(self, username, params={}):
    forbidden = params.get('forbidden', '')
    ^^^^^^^^^^                      ^^^^^^^^^^
    self.forbidden = map(lambda x: _split_regexp(string.strip(x)),
          ^^^^^^^^^^
                         filter(None, string.split(forbidden, ',')))
                                                         ^^^^^^^^^^

OR perhaps it is not that logical ?

Anyway in ViewVC 1.0.5  forbiddenre works when configured in the
viewvc.conffile  but not in ViewVC
1.1 (yet)

Phil



-- 
" The fundamental principle here is that the justification for a physical
concept lies exclusively in its clear an unambiguous relation to the facts
it can be experienced" AE
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.