Pylons applications

3 views
Skip to first unread message

Chris AtLee

unread,
Jul 4, 2007, 11:51:22 AM7/4/07
to pylons-...@googlegroups.com
Hello,

Is there any kind of effort underway to develop a suite of common web
applications in Pylons? I was just thinking it would be great to have
options for commonly used PHP apps out there, like a forum, wiki, blog
and photo gallery.

Cheers,
Chris

Mike Orr

unread,
Jul 4, 2007, 12:21:17 PM7/4/07
to pylons-...@googlegroups.com

There's a blog project; search the list for "blog".

A photo gallery would be a good idea. I actually need that for my own
site anyway. It should be embeddable in a larger application of
course.

--
Mike Orr <slugg...@gmail.com>

Chris AtLee

unread,
Jul 4, 2007, 1:04:39 PM7/4/07
to pylons-...@googlegroups.com
> There's a blog project; search the list for "blog".

AroundWord, right?

> A photo gallery would be a good idea. I actually need that for my own
> site anyway. It should be embeddable in a larger application of
> course.

Agreed, all these apps should be embeddable.

I was also wondering what makes a application play nice with others.
Common authentication is the first thing that pops into my head. I
suppose this is solved by using AuthKit? Another thing would be
easily referring to content across applications, like if I wanted to
link to a picture in my gallery from a blog post.

Ian Bicking

unread,
Jul 4, 2007, 1:10:54 PM7/4/07
to pylons-...@googlegroups.com

For lower-level stuff, you might want to check out microapps:
http://microapps.org/

Ideally those apps would be available with Paste Deploy, then whether
they are implemented in Pylons or not isn't too big of a deal. But most
of the ones that have been implemented aren't yet.

--
Ian Bicking | ia...@colorstudy.com | http://blog.ianbicking.org
| Write code, do good | http://topp.openplans.org/careers

Mike Orr

unread,
Jul 4, 2007, 1:49:53 PM7/4/07
to pylons-...@googlegroups.com
On 7/4/07, Ian Bicking <ia...@colorstudy.com> wrote:
>
> Chris AtLee wrote:
> > Hello,
> >
> > Is there any kind of effort underway to develop a suite of common web
> > applications in Pylons? I was just thinking it would be great to have
> > options for commonly used PHP apps out there, like a forum, wiki, blog
> > and photo gallery.
>
> For lower-level stuff, you might want to check out microapps:
> http://microapps.org/
>
> Ideally those apps would be available with Paste Deploy, then whether
> they are implemented in Pylons or not isn't too big of a deal. But most
> of the ones that have been implemented aren't yet.

Interesting site. And putting the authentication in a higher-level
middleware should just work. But there are a couple potential
problems:

1) I saw one app written in TurboGears. I'm not too excited about
installing the entire TG suite just for one app, but OK. But what if
this app depends on a different version of TG than another microapp
I'm using?

2) Logging. If you just want an Apache-style log, this can be done in
middleware. But if you're also logging application-specific things,
it has to be in the main app because I'm not sure if the Pylons
request and stuff is available to middleware. Either that or the main
app has to put stuff in the WSGI environ for the middleware to read on
the way out, and I'm not sure if that's an abuse of WSGI.

If the microapps can be used as Pylons controllers or within Pylons
controllers, problem (2) goes away. I guess if they're just WSGI
apps, that shouldn't be a problem.

--
Mike Orr <slugg...@gmail.com>

Chris AtLee

unread,
Jul 5, 2007, 11:35:10 AM7/5/07
to pylons-...@googlegroups.com
On 7/4/07, Mike Orr <slugg...@gmail.com> wrote:
> On 7/4/07, Ian Bicking <ia...@colorstudy.com> wrote:
> > Chris AtLee wrote:
> > > Hello,
> > >
> > > Is there any kind of effort underway to develop a suite of common web
> > > applications in Pylons? I was just thinking it would be great to have
> > > options for commonly used PHP apps out there, like a forum, wiki, blog
> > > and photo gallery.
> >
> > For lower-level stuff, you might want to check out microapps:
> > http://microapps.org/
> >
> > Ideally those apps would be available with Paste Deploy, then whether
> > they are implemented in Pylons or not isn't too big of a deal. But most
> > of the ones that have been implemented aren't yet.
>
> Interesting site. And putting the authentication in a higher-level
> middleware should just work. But there are a couple potential
> problems:

If you're going to be setting up more than one application initially
then you would probably be putting the authentication in some
containing middleware. But if you're just setting up a single
application, what happens then? I've run into this with software like
phpbb - the first thing installed on the site is phpbb which does its
own authentication / authorization. People use the forum for a while,
and you build up a base of users in phpbb's database. Then you want
to add a wiki, or a gallery, or something else that would benefit from
using the same users table...now what? Do you change the wiki /
gallery to use phpbb's database? Do you split out the authentication
information into a new database and modify phpbb?

For Pylons applications it needs to be simple to install and set up a
single application. It should set up any authentication mechanisms
that it needs, but those mechanisms should be flexible enough so that
future applications can use it.

Sorry for the rant, I just deal with this kind of stuff all the time
at work that uses a big jumble of php applications each with their own
idea about how to authenticate users.

> 1) I saw one app written in TurboGears. I'm not too excited about
> installing the entire TG suite just for one app, but OK. But what if
> this app depends on a different version of TG than another microapp
> I'm using?

Couldn't this be handled by setuptools? How self-contained is TG?

> 2) Logging. If you just want an Apache-style log, this can be done in
> middleware. But if you're also logging application-specific things,
> it has to be in the main app because I'm not sure if the Pylons
> request and stuff is available to middleware. Either that or the main
> app has to put stuff in the WSGI environ for the middleware to read on
> the way out, and I'm not sure if that's an abuse of WSGI.

I would just put a logging.Logger object in the WSGI environment and
let the apps write to it..but that may be a worse abuse of WSGI :P

Cheers,
Chris

Michael van Tellingen

unread,
Jul 6, 2007, 5:28:16 AM7/6/07
to pylons-...@googlegroups.com
On 7/4/07, Mike Orr <slugg...@gmail.com> wrote:
>

Hi,

I'm currently working on building a photo gallery in pylons. At this
point i have placed some code at http://code.google.com/p/pyllery/

It currently runs a separate thread to do all the image conversion and
supports generating flv files from quicktime movies.

If people want to help, please let me know.

Regards,
Michael van Tellingen

Reply all
Reply to author
Forward
0 new messages