id,summary,reporter,owner,description,type,status,priority,component,severity,resolution,keywords,cc,release
1230,Changing 'Add hours to ticket' results in an error 'module object not callable',carsten.reimer@galileo-press.de,bobbysmith007,Hi_ \r\n\r\ntrying to use this very useful plugin I came across a little error wanting to add hours to a ticket. After submitting the form trac raised an error 'module object not callable'.\r\n\r\nObviously this is due to a little typo in the file ticket_daemon.py in line 9 (the last line in the following snippet).\r\n\r\n{{{\r\n#!python\r\nimport trac.util.datefmt\r\n\r\ndef identity(x):\r\n    return x;\r\n\r\nto_timestamp = trac.util.datefmt or identity;\r\n}}}\r\n\r\nAs you can see from the source code provided above there is an import of `trac.util.datefmt` which a few lines later is assigned to `to_timestamp`. But `trac.util.datefmt` is a module not a function so what is needed in line 9 is the following:\r\n\r\n`to_timestamp = trac.util.datefmt.to_timestamp or identity;`\r\n\r\nSo the hole snippet will be:\r\n\r\n{{{\r\n#!python\r\nimport trac.util.datefmt\r\n\r\ndef identity(x):\r\n    return x;\r\n\r\nto_timestamp = trac.util.datefmt.to_timestamp or identity;\r\n}}},defect,closed,normal,TimingAndEstimationPlugin,normal,fixed,,,0.11
