Hello Soh Kam,
Thanks for your email.
Soh Kam Yung wrote:
>Michael,
>
>I am using rest2web to generate my static off-line website. Nice piece of work.
>
>
>
Thank you.
>But I recently updated my rest2web library from your site via
>subversion and I got an error using the print_crumbs() function in my
>template.
>
>I was using calling it in my template as:
>
>print_crumbs(breadcrumbs, '<a href="%s">%s</a>', ">")
>
>This looks correct according to functions.txt. But when I checked
>functions.py, I found that print_crumbs() now needs an extra
>parameter.
>
>so I change my code to:
>
>print_crumbs(breadcrumbs, "%s", '<a href="%s">%s</a>', ">")
>
>to make things work.
>
>I guess people just call print_crumbs(breadcrumbs), which is why
>nobody noticed the problem.
>
>Looks like functions.txt needs to be updated.
>
>
>
Yep. See http://www.voidspace.org.uk/python/weblog/index.shtml#e115bugfixes
Admittedly this doesn't actually explain the changes. If you look in the
file ``rest2web/functions.py`` the docstring in there is up to date.
The next step to me releasing 0.4.0 is to update the documentation - I'm
restructuring them quite a lot to make them more accessible. This
includes writing a tutorial.
Anyway - those are just my excuses :-)
I'm sorry you had problems. If you have any questions then feel free to ask.
All the best,
Fuzzyman
http://www.voidspace.org.uk/python
>Regards,
>Kam-Yung
>--
>Soh Kam Yung
>my del.icio.us: (http://del.icio.us/SohKamYung)
>
>
>
|