Modify

Opened 17 months ago

Closed 17 months ago

Last modified 17 months ago

#11104 closed defect (fixed)

Custom theme admin module crashes on misconfiguration

Reported by: olemis Owned by: olemis
Priority: highest Component: ThemeEnginePlugin
Severity: blocker Keywords: templates
Cc: jcasado81@… Trac Release: 1.0

Description

Error message

Trac detected an internal error:

UndefinedError: None has no member named "get"

Python Traceback

Most recent call last:

    File "/path/to/themeengineplugin/trunk/themeengine/templates/admin_theme_custom.html", line 19, in <Expression u"iter(current_theme.get('colors',()))"> }}}

Attachments (0)

Change History (2)

comment:1 follow-up: Changed 17 months ago by olemis

  • Resolution set to fixed
  • Status changed from new to closed

(In [13184]) ThemeEnginePlugin [ fixes #11104 ]: Current theme in custom theme admin template defaults to empty dict
Error recovery on misconfiguration in ThemeBase.is_active_theme

refs #11103 - because error on misconfiguration also affects simple theme admin panel
refs #10852 - the original ticket introducing is_active_theme API method

comment:2 in reply to: ↑ 1 Changed 17 months ago by olemis

Replying to olemis:

(In [13184])

[...]

refs #11103 - because error on misconfiguration also affects simple theme admin panel

... if at least an instance of ThemeBase class was activated .

[...]

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.