id	summary	reporter	owner	description	type	status	priority	component	severity	resolution	keywords	cc	release
10382	chart display error: TypeError: can't compare datetime.date to NoneType	falkb	anbo	Maybe it has something to do that other plugins force me to use the datetime format YYYY-MM-DD, and a few tickets don't have a datetime set. ProjectPlan seems only to support DD/MM/YYYY, MM/DD/YYYY and DD.MM.YYYY:\r\n\r\n{{{\r\n[2012-09-28 14:03:11,845 p3928:t3664] pprenderimpl.py:120 WARNING: getDateOfSegment: invalid literal for int() with base 10: '20/0' DD.MM.YYYY 20/02/2012\r\n[2012-09-28 14:03:11,845 p3928:t3664] ppticketsperuserday.py:214 ERROR: 'NoneType' object has no attribute 'isocalendar' 20/02/2012\r\n[2012-09-28 14:03:11,845 p3928:t3664] pprenderimpl.py:120 WARNING: getDateOfSegment: invalid literal for int() with base 10: '21/0' DD.MM.YYYY 21/02/2012\r\n[2012-09-28 14:03:11,845 p3928:t3664] ppticketsperuserday.py:214 ERROR: 'NoneType' object has no attribute 'isocalendar' 21/02/2012\r\n[2012-09-28 14:03:11,845 p3928:t3664] pprenderimpl.py:120 WARNING: getDateOfSegment: invalid literal for int() with base 10: '22/0' DD.MM.YYYY 22/02/2012\r\n[2012-09-28 14:03:11,845 p3928:t3664] ppticketsperuserday.py:214 ERROR: 'NoneType' object has no attribute 'isocalendar' 22/02/2012\r\n[2012-09-28 14:03:11,845 p3928:t3664] pprenderimpl.py:120 WARNING: getDateOfSegment: invalid literal for int() with base 10: '23/0' DD.MM.YYYY 23/02/2012\r\n[2012-09-28 14:03:11,845 p3928:t3664] ppticketsperuserday.py:214 ERROR: 'NoneType' object has no attribute 'isocalendar' 23/02/2012\r\n[2012-09-28 14:03:11,845 p3928:t3664] pprenderimpl.py:120 WARNING: getDateOfSegment: invalid literal for int() with base 10: '24/0' DD.MM.YYYY 24/02/2012\r\n[2012-09-28 14:03:11,845 p3928:t3664] ppticketsperuserday.py:214 ERROR: 'NoneType' object has no attribute 'isocalendar' 24/02/2012\r\n[2012-09-28 14:03:11,845 p3928:t3664] formatter.py:768 ERROR: Macro ProjectPlan(combine_filters=AND,filterlike_milestone=test1,segments=20/02/2012;21/02/2012;22/02/2012;23/02/2012;24/02/2012,renderer=tableticketperuserday,owners=a;b,cssclass=blacktable, useimages=Y, summary=chart,showaggregatedstate=T,statistics=elapsed_time/estimated_time) failed: \r\nTraceback (most recent call last):\r\n  File "build\\bdist.win32\\egg\\trac\\wiki\\formatter.py", line 765, in _macro_formatter\r\n    return macro.ensure_inline(macro.process(args))\r\n  File "build\\bdist.win32\\egg\\trac\\wiki\\formatter.py", line 356, in process\r\n    text = self.processor(text)\r\n  File "build\\bdist.win32\\egg\\trac\\wiki\\formatter.py", line 343, in _macro_processor\r\n    text)\r\n  File "build\\bdist.win32\\egg\\projectplan\\projectplan.py", line 348, in expand_macro\r\n    renderer.render( ts ),\r\n  File "build\\bdist.win32\\egg\\projectplan\\pprender.py", line 1169, in render\r\n    return self.concreteRenderer.render( ticketset )\r\n  File "build\\bdist.win32\\egg\\projectplan\\renderer\\ppticketsperuserday.py", line 256, in render\r\n    if  self.showAggregatedTicketState()  and  calendar[segment]['date'] < currentDate:\r\nTypeError: can't compare datetime.date to NoneType\r\n}}}\r\n\r\nWhat can I do?	defect	reopened	normal	ProjectPlanPlugin	normal				0.12
