Skip to main content

ZTFY utility functions and classes for Zope3

Project description

What is ztfy.utils ?

ztfy.utils is a set of classes and functions which can be used to handle many small operations.

Internal sub-packages include :
  • date : convert dates to unicode ISO format, parse ISO datetime, convert date to datetime
  • request : get current request, get request annotations, get and set request data via annotations
  • security : get unproxied value of a given object ; can be applied to lists or dicts
  • timezone : convert datetime to a given timezone ; provides a server default timezone utility
  • traversing : get object parents until a given interface is implemented
  • unicode : convert any text to unicode for easy storage
  • protocol : utility functions and modules for several nerwork protocols
  • catalog : TextIndexNG index for Zope catalog and hurry.query “Text” query item
  • text : simple text operations and text to HTML conversion
  • html : HTML parser and HTML to text converter
  • file : file upload data converter
  • tal : text and HTML conversions for use from within TAL

How to use ztfy.utils ?

A set of ztfy.utils usage are given as doctests in ztfy/utils/doctests/README.txt



  • better check for missing requests


  • Added “fanstatic:” TALES expression


  • Mark functions and classes as deprecated


  • Updated signature in ztfy.utils.catalog.index to match last hurry.query release


  • Switched to ZTK-1.1.2 and Python 2.6
  • Added “getAge” function in date module
  • Added session module and TALES adapter to get/set session values
  • Check None value in catalog.getObjectId(…) and catalog.getObject(…) methods


  • Added ‘site.locateAndRegister’ facility function
  • Update ServerTimezoneUtility parent classes


  • Added ‘data’ namespace to access request data


  • Initial release

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ztfy.utils, version 0.3.4
Filename, size File type Python version Upload date Hashes
Filename, size ztfy.utils-0.3.4-py2.6.egg (84.3 kB) File type Egg Python version 2.6 Upload date Hashes View hashes
Filename, size ztfy.utils-0.3.4.tar.gz (30.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page