Bugs item #3499505, was opened at 2012-03-08 04:11 Message generated for change (Comment added) made by cito You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104866&aid=3499505&group_id=4866
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: WebKit Group: None >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Marek (warth) Assigned to: Nobody/Anonymous (nobody) Summary: staticmethod uses self Initial Comment: Hi, a couple of days ago I got an application written in WebWare 1.1 to make some adjustments in it. While preparing an environment for running I've encountered a problem. The application was raising an exception: "NameError: global name 'self' is not defined" in WebKit/HTTPContent.py:321. After looking into this file I've found this piece of code: @staticmethod def callMethodOfServlet(url, method, *args, **kwargs): return self.application().callMethodOfServlet(self.transaction(), url, method, *args, **kwargs) After removing @staticmethod decorator and adding the missing "self" parameter everything works like a charm. At the moment I'm trying to find out if it is a bug in the WebWare (as it looks like to me) or does my software use the framework in a -wrong- way and the lack of the first parameter is intended? ---------------------------------------------------------------------- >Comment By: Christoph Zwerschke (cito) Date: 2012-03-08 06:54 Message: Thanks for reporting. This is a bug and your fix is correct. I have already applied it in the trunk as r8229. As a workaround, you can also use the same method on the Application object, passing the transaction. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104866&aid=3499505&group_id=4866 ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Webware-devel mailing list Webware-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/webware-devel