Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 29th, 2004, 10:54 PM
rebbit rebbit is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 84 rebbit User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 7 m
Reputation Power: 10
templated documents

Hey all, I am looking for a way to generate documents using a template. For example, the user enters some data, like a name, number, salary, etc and fill in a few checkboxes. I'm not really sure how I would generate the visual features, like the checkboxes with ticks in them, etc.

Would the easiest way be to do this as a CGI script, and make use of the HTML elements and also the ability to print from the browser? Or does anyone know of a better way to do it?

Cheers for any help.

Reply With Quote
  #2  
Old March 29th, 2004, 11:38 PM
TheBlackMamba TheBlackMamba is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 25 TheBlackMamba User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to TheBlackMamba Send a message via Yahoo to TheBlackMamba
Lightbulb

I would use Quixote. It uses PTL and should be easy for what you want to do.
Quixote
I've never used it, but it sounds simple if you know HTML.

Reply With Quote
  #3  
Old March 30th, 2004, 01:43 AM
Johie Johie is offline
Python/RDF Freak
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 14 Johie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Johie
For cgi I used the jonpy module .

For generating webpages I used the Cheetah Template Engine .

hope you can use this.
greetings,
johan

Reply With Quote
  #4  
Old March 30th, 2004, 02:06 AM
DevCoach DevCoach is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2004
Location: London, England
Posts: 1,585 DevCoach User rank is General 6th Grade (Above 100000 Reputation Level)DevCoach User rank is General 6th Grade (Above 100000 Reputation Level)DevCoach User rank is General 6th Grade (Above 100000 Reputation Level)DevCoach User rank is General 6th Grade (Above 100000 Reputation Level)DevCoach User rank is General 6th Grade (Above 100000 Reputation Level)DevCoach User rank is General 6th Grade (Above 100000 Reputation Level)DevCoach User rank is General 6th Grade (Above 100000 Reputation Level)DevCoach User rank is General 6th Grade (Above 100000 Reputation Level)DevCoach User rank is General 6th Grade (Above 100000 Reputation Level)DevCoach User rank is General 6th Grade (Above 100000 Reputation Level)DevCoach User rank is General 6th Grade (Above 100000 Reputation Level)DevCoach User rank is General 6th Grade (Above 100000 Reputation Level)DevCoach User rank is General 6th Grade (Above 100000 Reputation Level)DevCoach User rank is General 6th Grade (Above 100000 Reputation Level)DevCoach User rank is General 6th Grade (Above 100000 Reputation Level)DevCoach User rank is General 6th Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Weeks 4 Days 2 h 58 m 23 sec
Reputation Power: 1372
There are a wealth of python solutions for both server-side programming and templating - see http://www.python.org/cgi-bin/moinmoin/WebProgramming for a fairly complete list.

For the templating part, I too have used Cheetah and found it to be very powerful and flexible. The abilitity to create an inheritance heirarchy of templates puts it head and shoulders ahead of any other solution that I know about in Python, Java, PHP or Perl. (Although there are many alternatives that I have not seen, so it may not be totally unique in this).

IMHO one problem that Python has as a server-side solution is that there are TOO MANY alternatives to choose from - If you are using PHP or ASP then it is all built into the language, so you do not have a choice. If you are using Java then Servlets and JSP are the official standard, etc. However in Python there is 'more than one way to do it', so there is a dazzling array of alternatives each with its own community of users, but none of them big enough on their own to make an impact against the other languages. The dominant solution in Python is Zope and Plone, which are great if you are creating a large, complex site with many contributors, but is way too complex if you just want a handful of dynamic pages in an otherwise static site. There was some discussion on comp.lang.python a while ago about merging some of the alternatives and creating a standard solution, but I don't know if anyone is taking it further.

Dave - The Developers' Coach

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > templated documents

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap