At this point I knew I had stayed up too late coding.

By greebsnarf
>>> viewlet_app
<function viewlet_app at 0xdc6c80>
>>> viewlet_app(app)
<function filter at 0xedb488>
>>> viewlet_app(app)(app)
<class 'footsie.viewlet.ViewletManager'>
>>> viewlet_app(app)(app)(app)
<footsie.viewlet.ViewletManager object at 0xf3c9d0>
>>> viewlet_app(app)(app)(app)(app)
*** TypeError: __call__() takes exactly 3 arguments (2 given)
>>> viewlet_app(app)(app)(app)(app, app)
*** AssertionError: URL fragments must start with / or http:// (you gave 'viewlets')
>>> try:
...   reduce(viewlet_app, [app] * 3)(app, app)?
... except AttributeError:
...   raise AttributeError("Something has no attribute 'app'")
... finally:
...   print app, app(app), (app(app, app), app)

Leave a Reply