Package wtf :: Package app :: Package services :: Module static :: Class Controller
[hide private]
[frames] | no frames]

Class Controller

source code

object --+
         |
        Controller

Static delivery controller implementation
Instance Methods [hide private]
 
__init__(self, svc, resource, group)
Initialization
source code
 
__call__(self, request, response)
Actual controller implementation
source code

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

Instance Variables [hide private]
unicode _group
The regex group
list _resource
The resource list ([Resource, ...])
StaticService _svc
The service object
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, svc, resource, group)
(Constructor)

source code 
Initialization
Parameters:
  • svc (StaticService) - Service
  • resource (unicode) - Resource name
  • group (unicode) - Regex group
Overrides: object.__init__

__call__(self, request, response)
(Call operator)

source code 
Actual controller implementation
Decorators:
  • @Method('GET')