id	summary	reporter	owner	description	type	status	priority	component	severity	resolution	keywords	cc	release
3000	Search fails when the Wiki _and_ Doxygen has results for a keyword	mgerth@igd.fraunhofer.de	cboos	The problem is a "datetime.datetime <-> int comparision error" because:\r\n\r\n1. The default date-format of the ISearchSource is datetime[[BR]]\r\n\r\n2. DoxygenPlugin returns the filedate (ctime) as int.[[BR]]\r\n\r\n3. Trac compares both time-types to sort them, but fails because type datetime can not be compared with type int.[[BR]]\r\n\r\n\r\nHere are the patch instructions for doxygentrac.py using the trac function to_datetime:\r\n\r\n{{{\r\n...\r\nfrom trac.util.datefmt import to_timestamp, to_datetime, utc\r\n...\r\ndef get_search_results(self, req, keywords, filters):\r\n...\r\n      if os.path.isdir(path):\r\n                index = os.path.join(path, 'search.idx')\r\n                if os.path.exists(index):\r\n>>>>                creation = to_datetime(os.path.getctime(index))     <<<< \r\n                    for result in  self._search_in_documentation(doc, keywords):\r\n                        result['url'] =  req.href.doxygen(doc) + '/' \\\r\n                          \r\n...\r\n if os.path.exists(index):\r\n>>>>                creation = to_datetime(os.path.getctime(index))  <<<< \r\n                for result in self._search_in_documentation('', keywords):\r\n             \r\n}}}\r\n\r\n	defect	closed	normal	DoxygenPlugin	normal	fixed	doxygen search datetime		0.11
