Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
tornado.web.URLSpec Class Reference

List of all members.

Public Member Functions

def __init__
def reverse

Public Attributes

 handler_class
 kwargs
 name
 regex

Private Member Functions

def _find_groups

Private Attributes

 _group_count

Detailed Description

Specifies mappings between URLs and handlers.

Definition at line 1923 of file web.py.


Constructor & Destructor Documentation

def tornado.web.URLSpec.__init__ (   self,
  pattern,
  handler_class,
  kwargs = None,
  name = None 
)
Creates a URLSpec.

Parameters:

pattern: Regular expression to be matched.  Any groups in the regex
    will be passed in to the handler's get/post/etc methods as
    arguments.

handler_class: RequestHandler subclass to be invoked.

kwargs (optional): A dictionary of additional arguments to be passed
    to the handler's constructor.

name (optional): A name for this handler.  Used by
    Application.reverse_url.

Definition at line 1925 of file web.py.


Member Function Documentation

def tornado.web.URLSpec._find_groups (   self) [private]
Returns a tuple (reverse string, group count) for a url.

For example: Given the url pattern /([0-9]{4})/([a-z-]+)/, this method
would return ('/%s/%s/', 2).

Definition at line 1953 of file web.py.

def tornado.web.URLSpec.reverse (   self,
  args 
)

Definition at line 1981 of file web.py.


Member Data Documentation

Definition at line 1940 of file web.py.

Definition at line 1940 of file web.py.

Definition at line 1940 of file web.py.

Definition at line 1940 of file web.py.

Definition at line 1940 of file web.py.


The documentation for this class was generated from the following file:


rosbridge_server
Author(s): Jonathan Mace
autogenerated on Mon Oct 6 2014 06:58:15