Modify

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#10852 closed enhancement (fixed)

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

Reported by: Ryan J Ollos 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 12 years ago by Olemis Lang

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

comment:2 Changed 12 years ago by Olemis Lang

Owner: changed from Olemis Lang to anonymous
Status: newassigned

comment:3 Changed 12 years ago by Olemis Lang

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

comment:4 Changed 12 years ago by Olemis Lang

Resolution: fixed
Status: assignedclosed

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

comment:5 Changed 12 years ago by Olemis Lang

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

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

comment:6 Changed 12 years ago by Olemis Lang

(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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain anonymous.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.