2010/10/3 Łukasz Rekucki <lreku...@gmail.com>:
> On 3 October 2010 06:12, Ian Lewis <ianmle...@gmail.com> wrote:
>> Flask seems to do it the callable singleton way:
>>
>> http://flask.pocoo.org/docs/patterns/lazyloading/
>>
> I never used Flask, so I might be missing something, but I don't see a
> singleton view instance here - just a proxy, that imports a function
> on first use. Although functions are singleton by their nature.

I'm not a flask expert either but under "Loading Late" there is a
LazyView which I believe is just a callable object.

And later under that he adds a LazyView instance to a url rule so I think it's
simply a "view is a callable" pattern.

-- 
Ian

http://www.ianlewis.org/

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-develop...@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to