Revision c41eea6e lib/rapi/connector.py

b/lib/rapi/connector.py
43 43
  def __init__(self, connector=CONNECTOR):
44 44
    """Resource mapper constructor.
45 45

  
46
    Args:
47
      con: a dictionary, mapping method name with URL path regexp
46
    @param connector: a dictionary, mapping method name with URL path regexp
48 47

  
49 48
    """
50 49
    self._connector = connector
......
52 51
  def getController(self, uri):
53 52
    """Find method for a given URI.
54 53

  
55
    Args:
56
      uri: string with URI
54
    @param uri: string with URI
57 55

  
58
    Returns:
59
      None if no method is found or a tuple containing the following fields:
60
        methd: name of method mapped to URI
61
        items: a list of variable intems in the path
62
        args: a dictionary with additional parameters from URL
56
    @return: None if no method is found or a tuple containing
57
        the following fields:
58
            - method: name of method mapped to URI
59
            - items: a list of variable intems in the path
60
            - args: a dictionary with additional parameters from URL
63 61

  
64 62
    """
65 63
    if '?' in uri:
......
100 98
  def GET(self):
101 99
    """Show the list of mapped resources.
102 100

  
103
    Returns:
104
      A dictionary with 'name' and 'uri' keys for each of them.
101
    @return: a dictionary with 'name' and 'uri' keys for each of them.
105 102

  
106 103
    """
107 104
    root_pattern = re.compile('^R_([a-zA-Z0-9]+)$')

Also available in: Unified diff