Re: What is your favorite Python web framework?

2005-07-18 Thread Jeff Shell
Zope 3, far and away. There's great documentation, quite a few load
handling options (different types of caching and ZEO to distribute ZODB
caches to multiple machines). Zope 3 aggressively favors small
cooperating objects (Zope 2 was inheritance heavy, making
customization, extension, etc, a big chore). There are two books in
print already and it's quite mature already.

Don't discard Zope 3 becaue of what you've heard about Zope 2. Zope 3
is a very different animal.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Django Vs Rails

2005-09-14 Thread Jeff Shell
My opinion, as posted there, was pretty immediate and only going off of
surface values. I just saw in Django what I had seen too much of in my
own code. I've written similar things in Zope and Formulator that did
all sorts of fancy automatic 'admin screen' generation, DBMS CRUD
statements. I even applied those same tricks to LDAP with some success.
So some of what I saw with Django reminded me of code that I both loved
and hated - it made my data management work easy, but it was ugly and
hard to navigate and maintain, and I could never remember even my own
shortcuts and options of what to have in my nested dictionaries and
lists and tuples that defined all of these structures.

It was also an all-too-quick response in that I perceived, wrongly,
that Django was another Rails clone. I was quickly corrected on this,
and believe I posted a correction later. As I've said in some other
posts on my site - I don't really care much for the Python "Web
Frameworks" which go off and try to mimic the technology of the day.
I've been through competing with Perl, with Servlets, with J2EE, with
PHP/ASP, and now with Rails, and just about every implementation I've
seen of these has been underwhelming, to say the least. I myself am
guilty of writing an early WebObjects inspired toolkit back in '96.
Django is its own thing, and I give it credit for that. Some recent
changes to the Django model syntax make it more palatable to my tastes,
but I doubt that I'll personally be leaving Zope 2 or 3 for any of
these systems any time soon. Zope / Principia / Bobo have all served me
well for nearly a decade now, and Zope 3 makes ZODB based Zope
development so easy and powerful that I hope to never have need of an
ORM system again. These ORM tools like SQLObject and ActiveRecord still
seem best suited for writing applications from scratch. Ian Bicking and
Django people both have stated here that you can "conveniently generate
SQL/DDL to populate the DB". If that's the situation, an object
database like the ZODB or Durus may work just as well, without the
translation to SQL and back. ORM only gets interesting to me these days
when I have to map to to large scale pre-existing systems, and even
there I'm having better experiences with other styles of storage to
application data translation, validation, security, and management.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Looking for a database. Sugestions?

2005-09-15 Thread Jeff Shell
If it's embedded, is there any reason why it should be SQL? A solid
alternative could me MetaKit, which has Python bindings:

http://www.equi4.com/metakit/python.html

"""
Buzzwords - Metakit is an embeddable database which runs on Unix,
Windows, Macintosh, and other platforms. It lets you build applications
which store their data efficiently, in a portable way, and which will
not need a complex runtime installation. In terms of the data model,
Metakit takes the middle ground between RDBMS, OODBMS, and flat-file
databases - yet it is quite different from each of them.

Technology - Everything is stored variable-sized yet with efficient
positional row access. Changing an existing datafile structure is as
simple as re-opening it with that new structure. All changes are
transacted. You can mix and match software written in C++, Python, and
Tcl. Things can't get much more flexible...
"""

I've never tried MetaKit (most of my development has been against the
ZODB object database, or against RDBMS servers), but I've heard good
things about it.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Persistent python object and the Web

2005-04-21 Thread Jeff Shell
The ZODB (Zope's object database, which can be downloaded and installed
separately from Zope) and Durus (part of the Quixote family, I believe)
are both high quality persistent Python object stores that are used
heavily for web sites.

I've never used the ZODB outside of Zope, and haven't used Durus yet.
But there may be some examples written up about how to use them with
mod_python.

You *might* even be served by the built-in 'shelve' module.
http://docs.python.org/lib/module-shelve.html

-- 
http://mail.python.org/mailman/listinfo/python-list