﻿ticket	summary	type	release	owner	status	created	modified	_description	_reporter
6910	UnknownTimeZoneError: '<trac.util.datefmt.LocalTimezone object at 0x89f954c>'	defect	0.11		new	2010-03-31T09:55:40+02:00	2015-04-23T20:56:52+02:00	"Hiya,

I'm using Trac 0.11.7rc1, with irclogs 0.3.

I am getting this error:
{{{
File ""/usr/lib/python2.5/site-packages/Trac-0.11.7rc1-py2.5.egg/trac/web/main.py"", line 450, in _dispatch_request
  dispatcher.dispatch(req)
File ""/usr/lib/python2.5/site-packages/Trac-0.11.7rc1-py2.5.egg/trac/web/main.py"", line 206, in dispatch
  resp = chosen_handler.process_request(req)
File ""build/bdist.linux-i686/egg/irclogs/web_ui.py"", line 160, in process_requestFile ""/usr/lib/python2.5/site-packages/pytz/__init__.py"", line 152, in timezone
  raise UnknownTimeZoneError(zone)
}}}

When I attempt to view a very simple log:

{{{
2010-03-27T13:04:17  <blah> hi everybody
2010-03-27T13:04:26  <bloo> I'm going to lunch
2010-03-27T13:04:33  <blah> see you later
2010-03-27T13:04:46  <blah> bloo eat something!!!!!!
2010-03-27T13:04:52  <blah> fu don't eat to much
2010-03-27T13:05:00  <bloo> bar.... boh fai tu :D
2010-03-27T13:05:34  * bloo prendo un panino
}}}

Here is the section in trac.ini:

{{{
[irclogs]
channel = #fubar
network = network
basepath = /var/trac/irclogs/ChannelLogger
navbutton = Fubar IRC Log
}}}

No idea what to do next. If you need more info, please let me know.

-=david=-"	dharrigan@…
7136	Support WikiFormatting and TracLinks	enhancement	0.11		new	2010-05-17T17:40:09+02:00	2015-04-23T20:56:52+02:00	"It would be cool if one could optionally turn on wiki formatting in the log view.

Especially when someone mentions a CamelCase word, a ticket number, a revision, etc. this could be converted into a link to the wiki or the ticket page, the source browser, or the appropriate [TracLinks TracLink]."	Thomas Moschny
10118	RPC support	task	0.11		new	2012-06-22T07:13:25+02:00	2020-05-06T01:54:53+02:00	Add RPC support using the XmlRpcPlugin. Support may be added for both pushing and querying the logs.	anonymous
7090	LocalTimezone' object has no attribute 'normalize' (user with 'default' timezone)	defect	0.11		new	2010-05-07T11:32:38+02:00	2015-04-23T20:56:52+02:00	"This is, in principle, the same problem as #3550 and #5791, '''but''' at a different source location, so no duplicate.

When a user with default timezone issues a search, this error is thrown:
{{{
Traceback (most recent call last):
  File ""/opt/trac/lib/python2.6/site-packages/Trac-0.11.7-py2.6.egg/trac/web/main.py"", line 450, in _dispatch_request
    dispatcher.dispatch(req)
  File ""/opt/trac/lib/python2.6/site-packages/Trac-0.11.7-py2.6.egg/trac/web/main.py"", line 206, in dispatch
    resp = chosen_handler.process_request(req)
  File ""/opt/trac/lib/python2.6/site-packages/Trac-0.11.7-py2.6.egg/trac/search/web_ui.py"", line 107, in process_request
    results += list(source.get_search_results(req, terms, filters))
  File ""build/bdist.linux-x86_64/egg/irclogs/search.py"", line 49, in get_search_results
    user_dt = tz.normalize(server_dt.astimezone(tz))
AttributeError: 'LocalTimezone' object has no attribute 'normalize'
}}}

As with the other tickets, a workaround is to set either the user's or trac's default timezone to a pytz (i.e. named) timezone."	Thomas Moschny
8375	Cannot set up beta version without errors	defect	0.12		new	2011-01-07T17:55:41+01:00	2015-04-23T21:14:37+02:00	"Instructions for configuring the beta version seem confusing. Default config makes reference to gozer but not to supy, although both are meant to be supplied.

I had 0.11 set up and working, but I need multiple channel support, so upgraded to the beta.

I currently have ""'''TypeError: not enough arguments for format string'''"" on trying to load trac. That's with this config:


{{{
[irclogs]
basepath = /var/lib/supybot/logs/ChannelLogger
channel = #livesim
indexer = builtin:///var/lib/trac/indexer/irclogs.idx?cache=true
navbutton = IRC Logs
show_msg_types = comment,action
provider = file
timezone = UTC
format = supy
paths = %%(channel).s%%Y%%m%%d.log
network = alitheg
}}}

If I change the paths to be minus the 's' (unless it's a special character which I've misunderstood), I get ""'''ValueError: unsupported format character 'm' (0x6d) at index 14'''""

I've even tried the example path of:

{{{
%%(channel)s/%%(channel)s-%%Y-%%m-%%d.log
}}}

but that just gives the original type error."	afrogamer@…
7084	[Patch] Search index updater script doesn't work	defect	0.11		new	2010-05-05T17:24:11+02:00	2015-04-23T20:56:52+02:00	"At least in our setup, where !SupyBot logs the channel contents to a new file each day, the `update-irc-search` script doesn't work properly. It throws a lot of IO errors, and creates subdirectories for each logfile within the irclogs.idx dir:

{{{
$ find /tmp/irclogs.idx
/tmp/irclogs.idx/#channel.20080805.log.idx
/tmp/irclogs.idx/#channel.20080805.log.idx/builtin.db
/tmp/irclogs.idx/#channel.20080805.log.idx/builtin.db/config
/tmp/irclogs.idx/#channel.20080805.log.idx/builtin.db/wordid
/tmp/irclogs.idx/#channel.20080805.log.idx/builtin.db/idword
/tmp/irclogs.idx/#channel.20080805.log.idx/builtin.db/attributes
/tmp/irclogs.idx/#channel.20080805.log.idx/builtin.db/uris
/tmp/irclogs.idx/#channel.20080805.log.idx/builtin.db/words
/tmp/irclogs.idx/#channel.20080804.log.idx
/tmp/irclogs.idx/#channel.20080804.log.idx/builtin.db
/tmp/irclogs.idx/#channel.20080804.log.idx/builtin.db/config
/tmp/irclogs.idx/#channel.20080804.log.idx/builtin.db/wordid
/tmp/irclogs.idx/#channel.20080804.log.idx/builtin.db/idword
/tmp/irclogs.idx/#channel.20080804.log.idx/builtin.db/attributes
/tmp/irclogs.idx/#channel.20080804.log.idx/builtin.db/uris
/tmp/irclogs.idx/#channel.20080804.log.idx/builtin.db/words
[...]
}}}

The attached patch replaces irclogs/console.py with a version that fixes the issue for us. The idea is of course stolen from the `parse_refactor` branch.
"	Thomas Moschny
5719	[Patch] LocalTimezone' object has no attribute 'normalize' (user with 'default' timezone)	defect	0.11		new	2009-08-25T14:30:05+02:00	2015-04-23T20:56:52+02:00	"When the user's timezone is set to default, the irclogs plugin throws:
{{{
2009-08-25 14:22:10,998 Trac[main] ERROR: Internal Server Error: 
Traceback (most recent call last):
  File ""/opt/trac/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg/trac/web/main.py"", line 444, in _dispatch_request
    dispatcher.dispatch(req)
  File ""/opt/trac/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg/trac/web/main.py"", line 205, in dispatch
    resp = chosen_handler.process_request(req)
  File ""build/bdist.linux-x86_64/egg/irclogs/web_ui.py"", line 352, in process_request
    req.tz)
  File ""build/bdist.linux-x86_64/egg/irclogs/web_ui.py"", line 140, in _render_lines
    local_dt = tz.normalize(server_dt.astimezone(tz))
AttributeError: 'LocalTimezone' object has no attribute 'normalize'
}}}"	Thomas Moschny
5906	[Patch] Incorrect URL path being returned in search resultes	defect	0.11		new	2009-10-02T03:29:46+02:00	2015-04-23T20:56:52+02:00	"Search was returning links using a bad URL. The indexes used to extract year, month, day from the log path were off. Attaching a diff.
"	.:. brainsik
6746	[Patch] Genshi Unicode Decode error	defect	0.11		new	2010-03-01T11:20:07+01:00	2015-04-23T20:56:52+02:00	"Starting this month (which is called ""März"" in German), irclogsplugin showed a Genshi Unicode Decode error for source:irclogsplugin/0.11/irclogs/templates/irclogs.html@4945#L69.

This can be quick'n'dirty fixed by the attached patch."	Thomas Moschny
