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=None, env=None)
Initializes a map-in object
source code
 
map_prefix(self)
Strips path prefix, if present in its entirety
source code
 
map_app(self)
Determines application name
source code
 
map_root_static(self)
Handles root-static files (no hyphen mapping)
source code
 
map_language(self)
Handles language (no hyphen mapping)
source code
 
map_controller(self)
Identifies controller
source code
 
map_static(self)
Handles static files file_match but no hyphen mapping
source code
 
map_function(self)
Handles function.extension
source code
 
validate_args(self)
Checks args against validation pattern
source code
 
sluggify(self) source code
 
update_request(self)
Updates request from self Builds env.request_uri Makes lower-case versions of http headers in env
source code
 
pop_arg_if(self, dopop)
Conditionally removes first arg and returns new first arg
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]
  arg0
Returns first arg
  harg0
Returns first arg with optional hyphen mapping

Inherited from object: __class__

Method Details [hide private]

__init__(self, request=None, env=None)
(Constructor)

source code 

Initializes a map-in object

Overrides: object.__init__

map_root_static(self)

source code 

Handles 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

Returns first arg

Get Method:
unreachable.arg0(self) - Returns first arg

harg0

Returns first arg with optional hyphen mapping

Get Method:
unreachable.harg0(self) - Returns first arg with optional hyphen mapping