web2py.gluon.rewrite.MapUrlIn

Package web2py :: Package gluon :: Module rewrite :: Class MapUrlIn |
[hide private]
[frames] | no frames]

# Class MapUrlIn

source code

    object --+
             |
            MapUrlIn

logic for mapping incoming URLs

Instance Methods | [hide private]
__init__(self, request=global_settings.applications_parent, env=global_settings.applications_parent) initialize a map-in object | source code
map_prefix(self) strip path prefix, if present in its entirety | source code
map_app(self) determine application name | source code
map_root_static(self) handle root-static files (no hyphen mapping) | source code
map_language(self) handle language (no hyphen mapping) | source code
map_controller(self) identify controller | source code
map_static(self) handle static files file_match but no hyphen mapping | source code
map_function(self) handle function.extension | source code
validate_args(self) check args against validation pattern | source code
update_request(self) update request from self build env.request_uri make lower-case versions of http headers in env | source code
pop_arg_if(self, dopop) conditionally remove first arg and return new first arg | source code
Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__str__`

Properties | [hide private]
| arg0 return first arg
| harg0 return first arg with optional hyphen mapping
Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, request=global_settings.applications_parent, env=global_settings.applications_parent) (Constructor) | source code
initialize a map-in object Overrides: object.__init__

### map_root_static(self) | source code
handle root-static files (no hyphen mapping) a root-static file is one whose incoming URL expects it to be at the root, typically robots.txt & favicon.ico

Property Details | [hide private]

  ### arg0 return first arg Get Method: unreachable.arg0(self) - return first arg Set Method:
      global_settings.applications_parent
  - PyMySQL: A pure-Python drop-in replacement for MySQLdb. Delete Method:
      global_settings.applications_parent
- PyMySQL: A pure-Python drop-in replacement for MySQLdb.

  ### harg0 return first arg with optional hyphen mapping Get Method: unreachable.harg0(self) - return first arg with optional hyphen mapping Set Method:
      global_settings.applications_parent
  - PyMySQL: A pure-Python drop-in replacement for MySQLdb. Delete Method:
      global_settings.applications_parent
- PyMySQL: A pure-Python drop-in replacement for MySQLdb.