Back to index

moin  1.9.0~rc2
Public Member Functions | Public Attributes | Static Public Attributes Class Reference
Inheritance diagram for
Inheritance graph
Collaboration diagram for
Collaboration graph

List of all members.

Public Member Functions

def __init__
def to_python
def to_url

Public Attributes


Static Public Attributes

 is_greedy = False
int weight = 100

Detailed Description

This converter is the default converter and accepts any string but
only one one path segment.  Thus the string can not include a slash.

This is the default validator.



:param map: the :class:`Map`.
:param minlength: the minimum length of the string.  Must be greater
                  or equal 1.
:param maxlength: the maximum length of the string.
:param length: the exact length of the string.

Definition at line 754 of file

Constructor & Destructor Documentation

def (   self,
  minlength = 1,
  maxlength = None,
  length = None 

Definition at line 772 of file

00773     def __init__(self, map, minlength=1, maxlength=None, length=None):
00774         BaseConverter.__init__(self, map)
00775         if length is not None:
00776             length = '{%d}' % int(length)
00777         else:
00778             if maxlength is None:
00779                 maxlength = ''
00780             else:
00781                 maxlength = int(maxlength)
00782             length = '{%s,%s}' % (
00783                 int(minlength),
00784                 maxlength
00785             )
00786         self.regex = '[^/]' + length

Member Function Documentation

def (   self,
) [inherited]

Reimplemented in

Definition at line 747 of file

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

def (   self,
) [inherited]

Reimplemented in

Definition at line 750 of file

00751     def to_url(self, value):
00752         return url_quote(value,

Here is the call graph for this function:

Member Data Documentation

Reimplemented in

Definition at line 741 of file

Definition at line 745 of file

Reimplemented from

Definition at line 785 of file

Reimplemented in

Definition at line 742 of file

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