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