Thank you. This fix will make it in 1.92.2 since we 1.92.* should
support 2.4, but 1.93.* will no longer run on 2.4.
We had a thread about it and not one person spoke in favor of
supporting 2.4.

On Feb 19, 10:18 pm, Sven1011 <sven...@gmail.com> wrote:
> I have downloaded the latest version of web2py and found that someone
> had like the 'all' of python 2.5.
>
> But I wanted to run the framework on centos 5, hence I stuck with 2.4.
> After some work I found two main problem files:
> ./applications/admin/views/default/design.html
> ./applications/admin/views/default/plugin.html
>
> both files are almost the same and contain the following:
> -------------8<-------------------------
>       while path!=file_path:
>           if len(file_path)>=len(path) and all([v==file_path[k] for
> k,v in enumerate(path)]):
>               path.append(file_path[len(path)])
>               thispath='static__'+'__'.join(path)
> ------------->8-------------------------
>
> if replaced with:
> -------------8<-------------------------
>       while path!=file_path:
>           idx = 0
>           while idx < len(path) and idx < len(file_path) and
> (path[idx] == file_path[idx]):
>               idx += 1
>               pass
>           if (idx >= len(path)):
>               path.append (file_path[idx])
>               thispath='static__'+'__'.join(path)
>
> ------------->8-------------------------
>
> web2py works again in my environment. There are other areas where some
> had already made the efford to get web2py back to supprt python 2.4,
> so I don't know if there is anyone else interested in this fix, but it
> is not easy to understand the sense of what is the goal of this code,
> so may be there is someone.
>
> I can at least now start to explore the possibilities of this
> framework.

Reply via email to