* WGs marked with an * asterisk has had at least one new draft made available during the last 5 days

Pyht Tool

Pyht processes html files with embedded python processing directives.
Version: 0.30
Author:
About | About | Changelog | Code | Control | Todo | Download | | Copyright

0.30

  • Added getupload()

0.29

  • Added test for the presence of form data before iterating over its keys

0.28

  • Permitted "@" in form input
  • Added current directory (directory of .pyht file) to sys.path
  • Less error prone way of finding the name of the .pyht file we're running (that is, separating the pyht file part from additional path elements of the URL
  • Applying path element removal from 'urlname" and "urlpath" builtins, too.

0.27

  • Added sendmail(sender, recipient, subject, text) to the available functions.

0.26

  • Apache 2.0.x with the worker MPM (Multi-Processing Module) can stop reading output from a cgi-bin program (if the http socket is taken down?) which causes a broken pipe exception to be raised. Catch that and exit if it happens.
  • Added full script path to subject line in error-report mails, and refrain from sending mail when not running as cgi-bin - then it's better to show the error directly.

0.25

  • Added script failure reporting through mail, instead of on generated web page.

0.24

  • Refactoring and fixes to make pyht run as a command line program too; not only as a cgi-bin program.

0.23

  • Changed builtin filetime to return 0 on file not found. Added virtualinc() to use a path relative to DOCUMENT_ROOT. Fixed a bug in header handling. Added stripping of arguments from the script name.

0.22

  • Preparations for using pyht as a module, not cgi-script. Moved execglobals from the code executed when standalone. Made filetext() return an empty string when file not found.

0.21

  • Added convenience functions listdir() and filetext(). Moved a number of convenience functions from locals to globals. Commented out the caching - working out when the cache is out of date requires more sophistication than we've got now. Improved output of http headers vs. page content. Tweaked the untainting function.

0.20

  • If we're not run as a cgi-bin script, get args from the command line. Added cache debug comments.

0.19

  • Fixed the inline eval version to handle eval results which aren't strings. Added convenience functions filetime() and timestr()

0.18

  • Small convenience fixes

0.17

  • Added maybeinc() version of include()

0.16

  • Some refactoring. Added new function timestr(). Added html comments to the output showing the cache status.

0.15

  • Added caching in a .cache file. Cache is invalidated if any file in the .pyht file's directory is newer than the .cache file.

0.14

  • Added 'out' function which makes line indented to the base indentation of the python script

0.13

  • Added sandbox environment for execution of the embedded scripts.

0.12

  • Added code to discard initial blank lines before deciding on the start indentation of embedded python code.

0.11

  • Fixed a bug in incremental search for embedded code.

0.10

  • Initial version

Latest update: 2007-03-28 08:43 PDT - webmaster@tools.ietf.org