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

Changelog

0.3.13

  • added ZEO connection interface, utility and tools

  • added “ztfy.utils.container” utility module

  • added a persistent utility to store ZEO connection settings

  • added “TextLine list” schema field and widget

  • added request and session cached properties

  • added Python 2.7 compatibility code and timeout parameter to XML-RPC protocol helper

  • changed request “data:” TAL namespace to basic HTTP request so it can be used in views called via JSON-RPC or XML-RPC

0.3.12

  • updated package source layout

0.3.11

  • added dotted decimal schema field, not handling locales :-/

0.3.10

  • upgraded for ztfy.jqueryui 0.6.0

  • added Color schema field and widget

  • added StringLine schema field

  • added “text:translate” TAL adapter

  • moved ITransactionManager adapter from ztfy.scheduler package

0.3.9

  • added HTTP client based on httplib2, handling authentication and proxies

0.3.8

  • corrected encodings vocabulary

0.3.7

  • added encodings vocabulary

0.3.6

  • corrected code and translations in MissingPrincipal class

  • added permissions on TextIndexNG index

0.3.5

  • re-add IList and IDict interfaces forgotten from bad merge :-(

0.3.4

  • better check for missing requests

0.3.3

  • Added “fanstatic:” TALES expression

0.3.2

  • Mark ztfy.utils.security functions and classes as deprecated

0.3.1

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

0.3

  • 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

0.2.1

  • Added ‘site.locateAndRegister’ facility function

  • Update ServerTimezoneUtility parent classes

0.2

  • Added ‘data’ namespace to access request data

0.1

  • 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.

Source Distribution

ztfy.utils-0.3.13.tar.gz (47.1 kB view details)

Uploaded Source

Built Distribution

ztfy.utils-0.3.13-py2.7.egg (136.5 kB view details)

Uploaded Egg

File details

Details for the file ztfy.utils-0.3.13.tar.gz.

File metadata

  • Download URL: ztfy.utils-0.3.13.tar.gz
  • Upload date:
  • Size: 47.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ztfy.utils-0.3.13.tar.gz
Algorithm Hash digest
SHA256 9beafcf0e40ed095b728affec4ffc9d30b9899c832f876fe7dba1b4519955fcc
MD5 c6b6cfb7a09b1843e81ba0f904074203
BLAKE2b-256 ec3c1083d0ec8860c11457536dc89015254ec41159462bb1d91798621b016b49

See more details on using hashes here.

File details

Details for the file ztfy.utils-0.3.13-py2.7.egg.

File metadata

File hashes

Hashes for ztfy.utils-0.3.13-py2.7.egg
Algorithm Hash digest
SHA256 ff5646fd7d40441b8a733a0cef3f12bd31c99a07e0ca06bfdb3f05834b7d3e89
MD5 222f7ec5e233a960367d40c1ed617d24
BLAKE2b-256 f2f0fba07533ac6ca008dbaa0b75a07eba01e119b38c195648c9f30baa76c327

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page