Modify

Opened 16 years ago

Closed 16 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 16 years ago by osimons

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 osimons.
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.