Re: [Zope] Tab completion in zopectl debug
Am Mittwoch, 18. Oktober 2006 01:43 schrieb Maurits van Rees: Hi, I have recently learned how to add tab completion to an interactive python session and to pdb, thanks to Tom Lazar and to Jacob at ParTecs. More info with links on my first blog entry in three months: http://maurits.vanrees.org/weblog/2006/10/tab-completion.html just a thought: you might also use ipython, which has tab-completion by default: http://ipython.scipy.org/moin/About Cheers, Sascha -- Lalisio GmbH www.lalisio.com Puschkinstraße 1 fon +49-(0)361/541 43 80 99084 Erfurt fax +49-(0)361/541 43 79 [EMAIL PROTECTED] + AKTUELLER HINWEIS (Oktober 2006) Wussten Sie schon, dass Lalisio ab sofort den Dokumentenlieferdienst CISTI in seine Literatursuchmaschine einbindet? Sobald Sie über unsere Literatursuchmaschine in den Datenbanken Ingenta oder Projekt MUSE relevante Artikel finden, können Sie die bibliographischen Daten per Mausklick an CISTI übermitteln und Kopien der Artikel bestellen. Testen Sie unser Angebot unter www.lalisio.com! + ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Tab completion in zopectl debug
Maurits van Rees wrote: Hi, I have recently learned how to add tab completion to an interactive python session and to pdb, thanks to Tom Lazar and to Jacob at ParTecs. More info with links on my first blog entry in three months: http://maurits.vanrees.org/weblog/2006/10/tab-completion.html At the end of that entry I ask a question: Can we add tab completion to the zopectl debugger? Or actually more general: can we load the ~/.pythonrc.py file when the zopectl debugger is started? In that file, the user can arrange tab completion or anything else he wants to have available for interactive python sessions. It is very easy to do: just add 'import user;' to the command line in the do_debug function of $SOFTWARE_HOME/Zope2/Startup/zopectl.py. For details, see that blog entry. Looks good, is there any way this can be done by putting more code in do_debug and not usering .pythonrc.py? In any case, this would be cool, please add a feature request + patch in the collector: http://www.zope.org/Collectors/Zope cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Tab completion in zopectl debug
Maurits van Rees wrote at 2006-10-17 23:43 +: ... More info with links on my first blog entry in three months: http://maurits.vanrees.org/weblog/2006/10/tab-completion.html At the end of that entry I ask a question: Can we add tab completion to the zopectl debugger? Or actually more general: can we load the ~/.pythonrc.py file when the zopectl debugger is started? Nothing prevents you to call execfile at the start of your debug session. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Tab completion in zopectl debug
Hi, I have recently learned how to add tab completion to an interactive python session and to pdb, thanks to Tom Lazar and to Jacob at ParTecs. More info with links on my first blog entry in three months: http://maurits.vanrees.org/weblog/2006/10/tab-completion.html At the end of that entry I ask a question: Can we add tab completion to the zopectl debugger? Or actually more general: can we load the ~/.pythonrc.py file when the zopectl debugger is started? In that file, the user can arrange tab completion or anything else he wants to have available for interactive python sessions. It is very easy to do: just add 'import user;' to the command line in the do_debug function of $SOFTWARE_HOME/Zope2/Startup/zopectl.py. For details, see that blog entry. I don't think there are security risks (but don't take my word for it). If someone can put malicious python code in that rc file, than that someone could just as easily start a python session and enter the malicious code there. This would just be for convenience. Would this be enough of a convenience to put into the Zope source code? -- Maurits van Rees | http://maurits.vanrees.org/ [NL] Work | http://zestsoftware.nl/ Do not worry about your difficulties in computers, I can assure you mine are still greater. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Tab completion in zopectl debug
On Tue, Oct 17, 2006 at 11:43:50PM +, Maurits van Rees wrote: This would just be for convenience. Would this be enough of a convenience to put into the Zope source code? Yes please! -- Paul Winkler http://www.slinkp.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )