Issue #8 resolved

bootstrap/app UserWarnings

Nenad Damnjanović
created an issue

Hi,

It's probably me, doing something wrong since this is my first python project and first python framework that I'm working with, so please be kind to my noobishness =).

Got everything installed via setuptools, even wheezy.template. Everything is located @ /usr/local/lib/python3.3/dist-packages (so you can also see the py version I'm running without virtual env).

At first I thought that I could be probably missing something that the framework depends on, but then I really can't recall seeing anything possibly needed within any other python documentation, plus the UserWarnings are making me think that I just need to supply some options, somewhere.

Following the tutorial, both hello.py and hello_test.py are exacly the same as written in tutorials, thus the bootstrap_defaults recieves only this "url_mapping=all_urls" (even tried providing it with arguments such as "render_template"). I just ran hello_test.py from the terminal, and this is what I got:

/usr/local/lib/python3.3/dist-packages/wheezy.http-0.1.297-py3.3.egg/wheezy/http/application.py:56: UserWarning: Bootstrap: render_template is not defined (m(options) for m in middleware) if m is not None] /usr/local/lib/python3.3/dist-packages/wheezy.web-0.1.373-py3.3.egg/wheezy/web/middleware/bootstrap.py:31: UserWarning: Ticket: digestmod is not specified, fallback to sha1 options['ticket'] = Ticket()

Thank you in advance.

Comments (3)

  1. Andriy Kornatskyy repo owner

    When you run demos/hello/hello.py application you get 3 warnings:

    1. "Bootstrap: render_template is not defined". The framework is template engine agnostic that means you can use any template you like, at the same time it offers integration with Mako, Jinja2, Tenjin and wheezy.template. Since the hello.py application doesn't require any template engine for what it does that is why you see this warning.

    2. "Ticket: digestmod is not specified, fallback to sha1". This has deal with security. This algorithm is used to sign security token used for authorization. Since it was not defined the system warns you that it will use default one.

    3. "Ticket: cypher not available". Same as above. In this case it determines which encryption algorithm to use. It means the security token used for authorization will not be encrypted.

    See complete example here.

    How to quick start is here.

  2. Log in to comment