Modify

Opened 9 years ago

Closed 9 years ago

#3255 closed defect (fixed)

Minor error in web_ui.py - 'warning' should be 'warnings'

Reported by: jhamell@… Owned by: Odd Simon Simonsen
Priority: normal Component: FullBlogPlugin
Severity: normal Keywords:
Cc: jhamell@… Trac Release: 0.11

Description

On duplicate post name, it appears the plugin attempts to notify the user of such, via warning message (web_ui.py, starting with line 222):

                # Input verifications and warnings
                warnings = []
                if command == 'create' and the_post.version:
                    warning.append(
                            ('', "A post named '%s' already exists. " % the_post.name))
                    the_post = BlogPost(self.env, default_pagename)

In the latest from SVN (3891), however, on line 225 I believe warning should be warnings.
Running Trac 0.11b2.

Attachments (0)

Change History (1)

comment:1 Changed 9 years ago by Odd Simon Simonsen

Resolution: fixed
Status: newclosed

(In [3892]) FullBlogPlugin: Typo. warning => warnings.

Closes #3255 - thanks to jhamell for bug report.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Odd Simon Simonsen.
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.