[Tutor] Python and Web Pages?
I have a couple programs/scripts that I want to write that need to be web-based. Can Python (and a little HTML) accomplish this? Or are other languages like PHP, or Perl better suited? A little more detail: One project is to make a web page that users login to with a name and password, choose from a list of "canned" directory structure (ie. how many subdirectories, top-level name, maybe permissions, etc), hit a "GO" button and then the directories are made. Another example is a web-based form that users interface with a mySQL database. Simple additions/changes/deletions. Basic stuff. Thanks, Paul ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] pyopenssl - extracting email certificates information
Given a raw email I've been able to extract the cryptographic signature (in encoded or decoded format) into a string. I would like to like to use the pyopenssl crypto module (http://pyopenssl.sourceforge.net/pyOpenSSL.html/openssl.html) to further extract things like the Signing Authority and the DN subject. So far the "object orientating" part of python is something I haven't fully grasped yet so I don't know how to load my certificate string into the pyopenssl objects so that I can apply its methods. It's not pretty, but what I have so far... import os import sys import re import base64 f = open("test.mail", "r") contents = f.read() r1 = re.compile('MI.{70}') r2 = re.compile('') s1 = r1.search(contents) a = int(s1.start()) s2 = r2.search(contents, a) b = int(s2.end()) hash = contents[a:b] encoded = "begin-base64 644 signature.out\n" + hash + "\n" decoded = base64.decodestring(encoded) f.close() ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] Easiest way to display HTML
I have a collection of python scripts that are written to be run from the command prompt. I now want to write the output (tables mostly) to a webpage using cron or as a cgi script. I've read about most web frameworks out there but many seem to be more than what I'm looking for. The closest I've seen is HTMLgen, but that project seems to be very quiet. In short, what would you use to quickly mark up your scripts simple output? Thanks, ptader ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor