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 __repr__
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 2755 of file web.py.


Constructor & Destructor Documentation

def tornado.web.URLSpec.__init__ (   self,
  pattern,
  handler,
  kwargs = None,
  name = None 
)
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``: `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 2757 of file web.py.


Member Function Documentation

Definition at line 2789 of file web.py.

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 2794 of file web.py.

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

Definition at line 2822 of file web.py.


Member Data Documentation

Definition at line 2770 of file web.py.

Definition at line 2770 of file web.py.

Definition at line 2770 of file web.py.

Definition at line 2770 of file web.py.

Definition at line 2770 of file web.py.


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


rosbridge_server
Author(s): Jonathan Mace
autogenerated on Thu Aug 27 2015 14:50:40