473,785 Members | 2,424 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Web tool kit : pro - cons ?

I'm looking for a Web Tool kit to build web pages with the following
criteria (in priority order) :
- easy to use, develop (reuseability of code, ...)
- flexible (ideally should run with Python CGIHTTPServer and/or with Apache
(with or wihout mod_python)
- possibility to have load balancing and/or caching (for very high loaded
web pages)

I've founded lot of tools ...

I've read the doc of most of them, I've tested some of them.
But, is there anyone "experience d user" who can give the pro-cons for each
of those solutions ? (or propose an another)

Is there a site who list the main charateristics of each of those Web tool
kit ?

Thanks
Zope (www.zope.org),
SkunkWeb (http://skunkweb.sourceforge.net/),
Quixote (http://www.mems-exchange.org/software/quixote/),
Twisted (http://www.twistedmatrix.com/)
Albatross (http://www.object-craft.com.au/projects/albatross/)
Cherrypy (...)
pwo (...)
....

Jul 18 '05 #1
12 3035
vincent_delft wrote:
Is there a site who list the main charateristics of each of those Web tool
kit ?


Check out http://www.python.org/cgi-bin/moinmoin/WebProgramming

--Irmen de Jong

Jul 18 '05 #2
Irmen de Jong wrote:
vincent_delft wrote:
Is there a site who list the main charateristics of each of those Web
tool kit ?


Check out http://www.python.org/cgi-bin/moinmoin/WebProgramming

--Irmen de Jong

Waouuuww...

So many different tools ....

Can I get some "guidelines " ?
My needs are :
- Build pages via templates (easy to split content and layout)
- My pages will be defined with "boxes". I would like to have a tool that
can manage easely such "object".
- I will use PostgreSQL as backend.
- possibility to build very simple web site (<10 users) but big web sites
too ( > 1000 users). So I don't need a Apache/mod_Python, ... for small web
sites. CGIHTTPserver is enough. But CGIHTTPServer will not be able to
manage very high load.

Jul 18 '05 #3
vincent_delft wrote:
My needs are :
- Build pages via templates (easy to split content and layout)
ZPT seems to be a good option there.
- My pages will be defined with "boxes". I would like to have a tool that
can manage easely such "object".
You mean a WYSIWYG web development IDE for Python? I don't think there's
such a thing.
- I will use PostgreSQL as backend.


I'd suggest you use pyPgSQL or psycopg for this. I'm a little biased
towards pyPgSQL, being one of it's developers ;-)

-- Gerhard

Jul 18 '05 #4
Vincent,

You don't list Webware oddly enough. I have been using it with the
Cheetah templating engine. Works fine, with good support.

Python 9 White Paper on Webware
--------------------------------
http://www.python9.org/p9-cdrom/index.htm

Cheetah dev page
----------------
http://www.cheetahtemplate.org/

Cheers,

--Alan
vincent_delft <vi***********@ yahoo.com> wrote in message news:<3f******* **************@ reader0.news.sk ynet.be>...
I'm looking for a Web Tool kit to build web pages with the following
criteria (in priority order) :
- easy to use, develop (reuseability of code, ...)
- flexible (ideally should run with Python CGIHTTPServer and/or with Apache
(with or wihout mod_python)
- possibility to have load balancing and/or caching (for very high loaded
web pages)

I've founded lot of tools ...

I've read the doc of most of them, I've tested some of them.
But, is there anyone "experience d user" who can give the pro-cons for each
of those solutions ? (or propose an another)

Is there a site who list the main charateristics of each of those Web tool
kit ?

Thanks
Zope (www.zope.org),
SkunkWeb (http://skunkweb.sourceforge.net/),
Quixote (http://www.mems-exchange.org/software/quixote/),
Twisted (http://www.twistedmatrix.com/)
Albatross (http://www.object-craft.com.au/projects/albatross/)
Cherrypy (...)
pwo (...)
...

Jul 18 '05 #5
vincent_delft fed this fish to the penguins on Saturday 26 July 2003
04:01 pm:
- Build pages via templates (easy to split content and layout)
- My pages will be defined with "boxes". I would like to have a tool
that can manage easely such "object".
- I will use PostgreSQL as backend.
- possibility to build very simple web site (<10 users) but big web
sites too ( > 1000 users). So I don't need a Apache/mod_Python, ...
for small web sites. CGIHTTPserver is enough. But CGIHTTPServer will
not be able to manage very high load.
Have you considered Zope?

(And I am NOT an expert in it at all... Merely a dabbler when I can
find time)

-- =============== =============== =============== =============== == <
wl*****@ix.netc om.com | Wulfraed Dennis Lee Bieber KD6MOG <
wu******@dm.net | Bestiaria Support Staff <
=============== =============== =============== =============== == <
Bestiaria Home Page: http://www.beastie.dm.net/ <
Home Page: http://www.dm.net/~wulfraed/ <


Jul 18 '05 #6
On Sun, 2003-07-27 at 05:58, vincent_delft wrote:
- My pages will be defined with "boxes". I would like to have a tool
that can manage easely such "object".


You mean a WYSIWYG web development IDE for Python? I don't think there's
such a thing.

No. Each part of the web page will be "boxes". I would like to be very
flexible and display "dynamicall y" some selected boxes.
For example the same page (url) will not display the same boxes if you are
administrator, maintener or simple viewer.
An another example will be to have possibility to re-use existing boxes. If
I have a boxes displaying the last 5 news from Slashdot, I don't want to
re-write it each time I need a new bacground color (for example). My Idea
is to use those "boxes" like we use classes : if you need some modification
you subclass it on the rest remains the same.


You might want to look at Cheetah, where templates are mapped to Python
classes. This allows subclassing of templates, defining methods (e.g.,
a header method), and of course nesting templates.

Ian

Jul 18 '05 #7
> I've read the doc of most of them, I've tested some of them.
But, is there anyone "experience d user" who can give the pro-cons for each
of those solutions ? (or propose an another)


The problem is that most people are "experience d users" with only a few of
the frameworks.
In order to find out all the little caveats of a perticular framework, one
has to use it for quite a big project (I'd say at least 6 months).
I don't think any of us have developed such big projects with more than,
say, 2 or 3 python frameworks. (in my case, I've only used Zope and CherryPy
for "real" applications. I've only "played" with the other frameworks).
This is why it is hard to have one person make a comparison of all the
frameworks ...

Having said that, I think that CherryPy definitely meets your
requirements... (sorry, I couldn't help saying it :-)))

Remi. re**@cherrypy.o rg
----------------------
Specialized python hosting: http://www.python-hosting.com
CherryPy application server: http://www.cherrypy.org
Free CherryPy hosting: http://www.freecherrypy.org
----------------------
Jul 18 '05 #8
On Mon, 28 Jul 2003 10:59:05 +0100, "Remi Delon" <re**@cherrypy. org>
wrote:
Having said that, I think that CherryPy definitely meets your
requirements.. . (sorry, I couldn't help saying it :-)))


I second that. CherryPy is the Python framework that was the easiest
to grasp as a newbie.

Other frameworks that look similar to CherryPy (ie. URLs are actually
calls to classes and methods) are WebWare + Cheetah, Skunkweb. If
someone knows of others, I'm all ears :-)

JD.
Jul 18 '05 #9
David Jeske <je***@chat.net > wrote in message news:<ma******* *************** ************@py thon.org>...
If you are not wedded to Zope for your applications, you may want to
look at Clearsilver. (http://www.clearsilver.net) It is a very mature
system which was developed at eGroups.com, and today is in use on
high-performance sites such as Yahoo! Groups and
wunderground.co m. Clearsilver includes a full CGI kit which handles
form variables, cookies, etc. It also includes a PythonObject<->RDBMS
mapping system (MySQL only today, no pgsql yet), and a transparent
translation string extraction system. It is not a "server environment"
like Zope, and in fact you can use it inside of your server of choice
(Apache, Boa, IIS, Zope, etc).

I find ZPT's model for replacement hard to work with, because it tries
to fit into the xml document namespace. From the ZPT documentation
here:

http://www.zope.org/Documentation/Bo...urrent/ZPT.stx

This example:

<title tal:content="he re/title">Page Title</title>

Illustrates how ZPT is making it's "tag" (i.e. tal:content) fit in as
an attribute defined by a new XML namespace. The problem is, this
constrains where you can use template commands to construct the
document. Clearsilver uses a model more like PHP where the tags exist
as items outside of the XML document parsing. This has the drawback
that your template document is not a valid XML document, but it has
the advantage that you can put the tags anywhere.

For example, in clearsilver, you can construct URLS using sequences of
template commands, even looping. Here is a small example (whitespace
added for readability):

<a href="/url?
<?cs each:p=CGI.Para ms ?>
<?cs var:p.name ?>=<?cs var:p.value ?>&
<?cs /each ?>"
a_link</a>
I love Zope's page templates. I do have to admit that I worked at
Zope Corporation since before Zope was Principia, but am now out in
the wild stressful world on my own again. But I grew to *hate* the
above style of templating, which Zope's older model (DTML) follows.
I've been using DTML since early 1997 and when web applications were
still fairly simple, I think it was a nice system (DTML was also
simpler then and focused more on being a templating language than on
being a programming language, which is what made DTML particularly
painful on Zope in later years before ZPT).

I work with some very talented designers. It used to be that they
would give us (the developers) their designs and we'd rip them to
shreds and they could never touch them again. Because now they were
in little bits and pieces and stuffed full of tags-within-tags, with
silly things like 'standard_html_ header' and 'standard_html_ footer'
(never really fitting a technical definition of header once complex
designs enter the equation) making it very painful to apply what they
would thing were rudimentary design changes.

Not so with ZPT. It's not a holy grail, but it's pretty close. Most
of the time, the designers can tweak the site - even in production -
without upsetting the natural order of things. Given that they're
full time graphic designers (sortof a 'sibling' company. they also do
a lot of large volume print material, etc) and not programmers, this
is pretty impressive. They are smart enough to watch out for the
dynamic parts. But we've had very few issues since moving to it.

What I personally like about ZPT is the fact that it feels natural
within the HTML/XML environment. It may have taken some getting used
to initially, but I find it very natural. And it's extra nice because
I can work in smart text editors like XEmacs or BBEdit, or work in
GoLive (very nice when used with its WebDAV browser) and can view the
whole page - including the 'standard header/footer' (usually supplied
by a standard full page macro, which in itself is very easy to modify
and edit because it's a single full page and not broken up into chunks
like header/footer/sidebar - VERY nice. My life is so much better for
this fact alone!). Sometimes adding a dynamic element to a tag from
visual mode means just popping up the quick-tag editor and adding in a
TAL statement. Close the tag editor, and the page is still intact.

You can even do complex things like the following::

<tr tal:attributes= "class python:test(rep eat['item'].even(), 'even',
'odd')">
....
</tr>

and have visual editors, or even helpful hilighting editors (BBEdit,
XEmacs, etc) not be affected by it. Compared to::

<tr class="<!--#if even-->even<!--#else-->odd<!--#/if-->">

or this, if you only want the class attribute written on even rows
(and how we come up with the variable 'even' is being left to the
imagination here):

<tr <!--#if even-->class="even" <!--#/if-->>

most editors just die right here - especially visual ones. In TAL,
you could do:

<tr tal:attributes= "class python:test(rep eat['item'].even(), 'even',
nothing)">

and most editors would be fine. (Note: 'nothing' is that ZPT
equivalent of 'None'. The core components of ZPT (TAL, TALES, METAL)
were written as specs first, with the idea/hope that other programming
languages could implement them as well, hence 'nothing'. 'None' could
have been used in its place just as easily in this situation). Is it
more verbose? More typing? At times, yes. But there's a nice
explicit nature about it, and many old Zoper's have learned the hard
way that explicit is almost always better than implicit (DTML had so
many implicit actions going on that in the end - even after years of
use - there were always new surprises waiting in the wings. And
Radiohead says it best - 'no alarms and no surprises').

Anyways - this is just my personal experience. But I find that
(generally) with ZPT, I'm writing better HTML and have a more
maintainable web site. It's different, but I think it's a good thing.
I'm happy to get away from Server Side Include and Processing
Instruction style syntaxes.

To get back to your example::
<a href="/url?
<?cs each:p=CGI.Para ms ?>
<?cs var:p.name ?>=<?cs var:p.value ?>&
<?cs /each ?>"
a_link</a>

ZPT (at least in Zope) has a helpful module called ZTUtils that
contains a lot of nice helper functions for building query strings
(which I'm increasingly convinced should never be constructed by hand
unless absolutely necessary, due to issues with URL and/or HTML
quoting), hidden values, etc. Assuming that CGI.Params is a
dictionary/mapping, once could do:

<a tal:define="que ry python:modules['ZTUtils'].make_query(CGI .Params)"
tal:attributes= "href string:/url?${query}"a_link</a>


``make_query`` (which can also use keyword arguments) is extra nice
because it automatically URL quotes all of the values for the query
string. This is EXTRA EXTRA nice when passing full LDAP distinguished
names in a query string, for example.
No. Each part of the web page will be "boxes". I would like to be very
flexible and display "dynamicall y" some selected boxes.
For example the same page (url) will not display the same boxes if you are
administrator, maintener or simple viewer.


This should be pretty easy in most template systems worth their
weight.
An another example will be to have possibility to re-use existing boxes. If
I have a boxes displaying the last 5 news from Slashdot, I don't want to
re-write it each time I need a new bacground color (for example). My Idea
is to use those "boxes" like we use classes : if you need some modification
you subclass it on the rest remains the same.


Clearsilver has a macro definition facility for doing just this. You
can supply arguments to macros, and even call macros recursively. Here
is a simple example:

<?cs def:makelink(ur l,title,text) ?>
<a href="<?cs var:url ?>"
title="<?cs var:title ?>"
><?cs var:text ?></a>

<?cs /def ?>

<?cs call:makelink(" http://www.python.org" ,"Python.org website","Pytho n.org") ?>

The paramaters can be any expressions, including constructed strings,
or data from your dynamic CGI. For example:

<?cs call:makelink(" http://" + CGI.host + "/" + CGI.script,"tit le","link text") ?>

As always, there are lots of systems out there, and YMMV.


Macros do make life happy. :) Or at least, happier. ZPT macros
(METAL) do things a little differently, but I think it works out for
the best. To the best of my knowledge, ZPT compilation/rendering
occurs in two steps - first, macros are expanded (METAL statements are
executed) into the template like they were there in the template all
along, and then all of the TAL statements (including ones that were in
the macros) get executed. One thing this allows, when used in a
dynamic environment like Zope, is the ability to have the macros be
expanded at edit time (optionally, of course). When using a full-page
macro, you can add a new ZPT page, fill it in like this::

<html metal:use-macro="here/standard_templa te.pt/macros/page">
<body>
<div id="main" metal:fill-slot="body">
<h3>The body of my new page template</h3>
</div>
</body>
</html>

Turn on 'expand macros', and the whole macro 'page' defined in the
page template 'standard_templ ate.pt' gets expanded. Macros define
'slots' which clients of the macros can choose to fill in. Nicely, if
you don't fill a slot specified by the macro, its defaults are filled
in and you can see where the slots are by looking for the 'metal:slot'
attributes. The above mentioned macro might contain a slot called
'local_js' and put it on a <script> tag:

<script type="text/javascript" metal:slot="loc al_js"><!--
// local javascript for this page, if needed
--></script>

You can use it if desired, by changing 'metal:slot' to
'metal:fill-slot' and add Javascript to the head of the page - all
without requiring changing the header or having to have the page
broken up into statements like:

<!--#var early_head-->
<script type="text/javascript" ><!--
// my local javascript
--></script>
<!--#var close_head-->
<!--#var body_header-->
....
....
....

Which I've had to do and maintain so many times. I'm not sure when it
happened - but at some point, this all got to be unmanageable. It's
easy for situations like an intranet or basic web application where
you're in control, but when you're on the east coast dealing with a
west coast designer who dramatically changes layout every day - it
does grow untenable.

But I've long been of the personal opinion that HTML and code don't
mix. I felt that way ever since I started using CGI and wrote my own
little dynamic web system (pummel/pyml/avantpy) in '96 until I got
turned on to Bobo (ancestor and still-the-heart of Zope). ZPT lets me
see my templates as HTML, but still gives me the programmatic control
I need. It's better than the old days when I'd look at my templates
and see two conflicting languages that looked alike - an SGML-ish tag
based templating language inside the SGML tag based HTML language.
For some reason - using basic XML constructs (namespaced attributes)
works so much better (for me) than using one set of tags within
another set of tags.

I think that's all aided by how relatively clean and simple they've
managed to keep the core ZPT languages (TAL, METAL).

But, as always, mileage will definitely vary.

--
Jeffrey P Shell
http://toulouse.amber.org/

"Tied you up, placed in tube"
http://euc.cx/
Jul 18 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1798
by: F. GEIGER | last post by:
Hi all, I'm dev'ing a control app, that has as a part of it a window showing CAD-drawings. So I'd like to display drawings coming from DXF files. In the first place I'd start displaying rectangles and circles, i.e. simple shapes. Nevertheless, the goal is to scan DXF files for the shapes to be displayed. PythonCAD comes to my mind. But, alas, yet I did not succeed in installing
8
2592
by: ted | last post by:
How does the speed of the Scons build tool compare with Ant? Right now with out Ant builds take around an hour. Hoping to speed that up. TIA, Ted
13
7649
by: Atlas | last post by:
I've developed years ago a small business application (about ten tables, basic relationships, 10 forms, 3 reports a few queries) with Borland Paradox 7, most of it developed with wizards and little ObjectPAL coding. Old'n'crappy. Seriuosly thinking rewriting it from scratch using MS SQL server 2000 as the DB platform. Low on time.
5
7641
by: Fred | last post by:
Not much expertise on XSLT and trying to understand it's uses when creating apps in VS.NET? If I wanted flexibility on the UI (View aspect of M.V.C.): - How does it compare with creating business components that can be consumed by WebForms, WinForms, mobile devices, etc? Is it even fair to compare the such technologies? - How about for cases when you need to display dynamic elements on the form/grid (as compared to knowing data elements...
1
1497
by: andrew | last post by:
Hi, I'm a C++ newbie, so apologies for this rather basic question. I've searched for help and, while I understand the problem (that the outer class is not yet defined), I don't understand what the "correct" solution would be. I am trying to model lists much like in Lisp, using a "Cons" object to hold two pointers - one to an Element, and the other to a further Cons. Cons is a subclass of Element, so lists can be nested.
7
1307
by: adsheehan | last post by:
Hi, I am embedding Python with a C++ app and need to provide the Python world with access to objects & data with the C++ world. I am aware or SWIG, BOOST, SIP. Are there more? I welcome comments of the pros/cons of each and recommendations on when it appropriate to select one over the others.
6
2354
by: P Jones | last post by:
Hi, I support an enterprise web application (IE client) built in VB6, with about 200 classes, serving about 7000 users, running on 3 clustered servers. I need to incorporate web reporting for the first time, so I am interested in learning what web reporting options are out there, and the pros and cons of each. In general I need to generate reports with XML documents as inputs, and make them available to all web users. I am partial...
21
11216
by: EmJayEm | last post by:
Can someone tell me the Disadvantages/Cons of web services? Thanks, EmJ.
0
1896
by: jorge_martelanz | last post by:
I would like to receive experiences/ideas/recomendations/etc. from the community about commercial tools available to tune bufferpools in DB2 for z/OS I am aware of: - BPA4DB2 by ESAI - Buffer Pool Analyzer for z/OS by IBM - Buffer Pool Tool by Responsive systems - Pool advisor for DB2 by BMC Any experience on these tools? Pros/cons? Any other you know/use? Thanks in advance
0
10356
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10098
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9958
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8986
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5390
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4058
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3662
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2890
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.