raise Exception, "__getitem__ without slicing not supported"

22 views
Skip to first unread message

F.Zinnatulin

unread,
Nov 23, 2016, 1:11:31 PM11/23/16
to pylons-discuss
Hey all, i have the following problem(It can be seen in the picture):


testWebhelpersLib.py:

#!/usr/bin/env python
import webhelpers.paginate
url_for_page = PageURL("/articles/2013", {"page": "3"})

What am I doing wrong? Thanks...

Oliver

unread,
Nov 23, 2016, 1:20:55 PM11/23/16
to pylons-...@googlegroups.com
It is, what it says: SyntaxError == WebHelpers is not Python 3 compatible

This library is 5 years old and probably not maintained anymore...

On 23.11.2016 19:10, F.Zinnatulin wrote:
> Hey all, i have the following problem(It can be seen in the picture):
>
> <https://lh3.googleusercontent.com/-q1Z8mq5LeKo/WDXaeXIYYlI/AAAAAAAAAE4/JuO_mGwT5sk-JVX1lJe20krCq1Eo9CmxwCLcB/s1600/1.png>
>
>
> testWebhelpersLib.py:
>
> #!/usr/bin/env python
> import webhelpers.paginate
> url_for_page = PageURL("/articles/2013", {"page": "3"})
>
> What am I doing wrong? Thanks...
>
> --
> You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> pylons-discus...@googlegroups.com <mailto:pylons-discus...@googlegroups.com>.
> To post to this group, send email to pylons-...@googlegroups.com <mailto:pylons-...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pylons-discuss/7e8d6fa1-f733-4164-a35e-e969824bf46f%40googlegroups.com
> <https://groups.google.com/d/msgid/pylons-discuss/7e8d6fa1-f733-4164-a35e-e969824bf46f%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

signature.asc

Mike Orr

unread,
Nov 23, 2016, 9:41:53 PM11/23/16
to pylons-...@googlegroups.com
WebHelpers2 is Python 3 compatible. WebHelpers remains for older
applications. Paginate and some other large components have been spun
off to separate distributions.
> To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discus...@googlegroups.com.
> To post to this group, send email to pylons-...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/cd204f57-4673-f1bd-0132-8cec2939406d%40gmail.com.
> For more options, visit https://groups.google.com/d/optout.



--
Mike Orr <slugg...@gmail.com>
Reply all
Reply to author
Forward
0 new messages