Changeset 84

Show
Ignore:
Timestamp:
2009年05月13日 12时47分00秒 (3 years ago)
Author:
jiangx
Message:

Fixed #13: add wildcard auth path support to pysvnmanager.

Location:
trunk/pysvnmanager/model
Files:
1 added
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pysvnmanager/model/svnauthz.py

    r55 r84  
    2828import sys 
    2929import os 
     30import my_fnmatch 
    3031import StringIO 
    3132import logging 
     
    10331034            if i.path == path: 
    10341035                return i 
     1036        # OSSXP hacked subversion supports wildcard characters as module path. 
     1037        for i in self.module_list: 
     1038            if '*' in i.path or '?' in i.path: 
     1039                if my_fnmatch.fnmatch(path, i.path): 
     1040                    return i 
    10351041        return None 
    10361042