473,587 Members | 2,227 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Preferred standalone TAL module?

The web-based Python software I've written thus far lacks a consistent
approach to generating output. After reading Graham Fawcett's
endorsement of Zope Template Pages in the recent web programming
thread, I looked up TAL and found it to be quite nice. Going through
recent postings on Google it seems SimpleTAL is the standalone TAL
module in most active usage and development just now, would the
community concur or suggest alternatives?

Here's the post I'm referencing:
http://groups.google.com/gr*********...m%20&lr=&hl=en

I'm also motivated by the web programming thread's underlying message
of seeking "industrial strength" solutions that work in many domains
using existing tools, so that I spend more time coding and less time
"shopping" for modules. TAL seems a good way to do that (I'm most
certainly not ready to take the plunge into Zope). Any comments there?

Fahd Khan
Jul 18 '05 #1
3 1510
On Mon, 25 Aug 2003 15:19:52 -0700, Fahd Khan wrote:
Going through
recent postings on Google it seems SimpleTAL is the standalone TAL
module in most active usage and development just now, would the
community concur or suggest alternatives?


Here's another standalone TAL:

http://savannah.nongnu.org/projects/opental/

but I'm not sure how active it is, and it doesn't seem to support TALES
and METAL.

Van

Jul 18 '05 #2
Ah I hadn't realized that when people spoke of ZPT they were referring
to a specific package, rather I thought they meant Zope itself. This
will be a good opportunity to see how my current templates and scripts
work when I drop in another implementation.

And seeing as my current application involves analyzing SAS output in
Python, I'll take this as a sign. ;)

Kevin Smith <Ke*********@sa s.com> wrote in message news:<20******* *************@b raeburn.themorg ue.org>...
http://zpt.sf.net uses the actual Zope sources with just a thin wrapper
around them to make them work outside the Zope framework. They aren't
currently in development simply because they are up to date with the
Zope source.

In <5d************ **************@ posting.google. com> Fahd Khan wrote:
The web-based Python software I've written thus far lacks a consistent
approach to generating output. After reading Graham Fawcett's
endorsement of Zope Template Pages in the recent web programming
thread, I looked up TAL and found it to be quite nice. Going through
recent postings on Google it seems SimpleTAL is the standalone TAL
module in most active usage and development just now, would the
community concur or suggest alternatives?

Here's the post I'm referencing:
http://groups.google.com/groups?safe...8&oe=UTF-8&as_
um************* *************** *****@posting.g oogle.com%20&lr =&hl=en

I'm also motivated by the web programming thread's underlying message
of seeking "industrial strength" solutions that work in many domains
using existing tools, so that I spend more time coding and less time
"shopping" for modules. TAL seems a good way to do that (I'm most
certainly not ready to take the plunge into Zope). Any comments there?

Fahd Khan

Jul 18 '05 #3
sp**********@ho tmail.com (Fahd Khan) wrote:
I'm also motivated by the web programming thread's underlying message
of seeking "industrial strength" solutions that work in many domains
using existing tools, so that I spend more time coding and less time
"shopping" for modules. TAL seems a good way to do that (I'm most
certainly not ready to take the plunge into Zope). Any comments there?


My TAL-fu seasoning consists of a whopping two websites, the first
done in Zope (ZPT) and the second with mod_python (SimpleTAL). But
with little reservation, I don't plan on looking much further than TAL
in the near future:

* Plain HTML is editor highlighting- and indenting-friendly.
* Both the logic and presentation code is concise. Ex: Lists are
rendered with a single "embedded" tal:repeat='ite m list' attribute.
(I'd like to see how thin I can make code that glues
database-enforced values to a TAL page.)
* Eliminating HTML<->template translation overhead speeds up everything
considerably.
* TAL works with Zope & Python (all 31 flavors), PHP, and Java -
though this is more for the PHP and Java crowd since I can't imagine
a Python slithering backward.

Counterpoint? In an attempt to sound objective, here's one: debugging
*may be* a pain. However, in practice it seems that the easier a
templating system is to debug, the less it looks like a (um,)
template. TAL at least encourages an implicit "print" based solution -
with a template full of dummy text and images, it's rather obvious
where errors in logic are occurring (with the obligatory edit, save,
refresh). Meanwhile, finding an error in template processing is as
hard as tracking down the missing '}' in any other language.

Things I woke up to on this last project: comp.lang.pytho n threads
dealing with web programming are often filled with tips like
"just do it yourself" or "it's somewhere in Webware or Twisted" - all
of which sound(ed) pretty vacuous to a PHP person (moi) looking for
session_start() or $_GET equivalents. Turns out that it was easier
to dismiss those tips than to put real thought into what "doing it
myself" really meant. Looking up from the relatively low-level
mod_python, I don't see any difficulty now in quitting PHP cold turkey
(excepting webhost variety). And by confining mod_python-specific code
to a couple of files, it'll be easy to port the bulk of this or any
future website to Webware (when growth warrants the investment in
education) or Twisted (when faced with the inevitable transition from
website to real-time multiplayer extravaganza).

Best to you,
the poiboy
Jul 18 '05 #4

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

Similar topics

4
1705
by: Ian deSouza | last post by:
I have 15+ years of experience programming. 8 from the Unix C++ world, and 7 in the Java (mainly windows) world. I can't get the following program to create an executable in Microsoft Visual C++. #include <iostream.h> int main(int argc, char* argv) { cout << "hello" << endl; }
7
1138
by: Chris | last post by:
hello, I have a small module which only contains some utility functions. when running this standalone I would like to show the module docs and each function docs, as if doing import M help(M) I came up with the following but I reckon there is a much simpler way?
0
309
by: tt | last post by:
My mod_python 3.1.4 installation works when Apache 2.0.54 is run in standalone mode (apache -k standalone) but refuses to operate when run as a service (apache -k restart). Logs yield the usual and well-known "make_obcallback: could not import mod_python.apache" error. I have tried PYTHONHOME, LoadFile python24.dll (2.4.2) with no result. ...
41
3397
by: Mountain Bikn' Guy | last post by:
What is the current preferred way to save user preferences in dotnet? Is the registry the right place to do this? Can anyone recommend a good article (or book) for this topic? Thanks.
2
2354
by: JohnR | last post by:
Hi all. In my program I try to handle all obvious potential errors with structured error handling (try-catch) block. What I would like to do is have an 'overall' error handler that would gracefully catch any unanticipated errors. I created a startup module to place my overall error handling for my "real" program which is Form1. My...
2
2312
by: James Stroud | last post by:
Hello All, I am trying to create a semi-standalone with the vendor python on OS X 10.4 (python 2.3.5). I tried to include some packages with both --packages from the command and the 'packages' option in setup.py. While the packages were nicely included in the application bundle in both cases (at Contents/Resources/lib/python2.3/), they were...
7
11654
by: tah | last post by:
Hey, Can someone please clarify, confirm, or set me straight on my understanding of a standalone="yes" attribute in the xml version element? I assume it means that the xml document containing it is standalone, and does not refer to any external document to define types. In other words, it doesn't use an external dtd to validate any types -...
0
1018
by: Christopher Stawarz | last post by:
Does anyone know of a standalone module for parsing and generating HTTP messages? I'm looking for something that will take a string and return a convenient message object, and vice versa. All the Python HTTP parsing code I've seen is either intimately bound to the corresponding socket I/O operations (e.g. httplib, httplib2, BaseHTTPServer)...
5
21424
by: Erik Hahn | last post by:
I'm looking for a standalone Javascript interpreter like the ones of Perl and Python. Does such a thing exist for Linux? Thanks in advance. -Erik -- hackerkey://v4sw5hw2ln3pr5ck0ma2u7LwXm4l7Gi2e2t4b7Ken4/7a16s0r1p-5.62/-6.56g5OR
0
7843
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8339
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
8220
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...
0
6619
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...
1
5712
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5392
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...
0
3840
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...
0
3872
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1452
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.