Welcome to Squishdot Websites Squishdot How-To Newbies
 about
 search
 post article
 Documentation
 Mailing Lists
 Bug Tracking
 Development
 Installation
 Upgrading
 Download
 admin
 rdf
 main


Date format
How-To Posted by Petra Aradi 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 <dtml-var "date_posted('%Y.%m.%d. %H:%M')"> 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 <string>, line 2, in f
TypeError: (see above)

Post Reply

Name
Email
Notify Notify me via email of responses to this message
Title
Comment
(Check those URLs! Don't forget the http://!)
Encoding
If none of the above mean anything to you, select 'Plain'!
Attachment
(You can attach a file to your reply which can then be retrieved by other readers.
Try to keep the file sizes below 500Kb in order to conserve network and server resources.)
Allowed HTML <B> <I> <P> <A> <LI> <OL> <UL> <EM> <BR> <TT> <HR> <STRONG> <BLOCKQUOTE> <DIV .*> <DIV> <P .*>
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.
  • Powered by Zope  Squishdot Powered
      "Any system that depends on reliability is unreliable." -- Nogg's Postulate
    All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest ©1999 Butch Landingin, ©2000-2002 Chris Withers.