Package platecom :: Package utils :: Package browser :: Module base :: Class BaseView
[hide private]
[frames] | no frames]

Class BaseView

source code

object --+
         |
        BaseView

So this mixin fixes some issues with doing zope3 in zope2
for views specifically it puts a debug attribute on the request
which some view machinery checks for secondly it lookups the
user locale, and attaches it as an attribute on the request where
the i10n widget machinery expects to find it.

Instance Methods [hide private]
 
setupEnvironment(self, request)
Si request.debug no existe lo definimos como False
source code
 
setupLocale(self, request)
Slightly adapted from zope.publisher.http.HTTPRequest.setupLocale...
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

setupLocale(self, request)

source code 
Slightly adapted from zope.publisher.http.HTTPRequest.setupLocale
Nos aseguramos que exista el request.locale