about
search
post article
Documentation
Mailing Lists
Bug Tracking
Development
Installation
Upgrading
Download
admin
rdf
main
|
Date format
|
Posted by on Sunday November 20, @08:38PM
from the dept.
I need to change the date format of articles to the local format. In index_html works fine, but when I try to use it in showSearchResults, I got an error message.
Is it possible to use my date format in showSearchResults?
Thanks,
Petra
Error Type: TypeError Error Value: object of type 'string' is not callable
Traceback (innermost last):
File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 150, in publish_module
File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 114, in publish
File /usr/lib/zope/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook (Object: blueheaven)
File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 98, in publish
File /usr/lib/zope/lib/python/ZPublisher/mapply.py, line 88, in mapply (Object: search)
File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 39, in call_object (Object: search)
File /usr/lib/zope/lib/python/Products/Squishdot/SquishSite.py, line 755, in search (Object: blueheaven)
File /usr/lib/zope/lib/python/OFS/DTMLMethod.py, line 127, in __call__ (Object: showSearchResults)
File /usr/lib/zope/lib/python/DocumentTemplate/DT_String.py, line 473, in __call__ (Object: showSearchResults)
File /usr/lib/zope/lib/python/DocumentTemplate/DT_In.py, line 695, in renderwob (Object: search_results)
File /usr/lib/zope/lib/python/DocumentTemplate/DT_Util.py, line 159, in eval (Object: date_posted('%Y.%m.%d. %H:%M')) (Info: date_posted)
File , line 2, in f
TypeError: (see above)
Important Stuff:
-
Note: Fields with bold titles are required.
- Please try to keep posts on topic.
- Try to reply to other people comments instead of starting new threads,
- Read other people's messages before posting your own to avoid simply duplicating what has already been said.
- Use a clear subject that describes what your message is about.
- Please do not post offtopic, inflammatory, inappropriate, illegal, or offensive comments. Repeat offenders will be sanctioned.
|