Modify

Opened 6 years ago

Closed 6 years ago

#3255 closed defect (fixed)

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

Reported by: jhamell@… Owned by: osimons
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 6 years ago by osimons

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

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

Closes #3255 - thanks to jhamell for bug report.

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.