Modify

Opened 20 months ago

Closed 17 months ago

Last modified 16 months ago

#10852 closed enhancement (fixed)

Add an `is_active_theme` method to the `ThemeBase` class

Reported by: rjollos Owned by: anonymous
Priority: normal Component: ThemeEnginePlugin
Severity: normal Keywords:
Cc: Trac Release:

Description

It is sometimes useful to know if a theme is the active theme. An is_active_theme method could be added to the ThemeBase class to make this functionality available for all themes. This ticket resulted from bh:#360 and #10833.

Attachments (0)

Change History (6)

comment:1 Changed 17 months ago by olemis

(In [13001]) ThemeEnginePlugin refs #10852 : Initial version of 'ThemeEngineSystem.is_active_theme' plus tests for default theme

comment:2 Changed 17 months ago by olemis

  • Owner changed from olemis to anonymous
  • Status changed from new to assigned

comment:3 Changed 17 months ago by olemis

(In [13002]) ThemeEnginePlugin refs #10852 : Handle 'ThemeNotFound' in 'is_active_theme'. Match theme provider. Tests for custom themes

comment:4 Changed 17 months ago by olemis

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

(In [13003]) ThemeEnginePlugin: ( close #10852 ) 'ThemeBase.is_active_theme' . Version 2.1.4 on PyPI

comment:5 Changed 17 months ago by olemis

(In [13006]) TracPastePlugin refs #10852 : Transform 'is_active_theme' into a property instead of function .

Refs [13001] , [13002] , [13003]

comment:6 Changed 16 months ago by olemis

(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

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.