[Grok-dev] Restarting Zope 3 with a single click/keystroke in Komodo (Edit/Ide)

Sebastian Ware sebastian at urbantalk.se
Mon Jun 25 18:06:17 EDT 2007


...and Eric Promislow from Activestate gave me some feedback on  
coding style, giving this...

// Macro recorded on Tue Jun 19 2007 21:08:09 GMT+0200 (CEST)
komodo.assertMacroVersion(2);
ko.run.output.kill(-1);
if (komodo.view) { komodo.view.setFocus() };
setTimeout(function(ko, win) {
     ko.run.runEncodedCommand(win, '/path/to/parts/instance/bin/ 
runzope');
}, 500, ko, window);

Mvh Sebastian

24 jun 2007 kl. 16.35 skrev Sebastian Ware:

> One needs to add a delay...
>
> // Macro recorded on Tue Jun 19 2007 21:08:09 GMT+0200 (CEST)
> komodo.assertMacroVersion(2);
> ko.run.output.kill(-1);
> if (komodo.view) { komodo.view.setFocus() };
> timer = setTimeout("ko.run.runEncodedCommand(window, '/path/to/ 
> parts/instance/bin/runzope');",500)
>
>
> Mvh Sebastian
>
> 24 jun 2007 kl. 15.49 skrev Sebastian Ware:
>
>> I know there is at least one other Komodo user on this list. This  
>> macro restarts the zope 3 server with a single click (you can bind  
>> it to a key of course).
>>
>> // Macro recorded on Tue Jun 19 2007 21:08:09 GMT+0200 (CEST)
>> komodo.assertMacroVersion(2);
>> ko.run.output.kill(-1);
>> if (komodo.view) { komodo.view.setFocus() };
>> ko.run.runEncodedCommand(window, '/the/path/to/parts/instance/bin/ 
>> runzope');
>>
>> Mvh Sebastian
>> _______________________________________________
>> Grok-dev mailing list
>> Grok-dev at zope.org
>> http://mail.zope.org/mailman/listinfo/grok-dev
>



More information about the Grok-dev mailing list