[IPOL discuss] Demo tutorial out of date
Miguel Colom
Miguel.Colom at cmla.ens-cachan.fr
Wed Mar 9 14:04:15 CET 2011
Hello everybody,
I've noticed that the demo tutorial at
http://tools.ipol.im/wiki/admin/service/demo/tutorial/ is out of date and
the explanations are not applicable to the downloadable Python code. I
downloaded the ipol_demo_release-20110308.tar.gz snapshot.
Some of the mistakes I've found are:
- It must be imported base_app and not base_demo, like the tutorial says.
- In the tutorial you can read "make test" in italic, but this is
confusing because it seems that the user must execute the "make test"
command or something similar.
- The tutorial says that "input.html" must be stored in the "input"
folder, but the right location is the "template" folder.
- The tutorial contains this line of code: "% for input_url input:". It's
missing an "in": "% for input_url in input:".
- In the validation section, there's the following line of code: "urld =
{". It makes no sense. In other places of the code some "]" characters
appear (they shouldn't) and a "\" to split lines is missing too.
- The get_check_key method and the corresponding decorator that the
tutorial refers to don't exist. It has to be changed to the @init_app
decorator. The way the parameters are passed seems to have changed.
Perhaps it'd be a good idea to maintain a minimal demo application that
evolves with the stable DL versions.
Best,
Miguel
More information about the discuss
mailing list