/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/util.py

  • Committer: Michael Hudson
  • Date: 2008-06-11 05:05:43 UTC
  • mfrom: (128.6.75 zpt-templating)
  • Revision ID: michael.hudson@canonical.com-20080611050543-o8vel8ydossw3wkc
merge zpt-templating.
this gets rid of all the kid templates and replaces them with zope page
templates and adds glue to render them under turbogears with the simpletal
library.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18
18
#
19
19
 
20
 
from elementtree import ElementTree as ET
 
20
try:
 
21
    from xml.etree import ElementTree as ET
 
22
except ImportError:
 
23
    from elementtree import ElementTree as ET
21
24
 
22
25
import base64
23
26
import cgi
103
106
 
104
107
 
105
108
def approximatedate(date):
 
109
    #FIXME: Returns an object instead of a string
106
110
    return _wrap_with_date_time_title(date, _approximatedate(date))
107
111
 
108
112