[Tutor] Strange Question
Liam Clarke
ml.cyresse at gmail.com
Sun Apr 30 11:48:59 CEST 2006
Hi,
It's certainly doable in Python; but as Danny said, you'll want a
handle on Python before you launch into web frameworks.
However, Python's a pretty easy language to pick up and run with.Just
make sure you use a Python aware editor. Going by your email address,
I found Vim to be pretty good with Python, once I figured out how to
do folding. So much so, that I downloaded gVim for my windows box.
If you're an Emacs guru, then I'm sure you'll be fine. :-)
With regard to #7 -
7. The Python code (cgi script?) calls another application (server
resident) that performs processing on the graphics file.
You could actually do this within your Python code if you wanted, with
the Python Imaging Library - http://www.pythonware.com/products/pil/
You may already have a suitable external app in mind, but I thought
I'd mention it just in case.
With regards to Python web frameworks, Django and Turbogears are the
two front-runners, as Danny mentioned. Django is the more mature of
the two, but Turbogears is pretty good as well, both have helpful
Google Groups/mailing lists.
I'm not hugely experienced in Python, but I managed to get up and
running okay with both. It's easier to get Django working with Apache
than Turbogears. Turbogears uses the Kid templating language, but can
also use other templating languages like Cheetah. Turbogears is 4
separate packages combined, Cherrypy, SQLObject, Kid and Mochikit.
Beyond that, I'm not too sure. I'm playing with Django at the moment,
Turbogears 0.9 is still in alpha, last time I checked, which means a
bit of tweaking of conf files to get working with mod_python, if
you're familiar with Apache at all, and as I'm a Windows monkey, I
find it a bit daunting, so hence Django, as it plays nicely. :)
Good luck and I look forward to questions to this list. :)
Regards,
Liam Clarke
On 4/30/06, Danny Yoo <dyoo at hkn.eecs.berkeley.edu> wrote:
>
>
> > First, I think this is a wonderful list. I always see great advice and
> > great attitudes about helping.
> >
> > My post is not about evaluating code but instead trying to get a
> > reasonable judgment as to whether or not python is the best choice for
> > what I am trying to do. I have not learned Python yet. In point of
> > fact, I have not, as yet learned any programming language much to my
> > dismay.
> >
> > I post the process I need below.
> >
> > So, here goes the work flow I need to support on my job.
>
> [problem cut]
>
> > Does anyone see a problem with Python doing this?
>
> Hi Ralph,
>
> This should be perfectly doable in Python. The majority of the popular
> web frameworks out there aren't exactly designed for newcomers, so you'll
> want to learn a bit of Python before tackling this.
>
> But I think all of the subproblems here sound perfectly doable. For
> example, one of the subproblems here:
>
> 7. The Python code (cgi script?) calls another application (server
> resident) that performs processing on the graphics file.
>
> may be a combination of the 'subprocess' python module to drive the
> external application:
>
> http://www.python.org/doc/lib/module-subprocess.html
>
>
> Just as counterpoint: actually, any good language and envrionment should
> probably do the trick. Python is appropriate, but so are other languages
> and frameworks. (Caveat: I do have my doubts about Java + J2EE because
> that environment seems too focused on low-level details...)
>
> I've heard good things about Ruby and its "Ruby On Rails" web framework,
> so if you have the time, you may want to look at that too. So if you do
> take a look at another language, and decide it fits you better, that's
> perfectly fine, and we won't ostracise you. *grin*
>
> The particular kind of control flow you're describing --- a multistage web
> application --- is actually not too fun to do from scratch. Thankfully,
> other people have worked on this problem, so you'll want to stand on their
> shoulders. For example, I've heard very good things about Turbogears and
> Django for web development:
>
> http://www.turbogears.org/
>
> http://www.djangoproject.com/
>
> I have to admit that I have not used either of them yet, but if I starting
> another web project in Python, those will be the frameworks I'd seriously
> look at.
>
>
> Good luck to you!
> _______________________________________________
> Tutor maillist - Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
More information about the Tutor
mailing list