From: <kev...@us...> - 2007-09-05 02:05:52
|
Revision: 3 http://bidwatcher.svn.sourceforge.net/bidwatcher/?rev=3&view=rev Author: kevindication Date: 2007-09-04 19:05:45 -0700 (Tue, 04 Sep 2007) Log Message: ----------- Initialize callbacks/errbacks. Initialize auth dict when user enters a new one. Modified Paths: -------------- bidwatcher-2/Auction.py bidwatcher-2/bidwatcher.py Modified: bidwatcher-2/Auction.py =================================================================== --- bidwatcher-2/Auction.py 2007-09-03 22:45:31 UTC (rev 2) +++ bidwatcher-2/Auction.py 2007-09-05 02:05:45 UTC (rev 3) @@ -176,7 +176,6 @@ "Buyer:</span>"]: t1 = p.find(tag) if t1 != -1: - print t1 feedback = "ViewBidderProfile&mode=1&item=%s&aid=" % self.number t2 = p.find(feedback, t1) if t2 == -1: @@ -207,7 +206,14 @@ """ Place a bid of the specified amount """ self.mybid = amount self.auth = auth + + ### FIXME: + ### The callback/errback chain doesn't work the way I thought it did. + if not callbacks: + callbacks = [] self.bidcallbacks = callbacks + if not errbacks: + errbacks = [] self.biderrbacks = errbacks if not auth.loggedIn: # This is a two part hack. Is it better to make loggedIn a Modified: bidwatcher-2/bidwatcher.py =================================================================== --- bidwatcher-2/bidwatcher.py 2007-09-03 22:45:31 UTC (rev 2) +++ bidwatcher-2/bidwatcher.py 2007-09-05 02:05:45 UTC (rev 3) @@ -335,6 +335,7 @@ print "Bad parser! Bad!:", failure def bidError(self, failure): + print "Catching a bidError" failure.trap(Auction.BidError, Auction.OutBidError) print "Bid error! ", failure @@ -516,6 +517,7 @@ self.config.auths[service] = {} self.config.auths[service]["username"] = user self.config.auths[service]["password"] = password + self.getAuths() self.populate_accounts() dia = self.widgets.get_widget("newaccount_dialog") This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |