[Cubicweb] Task cube error message

Fletcher, John P j.p.fletcher at aston.ac.uk
Mon Dec 6 07:35:29 CET 2010

Following from the previous message, I copied the intranet, event and task to /usr/share/cubicweb/cubes and located there I can build an instance of intranet.

When I attempt to create a task I get this message:

an error occurred
'unicode' object has no attribute 'strftime'
CubicWeb version: 3.10.5
Cube intranet version: 1.1.0
Cube book version: 0.6.0
Cube blog version: 1.9.0
Cube task version: 1.5.0
Cube person version: 1.7.0
Cube link version: 1.5.0
Cube folder version: 1.8.0
Cube tag version: 1.7.0
Cube event version: 1.3.0
Cube card version: 0.3.0
Cube file version: 1.10.0
Cube addressbook version: 1.6.0
Cube comment version: 1.7.1

Here is the traceback:

2010-12-06 06:33:15 - (cubicweb.web) ERROR: AttributeError("'unicode' object has no attribute 'strftime'",)
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/cubicweb/web/application.py", line 382, in main_publish
    result = controller.publish(rset=rset)
  File "/usr/lib/python2.6/dist-packages/cubicweb/web/views/basecontrollers.py", line 123, in publish
    rset=rset, view=view)
  File "/usr/lib/python2.6/dist-packages/cubicweb/cwvreg.py", line 378, in main_template
    res = obj.render(**kwargs)
  File "/usr/lib/python2.6/dist-packages/cubicweb/view.py", line 174, in render
  File "/usr/lib/python2.6/dist-packages/cubicweb/web/views/basetemplates.py", line 142, in call
  File "/usr/lib/python2.6/dist-packages/cubicweb/view.py", line 174, in render
  File "/usr/lib/python2.6/dist-packages/cubicweb/web/views/editforms.py", line 146, in call
  File "/usr/lib/python2.6/dist-packages/cubicweb/web/views/editforms.py", line 115, in render_form
  File "/usr/lib/python2.6/dist-packages/cubicweb/web/views/forms.py", line 184, in render
    renderer.render(w, self, kwargs)
  File "/usr/lib/python2.6/dist-packages/cubicweb/web/views/formrenderers.py", line 118, in render
    self.render_fields(_w, form, values)
  File "/usr/lib/python2.6/dist-packages/cubicweb/web/views/formrenderers.py", line 211, in render_fields
    self._render_fields(fields, w, form)
  File "/usr/lib/python2.6/dist-packages/cubicweb/web/views/formrenderers.py", line 257, in _render_fields
    w(field.render(form, self))
  File "/usr/lib/python2.6/dist-packages/cubicweb/web/formfields.py", line 378, in render
    return widget.render(form, self, renderer)
  File "/usr/lib/python2.6/dist-packages/cubicweb/web/formwidgets.py", line 177, in render
    return self._render(form, field, renderer)
  File "/usr/lib/python2.6/dist-packages/cubicweb/web/formwidgets.py", line 640, in _render
    datestr = req.format_date(value)
  File "/usr/lib/python2.6/dist-packages/cubicweb/req.py", line 327, in format_date
    return ustrftime(date, date_format)
  File "/usr/lib/pymodules/python2.6/logilab/common/date.py", line 274, in ustrftime
    return unicode(somedate.strftime(str(fmt)), encoding)
AttributeError: 'unicode' object has no attribute 'strftime'

More information about the Cubicweb mailing list