Discussion:
[bottlepy] Bottle on Python 2.0
Leif Oppermann
2014-11-29 11:53:27 UTC
Permalink
Hello everyone,

this is my first post in this group.

I selected Bottle as the web UI for my current hobby project on the
Commodore Amiga(!). I don't think I will need all of Bottle's features,
just serving some generated and templated pages via routes. The program is
already starting to work nicely on the command line and well as on the
(Bottle-powered) web interface on my Windows 7 development machine using
Python 2.7. But I am running into trouble on my target machine, as it only
has a stable Amiga Python version 2.0. I knew I would run into this sooner
or later, so here I am now.

Possible solutions for me would be to either a) update Amiga Python to the
version required by Bottle or b) get Bottle to work on Python 2.0. I have
made some tests in both directions. I have merged Amiga Python 2.0 and
Python 2.0.1 sources and compiled my own Amiga Python 2.0.1 from there.
This works, but doing so up to Python 2.7, or at least 2.5, will be _a lot_
of work, probably more than I could handle over the next year or so.

Therefore, I had a quick stab at trimming down Bottle (0.12.7) to work on
Python 2.0.

- I found some "if.. else.." constructs in functions tob(), touni() and
the tonat assignment. Easy fix.
- Then there is the routing-decorators. Given that they are syntactic
sugar, I reckon there wouldn't be any problem rephrasing that.
- But then I ran into about 15 yield statements. Since I don't have
experience using yields and generators, I thought it might be a good idea
to ask at this point, before digging deeper.

So how do you see my prospects of getting Bottle to work on Amiga Python
2.0?
Is there any blocking requirement that I didn't see so far?
Is there maybe an older version of Bottle that might work out of the box?
Is someone maybe willing to offer some advise and help me trimming?

Looking forward to your answers.

Many thanks for reading,
Leif
--
--
You are member of the "bottlepy" group at google groups.
See http://groups.google.de/group/bottlepy for mailing list options.
See http://bottlepy.org/ for news and documentation.

---
You received this message because you are subscribed to the Google Groups "bottlepy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bottlepy+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...