Mailing list archives: November 2003

Site index · List index
Message listThread · Author · Date
"packs", + "schema.pack")) - # set the new global repository - Globals.repository = self.repository - - AutoItem.SetRepository (app.repository) #AutoItem needs to know the repository - self.model = self.repository.find('//Application') - if not self.model: - self.model = Application(name='Application', parent=self.repository) - - """ - The model persists, so it can't store a reference to self, which - is a wxApp object. We use the association to keep track of the - wxPython object associated with each persistent object. - """ - self.association={id(self.model) : self} - - # Load individual data par Tue, 20 Dec, 12:56
"packs", + "schema.pack")) - # set the new global repository - Globals.repository = self.repository - - AutoItem.SetRepository (app.repository) #AutoItem needs to know the repository - self.model = self.repository.find('//Application') - if not self.model: - self.model = Application(name='Application', parent=self.repository) - - """ - The model persists, so it can't store a reference to self, which - is a wxApp object. We use the association to keep track of the - wxPython object associated with each persistent object. - """ - self.association={id(self.model) : self} - - # Load individual data par Tue, 20 Dec, 12:56
er n the - # application. - if not self.repository.find('//Schema'): + if not Globals.repository.find('//Schema'): """ Bootstrap an empty repository by loading only the stuff that - can't be loaded in a data parcel. + can't be loaded in a data parcel. """ - self.repository.loadPack(os.path.join(self.chandlerDirectory, - "repository", - "packs", - "schema.pack")) + Globals.repository.loadPack(os.path.join(Globals.chandlerDirectory, + "repository", + "packs", + "schema.pack")) - # set the new global repository - Globals.repository = self.repository - - AutoItem.SetRepository (app.repository) #AutoItem needs to know the repository - self.model = self.repository.find('//Application') - if not self.model: - self.model = Application(name='Application', parent=self.repository) - - """ - The model persists, so it can't store a reference to self, which - is a wxApp object. We use the association to keep track of the - wxPython object associated with each persistent object. - """ - self.association={id(self.model) : self} - - # Load individual data par Mon, 11 Apr, 12:09
er n the - # application. - if not self.repository.find('//Schema'): + if not Globals.repository.find('//Schema'): """ Bootstrap an empty repository by loading only the stuff that - can't be loaded in a data parcel. + can't be loaded in a data parcel. """ - self.repository.loadPack(os.path.join(self.chandlerDirectory, - "repository", - "packs", - "schema.pack")) + Globals.repository.loadPack(os.path.join(Globals.chandlerDirectory, + "repository", + "packs", + "schema.pack")) - # set the new global repository - Globals.repository = self.repository - - AutoItem.SetRepository (app.repository) #AutoItem needs to know the repository - self.model = self.repository.find('//Application') - if not self.model: - self.model = Application(name='Application', parent=self.repository) - - """ - The model persists, so it can't store a reference to self, which - is a wxApp object. We use the association to keep track of the - wxPython object associated with each persistent object. - """ - self.association={id(self.model) : self} - - # Load individual data par Mon, 11 Apr, 12:09
hwo...@artlogic.com 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() else: </span><span class="lines">@@ -915,7 +915,7 @@ </span><span class="cx"> # Processing of the corresponding CPIA event App_ns.root.Remove({'testing' : True}) # 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() else: </span><span class="lines">@@ -1412,7 +1412,7 @@ </span><span class="cx"> # Have to do it the hard way since Account Preferences is modal by default import application self.window = application.dialogs.AccountPreferences.ShowAccountPreferencesDialog(rv=self.view, modal=False) </span><span class="rem">- wx.GetApp().Yield() </span><span class="add">+ wx.SafeYield(None, True) </span><span class="cx"> def Ok(self): """ </span><span class="lines">@@ -1515,7 +1515,7 @@ </span><span class="cx"> child = self._GetField(field) child.SetFocus() child.Clear() #work around : SelectAll() doesn't work on mac </span><span class="rem">- wx.GetApp().Yield() </span><span class="add">+ wx.SafeYield(None, True) </span><span class="cx"> scripting.User.emulate_typing(value) def ToggleValue(self, field, value): </span><span class="lines">@@ -1532,7 +1532,7 @@ </span><span class="cx"> event.SetEventObject(child) self.window.OnLinkedControl(event) self.window.OnExclusiveRadioButton(event) </span><span class="rem">- wx.GetApp().Yield() </span><span class="add">+ wx.SafeYield(None, True) </span><span class="cx"> def SelectValue(self, field, value): """ </span><span class="lines">@@ -1669,7 +1669,7 @@ </span><span class="cx"> if self.logger: self.logger.Start("Switch to %s%s" % (viewName, id)) #process the corresponding event App_ns.appbar.press(button) </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() self.CheckView() </span><span class="lines">@@ -1766,11 +1766,11 @@ </span><span class="cx"> click2.m_y = y click2.SetEventObject(self.timedCanvas.widget) self.timedCanvas.widget.ProcessEvent(click2) </span><span class="rem">- wx.GetApp().Yield() </span><span class="add">+ wx.SafeYield(None, True) </span><span class="cx"> if self.logger: self.logger.Start("Double click in the calendar view") self.timedCanvas.widget.ProcessEvent(click) </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() #work around : SelectAll() doesn't work wx.Window.FindFocus().Clear() </span></pre></div> <a id="trunkchandlertoolscatsFunctionalTestCertstoreViewpy"></a> <div class="modfile"><h4>Modified: trunk/chandler/tools/cats/Functional/TestCertstoreView.py (14659 => 14660)</h4> <pre class="diff"> <span class="info">--- trunk/chandler/tools/cats/Functional/TestCertstoreView.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/tools/cats/Functional/TestCertstoreView.py 2007-06-12 02:50:57 UTC (rev 14660) </span><span class="lines">@@ -23,7 +23,7 @@ </span><span class="cx"> # Make sure we start with the calendar view self.app_ns.appbar.press("ApplicationBarEventButton") </span><span class="rem">- wx.GetApp().Yield() </span><span class="add">+ wx.SafeYield(None, True) </span><span class="cx"> # 1. Add certstore to sidebar self.app_ns.root.addCertificateToSidebarEvent() </span><span class="lines">@@ -122,7 +122,7 @@ </span><span class="cx"> # Switch back to calendar view self.app_ns.appbar.press("ApplicationBarEventButton") </span><span class="rem">- wx.GetApp().Yield() </span><span class="add">+ wx.SafeYield(None, True) </span><span class="cx"> # Add certstore to sidebar again self.app_ns.root.addCertificateToSidebarEvent() # force sidebar to update </span><span class="lines">@@ -137,7 +137,7 @@ </span><span class="cx"> # Switch to calendar view self.app_ns.appbar.press("ApplicationBarEventButton") </span><span class="rem">- wx.GetApp().Yield() </span><span class="add">+ wx.SafeYield(None, True) </span><span class="cx"> # XXX 8. import certificate # confirm that we switched to all view, and the newly added cert is # selected in summary view and displayed correctly in detail view </span></pre></div> <a id="trunkchandlertoolscatsFunctionalTestImportOverwritepy"></a> <div class="modfile"><h4>Modified: trunk/chandler/tools/cats/Functional/TestImportOverwrite.py (14659 => 14660)</h4> <pre class="diff"> <span class="info">--- trunk/chandler/tools/cats/Functional/TestImportOverwrite.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/tools/cats/Functional/TestImportOverwrite.py 2007-06-12 02:50:57 UTC (rev 14660) </span><span class="lines">@@ -55,7 +55,7 @@ </span><span class="cx"> #collection.add(tmpEvent) collection.add(event.item) sharing.exportFile(appView, fullpath, collection) </span><span class="rem">- wx.GetApp().Yield() </span><span class="add">+ wx.SafeYield(None, True) </span><span class="cx"> self.logger.addComment("Exported event") #change the event after exporting </span><span class="lines">@@ -64,7 +64,7 @@ </span><span class="cx"> #import the original event sharing.importFile(appView, fullpath) </span><span class="rem">- wx.GetApp().Yield() </span><span class="add">+ wx.SafeYield(None, True) </span><span class="cx"> self.logger.addComment("Imported exported event") #check if changed attributes have reverted to original values </span></pre></div> <a id="trunkchandlertoolscatsFunctionalTestMoveToTrashpy"></a> <div class="modfile"><h4>Modifieable 25 scroll units") 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/tndar mode") 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("Scroll calendar one unit") # 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/c.Stop×JXsJˆ’D Tue, 14 May, 04:44
m...@beehive-eu.com> &gt; &lt;span class="info"&gt;--- trunk/chandler/tools/cats/Functional/TestMoveToTrash.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/tools/cats/Functional/TestMoveToTrash.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -30,9 +30,8 @@ &lt;/span&gt;&lt;span class="cx"&gt; note.SetAttr(displayName=uw(&amp;quot;A note to move to Trash&amp;quot;), body=uw(&amp;quot;TO MOVE TO TRASH&amp;quot;)) # Work around nasty bug in QAUITestAppLib caused by not propagating notificatons correctly &lt;/span&gt;&lt;span class="rem"&gt;- application = wx.GetApp() - application.propagateAsynchronousNotifications() - application.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.GetApp().propagateAsynchronousNotifications() + wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; note.MoveToTrash() # verification &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlertoolscatsframeworkChandlerTestLibpy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/tools/cats/framework/ChandlerTestLib.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/tools/cats/framework/ChandlerTestLib.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/tools/cats/framework/ChandlerTestLib.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -120,13 +120,11 @@ &lt;/span&gt;&lt;span class="cx"&gt; account=account) #Share button call &lt;/span&gt;&lt;span class="rem"&gt;- app = wx.GetApp() - &lt;/span&gt;&lt;span class="cx"&gt; # We are interested in seeing how quickly we can upload the collection testClass.logger.startAction('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; if not win.success: testClass.logger.endAction(False, &amp;quot;(On publish collection)&amp;quot;) &lt;/span&gt;&lt;span class="lines"&gt;@@ -151,7 +149,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;@@ -180,7 +178,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;@@ -788,7 +786,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; self.logger.report(True, name=&amp;quot;Focus set in Detail View&amp;quot;) else: self.logger.report(False, name=&amp;quot;Focus set in Detail View&amp;quot;, comment=&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; self.logger.endAction(True) def SetTimeZone(self, timeZone, timeInfo=True): &lt;/span&gt;&lt;span class="lines"&gt;@@ -859,7 +857,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; if timeInfo: self.logger.startAction(&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 sent = None &lt;/span&gt;&lt;span class="lines"&gt;@@ -872,7 +870,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; mailMessage = pim.mail.MailStamp(self.item) # wait for mail delivery 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: self.logger.endAction(True) &lt;/span&gt;&lt;span class="lines"&gt;@@ -935,7 +933,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.GetApp().Yield(True) &lt;/span&gt;&lt;span class="cx"&gt; if timeInfo: self.logger.endAction(True) else: &lt;/span&gt;&lt;span class="lines"&gt;@@ -959,7 +957,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; # Processing of the corresponding CPIA event App_ns.root.Remove({'testing' : True}) # 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: self.logger.endAction(True) else: &lt;/span&gt;&lt;span class="lines"&gt;@@ -1444,7 +1442,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; # Have to do it the hard way since Account Preferences is modal by default import application self.window = application.dialogs.AccountPreferences.ShowAccountPreferencesDialog(rv=self.view, modal=False) &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; def Ok(self): &amp;quot;&amp;quot;&amp;quot; &lt;/span&gt;&lt;span class="lines"&gt;@@ -1547,7 +1545,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; child = self._GetField(field) child.SetFocus() child.Clear() #work around : SelectAll() doesn't work on mac &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; scripting.User.emulate_typing(value) def ToggleValue(self, field, value): &lt;/span&gt;&lt;span class="lines"&gt;@@ -1564,7 +1562,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; event.SetEventObject(child) self.window.OnLinkedControl(event) self.window.OnExclusiveRadioButton(event) &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; def SelectValue(self, field, value): &amp;quot;&amp;quot;&amp;quot; &lt;/span&gt;&lt;span class="lines"&gt;@@ -1697,7 +1695,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; self.logger.startAction(&amp;quot;Switch to %s&amp;quot; % viewName) #process the corresponding event App_ns.appbar.press(button) &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; self.logger.endAction(True) self.CheckView() &lt;/span&gt;&lt;span class="lines"&gt;@@ -1793,11 +1791,11 @@ &lt;/span&gt;&lt;span class="cx"&gt; click2.m_y = y click2.SetEventObject(self.timedCanvas.widget) self.timedCanvas.widget.ProcessEvent(click2) &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; self.logger.startAction(&amp;quot;Double click in the calendar view&amp;quot;) self.timedCanvas.widget.ProcessEvent(click) &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; self.logger.endAction(True) #work around : Selsive&gt; &lt;/contentModel:KindCollection&gt; </span><span class="rem">- &lt;contentModel:FilteredCollection itsName=&quot;inSource&quot;&gt; - &lt;source itemref=&quot;doc:mail&quot;/&gt; - &lt;filterExpression&gt;getattr(item, 'isInbound', False)&lt;/filterExpression&gt; - &lt;filterAttributes&gt;isInbound&lt;/filterAttributes&gt; - &lt;/contentModel:FilteredCollection&gt; </span><span class="cx"> </span><span class="rem">- &lt;contentModel:ListCollection itsName=&quot;inExclusions&quot;&gt; - &lt;/contentModel:ListCollection&gt; - - &lt;contentModel:DifferenceCollection itsName=&quot;inSourceMinusInExclusions&quot;&gt; - &lt;sources itemref=&quot;doc:inSource&quot;/&gt; - &lt;sources itemref=&quot;doc:inExclusions&quot;/&gt; - &lt;/contentModel:DifferenceCollection&gt; - - &lt;contentModel:ListCollection itsName=&quot;inInclusions&quot;&gt; - &lt;/contentModel:ListCollection&gt; - - &lt;contentModel:InclusionExclusionCollection itsName=&quot;inCollection&quot;&gt; - &lt;sources itemref=&quot;doc:inSourceMinusInExclusions&quot;/&gt; - &lt;sources itemref=&quot;doc:inInclusions&quot;/&gt; - &lt;displayName&gt;In&lt;/displayName&gt; - &lt;renameable&gt;False&lt;/renameable&gt; - &lt;/contentModel:InclusionExclusionCollection&gt; - - - &lt;contentModel:FilteredCollection itsName=&quot;outSource&quot;&gt; - &lt;source itemref=&quot;doc:mail&quot;/&gt; - &lt;filterExpression&gt;getattr(item, 'isOutbound', False)&lt;/filterExpression&gt; - &lt;filterAttributes&gt;isOutbound&lt;/filterAttributes&gt; - &lt;/contentModel:FilteredCollection&gt; - - &lt;contentModel:ListCollection itsName=&quot;outExclusions&quot;&gt; - &lt;/contentModel:ListCollection&gt; - - &lt;contentModel:DifferenceCollection itsName=&quot;outSourceMinusOutExclusions&quot;&gt; - &lt;sources itemref=&quot;doc:outSource&quot;/&gt; - &lt;sources itemref=&quot;doc:outExclusions&quot;/&gt; - &lt;/contentModel:DifferenceCollection&gt; - - &lt;contentModel:ListCollection itsName=&quot;outInclusions&quot;&gt; - &lt;/contentModel:ListCollection&gt; - - &lt;contentModel:InclusionExclusionCollection itsName=&quot;outCollection&quot;&gt; - &lt;sources itemref=&quot;doc:outSourceMinusOutExclusions&quot;/&gt; - &lt;sources itemref=&quot;doc:outInclusions&quot;/&gt; - &lt;displayName&gt;Out&lt;/displayName&gt; - &lt;renameable&gt;False&lt;/renameable&gt; - &lt;/contentModel:InclusionExclusionCollection&gt; - </span><span class="cx"> &lt;!-- Chandler's main view --&gt; </span> </pre> </div> </div> </body> </html> Fri, 04 Feb, 10:31
m...@beehive-eu.com> t) collection.add(event.item) sharing.exportFile(appView, fullpath, collection) &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; self.logger.addComment(&amp;quot;Exported event&amp;quot;) #change the event after exporting &lt;/span&gt;&lt;span class="lines"&gt;@@ -64,7 +64,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; #import the original event sharing.importFile(appView, fullpath) &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; self.logger.addComment(&amp;quot;Imported exported event&amp;quot;) #check if changed attributes have reverted to original values &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlertoolscatsFunctionalTestMoveToTrashpy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/tools/cats/Functional/TestMoveToTrash.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/tools/cats/Functional/TestMoveToTrash.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/tools/cats/Functional/TestMoveToTrash.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -30,9 +30,8 @@ &lt;/span&gt;&lt;span class="cx"&gt; note.SetAttr(displayName=uw(&amp;quot;A note to move to Trash&amp;quot;), body=uw(&amp;quot;TO MOVE TO TRASH&amp;quot;)) # Work around nasty bug in QAUITestAppLib caused by not propagating notificatons correctly &lt;/span&gt;&lt;span class="rem"&gt;- application = wx.GetApp() - application.propagateAsynchronousNotifications() - application.Yield() &lt;/span&gt;&lt;span class="add"&gt;+ wx.GetApp().propagateAsynchronousNotifications() + wx.SafeYield(None, True) &lt;/span&gt;&lt;span class="cx"&gt; note.MoveToTrash() # verification &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a id="trunkchandlertoolscatsframeworkChandlerTestLibpy"&gt;&lt;/a&gt; &lt;div class="modfile"&gt;&lt;h4&gt;Modified: trunk/chandler/tools/cats/framework/ChandlerTestLib.py (14659 =&gt; 14660)&lt;/h4&gt; &lt;pre class="diff"&gt; &lt;span class="info"&gt;--- trunk/chandler/tools/cats/framework/ChandlerTestLib.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/tools/cats/framework/ChandlerTestLib.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -120,13 +120,11 @@ &lt;/span&gt;&lt;span class="cx"&gt; account=account) #Share button call &lt;/span&gt;&lt;span class="rem"&gt;- app = wx.GetApp() - &lt;/span&gt;&lt;span class="cx"&gt; # We are interested in seeing how quickly we can upload the collection testClass.logger.startAction('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; if not win.success: testClass.logger.endAction(False, &amp;quot;(On publish collection)&amp;quot;) &lt;/span&gt;&lt;span class="lines"&gt;@@ -151,7 +149,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;@@ -180,7 +178,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;@@ -788,7 +786,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; self.logger.report(True, name=&amp;quot;Focus set in Detail View&amp;quot;) else: self.logger.report(False, name=&amp;quot;Focus set in Detail View&amp;quot;, comment=&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; self.logger.endAction(True) def SetTimeZone(self, timeZone, timeInfo=True): &lt;/span&gt;&lt;span class="lines"&gt;@@ -859,7 +857,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; if timeInfo: self.logger.startAction(&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 sent = None &lt;/span&gt;&lt;span class="lines"&gt;@@ -872,7 +870,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; mailMessage = pim.mail.MailStamp(self.item) # wait for mail delivery 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: self.logger.endAction(True) &lt;/span&gt;&lt;span class="lines"&gt;@@ -935,7 +933,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.GetApp().Yield(True) &lt;/span&gt;&lt;span class="cx"&gt; if timeInfo: self.logger.endAction(True) else: &lt;/span&gt;&lt;span class="lines"&gt;@@ -959,7 +957,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; # Processing of the corresponding CPIA event App_ns.root.Remove({'testing' : True}) # 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: self.logger.endAction(True) else: &lt;/span&gt;&lt;span class="lines"&gt;@@ -1444,7 +1442,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; # Have to do it the hard way since Account Preferences is modal by default import application self.window = application.dialogs.AccountPreferences.ShowAccountPreferencesDialog(rv=self.view, modal=False) &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; def Ok(self): &amp;quot;&amp;quot;&amp;quot; &lt;/span&gt;&lt;span class="lines"&gt;@@ -1547,7 +1545,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; child = self._GetField(field) child.SetFocus() child.Clear() #work around : SelectAll() doesn't work on mac &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; scripting.User.emulate_typing(value) def ToggleValue(self, field, value): &lt;/span&gt;&lt;span class="lines"&gt;@@ -1564,7 +1562,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; event.SetEventObject(child) self.window.OnLinkedControl(event) self.window.OnExclusiveRadioButton(event) &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; def SelectValue(self, field, value): &amp;quot;&amp;quot;&amp;quot; &lt;/span&gt;&lt;span class="lines"&gt;@@ -1697,7 +1695,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; self.logger.startAction(&amp;quot;Switch to %s&amp;quot; % viewName) #process the corresponding event App_ns.appbar.press(button) &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; self.logger.endAction(True) self.CheckView() &lt;/span&gt;&lt;span class="lines"&gt;@@ -1793,11 +1791,11 @@ &lt;/span&gt;&lt;span class="cx"&gt; click2.m_y = y click2.SetEventObject(self.timedCanvas.widget) self.timedCanvas.widget.ProcessEvent(click2) &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; self.logger.startAction(&amp;quot;Double click in the calendar view&amp;quot;) self.timedCanvas.widget.ProcessEvent(click) &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; self.logger.endAction(True) #work around : SelectAll() doesn't work wx.Window.FindFocus().Clear() &lt;/span&gt; &lt;/pre&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; = os.path.join(Globals.chandlerDirectory, + self.PARCEL_IMPORT.replace ('.', os.sep)) sys.path.insert (1, parcelDir) if __debug__: """ In the debugging version, if PARCELDIR env var is set, put that - directory into sys.path because zodb might be loading objects - based on modules in that directory. This must be done prior to - loading the system parcels + directory into sys.path before any modules are imported. """ debugParcelDir = None if os.environ.has_key('PARCELDIR'): @@ -237,123 +124,155 @@ """ Open the repository. - -create argument forces a new repository. - -recover argument runs recovery when opening after a crash. - Load the Repository after the path has been altered, but before - the parcels are loaded. - """ - repositoryPath = os.path.join(self.chandlerDirectory, "__repository__") - self.repository = XMLRepository(repositoryPath) + -create argument forces a new repository. + -recover argument runs recovery when opening after a crash. + Load the Repository after the path has been altered, but before + the parcels are loaded. + """ + repositoryPath = os.path.join(Globals.chandlerDirectory, + "__repository__") + Globals.repository = XMLRepository(repositoryPath) - if '-create' in self.argv: - self.repository.create() + if '-create' in sys.argv: + Globals.repository.create() else: - self.repository.open(create=True, recover='-recover' in self.argv) + Globals.repository.open(create=True, recover='-recover' in sys.argv) - # Load the repository foundations - # @@@ This repository loading code should not be embedded in the - # application. - if not self.repository.find('//Schema'): + if not Globals.repository.find('//Schema'): """ Bootstrap an empty repository by loading only the stuff that - can't be loaded in a data parcel. + can't be loaded in a data parcel. """ - self.repository.loadPack(os.path.join(self.chandlerDirectory, - "repository", - "packs", - "schema.pack")) + Globals.repository.loadPack(os.path.join(Globals.chandlerDirectory, + "repository", + "packs", + "schema.pack")) - # set the new global repository - Globals.repository = self.repository - - AutoItem.SetRepository (app.repository) #AutoItem needs to know the repository - self.model = self.repository.find('//Application') - if not self.model: - self.model = Application(name='Application', parent=self.repository) - - """ - The model persists, so it can't store a reference to self, which - is a wxApp object. We use the association to keep track of the - wxPython object associated with each persistent object. - """ - self.association={id(self.model) : self} - - # Load individual data par Fri, 04 Feb, 10:31
w t;--- trunk/chandler/tools/cats/Functional/TestCertstoreView.py 2007-06-12 00:38:46 UTC (rev 14659) +++ trunk/chandler/tools/cats/Functional/TestCertstoreView.py 2007-06-12 02:50:57 UTC (rev 14660) &lt;/span&gt;&lt;span class="lines"&gt;@@ -23,7 +23,7 @@ &lt;/span&gt;&lt;span class="cx"&gt; # Make sure we start with the calendar view self.app_ns.appbar.press(&amp;quot;Applicatpre&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/c.Stop×JXsJˆ’D Sat, 02 Apr, 01:02
w #AutoItem needs to know the repository - self.model = self.repository.find('//Application') - if not self.model: - self.model = Application(name='Application', parent=self.repository) - - """ - The model persists, so it can't store a reference to self, which - is a wxApp object. We use the association to keep track of the - wxPython object associated with each persistent object. - """ - self.association={id(self.model) : self} - - # Load individual data par Sat, 02 Apr, 01:02
Message listThread · Author · Date
Box list
Jul 20081
Mar 20081
Jan 20085
Dec 200715
Nov 20078
Oct 200749
Sep 200725
Aug 2007137
Jul 2007246
Jun 200761
May 200710
Apr 200744
Mar 200716
Feb 20076
Jan 200721
Dec 20065
Nov 200613
Oct 200613
Sep 200623
Aug 200643
Jul 200621
Jun 200652
May 200652
Apr 200629
Mar 200639
Feb 200677
Jan 200620
Dec 200510
Sep 20058
Jun 20052
Apr 20051
Mar 20052
Feb 20054
Dec 20045
Nov 20042
Sep 20041
Aug 20045
Jun 20047
Apr 20041
Feb 20042
Jan 20042
Dec 20031
Nov 20039
Aug 20036
Jun 20033
Mar 20031
Feb 20031
Jan 20033
Dec 20021
Nov 20022
Oct 20024