Mailing list archives: March 2005

Site index · List index
Message listThread · Author · Date
;<span class="rem">- wx.Yield() # Each Yield should result in a single paint to the table </span><span class="add">+ wx.SafeYield(None, True) # Each Yield should result in a single paint to the table </span><span class="cx"> logger.Stop() # Test Phase: Verification </span></pre></div> <a id="trunkchandlertoolsQAUITestAppLibpy"></a> <div class="modfile"><h4>Modified: trunk/chandler/tools/QAUITestAppLib.py (14659 => 14660)</h4> <pre class="diff"> <span class="info">--- trunk/chandler/tools/QAUITestAppLib.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/tools/QAUITestAppLib.py 2007-06-12 02:50:57 UTC (rev 14660) </span><span class="lines">@@ -115,7 +115,7 @@ </span><span class="cx"> logger.Start('Publish') win.PublishCollection() while not win.done: </span><span class="rem">- app.Yield() </span><span class="add">+ wx.SafeYield(None, True) </span><span class="cx"> logger.Stop() if not win.success: </span><span class="lines">@@ -139,7 +139,7 @@ </span><span class="cx"> #Done button call win.OnPublishDone(None) </span><span class="rem">- app.Yield() </span><span class="add">+ wx.SafeYield(None, True) </span><span class="cx"> # Unsubscribe and delete the (local) collection we just published so # that we can subscribe to it below. </span><span class="lines">@@ -168,7 +168,7 @@ </span><span class="cx"> win.OnSubscribe(None) try: while win.subscribing: </span><span class="rem">- app.Yield() </span><span class="add">+ wx.SafeYield(None, True) </span><span class="cx"> except wx.PyDeadObjectError: # XXX The C++ part of the dialog was gone, so we are no longer # XXX supposed to touch any attributes of the dialog. In our </span><span class="lines">@@ -756,7 +756,7 @@ </span><span class="cx"> if self.logger: self.logger.ReportPass("Focus set in Detail View") else: if self.logger: self.logger.ReportFailure("Detail View had no focusable blocks") </span><span class="rem">- wx.GetApp().Yield() </span><span class="add">+ wx.SafeYield(None, True) </span><span class="cx"> if self.logger: self.logger.Stop() def SetTimeZone(self, timeZone, timeInfo=True): </span><span class="lines">@@ -815,7 +815,7 @@ </span><span class="cx"> if timeInfo: if self.logger: self.logger.Start("Sending the message") App_ns.appbar.press("ApplicationBarSendButton") </span><span class="rem">- wx.GetApp().Yield() </span><span class="add">+ wx.SafeYield(None, True) </span><span class="cx"> #checkings if self.logger: self.logger.SetChecked(True) sent = None </span><span class="lines">@@ -828,7 +828,7 @@ </span><span class="cx"> # wait for mail delivery mailMessage = pim.mail.MailStamp(self.item) while not sent: </span><span class="rem">- wx.GetApp().Yield() </span><span class="add">+ wx.SafeYield(None, True) </span><span class="cx"> sent = mailMessage.isSent() if timeInfo: if self.logger: self.logger.Stop() </span><span class="lines">@@ -891,7 +891,7 @@ </span><span class="cx"> # Processing of the corresponding CPIA event App_ns.root.Delete() # give the Yield </span><span class="rem">- wx.GetApp().Yield() </span><span class="add">+ wx.SafeYield(None, True) </span><span class="cx"> if timeInfo: if self.logger: self.logger.Stop×JXsJˆ’D Sat, 07 Apr, 02:32
l) collection we just published so # that we can subscribe to it below. </span><span class="lines">@@ -168,7 +168,7 @@ </span><span class="cx"> win.OnSubscribe(None) try: while win.subscribing: </span><span class="rem">- app.Yield() </span><span class="add">+ wx.SafeYield(None, True) </span><span class="cx"> except wx.PyDeadObjectError: # XXX The C++ part of the dialog was gone, so we are no longer # XXX supposed to touch any attributes of the dialog. In our </span><span class="lines">@@ -756,7 +756,7 @@ </span><span class="cx"> if self.logger: self.logger.ReportPass("Focus set in Detail View") else: if self.logger: self.logger.ReportFailure("Detail View had no focusable blocks") </span><span class="rem">- wx.GetApp().Yield() </span><span class="add">+ wx.SafeYield(None, True) </span><span class="cx"> if self.logger: self.logger.Stop() def SetTimeZone(self, timeZone, timeInfo=True): </span><span class="lines">@@ -815,7 +815,7 @@ </span><span class="cx"> if timeInfo: if self.logger: self.logger.Start("Sending the message") App_ns.appbar.press("ApplicationBarSendButton") </span><span class="rem">- wx.GetApp().Yield() </span><span class="add">+ wx.SafeYield(None, True) </span><span class="cx"> #checkings if self.logger: self.logger.SetChecked(True) sent = None </span><span class="lines">@@ -828,7 +828,7 @@ </span><span class="cx"> # wait for mail delivery mailMessage = pim.mail.MailStamp(self.item) while not sent: </span><span class="rem">- wx.GetApp().Yield() </span><span class="add">+ wx.SafeYield(None, True) </span><span class="cx"> sent = mailMessage.isSent() if timeInfo: if self.logger: self.logger.Stop() </span><span class="lines">@@ -891,7 +891,7 @@ </span><span class="cx"> # Processing of the corresponding CPIA event App_ns.root.Delete() # give the Yield </span><span class="rem">- wx.GetApp().Yield() </span><span class="add">+ wx.SafeYield(None, True) </span><span class="cx"> if timeInfo: if self.logger: self.logger.Stop×JXsJˆ’D Sat, 18 Sep, 17:42
<m.r...@teleware-its.de> geCtrl.SetValue(percent) &lt;/span&gt;&lt;span class="rem"&gt;- wx.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlerapplicationdialogsPublishCollectionpy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/application/dialogs/PublishCollection.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/application/dialogs/PublishCollection.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/application/dialogs/PublishCollection.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -384,7 +384,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; self._clearStatus() self._resize() &lt;/span&gt;&lt;span class="rem"&gt;- wx.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.GetApp().Yield(True) &lt;/span&gt;&lt;span class="cx"&gt; attrsToExclude = self._getAttributeFilterState() &lt;/span&gt;&lt;span class="lines"&gt;@@ -639,7 +639,6 @@ &lt;/span&gt;&lt;span class="cx"&gt; self.textStatus.SetLabel(&amp;quot;%s%s&amp;quot; % (self.textStatus.GetLabel(), msg)) # self.textStatus.ShowPosition(self.textStatus.GetLastPosition()) self._resize() &lt;/span&gt;&lt;span class="rem"&gt;- # @@@MOR wx.Yield() &lt;/span&gt;&lt;span class="cx"&gt; def _hideStatus(self): self._clearStatus() &lt;/span&gt;&lt;span class="lines"&gt;@@ -647,7 +646,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; self.statusPanel.Hide() self.mySizer.Detach(self.statusPanel) self._resize() &lt;/span&gt;&lt;span class="rem"&gt;- wx.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.GetApp().Yield(True) &lt;/span&gt;&lt;span class="cx"&gt; pass def _showUpdate(self, text): &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlerapplicationdialogsSubscribeCollectionpy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/application/dialogs/SubscribeCollection.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/application/dialogs/SubscribeCollection.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/application/dialogs/SubscribeCollection.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -260,7 +260,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; self.gauge.SetValue(0) self.subscribing = True self._showStatus(_(u&amp;quot;In progress...&amp;quot;)) &lt;/span&gt;&lt;span class="rem"&gt;- wx.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.GetApp().Yield(True) &lt;/span&gt;&lt;span class="cx"&gt; class ShareTask(task.Task): &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlerparcelsosafappcompactpy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/parcels/osaf/app/compact.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/parcels/osaf/app/compact.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/parcels/osaf/app/compact.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -95,7 +95,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; stages.add(stage) self.status.SetLabel(progressMessage %(len(stages))) self.gauge.SetValue(percent) &lt;/span&gt;&lt;span class="rem"&gt;- wx.Yield() # to enable updating and pressing 'Cancel' &lt;/span&gt;&lt;span class="add"&gt;+ wx.GetApp().Yield(True) # to enable updating and pressing 'Cancel' &lt;/span&gt;&lt;span class="cx"&gt; return self.compacting self.compact(progress) &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlerparcelsosafframeworkscript_recordingscript_libpy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/parcels/osaf/framework/script_recording/script_lib.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/parcels/osaf/framework/script_recording/script_lib.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/parcels/osaf/framework/script_recording/script_lib.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -39,8 +39,9 @@ &lt;/span&gt;&lt;span class="cx"&gt; if isinstance (firstChild, wx.TextCtrl): sentTo = firstChild else: &lt;/span&gt;&lt;span class="rem"&gt;- name = stringToId [name] - if sentTo is None: &lt;/span&gt;&lt;span class="add"&gt;+ sentTo = wx.FindWindowById (stringToId [name]) + else: + assert type (name) is int &lt;/span&gt;&lt;span class="cx"&gt; sentTo = wx.FindWindowById (name) return sentTo &lt;/span&gt;&lt;span class="lines"&gt;@@ -206,7 +207,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; if not isinstance (sentToWidget, wx.TextCtrl): application.propagateAsynchronousNotifications() &lt;/span&gt;&lt;span class="rem"&gt;- application.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ application.Yield (True) &lt;/span&gt;&lt;span class="cx"&gt; # Since scrips don't actually move the cursor and cause wxMouseCaptureLostEvents # to be generated we'll periodically release the capture from all the windows. &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlerparcelsosafframeworkscriptingUserpy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/parcels/osaf/framework/scripting/User.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/parcels/osaf/framework/scripting/User.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/parcels/osaf/framework/scripting/User.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -115,7 +115,6 @@ &lt;/span&gt;&lt;span class="cx"&gt; event.m_altDown = altFlag event.SetEventObject(widget) # for each key, check for specials, then try several approaches &lt;/span&gt;&lt;span class="rem"&gt;- app = wx.GetApp() &lt;/span&gt;&lt;span class="cx"&gt; for char in string: keyCode = ord(char) if keyCode == wx.WXK_RETURN: &lt;/span&gt;&lt;span class="lines"&gt;@@ -150,7 +149,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; else: success = False # remember we had a failure if success: &lt;/span&gt;&lt;span class="rem"&gt;- app.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.GetApp().Yield(True) &lt;/span&gt;&lt;span class="cx"&gt; return success def emulate_tab(shiftFlag=False): &lt;/span&gt;&lt;span class="lines"&gt;@@ -216,7 +215,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; widget.ProcessEvent(mouseUp) widget.ProcessEvent(mouseLeave) # Give Yield to the App &lt;/span&gt;&lt;span class="rem"&gt;- wx.GetApp().Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.GetApp().Yield(True) &lt;/span&gt;&lt;span class="cx"&gt; def emulate_return(block=None): &amp;quot;&amp;quot;&amp;quot; Simulates a return-key event in the given block &amp;quot;&amp;quot;&amp;quot; &lt;/span&gt;&lt;span class="lines"&gt;@@ -287,7 +286,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; return False def idle(): &lt;/span&gt;&lt;span class="rem"&gt;- app = wx.GetApp() - app.Yield() - app.ProcessEvent(wx.IdleEvent()) - app.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ theApp = wx.GetApp() + theApp.Yield(True) + theApp.ProcessEvent(wx.IdleEvent()) + theApp.Yield(True) &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlerparcelsosafframeworkscriptingproxypy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/parcels/osaf/framework/scripting/proxy.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/parcels/osaf/framework/scripting/proxy.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/parcels/osaf/framework/scripting/proxy.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -96,7 +96,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; # Next propagate notifications so the UI will match the data. # Then call Yeild to process an pending events wx.GetApp().propagateAsynchronousNotifications() &lt;/span&gt;&lt;span class="rem"&gt;- wx.GetApp().Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.GetApp().Yield(True) &lt;/span&gt;&lt;span class="cx"&gt; return result &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlerparcelsosafframeworkscriptingscriptpy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/parcels/osaf/framework/scripting/script.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/parcels/osaf/framework/scripting/script.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/parcels/osaf/framework/scripting/script.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -225,12 +225,14 @@ &lt;/span&gt;&lt;span class="cx"&gt; # been updated, i.e. drawn -- and when the screen isn't drawn # the focus can't be set to a widget that hasn't been drawn # so we explicitely update the screen before running the tests &lt;/span&gt;&lt;span class="rem"&gt;- mainFrame = wx.GetApp().mainFrame &lt;/span&gt;&lt;span class="add"&gt;+ app = wx.GetApp() + mainFrame = app.mainFrame &lt;/span&gt;&lt;span class="cx"&gt; mainFrame.Update() &lt;/span&gt;&lt;span class="rem"&gt;- wx.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; mainFrame.Update() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) + &lt;/span&gt;&lt;span class="cx"&gt; global global_cats_profiler &lt;/span&gt;&lt;span class="rem"&gt;- wx.Yield() &lt;/span&gt;&lt;span class="cx"&gt; if Globals.options.testScripts: try: for aScript in Script.iterItems(view): &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlerparcelsosafviewsdetaildetailpy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/parcels/osaf/views/detail/detail.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/parcels/osaf/views/detail/detail.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/parcels/osaf/views/detail/detail.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -754,7 +754,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; #url, collectionName = MailSharing.getSharingHeaderInfo(self.item) #statusBlock = Block.Block.findBlockByName('StatusBar') #statusBlock.setStatusMessage( _(u'Subscribing to collection...') ) &lt;/span&gt;&lt;span class="rem"&gt;- #wx.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ #wx.GetApp().Yield(True) &lt;/span&gt;&lt;span class="cx"&gt; ## If this code is ever revived, it should call sharing.subscribe(), ## rather than the following: &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlerparcelsosafviewsmainMainpy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/parcels/osaf/views/main/Main.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/parcels/osaf/views/main/Main.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/parcels/osaf/views/main/Main.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -507,7 +507,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; # Update the display every so often if len (searchResults) % 50 == 0: app.propagateAsynchronousNotifications() &lt;/span&gt;&lt;span class="rem"&gt;- app.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; if len(searchResults) == 0: # For now we'll write a message to the status bar because it's easy &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlerparcelsosafviewsmainSideBarpy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/parcels/osaf/views/main/SideBar.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/parcels/osaf/views/main/SideBar.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/parcels/osaf/views/main/SideBar.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -572,8 +572,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; if userCollection.iconNameHasClassVariant and filterClass is not MissingClass: iconName += filterClass.__name__ &lt;/span&gt;&lt;span class="rem"&gt;- app = wx.GetApp() - image = app.GetRawImage (imagePrefix + iconName + mouseState + deactive + imageSuffix) &lt;/span&gt;&lt;span class="add"&gt;+ image = wx.GetApp().GetRawImage (imagePrefix + iconName + mouseState + deactive + imageSuffix) &lt;/span&gt;&lt;span class="cx"&gt; if image is not None: if userCollection.colorizeIcon: &lt;/span&gt;&lt;span class="lines"&gt;@@ -669,8 +668,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; filterClass is not MissingClass): iconName += filterClass.__name__ &lt;/span&gt;&lt;span class="rem"&gt;- app = wx.GetApp() - image = app.GetRawImage (imagePrefix + iconName + mouseState + deactive + imageSuffix) &lt;/span&gt;&lt;span class="add"&gt;+ image = wx.GetApp().GetRawImage (imagePrefix + iconName + mouseState + deactive + imageSuffix) &lt;/span&gt;&lt;span class="cx"&gt; if image is not None and userCollection.colorizeIcon: userCollection.ensureColor() &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlerprojectsChandlerAmazonPluginamazonAmazonKindspy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/projects/Chandler-AmazonPlugin/amazon/AmazonKinds.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/projects/Chandler-AmazonPlugin/amazon/AmazonKinds.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/projects/Chandler-AmazonPlugin/amazon/AmazonKinds.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -31,7 +31,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; def _showError(errText): theApp = wx.GetApp() if theApp is not None: &lt;/span&gt;&lt;span class="rem"&gt;- wx.MessageBox(errText, _(u&amp;quot;Amazon Error&amp;quot;), parent=wx.GetApp().mainFrame) &lt;/span&gt;&lt;span class="add"&gt;+ wx.MessageBox(errText, _(u&amp;quot;Amazon Error&amp;quot;), parent=theApp.mainFrame) &lt;/span&gt;&lt;span class="cx"&gt; def SearchByKeyword(repView, keywords=None, countryCode=None, category=None): &amp;quot;&amp;quot;&amp;quot; &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlerprojectsChandlerPhotoPluginphotosPhotospy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/projects/Chandler-PhotoPlugin/photos/Photos.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/projects/Chandler-PhotoPlugin/photos/Photos.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/projects/Chandler-PhotoPlugin/photos/Photos.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -149,7 +149,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; theApp.CallItemMethodAsync(&amp;quot;MainView&amp;quot;, 'setStatusMessage', _(u&amp;quot;Importing %(filePath)s&amp;quot;) % {'filePath': path}) &lt;/span&gt;&lt;span class="rem"&gt;- wx.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; photo = Photo(itsView=self.itsView) photo.displayName = filename photo.creator = schema.ns(&amp;quot;osaf.pim&amp;quot;, self.itsView).currentContact.item &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlerprojectsChandlerdebugPlugindebugTestMenupy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/projects/Chandler-debugPlugin/debug/TestMenu.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/projects/Chandler-debugPlugin/debug/TestMenu.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/projects/Chandler-debugPlugin/debug/TestMenu.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -48,8 +48,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; def on_debug_GenerateDataFromFileEvent(self, event): # triggered from &amp;quot;Tools | Test | Generate Items from a File&amp;quot; menu &lt;/span&gt;&lt;span class="rem"&gt;- app = wx.GetApp() - res = dialogs.Util.showFileDialog(app.mainFrame, &lt;/span&gt;&lt;span class="add"&gt;+ res = dialogs.Util.showFileDialog(wx.GetApp().mainFrame, &lt;/span&gt;&lt;span class="cx"&gt; _m_(u&amp;quot;Choose a file to import&amp;quot;), &amp;quot;&amp;quot;, _m_(u&amp;quot;import.csv&amp;quot;), _m_(u&amp;quot;CSV files|*.csv&amp;quot;), &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlertoolsQATestScriptsPerformancePerfLargeDataResizeCalendarpy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/tools/QATestScripts/Performance/PerfLargeDataResizeCalendar.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/tools/QATestScripts/Performance/PerfLargeDataResizeCalendar.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/tools/QATestScripts/Performance/PerfLargeDataResizeCalendar.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -43,7 +43,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; logger.Start(&amp;quot;Resize app in calendar mode&amp;quot;) for d in xrange(10, 51, 10): frame.SetSize((x - d, y - d)) &lt;/span&gt;&lt;span class="rem"&gt;- wx.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; User.idle() # Without this we'll quit during last resize logger.Stop() &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlertoolsQATestScriptsPerformancePerfLargeDataScrollCalendarpy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/tools/QATestScripts/Performance/PerfLargeDataScrollCalendar.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/tools/QATestScripts/Performance/PerfLargeDataScrollCalendar.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/tools/QATestScripts/Performance/PerfLargeDataScrollCalendar.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -62,7 +62,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; logger.Start(&amp;quot;Scroll calendar one unit&amp;quot;) # Actually 24 units for units in xrange(1, 25): calendarWidget.Scroll(0, units) &lt;/span&gt;&lt;span class="rem"&gt;- wx.Yield() # Each Yield should result in a single paint to the calendar &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) # Each Yield should result in a single paint to the calendar &lt;/span&gt;&lt;span class="cx"&gt; logger.Stop() # Test Phase: Verification &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlertoolsQATestScriptsPerformancePerfLargeDataScrollTablepy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/tools/QATestScripts/Performance/PerfLargeDataScrollTable.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/tools/QATestScripts/Performance/PerfLargeDataScrollTable.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/tools/QATestScripts/Performance/PerfLargeDataScrollTable.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -59,7 +59,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; logger.Start(&amp;quot;Scroll table 25 scroll units&amp;quot;) for units in xrange(1, 25): tableWidget.Scroll(0, units) &lt;/span&gt;&lt;span class="rem"&gt;- wx.Yield() # Each Yield should result in a single paint to the table &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) # Each Yield should result in a single paint to the table &lt;/span&gt;&lt;span class="cx"&gt; logger.Stop() # Test Phase: Verification &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlertoolsQAUITestAppLibpy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/tools/QAUITestAppLib.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/tools/QAUITestAppLib.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/tools/QAUITestAppLib.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -115,7 +115,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; logger.Start('Publish') win.PublishCollection() while not win.done: &lt;/span&gt;&lt;span class="rem"&gt;- app.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; logger.Stop() if not win.success: &lt;/span&gt;&lt;span class="lines"&gt;@@ -139,7 +139,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; #Done button call win.OnPublishDone(None) &lt;/span&gt;&lt;span class="rem"&gt;- app.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; # Unsubscribe and delete the (local) collection we just published so # that we can subscribe to it below. &lt;/span&gt;&lt;span class="lines"&gt;@@ -168,7 +168,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; win.OnSubscribe(None) try: while win.subscribing: &lt;/span&gt;&lt;span class="rem"&gt;- app.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; except wx.PyDeadObjectError: # XXX The C++ part of the dialog was gone, so we are no longer # XXX supposed to touch any attributes of the dialog. In our &lt;/span&gt;&lt;span class="lines"&gt;@@ -756,7 +756,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; if self.logger: self.logger.ReportPass(&amp;quot;Focus set in Detail View&amp;quot;) else: if self.logger: self.logger.ReportFailure(&amp;quot;Detail View had no focusable blocks&amp;quot;) &lt;/span&gt;&lt;span class="rem"&gt;- wx.GetApp().Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; if self.logger: self.logger.Stop() def SetTimeZone(self, timeZone, timeInfo=True): &lt;/span&gt;&lt;span class="lines"&gt;@@ -815,7 +815,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; if timeInfo: if self.logger: self.logger.Start(&amp;quot;Sending the message&amp;quot;) App_ns.appbar.press(&amp;quot;ApplicationBarSendButton&amp;quot;) &lt;/span&gt;&lt;span class="rem"&gt;- wx.GetApp().Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; #checkings if self.logger: self.logger.SetChecked(True) sent = None &lt;/span&gt;&lt;span class="lines"&gt;@@ -828,7 +828,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; # wait for mail delivery mailMessage = pim.mail.MailStamp(self.item) while not sent: &lt;/span&gt;&lt;span class="rem"&gt;- wx.GetApp().Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; sent = mailMessage.isSent() if timeInfo: if self.logger: self.logger.Stop() &lt;/span&gt;&lt;span class="lines"&gt;@@ -891,7 +891,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; # Processing of the corresponding CPIA event App_ns.root.Delete() # give the Yield &lt;/span&gt;&lt;span class="rem"&gt;- wx.GetApp().Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; if timeInfo: if self.logger: self.logger.Stop×JXsJˆ’D Fri, 05 Jul, 19:54
<m.r...@teleware-its.de> geCtrl.SetValue(percent) &lt;/span&gt;&lt;span class="rem"&gt;- wx.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlerapplicationdialogsPublishCollectionpy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/application/dialogs/PublishCollection.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/application/dialogs/PublishCollection.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/application/dialogs/PublishCollection.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -384,7 +384,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; self._clearStatus() self._resize() &lt;/span&gt;&lt;span class="rem"&gt;- wx.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.GetApp().Yield(True) &lt;/span&gt;&lt;span class="cx"&gt; attrsToExclude = self._getAttributeFilterState() &lt;/span&gt;&lt;span class="lines"&gt;@@ -639,7 +639,6 @@ &lt;/span&gt;&lt;span class="cx"&gt; self.textStatus.SetLabel(&amp;quot;%s%s&amp;quot; % (self.textStatus.GetLabel(), msg)) # self.textStatus.ShowPosition(self.textStatus.GetLastPosition()) self._resize() &lt;/span&gt;&lt;span class="rem"&gt;- # @@@MOR wx.Yield() &lt;/span&gt;&lt;span class="cx"&gt; def _hideStatus(self): self._clearStatus() &lt;/span&gt;&lt;span class="lines"&gt;@@ -647,7 +646,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; self.statusPanel.Hide() self.mySizer.Detach(self.statusPanel) self._resize() &lt;/span&gt;&lt;span class="rem"&gt;- wx.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.GetApp().Yield(True) &lt;/span&gt;&lt;span class="cx"&gt; pass def _showUpdate(self, text): &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlerapplicationdialogsSubscribeCollectionpy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/application/dialogs/SubscribeCollection.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/application/dialogs/SubscribeCollection.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/application/dialogs/SubscribeCollection.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -260,7 +260,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; self.gauge.SetValue(0) self.subscribing = True self._showStatus(_(u&amp;quot;In progress...&amp;quot;)) &lt;/span&gt;&lt;span class="rem"&gt;- wx.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.GetApp().Yield(True) &lt;/span&gt;&lt;span class="cx"&gt; class ShareTask(task.Task): &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlerparcelsosafappcompactpy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/parcels/osaf/app/compact.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/parcels/osaf/app/compact.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/parcels/osaf/app/compact.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -95,7 +95,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; stages.add(stage) self.status.SetLabel(progressMessage %(len(stages))) self.gauge.SetValue(percent) &lt;/span&gt;&lt;span class="rem"&gt;- wx.Yield() # to enable updating and pressing 'Cancel' &lt;/span&gt;&lt;span class="add"&gt;+ wx.GetApp().Yield(True) # to enable updating and pressing 'Cancel' &lt;/span&gt;&lt;span class="cx"&gt; return self.compacting self.compact(progress) &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlerparcelsosafframeworkscript_recordingscript_libpy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/parcels/osaf/framework/script_recording/script_lib.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/parcels/osaf/framework/script_recording/script_lib.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/parcels/osaf/framework/script_recording/script_lib.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -39,8 +39,9 @@ &lt;/span&gt;&lt;span class="cx"&gt; if isinstance (firstChild, wx.TextCtrl): sentTo = firstChild else: &lt;/span&gt;&lt;span class="rem"&gt;- name = stringToId [name] - if sentTo is None: &lt;/span&gt;&lt;span class="add"&gt;+ sentTo = wx.FindWindowById (stringToId [name]) + else: + assert type (name) is int &lt;/span&gt;&lt;span class="cx"&gt; sentTo = wx.FindWindowById (name) return sentTo &lt;/span&gt;&lt;span class="lines"&gt;@@ -206,7 +207,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; if not isinstance (sentToWidget, wx.TextCtrl): application.propagateAsynchronousNotifications() &lt;/span&gt;&lt;span class="rem"&gt;- application.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ application.Yield (True) &lt;/span&gt;&lt;span class="cx"&gt; # Since scrips don't actually move the cursor and cause wxMouseCaptureLostEvents # to be generated we'll periodically release the capture from all the windows. &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlerparcelsosafframeworkscriptingUserpy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/parcels/osaf/framework/scripting/User.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/parcels/osaf/framework/scripting/User.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/parcels/osaf/framework/scripting/User.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -115,7 +115,6 @@ &lt;/span&gt;&lt;span class="cx"&gt; event.m_altDown = altFlag event.SetEventObject(widget) # for each key, check for specials, then try several approaches &lt;/span&gt;&lt;span class="rem"&gt;- app = wx.GetApp() &lt;/span&gt;&lt;span class="cx"&gt; for char in string: keyCode = ord(char) if keyCode == wx.WXK_RETURN: &lt;/span&gt;&lt;span class="lines"&gt;@@ -150,7 +149,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; else: success = False # remember we had a failure if success: &lt;/span&gt;&lt;span class="rem"&gt;- app.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.GetApp().Yield(True) &lt;/span&gt;&lt;span class="cx"&gt; return success def emulate_tab(shiftFlag=False): &lt;/span&gt;&lt;span class="lines"&gt;@@ -216,7 +215,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; widget.ProcessEvent(mouseUp) widget.ProcessEvent(mouseLeave) # Give Yield to the App &lt;/span&gt;&lt;span class="rem"&gt;- wx.GetApp().Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.GetApp().Yield(True) &lt;/span&gt;&lt;span class="cx"&gt; def emulate_return(block=None): &amp;quot;&amp;quot;&amp;quot; Simulates a return-key event in the given block &amp;quot;&amp;quot;&amp;quot; &lt;/span&gt;&lt;span class="lines"&gt;@@ -287,7 +286,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; return False def idle(): &lt;/span&gt;&lt;span class="rem"&gt;- app = wx.GetApp() - app.Yield() - app.ProcessEvent(wx.IdleEvent()) - app.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ theApp = wx.GetApp() + theApp.Yield(True) + theApp.ProcessEvent(wx.IdleEvent()) + theApp.Yield(True) &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlerparcelsosafframeworkscriptingproxypy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/parcels/osaf/framework/scripting/proxy.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/parcels/osaf/framework/scripting/proxy.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/parcels/osaf/framework/scripting/proxy.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -96,7 +96,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; # Next propagate notifications so the UI will match the data. # Then call Yeild to process an pending events wx.GetApp().propagateAsynchronousNotifications() &lt;/span&gt;&lt;span class="rem"&gt;- wx.GetApp().Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.GetApp().Yield(True) &lt;/span&gt;&lt;span class="cx"&gt; return result &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlerparcelsosafframeworkscriptingscriptpy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/parcels/osaf/framework/scripting/script.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/parcels/osaf/framework/scripting/script.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/parcels/osaf/framework/scripting/script.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -225,12 +225,14 @@ &lt;/span&gt;&lt;span class="cx"&gt; # been updated, i.e. drawn -- and when the screen isn't drawn # the focus can't be set to a widget that hasn't been drawn # so we explicitely update the screen before running the tests &lt;/span&gt;&lt;span class="rem"&gt;- mainFrame = wx.GetApp().mainFrame &lt;/span&gt;&lt;span class="add"&gt;+ app = wx.GetApp() + mainFrame = app.mainFrame &lt;/span&gt;&lt;span class="cx"&gt; mainFrame.Update() &lt;/span&gt;&lt;span class="rem"&gt;- wx.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; mainFrame.Update() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) + &lt;/span&gt;&lt;span class="cx"&gt; global global_cats_profiler &lt;/span&gt;&lt;span class="rem"&gt;- wx.Yield() &lt;/span&gt;&lt;span class="cx"&gt; if Globals.options.testScripts: try: for aScript in Script.iterItems(view): &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlerparcelsosafviewsdetaildetailpy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/parcels/osaf/views/detail/detail.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/parcels/osaf/views/detail/detail.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/parcels/osaf/views/detail/detail.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -754,7 +754,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; #url, collectionName = MailSharing.getSharingHeaderInfo(self.item) #statusBlock = Block.Block.findBlockByName('StatusBar') #statusBlock.setStatusMessage( _(u'Subscribing to collection...') ) &lt;/span&gt;&lt;span class="rem"&gt;- #wx.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ #wx.GetApp().Yield(True) &lt;/span&gt;&lt;span class="cx"&gt; ## If this code is ever revived, it should call sharing.subscribe(), ## rather than the following: &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlerparcelsosafviewsmainMainpy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/parcels/osaf/views/main/Main.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/parcels/osaf/views/main/Main.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/parcels/osaf/views/main/Main.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -507,7 +507,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; # Update the display every so often if len (searchResults) % 50 == 0: app.propagateAsynchronousNotifications() &lt;/span&gt;&lt;span class="rem"&gt;- app.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; if len(searchResults) == 0: # For now we'll write a message to the status bar because it's easy &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlerparcelsosafviewsmainSideBarpy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/parcels/osaf/views/main/SideBar.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/parcels/osaf/views/main/SideBar.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/parcels/osaf/views/main/SideBar.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -572,8 +572,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; if userCollection.iconNameHasClassVariant and filterClass is not MissingClass: iconName += filterClass.__name__ &lt;/span&gt;&lt;span class="rem"&gt;- app = wx.GetApp() - image = app.GetRawImage (imagePrefix + iconName + mouseState + deactive + imageSuffix) &lt;/span&gt;&lt;span class="add"&gt;+ image = wx.GetApp().GetRawImage (imagePrefix + iconName + mouseState + deactive + imageSuffix) &lt;/span&gt;&lt;span class="cx"&gt; if image is not None: if userCollection.colorizeIcon: &lt;/span&gt;&lt;span class="lines"&gt;@@ -669,8 +668,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; filterClass is not MissingClass): iconName += filterClass.__name__ &lt;/span&gt;&lt;span class="rem"&gt;- app = wx.GetApp() - image = app.GetRawImage (imagePrefix + iconName + mouseState + deactive + imageSuffix) &lt;/span&gt;&lt;span class="add"&gt;+ image = wx.GetApp().GetRawImage (imagePrefix + iconName + mouseState + deactive + imageSuffix) &lt;/span&gt;&lt;span class="cx"&gt; if image is not None and userCollection.colorizeIcon: userCollection.ensureColor() &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlerprojectsChandlerAmazonPluginamazonAmazonKindspy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/projects/Chandler-AmazonPlugin/amazon/AmazonKinds.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/projects/Chandler-AmazonPlugin/amazon/AmazonKinds.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/projects/Chandler-AmazonPlugin/amazon/AmazonKinds.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -31,7 +31,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; def _showError(errText): theApp = wx.GetApp() if theApp is not None: &lt;/span&gt;&lt;span class="rem"&gt;- wx.MessageBox(errText, _(u&amp;quot;Amazon Error&amp;quot;), parent=wx.GetApp().mainFrame) &lt;/span&gt;&lt;span class="add"&gt;+ wx.MessageBox(errText, _(u&amp;quot;Amazon Error&amp;quot;), parent=theApp.mainFrame) &lt;/span&gt;&lt;span class="cx"&gt; def SearchByKeyword(repView, keywords=None, countryCode=None, category=None): &amp;quot;&amp;quot;&amp;quot; &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlerprojectsChandlerPhotoPluginphotosPhotospy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/projects/Chandler-PhotoPlugin/photos/Photos.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/projects/Chandler-PhotoPlugin/photos/Photos.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/projects/Chandler-PhotoPlugin/photos/Photos.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -149,7 +149,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; theApp.CallItemMethodAsync(&amp;quot;MainView&amp;quot;, 'setStatusMessage', _(u&amp;quot;Importing %(filePath)s&amp;quot;) % {'filePath': path}) &lt;/span&gt;&lt;span class="rem"&gt;- wx.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; photo = Photo(itsView=self.itsView) photo.displayName = filename photo.creator = schema.ns(&amp;quot;osaf.pim&amp;quot;, self.itsView).currentContact.item &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlerprojectsChandlerdebugPlugindebugTestMenupy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/projects/Chandler-debugPlugin/debug/TestMenu.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/projects/Chandler-debugPlugin/debug/TestMenu.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/projects/Chandler-debugPlugin/debug/TestMenu.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -48,8 +48,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; def on_debug_GenerateDataFromFileEvent(self, event): # triggered from &amp;quot;Tools | Test | Generate Items from a File&amp;quot; menu &lt;/span&gt;&lt;span class="rem"&gt;- app = wx.GetApp() - res = dialogs.Util.showFileDialog(app.mainFrame, &lt;/span&gt;&lt;span class="add"&gt;+ res = dialogs.Util.showFileDialog(wx.GetApp().mainFrame, &lt;/span&gt;&lt;span class="cx"&gt; _m_(u&amp;quot;Choose a file to import&amp;quot;), &amp;quot;&amp;quot;, _m_(u&amp;quot;import.csv&amp;quot;), _m_(u&amp;quot;CSV files|*.csv&amp;quot;), &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlertoolsQATestScriptsPerformancePerfLargeDataResizeCalendarpy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/tools/QATestScripts/Performance/PerfLargeDataResizeCalendar.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/tools/QATestScripts/Performance/PerfLargeDataResizeCalendar.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/tools/QATestScripts/Performance/PerfLargeDataResizeCalendar.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -43,7 +43,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; logger.Start(&amp;quot;Resize app in calendar mode&amp;quot;) for d in xrange(10, 51, 10): frame.SetSize((x - d, y - d)) &lt;/span&gt;&lt;span class="rem"&gt;- wx.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; User.idle() # Without this we'll quit during last resize logger.Stop() &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlertoolsQATestScriptsPerformancePerfLargeDataScrollCalendarpy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/tools/QATestScripts/Performance/PerfLargeDataScrollCalendar.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/tools/QATestScripts/Performance/PerfLargeDataScrollCalendar.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/tools/QATestScripts/Performance/PerfLargeDataScrollCalendar.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -62,7 +62,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; logger.Start(&amp;quot;Scroll calendar one unit&amp;quot;) # Actually 24 units for units in xrange(1, 25): calendarWidget.Scroll(0, units) &lt;/span&gt;&lt;span class="rem"&gt;- wx.Yield() # Each Yield should result in a single paint to the calendar &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) # Each Yield should result in a single paint to the calendar &lt;/span&gt;&lt;span class="cx"&gt; logger.Stop() # Test Phase: Verification &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlertoolsQATestScriptsPerformancePerfLargeDataScrollTablepy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/tools/QATestScripts/Performance/PerfLargeDataScrollTable.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/tools/QATestScripts/Performance/PerfLargeDataScrollTable.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/tools/QATestScripts/Performance/PerfLargeDataScrollTable.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -59,7 +59,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; logger.Start(&amp;quot;Scroll table 25 scroll units&amp;quot;) for units in xrange(1, 25): tableWidget.Scroll(0, units) &lt;/span&gt;&lt;span class="rem"&gt;- wx.Yield() # Each Yield should result in a single paint to the table &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) # Each Yield should result in a single paint to the table &lt;/span&gt;&lt;span class="cx"&gt; logger.Stop() # Test Phase: Verification &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlertoolsQAUITestAppLibpy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/tools/QAUITestAppLib.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/tools/QAUITestAppLib.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/tools/QAUITestAppLib.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -115,7 +115,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; logger.Start('Publish') win.PublishCollection() while not win.done: &lt;/span&gt;&lt;span class="rem"&gt;- app.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; logger.Stop() if not win.success: &lt;/span&gt;&lt;span class="lines"&gt;@@ -139,7 +139,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; #Done button call win.OnPublishDone(None) &lt;/span&gt;&lt;span class="rem"&gt;- app.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; # Unsubscribe and delete the (local) collection we just published so # that we can subscribe to it below. &lt;/span&gt;&lt;span class="lines"&gt;@@ -168,7 +168,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; win.OnSubscribe(None) try: while win.subscribing: &lt;/span&gt;&lt;span class="rem"&gt;- app.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; except wx.PyDeadObjectError: # XXX The C++ part of the dialog was gone, so we are no longer # XXX supposed to touch any attributes of the dialog. In our &lt;/span&gt;&lt;span class="lines"&gt;@@ -756,7 +756,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; if self.logger: self.logger.ReportPass(&amp;quot;Focus set in Detail View&amp;quot;) else: if self.logger: self.logger.ReportFailure(&amp;quot;Detail View had no focusable blocks&amp;quot;) &lt;/span&gt;&lt;span class="rem"&gt;- wx.GetApp().Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; if self.logger: self.logger.Stop() def SetTimeZone(self, timeZone, timeInfo=True): &lt;/span&gt;&lt;span class="lines"&gt;@@ -815,7 +815,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; if timeInfo: if self.logger: self.logger.Start(&amp;quot;Sending the message&amp;quot;) App_ns.appbar.press(&amp;quot;ApplicationBarSendButton&amp;quot;) &lt;/span&gt;&lt;span class="rem"&gt;- wx.GetApp().Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; #checkings if self.logger: self.logger.SetChecked(True) sent = None &lt;/span&gt;&lt;span class="lines"&gt;@@ -828,7 +828,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; # wait for mail delivery mailMessage = pim.mail.MailStamp(self.item) while not sent: &lt;/span&gt;&lt;span class="rem"&gt;- wx.GetApp().Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; sent = mailMessage.isSent() if timeInfo: if self.logger: self.logger.Stop() &lt;/span&gt;&lt;span class="lines"&gt;@@ -891,7 +891,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; # Processing of the corresponding CPIA event App_ns.root.Delete() # give the Yield &lt;/span&gt;&lt;span class="rem"&gt;- wx.GetApp().Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; if timeInfo: if self.logger: self.logger.Stop×JXsJˆ’D Fri, 05 Jul, 19:54
<m.r...@teleware-its.de> &gt; if timeInfo: if self.logger: self.logger.Stop×JXsJˆ’D Fri, 05 Jul, 19:54
<mren...@phantomcynthetics.com> mp;quot;) # Actually 24 units for units in xrange(1, 25): calendarWidget.Scroll(0, units) &lt;/span&gt;&lt;span class="rem"&gt;- wx.Yield() # Each Yield should result in a single paint to the calendar &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) # Each Yield should result in a single paint to the calendar &lt;/span&gt;&lt;span class="cx"&gt; logger.Stop() # Test Phase: Verification &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlertoolsQATestScriptsPerformancePerfLargeDataScrollTablepy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/tools/QATestScripts/Performance/PerfLargeDataScrollTable.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/tools/QATestScripts/Performance/PerfLargeDataScrollTable.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/tools/QATestScripts/Performance/PerfLargeDataScrollTable.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -59,7 +59,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; logger.Start(&amp;quot;Scroll table 25 scroll units&amp;quot;) for units in xrange(1, 25): tableWidget.Scroll(0, units) &lt;/span&gt;&lt;span class="rem"&gt;- wx.Yield() # Each Yield should result in a single paint to the table &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) # Each Yield should result in a single paint to the table &lt;/span&gt;&lt;span class="cx"&gt; logger.Stop() # Test Phase: Verification &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlertoolsQAUITestAppLibpy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/tools/QAUITestAppLib.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/tools/QAUITestAppLib.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/tools/QAUITestAppLib.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -115,7 +115,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; logger.Start('Publish') win.PublishCollection() while not win.done: &lt;/span&gt;&lt;span class="rem"&gt;- app.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; logger.Stop() if not win.success: &lt;/span&gt;&lt;span class="lines"&gt;@@ -139,7 +139,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; #Done button call win.OnPublishDone(None) &lt;/span&gt;&lt;span class="rem"&gt;- app.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; # Unsubscribe and delete the (local) collection we just published so # that we can subscribe to it below. &lt;/span&gt;&lt;span class="lines"&gt;@@ -168,7 +168,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; win.OnSubscribe(None) try: while win.subscribing: &lt;/span&gt;&lt;span class="rem"&gt;- app.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; except wx.PyDeadObjectError: # XXX The C++ part of the dialog was gone, so we are no longer # XXX supposed to touch any attributes of the dialog. In our &lt;/span&gt;&lt;span class="lines"&gt;@@ -756,7 +756,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; if self.logger: self.logger.ReportPass(&amp;quot;Focus set in Detail View&amp;quot;) else: if self.logger: self.logger.ReportFailure(&amp;quot;Detail View had no focusable blocks&amp;quot;) &lt;/span&gt;&lt;span class="rem"&gt;- wx.GetApp().Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; if self.logger: self.logger.Stop() def SetTimeZone(self, timeZone, timeInfo=True): &lt;/span&gt;&lt;span class="lines"&gt;@@ -815,7 +815,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; if timeInfo: if self.logger: self.logger.Start(&amp;quot;Sending the message&amp;quot;) App_ns.appbar.press(&amp;quot;ApplicationBarSendButton&amp;quot;) &lt;/span&gt;&lt;span class="rem"&gt;- wx.GetApp().Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; #checkings if self.logger: self.logger.SetChecked(True) sent = None &lt;/span&gt;&lt;span class="lines"&gt;@@ -828,7 +828,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; # wait for mail delivery mailMessage = pim.mail.MailStamp(self.item) while not sent: &lt;/span&gt;&lt;span class="rem"&gt;- wx.GetApp().Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; sent = mailMessage.isSent() if timeInfo: if self.logger: self.logger.Stop() &lt;/span&gt;&lt;span class="lines"&gt;@@ -891,7 +891,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; # Processing of the corresponding CPIA event App_ns.root.Delete() # give the Yield &lt;/span&gt;&lt;span class="rem"&gt;- wx.GetApp().Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; if timeInfo: if self.logger: self.logger.Stop×JXsJˆ’D Wed, 12 May, 20:40
<n...@3dsafety.com> 15,7 +815,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; if timeInfo: if self.logger: self.logger.Start(&amp;quot;Sending the message&amp;quot;) App_ns.appbar.press(&amp;quot;ApplicationBarSendButton&amp;quot;) &lt;/span&gt;&lt;span class="rem"&gt;- wx.GetApp().Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; #checkings if self.logger: self.logger.SetChecked(True) sent = None &lt;/span&gt;&lt;span class="lines"&gt;@@ -828,7 +828,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; # wait for mail delivery mailMessage = pim.mail.MailStamp(self.item) while not sent: &lt;/span&gt;&lt;span class="rem"&gt;- wx.GetApp().Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; sent = mailMessage.isSent() if timeInfo: if self.logger: self.logger.Stop() &lt;/span&gt;&lt;span class="lines"&gt;@@ -891,7 +891,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; # Processing of the corresponding CPIA event App_ns.root.Delete() # give the Yield &lt;/span&gt;&lt;span class="rem"&gt;- wx.GetApp().Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; if timeInfo: if self.logger: self.logger.Stop×JXsJˆ’D Sun, 05 Jun, 06:36
<...@telecommunity.com> tion/dialogs/SubscribeCollection.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/application/dialogs/SubscribeCollection.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -260,7 +260,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; self.gauge.SetValue(0) self.subscribing = True self._showStatus(_(u&amp;quot;In progress...&amp;quot;)) &lt;/span&gt;&lt;span class="rem"&gt;- wx.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.GetApp().Yield(True) &lt;/span&gt;&lt;span class="cx"&gt; class ShareTask(task.Task): &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlerparcelsosafappcompactpy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/parcels/osaf/app/compact.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/parcels/osaf/app/compact.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/parcels/osaf/app/compact.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -95,7 +95,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; stages.add(stage) self.status.SetLabel(progressMessage %(len(stages))) self.gauge.SetValue(percent) &lt;/span&gt;&lt;span class="rem"&gt;- wx.Yield() # to enable updating and pressing 'Cancel' &lt;/span&gt;&lt;span class="add"&gt;+ wx.GetApp().Yield(True) # to enable updating and pressing 'Cancel' &lt;/span&gt;&lt;span class="cx"&gt; return self.compacting self.compact(progress) &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlerparcelsosafframeworkscript_recordingscript_libpy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/parcels/osaf/framework/script_recording/script_lib.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/parcels/osaf/framework/script_recording/script_lib.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/parcels/osaf/framework/script_recording/script_lib.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -39,8 +39,9 @@ &lt;/span&gt;&lt;span class="cx"&gt; if isinstance (firstChild, wx.TextCtrl): sentTo = firstChild else: &lt;/span&gt;&lt;span class="rem"&gt;- name = stringToId [name] - if sentTo is None: &lt;/span&gt;&lt;span class="add"&gt;+ sentTo = wx.FindWindowById (stringToId [name]) + else: + assert type (name) is int &lt;/span&gt;&lt;span class="cx"&gt; sentTo = wx.FindWindowById (name) return sentTo &lt;/span&gt;&lt;span class="lines"&gt;@@ -206,7 +207,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; if not isinstance (sentToWidget, wx.TextCtrl): application.propagateAsynchronousNotifications() &lt;/span&gt;&lt;span class="rem"&gt;- application.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ application.Yield (True) &lt;/span&gt;&lt;span class="cx"&gt; # Since scrips don't actually move the cursor and cause wxMouseCaptureLostEvents # to be generated we'll periodically release the capture from all the windows. &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlerparcelsosafframeworkscriptingUserpy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/parcels/osaf/framework/scripting/User.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/parcels/osaf/framework/scripting/User.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/parcels/osaf/framework/scripting/User.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -115,7 +115,6 @@ &lt;/span&gt;&lt;span class="cx"&gt; event.m_altDown = altFlag event.SetEventObject(widget) # for each key, check for specials, then try several approaches &lt;/span&gt;&lt;span class="rem"&gt;- app = wx.GetApp() &lt;/span&gt;&lt;span class="cx"&gt; for char in string: keyCode = ord(char) if keyCode == wx.WXK_RETURN: &lt;/span&gt;&lt;span class="lines"&gt;@@ -150,7 +149,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; else: success = False # remember we had a failure if success: &lt;/span&gt;&lt;span class="rem"&gt;- app.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.GetApp().Yield(True) &lt;/span&gt;&lt;span class="cx"&gt; return success def emulate_tab(shiftFlag=False): &lt;/span&gt;&lt;span class="lines"&gt;@@ -216,7 +215,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; widget.ProcessEvent(mouseUp) widget.ProcessEvent(mouseLeave) # Give Yield to the App &lt;/span&gt;&lt;span class="rem"&gt;- wx.GetApp().Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.GetApp().Yield(True) &lt;/span&gt;&lt;span class="cx"&gt; def emulate_return(block=None): &amp;quot;&amp;quot;&amp;quot; Simulates a return-key event in the given block &amp;quot;&amp;quot;&amp;quot; &lt;/span&gt;&lt;span class="lines"&gt;@@ -287,7 +286,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; return False def idle(): &lt;/span&gt;&lt;span class="rem"&gt;- app = wx.GetApp() - app.Yield() - app.ProcessEvent(wx.IdleEvent()) - app.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ theApp = wx.GetApp() + theApp.Yield(True) + theApp.ProcessEvent(wx.IdleEvent()) + theApp.Yield(True) &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlerparcelsosafframeworkscriptingproxypy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/parcels/osaf/framework/scripting/proxy.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/parcels/osaf/framework/scripting/proxy.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/parcels/osaf/framework/scripting/proxy.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -96,7 +96,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; # Next propagate notifications so the UI will match the data. # Then call Yeild to process an pending events wx.GetApp().propagateAsynchronousNotifications() &lt;/span&gt;&lt;span class="rem"&gt;- wx.GetApp().Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.GetApp().Yield(True) &lt;/span&gt;&lt;span class="cx"&gt; return result &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlerparcelsosafframeworkscriptingscriptpy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/parcels/osaf/framework/scripting/script.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/parcels/osaf/framework/scripting/script.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/parcels/osaf/framework/scripting/script.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -225,12 +225,14 @@ &lt;/span&gt;&lt;span class="cx"&gt; # been updated, i.e. drawn -- and when the screen isn't drawn # the focus can't be set to a widget that hasn't been drawn # so we explicitely update the screen before running the tests &lt;/span&gt;&lt;span class="rem"&gt;- mainFrame = wx.GetApp().mainFrame &lt;/span&gt;&lt;span class="add"&gt;+ app = wx.GetApp() + mainFrame = app.mainFrame &lt;/span&gt;&lt;span class="cx"&gt; mainFrame.Update() &lt;/span&gt;&lt;span class="rem"&gt;- wx.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; mainFrame.Update() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) + &lt;/span&gt;&lt;span class="cx"&gt; global global_cats_profiler &lt;/span&gt;&lt;span class="rem"&gt;- wx.Yield() &lt;/span&gt;&lt;span class="cx"&gt; if Globals.options.testScripts: try: for aScript in Script.iterItems(view): &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlerparcelsosafviewsdetaildetailpy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/parcels/osaf/views/detail/detail.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/parcels/osaf/views/detail/detail.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/parcels/osaf/views/detail/detail.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -754,7 +754,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; #url, collectionName = MailSharing.getSharingHeaderInfo(self.item) #statusBlock = Block.Block.findBlockByName('StatusBar') #statusBlock.setStatusMessage( _(u'Subscribing to collection...') ) &lt;/span&gt;&lt;span class="rem"&gt;- #wx.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ #wx.GetApp().Yield(True) &lt;/span&gt;&lt;span class="cx"&gt; ## If this code is ever revived, it should call sharing.subscribe(), ## rather than the following: &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlerparcelsosafviewsmainMainpy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/parcels/osaf/views/main/Main.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/parcels/osaf/views/main/Main.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/parcels/osaf/views/main/Main.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -507,7 +507,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; # Update the display every so often if len (searchResults) % 50 == 0: app.propagateAsynchronousNotifications() &lt;/span&gt;&lt;span class="rem"&gt;- app.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; if len(searchResults) == 0: # For now we'll write a message to the status bar because it's easy &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlerparcelsosafviewsmainSideBarpy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/parcels/osaf/views/main/SideBar.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/parcels/osaf/views/main/SideBar.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/parcels/osaf/views/main/SideBar.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -572,8 +572,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; if userCollection.iconNameHasClassVariant and filterClass is not MissingClass: iconName += filterClass.__name__ &lt;/span&gt;&lt;span class="rem"&gt;- app = wx.GetApp() - image = app.GetRawImage (imagePrefix + iconName + mouseState + deactive + imageSuffix) &lt;/span&gt;&lt;span class="add"&gt;+ image = wx.GetApp().GetRawImage (imagePrefix + iconName + mouseState + deactive + imageSuffix) &lt;/span&gt;&lt;span class="cx"&gt; if image is not None: if userCollection.colorizeIcon: &lt;/span&gt;&lt;span class="lines"&gt;@@ -669,8 +668,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; filterClass is not MissingClass): iconName += filterClass.__name__ &lt;/span&gt;&lt;span class="rem"&gt;- app = wx.GetApp() - image = app.GetRawImage (imagePrefix + iconName + mouseState + deactive + imageSuffix) &lt;/span&gt;&lt;span class="add"&gt;+ image = wx.GetApp().GetRawImage (imagePrefix + iconName + mouseState + deactive + imageSuffix) &lt;/span&gt;&lt;span class="cx"&gt; if image is not None and userCollection.colorizeIcon: userCollection.ensureColor() &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlerprojectsChandlerAmazonPluginamazonAmazonKindspy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/projects/Chandler-AmazonPlugin/amazon/AmazonKinds.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/projects/Chandler-AmazonPlugin/amazon/AmazonKinds.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/projects/Chandler-AmazonPlugin/amazon/AmazonKinds.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -31,7 +31,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; def _showError(errText): theApp = wx.GetApp() if theApp is not None: &lt;/span&gt;&lt;span class="rem"&gt;- wx.MessageBox(errText, _(u&amp;quot;Amazon Error&amp;quot;), parent=wx.GetApp().mainFrame) &lt;/span&gt;&lt;span class="add"&gt;+ wx.MessageBox(errText, _(u&amp;quot;Amazon Error&amp;quot;), parent=theApp.mainFrame) &lt;/span&gt;&lt;span class="cx"&gt; def SearchByKeyword(repView, keywords=None, countryCode=None, category=None): &amp;quot;&amp;quot;&amp;quot; &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlerprojectsChandlerPhotoPluginphotosPhotospy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/projects/Chandler-PhotoPlugin/photos/Photos.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/projects/Chandler-PhotoPlugin/photos/Photos.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/projects/Chandler-PhotoPlugin/photos/Photos.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -149,7 +149,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; theApp.CallItemMethodAsync(&amp;quot;MainView&amp;quot;, 'setStatusMessage', _(u&amp;quot;Importing %(filePath)s&amp;quot;) % {'filePath': path}) &lt;/span&gt;&lt;span class="rem"&gt;- wx.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; photo = Photo(itsView=self.itsView) photo.displayName = filename photo.creator = schema.ns(&amp;quot;osaf.pim&amp;quot;, self.itsView).currentContact.item &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlerprojectsChandlerdebugPlugindebugTestMenupy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/projects/Chandler-debugPlugin/debug/TestMenu.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/projects/Chandler-debugPlugin/debug/TestMenu.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/projects/Chandler-debugPlugin/debug/TestMenu.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -48,8 +48,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; def on_debug_GenerateDataFromFileEvent(self, event): # triggered from &amp;quot;Tools | Test | Generate Items from a File&amp;quot; menu &lt;/span&gt;&lt;span class="rem"&gt;- app = wx.GetApp() - res = dialogs.Util.showFileDialog(app.mainFrame, &lt;/span&gt;&lt;span class="add"&gt;+ res = dialogs.Util.showFileDialog(wx.GetApp().mainFrame, &lt;/span&gt;&lt;span class="cx"&gt; _m_(u&amp;quot;Choose a file to import&amp;quot;), &amp;quot;&amp;quot;, _m_(u&amp;quot;import.csv&amp;quot;), _m_(u&amp;quot;CSV files|*.csv&amp;quot;), &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlertoolsQATestScriptsPerformancePerfLargeDataResizeCalendarpy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/tools/QATestScripts/Performance/PerfLargeDataResizeCalendar.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/tools/QATestScripts/Performance/PerfLargeDataResizeCalendar.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/tools/QATestScripts/Performance/PerfLargeDataResizeCalendar.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -43,7 +43,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; logger.Start(&amp;quot;Resize app in calendar mode&amp;quot;) for d in xrange(10, 51, 10): frame.SetSize((x - d, y - d)) &lt;/span&gt;&lt;span class="rem"&gt;- wx.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; User.idle() # Without this we'll quit during last resize logger.Stop() &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlertoolsQATestScriptsPerformancePerfLargeDataScrollCalendarpy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/tools/QATestScripts/Performance/PerfLargeDataScrollCalendar.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/tools/QATestScripts/Performance/PerfLargeDataScrollCalendar.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/tools/QATestScripts/Performance/PerfLargeDataScrollCalendar.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -62,7 +62,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; logger.Start(&amp;quot;Scroll calendar one unit&amp;quot;) # Actually 24 units for units in xrange(1, 25): calendarWidget.Scroll(0, units) &lt;/span&gt;&lt;span class="rem"&gt;- wx.Yield() # Each Yield should result in a single paint to the calendar &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) # Each Yield should result in a single paint to the calendar &lt;/span&gt;&lt;span class="cx"&gt; logger.Stop() # Test Phase: Verification &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlertoolsQATestScriptsPerformancePerfLargeDataScrollTablepy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/tools/QATestScripts/Performance/PerfLargeDataScrollTable.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/tools/QATestScripts/Performance/PerfLargeDataScrollTable.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/tools/QATestScripts/Performance/PerfLargeDataScrollTable.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -59,7 +59,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; logger.Start(&amp;quot;Scroll table 25 scroll units&amp;quot;) for units in xrange(1, 25): tableWidget.Scroll(0, units) &lt;/span&gt;&lt;span class="rem"&gt;- wx.Yield() # Each Yield should result in a single paint to the table &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) # Each Yield should result in a single paint to the table &lt;/span&gt;&lt;span class="cx"&gt; logger.Stop() # Test Phase: Verification &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlertoolsQAUITestAppLibpy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/tools/QAUITestAppLib.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/tools/QAUITestAppLib.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/tools/QAUITestAppLib.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -115,7 +115,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; logger.Start('Publish') win.PublishCollection() while not win.done: &lt;/span&gt;&lt;span class="rem"&gt;- app.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; logger.Stop() if not win.success: &lt;/span&gt;&lt;span class="lines"&gt;@@ -139,7 +139,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; #Done button call win.OnPublishDone(None) &lt;/span&gt;&lt;span class="rem"&gt;- app.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; # Unsubscribe and delete the (local) collection we just published so # that we can subscribe to it below. &lt;/span&gt;&lt;span class="lines"&gt;@@ -168,7 +168,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; win.OnSubscribe(None) try: while win.subscribing: &lt;/span&gt;&lt;span class="rem"&gt;- app.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; except wx.PyDeadObjectError: # XXX The C++ part of the dialog was gone, so we are no longer # XXX supposed to touch any attributes of the dialog. In our &lt;/span&gt;&lt;span class="lines"&gt;@@ -756,7 +756,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; if self.logger: self.logger.ReportPass(&amp;quot;Focus set in Detail View&amp;quot;) else: if self.logger: self.logger.ReportFailure(&amp;quot;Detail View had no focusable blocks&amp;quot;) &lt;/span&gt;&lt;span class="rem"&gt;- wx.GetApp().Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; if self.logger: self.logger.Stop() def SetTimeZone(self, timeZone, timeInfo=True): &lt;/span&gt;&lt;span class="lines"&gt;@@ -815,7 +815,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; if timeInfo: if self.logger: self.logger.Start(&amp;quot;Sending the message&amp;quot;) App_ns.appbar.press(&amp;quot;ApplicationBarSendButton&amp;quot;) &lt;/span&gt;&lt;span class="rem"&gt;- wx.GetApp().Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; #checkings if self.logger: self.logger.SetChecked(True) sent = None &lt;/span&gt;&lt;span class="lines"&gt;@@ -828,7 +828,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; # wait for mail delivery mailMessage = pim.mail.MailStamp(self.item) while not sent: &lt;/span&gt;&lt;span class="rem"&gt;- wx.GetApp().Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; sent = mailMessage.isSent() if timeInfo: if self.logger: self.logger.Stop() &lt;/span&gt;&lt;span class="lines"&gt;@@ -891,7 +891,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; # Processing of the corresponding CPIA event App_ns.root.Delete() # give the Yield &lt;/span&gt;&lt;span class="rem"&gt;- wx.GetApp().Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; if timeInfo: if self.logger: self.logger.Stop×JXsJˆ’D Wed, 07 Jan, 05:01
al...@osafoundation.org> &lt;/span&gt;&lt;span class="add"&gt;+ app = wx.GetApp() + mainFrame = app.mainFrame &lt;/span&gt;&lt;span class="cx"&gt; mainFrame.Update() &lt;/span&gt;&lt;span class="rem"&gt;- wx.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; mainFrame.Update() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) + &lt;/span&gt;&lt;span class="cx"&gt; global global_cats_profiler &lt;/span&gt;&lt;span class="rem"&gt;- wx.Yield() &lt;/span&gt;&lt;span class="cx"&gt; if Globals.options.testScripts: try: for aScript in Script.iterItems(view): &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlerparcelsosafviewsdetaildetailpy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/parcels/osaf/views/detail/detail.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/parcels/osaf/views/detail/detail.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/parcels/osaf/views/detail/detail.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -754,7 +754,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; #url, collectionName = MailSharing.getSharingHeaderInfo(self.item) #statusBlock = Block.Block.findBlockByName('StatusBar') #statusBlock.setStatusMessage( _(u'Subscribing to collection...') ) &lt;/span&gt;&lt;span class="rem"&gt;- #wx.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ #wx.GetApp().Yield(True) &lt;/span&gt;&lt;span class="cx"&gt; ## If this code is ever revived, it should call sharing.subscribe(), ## rather than the following: &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlerparcelsosafviewsmainMainpy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/parcels/osaf/views/main/Main.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/parcels/osaf/views/main/Main.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/parcels/osaf/views/main/Main.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -507,7 +507,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; # Update the display every so often if len (searchResults) % 50 == 0: app.propagateAsynchronousNotifications() &lt;/span&gt;&lt;span class="rem"&gt;- app.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ <mailto:commits-request@osafoundation.org?subject=help> List-Subscribe: <http://lisø== Thu, 21 Sep, 16:56
al...@osafoundation.org> &lt;/span&gt;&lt;span class="cx"&gt; # been updated, i.e. drawn -- and when the screen isn't drawn # the focus can't be set to a widget that hasn't been drawn # so we explicitely update the screen before running the tests &lt;/span&gt;&lt;span class="rem"&gt;- mainFrame = wx.GetApp().mainFrame &lt;/span&gt;&lt;span class="add"&gt;+ app = wx.GetApp() + mainFrame = app.mainFrame &lt;/span&gt;&lt;span class="cx"&gt; mainFrame.Update() &lt;/span&gt;&lt;span class="rem"&gt;- wx.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; mainFrame.Update() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) + &lt;/span&gt;&lt;span class="cx"&gt; global global_cats_profiler &lt;/span&gt;&lt;span class="rem"&gt;- wx.Yield() &lt;/span&gt;&lt;span class="cx"&gt; if Globals.options.testScripts: try: for aScript in Script.iterItems(view): &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlerparcelsosafviewsdetaildetailpy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/parcels/osaf/views/detail/detail.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/parcels/osaf/views/detail/detail.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/parcels/osaf/views/detail/detail.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -754,7 +754,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; #url, collectionName = MailSharing.getSharingHeaderInfo(self.item) #statusBlock = Block.Block.findBlockByName('StatusBar') #statusBlock.setStatusMessage( _(u'Subscribing to collection...') ) &lt;/span&gt;&lt;span class="rem"&gt;- #wx.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ #wx.GetApp().Yield(True) &lt;/span&gt;&lt;span class="cx"&gt; ## If this code is ever revived, it should call sharing.subscribe(), ## rather than the following: &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlerparcelsosafviewsmainMainpy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/parcels/osaf/views/main/Main.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/parcels/osaf/views/main/Main.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/parcels/osaf/views/main/Main.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -507,7 +507,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; pan class="add"&gt;+ <mailto:commits-request@osafoundation.org?subject=help> List-Subscribe: <http://lisø== Thu, 21 Sep, 16:56
is as gone, so we are no longer # XXX supposed to touch any attributes of the dialog. In our &lt;/span&gt;&lt;span class="lines"&gt;@@ -756,7 +756,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; if self.logger: self.logger.ReportPass(&amp;quot;Focus set in Detail View&amp;quot;) else: if self.logger: self.logger.ReportFailure(&amp;quot;Detail View had no focusable blocks&amp;quot;) &lt;/span&gt;&lt;span class="rem"&gt;- wx.GetApp().Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; if self.logger: self.logger.Stop() def SetTimeZone(self, timeZone, timeInfo=True): &lt;/span&gt;&lt;span class="lines"&gt;@@ -815,7 +815,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; if timeInfo: if self.logger: self.logger.Start(&amp;quot;Sending the message&amp;quot;) App_ns.appbar.press(&amp;quot;ApplicationBarSendButton&amp;quot;) &lt;/span&gt;&lt;span class="rem"&gt;- wx.GetApp().Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; #checkings if self.logger: self.logger.SetChecked(True) sent = None &lt;/span&gt;&lt;span class="lines"&gt;@@ -828,7 +828,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; # wait for mail delivery mailMessage = pim.mail.MailStamp(self.item) while not sent: &lt;/span&gt;&lt;span class="rem"&gt;- wx.GetApp().Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; sent = mailMessage.isSent() if timeInfo: if self.logger: self.logger.Stop() &lt;/span&gt;&lt;span class="lines"&gt;@@ -891,7 +891,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; # Processing of the corresponding CPIA event App_ns.root.Delete() # give the Yield &lt;/span&gt;&lt;span class="rem"&gt;- wx.GetApp().Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; if timeInfo: if self.logger: self.logger.Stop×JXsJˆ’D Sun, 22 Jun, 20:09
m.@kahuna.osafoundation.org> tableWidget.Scroll(0, units) &lt;/span&gt;&lt;span class="rem"&gt;- wx.Yield() # Each Yield should result in a single paint to the table &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) # Each Yield should result in a single paint to the table &lt;/span&gt;&lt;span class="cx"&gt; logger.Stop() # Test Phase: Verification &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlertoolsQAUITestAppLibpy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/tools/QAUITestAppLib.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/tools/QAUITestAppLib.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/tools/QAUITestAppLib.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -115,7 +115,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; logger.Start('Publish') win.PublishCollection() while not win.done: &lt;/span&gt;&lt;span class="rem"&gt;- app.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; logger.Stop() if not win.success: &lt;/span&gt;&lt;span class="lines"&gt;@@ -139,7 +139,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; #Done button call win.OnPublishDone(None) &lt;/span&gt;&lt;span class="rem"&gt;- app.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; # Unsubscribe and delete the (local) collection we just published so # that we can subscribe to it below. &lt;/span&gt;&lt;span class="lines"&gt;@@ -168,7 +168,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; win.OnSubscribe(None) try: while win.subscribing: &lt;/span&gt;&lt;span class="rem"&gt;- app.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; except wx.PyDeadObjectError: # XXX The C++ part of the dialog was gone, so we are no longer # XXX supposed to touch any attributes of the dialog. In our &lt;/span&gt;&lt;span class="lines"&gt;@@ -756,7 +756,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; if self.logger: self.logger.ReportPass(&amp;quot;Focus set in Detail View&amp;quot;) else: if self.logger: self.logger.ReportFailure(&amp;quot;Detail View had no focusable blocks&amp;quot;) &lt;/span&gt;&lt;span class="rem"&gt;- wx.GetApp().Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; if self.logger: self.logger.Stop() def SetTimeZone(self, timeZone, timeInfo=True): &lt;/span&gt;&lt;span class="lines"&gt;@@ -815,7 +815,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; if timeInfo: if self.logger: self.logger.Start(&amp;quot;Sending the message&amp;quot;) App_ns.appbar.press(&amp;quot;ApplicationBarSendButton&amp;quot;) &lt;/span&gt;&lt;span class="rem"&gt;- wx.GetApp().Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; #checkings if self.logger: self.logger.SetChecked(True) sent = None &lt;/span&gt;&lt;span class="lines"&gt;@@ -828,7 +828,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; # wait for mail delivery mailMessage = pim.mail.MailStamp(self.item) while not sent: &lt;/span&gt;&lt;span class="rem"&gt;- wx.GetApp().Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; sent = mailMessage.isSent() if timeInfo: if self.logger: self.logger.Stop() &lt;/span&gt;&lt;span class="lines"&gt;@@ -891,7 +891,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; # Processing of the corresponding CPIA event App_ns.root.Delete() # give the Yield &lt;/span&gt;&lt;span class="rem"&gt;- wx.GetApp().Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; if timeInfo: if self.logger: self.logger.Stop×JXsJˆ’D Mon, 03 May, 09:42
m.@osafoundation.org> t; logger.Stop() # Test Phase: Verification &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlertoolsQAUITestAppLibpy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/tools/QAUITestAppLib.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/tools/QAUITestAppLib.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/tools/QAUITestAppLib.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -115,7 +115,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; logger.Start('Publish') win.PublishCollection() while not win.done: &lt;/span&gt;&lt;span class="rem"&gt;- app.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.SafeYield(None,