Modify

Opened 8 years ago

Closed 7 years ago

#12604 closed defect (fixed)

TypeError: execute() takes at least 2 arguments (1 given)

Reported by: starofrainnight Owned by: osimons
Priority: normal Component: FullBlogPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12

Description

How to Reproduce

While doing a GET operation on /blog, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{'blog_path': ''}

User agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0

System Information

系统信息不可用

Enabled Plugins

插件信息不可用

Python Traceback

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/trac/web/main.py", line 529, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/local/lib/python2.7/dist-packages/trac/web/main.py", line 243, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/local/lib/python2.7/dist-packages/TracFullBlogPlugin-0.1.4-py2.7.egg/tracfullblog/web_ui.py", line 126, in process_request
    data['blog_infotext'] = blog_core.get_bloginfotext()
  File "/usr/local/lib/python2.7/dist-packages/TracFullBlogPlugin-0.1.4-py2.7.egg/tracfullblog/core.py", line 161, in get_bloginfotext
    cursor.execute()
TypeError: execute() takes at least 2 arguments (1 given)

=================

Environment :

Ubuntu 14.04, Trac 0.12.7, at [14886]

=================

That code statement maybe want to do things below :

cursor.execute(sql)

Attachments (0)

Change History (4)

comment:1 in reply to:  description Changed 8 years ago by Ryan J Ollos

Replying to starofrainnight:

That code statement maybe want to do things below :

cursor.execute(sql)

The fix looks correct. I'll wait for osimons fix the issue, but will push the change in a few days if he's busy.

comment:2 Changed 8 years ago by osimons

Resolution: fixed
Status: newclosed

In 15103:

FullBlogPlugin: Quick cursor.exectute(sql) fix. Thanks! Closes #12604.

comment:3 Changed 7 years ago by anonymous

Resolution: fixed
Status: closedreopened

comment:4 Changed 7 years ago by osimons

Resolution: fixed
Status: reopenedclosed

Don't see why this should be reopened when no feedback or new information is provided. Closing again.

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.