Back to index

moin  1.9.0~rc2
Public Member Functions | Public Attributes | Static Public Attributes
MoinMoin.support.werkzeug.routing.AnyConverter Class Reference
Inheritance diagram for MoinMoin.support.werkzeug.routing.AnyConverter:
Inheritance graph
[legend]
Collaboration diagram for MoinMoin.support.werkzeug.routing.AnyConverter:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def to_python
def to_url

Public Attributes

 regex
 map

Static Public Attributes

 is_greedy = False
int weight = 100

Detailed Description

Matches one of the items provided.  Items can either be Python
identifiers or unicode strings::

    Rule('/<any(about, help, imprint, u"class"):page_name>')

:param map: the :class:`Map`.
:param items: this function accepts the possible items as positional
              arguments.

Definition at line 788 of file routing.py.


Constructor & Destructor Documentation

def MoinMoin.support.werkzeug.routing.AnyConverter.__init__ (   self,
  map,
  items 
)

Definition at line 799 of file routing.py.

00799 
00800     def __init__(self, map, *items):
00801         BaseConverter.__init__(self, map)
00802         self.regex = '(?:%s)' % '|'.join([re.escape(x) for x in items])
00803 


Member Function Documentation

def MoinMoin.support.werkzeug.routing.BaseConverter.to_python (   self,
  value 
) [inherited]

Reimplemented in MoinMoin.support.werkzeug.routing.NumberConverter.

Definition at line 747 of file routing.py.

00747 
00748     def to_python(self, value):
00749         return value

def MoinMoin.support.werkzeug.routing.BaseConverter.to_url (   self,
  value 
) [inherited]

Reimplemented in MoinMoin.support.werkzeug.routing.NumberConverter.

Definition at line 750 of file routing.py.

00750 
00751     def to_url(self, value):
00752         return url_quote(value, self.map.charset)
00753 

Here is the call graph for this function:


Member Data Documentation

Reimplemented in MoinMoin.support.werkzeug.routing.PathConverter.

Definition at line 741 of file routing.py.

Definition at line 745 of file routing.py.

Reimplemented from MoinMoin.support.werkzeug.routing.BaseConverter.

Definition at line 801 of file routing.py.

Reimplemented in MoinMoin.support.werkzeug.routing.PathConverter.

Definition at line 742 of file routing.py.


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