Got the documentation for add_processor http://webpy.org/docs/0.3/api/#web.application
On Jan 16, 12:09 am, Dexter <[email protected]> wrote: > Yeah exactly ... thats where I reached and was stuck ... coz I could > not understand when that specific piece of code (read function > _processor) is called ... > > ******************************************************************************************************************** > class Session(utils.ThreadedDict): > def __init__(self, app, store, initializer=None): > self.__dict__['store'] = store > self.__dict__['_initializer'] = initializer > self.__dict__['_last_cleanup_time'] = 0 > self.__dict__['_config'] = > utils.storage(web.config.session_parameters) > > if app: > app.add_processor(self._processor) > <<<<<<<<----------------------- > > def _processor(self, handler): > """Application processor to setup session for every request""" > self._cleanup() > self._load() > ******************************************************************************************************************** > > In the piece of code above finally the > app.add_processor(self._processor) comes into picture (shown with > <<<<<<---------) and every page that google returns when u search for > app.add_processor has been removed from github (although cached is > available). What exactly does it do ? When is this _processor > called .... > > Thanks > PK > > On Jan 15, 11:43 pm, Branko Vukeliæ <[email protected]> wrote: > > > On Sat, Jan 15, 2011 at 7:40 PM, Dexter <[email protected]> wrote: > > > gr8 ... actually could not locate the piece of code in sessions.py > > > which would trigger the session.clean() function and actually clear > > > the session > > >https://github.com/webpy/webpy/blob/master/web/session.py#L54 > > > -- > > Branko Vukelic > > > [email protected]http://www.brankovukelic.com/ -- You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/webpy?hl=en.
