/loggerhead/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/loggerhead/trunk

« back to all changes in this revision

Viewing changes to loggerhead/zptsupport.py

  • Committer: Ubuntu One Auto Copilot
  • Author(s): Jelmer Vernooij
  • Date: 2023-02-01 10:33:17 UTC
  • mfrom: (543.1.1 main)
  • Revision ID: otto-copilot@canonical.com-20230201103317-35lisym8pqw1w8y9
Add support for 'python -m loggerhead'

Merged from https://code.launchpad.net/~jelmer/loggerhead/main/+merge/436644

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
"""Support for Zope Page Templates using the Chameleon library."""
17
17
 
18
18
import os
 
19
import pkg_resources
19
20
import re
20
21
 
21
 
import pkg_resources
22
22
from chameleon import PageTemplate
23
23
 
24
24
_zpt_cache = {}
60
60
 
61
61
    Template files must end in ".pt" and be in legitimate packages.
62
62
    Templates are automatically checked for changes and reloaded as
63
 
    necessary.
 
63
    neccessary.
64
64
    """
65
65
    divider = classname.rfind(".")
66
66
    if divider > -1: