Dear ,
I dont know whether my process_request() is being called or not?
Can you inform me please, how can i verify that my middleware's
process_request() is called ?

On Nov 12, 4:42 am, Steve Holden <[EMAIL PROTECTED]> wrote:
> ershadul wrote:
> > Dear all,
> > please consider the following code-block:
>
> > class SQLAlchemySessionMiddleware(object):
> >     """
> >     This class instantiates a sqlalchemy session and destroys
> >     """
> >     def process_request(self, request):
> >         request.db_session = session()
> >         return None
>
> The last statement in your method is completely redundant, and I'd
> suggest you remove it.
>
> How are you verifying that your middleware's "process_request()" method
> is being called?
> [...]
>
> regards
>  Steve
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to