Modify ↓
#12055 closed defect (fixed)
Notifications panel in preferences crashes
| Reported by: | Jun Omae | Owned by: | Jun Omae |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.1.5 |
| Component: | notification | Version: | |
| Severity: | critical | Keywords: | preferences |
| Cc: | Branch: | ||
| Release Notes: |
Fixed raising |
||
| API Changes: | |||
| Internal Changes: | |||
Description
I found a fatal error on notifications panel in preferences with Trac 1.1.5dev r14047.
Traceback (most recent call last):
File "/home/jun66j5/src/tracdev/svn/trunk/trac/web/main.py", line 571, in _dispatch_request
dispatcher.dispatch(req)
File "/home/jun66j5/src/tracdev/svn/trunk/trac/web/main.py", line 230, in dispatch
resp = chosen_handler.process_request(req)
File "/home/jun66j5/src/tracdev/svn/trunk/trac/prefs/web_ui.py", line 98, in process_request
panel_id)
File "/home/jun66j5/src/tracdev/svn/trunk/trac/notification/prefs.py", line 88, in render_preference_panel
defaults.extend(i.default_subscriptions())
File "/home/jun66j5/src/tracdev/svn/trunk/trac/notification/api.py", line 346, in default_subscriptions
for d in self.subscriber_defaults[klass]:
File "/home/jun66j5/src/tracdev/svn/trunk/trac/cache.py", line 73, in __get__
return CacheManager(instance.env).get(id, self.retriever, instance)
File "/home/jun66j5/src/tracdev/svn/trunk/trac/cache.py", line 242, in get
data = retriever(instance)
File "/home/jun66j5/src/tracdev/svn/trunk/trac/notification/api.py", line 343, in subscriber_defaults
return parse_subscriber_config(rawsubscriptions)
File "/home/jun66j5/src/tracdev/svn/trunk/trac/notification/api.py", line 177, in parse_subscriber_config
if attribute not in known_attrs.keys or \
TypeError: argument of type 'builtin_function_or_method' is not iterable
[notification-subscriber] section is configured with the following:
[notification-subscriber] always_email = AlwaysEmailSubscriber always_email.format = text/html always_notify_cc = CarbonCopySubscriber always_notify_owner = TicketOwnerSubscriber
Ad hoc patch. We should add unit tests for parse_subscriber_config in trac.notification.api.
-
trac/notification/api.py
174 174 byname[name]['class'] = value.strip() 175 175 else: 176 176 attribute = parts[1] 177 if attribute not in known_attrs .keysor \177 if attribute not in known_attrs or \ 178 178 isinstance(known_attrs[attribute], str): 179 179 byname[name][attribute] = value 180 180 elif isinstance(known_attrs[attribute], int):
Attachments (0)
Change History (3)
comment:1 by , 11 years ago
| Owner: | set to |
|---|---|
| Status: | new → assigned |
comment:2 by , 11 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Committed in [14054:14055].
comment:3 by , 10 years ago
| Release Notes: | modified (diff) |
|---|
Note:
See TracTickets
for help on using tickets.



Proposed changes in jomae.git@t12055.