Revision e11ddf13 lib/rapi/connector.py

b/lib/rapi/connector.py
46 46
  """Map resource to method.
47 47

  
48 48
  """
49
  def __init__(self, connector=CONNECTOR):
49
  def __init__(self, connector=None):
50 50
    """Resource mapper constructor.
51 51

  
52 52
    @param connector: a dictionary, mapping method name with URL path regexp
53 53

  
54 54
    """
55
    if connector is None:
56
      connector = CONNECTOR
55 57
    self._connector = connector
56 58

  
57 59
  def getController(self, uri):

Also available in: Unified diff