Opened 3 years ago

Closed 3 years ago

Last modified 2 years ago

#451 closed defect (fixed)

WebStyle: fix WSGI handler generated errors in apache.err

Reported by: simko Owned by: skaplun
Priority: major Milestone:
Component: WebStyle Version:
Keywords: Cc:

Description

WSGI handler generates lots of entries in apache.err like this:

[Wed Jan 19 15:15:04 2011] [error] /usr/local/lib/python2.6/dist-packages/invenio/webinterface_handler_wsgi_utils.py:368: DeprecationWarning: object.__init__() takes no parameters
[Wed Jan 19 15:15:04 2011] [error]   str.__init__(self, value)

It would be good to fix this in order not to overflow apache.err unnecessarily.

Attachments (1)

0001-WebStyle-fix-StringField-definition.patch (1.5 KB) - added by skaplun 3 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 3 years ago by skaplun

  • Status changed from new to in_merge

The attached patch fixes the warning.

comment:2 Changed 3 years ago by Samuele Kaplun <samuele.kaplun@…>

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

In [69fe5e5eb21c45747ebde843f0648f24293c8f8c]:

WebStyle: fix StringField definition

  • StringField in webinterface_handler_wsgi_utils is derived from the immutable str builtin type. In order to be initialized it requires appropriate usage of new special method instead of init. (closes #451)

comment:3 Changed 2 years ago by simko

  • Milestone v1.0 deleted

Milestone v1.0 deleted

Note: See TracTickets for help on using tickets.