Re: [Zope-dev] How should an ideal Zope IDE look like?
[EMAIL PROTECTED] wrote: I agree with Andre. thanks ;-) ... My main concern would be it's adaptibility to custom content types. If I have my own Geospatial-ish content type, how would the IDE handle it ? How would I go about making it handle it ? etc ... Archetypes? But then much more generic than what they are now. -- Dr. Andre P. Meyerhttp://home.hccnet.nl/a.meyer/ TNO FEL Command & Control and Simulation, http://www.fel.tno.nl/div2/ Delft Cooperation on Intelligent Systems, http://www.decis.nl/ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] How should an ideal Zope IDE look like?
It was not my expectation that you would go and implement all of this ;-) Of course, this is a lot of work, but much has been done by others, already. The wish list was intended as ideas for those capable and willing to contribute. The value of good tools for any technology cannot be underestimated. kind regards Andre Aleks Totic wrote: Nice wishlist. About 3-4 man years worth of coding, 2 min is my guess. My goal is not quite so ambitious. I wanted to learn Eclipse well. I was always jelaous of Emacs guys that could whip up a mode for their favorite lanuguage. Implementing a Python IDE sounded like a good starter project. By IDE, I mean something with a debugger. In the next release (by the end of next month) I'll have some hyperlinking (function/classdefs withing the same file, and on imports), maybe some code completion (that's up to Dana), and a decent debugger (multithreaded). After that, I am not sure. My goal for pydev is for it to be good enough for small-size projects, and we'll almost be there. The larger projects requirements (unit tests/UML editor/module awareness) are not that exciting as a hobby. Aleks Andre Meyer wrote: So, I give it a try and submit a "wish list" for an ideal IDE for Python/Zope. Maybe some words about the IDEs I have been working with, so you can track where the features I wish to have come from: I used CodeWarrior, NetBeans, jEdit for both Java and Python/Zope, Boa Constructor and Eclipse with several plugins (like Omondo UML plugin, TruStudio and PyDev). And here comes the list of features: - Syntax coloring (standard everywhere) for python and zpt/xml/html/css code. - Commenting/uncommenting code (any hope Python will ever offer multi-line comments?). - Auto-completion for python and zpt/xml/html/css, incl. parameter editing. One should be able to specify the path to modules: for example I have a Python installation and a Zope installation with Python offering different modules. - Show declaration: jump to definition of classes/instances elsewhere in the code using a context menu. - Refactoring: actions, such as renaming a class, method or module and modify all references in the rest of the code; move classes and methods up or down in the class hierarchy. Eclipse supports this for Java and it saves a LOT of time, - Unit tests with reporting. - Folding: show/hide parts of the source code (like in jEdit). - Split windows. - Project management. - CVS/Subversion integration. - Search/replace, incl. regex in open files, project, - Compare and edit files/folders (diff, meld). - Drag&drop editing. - Multi-threaded debugging. - Outline: display classes, methods, attributes of a source file. - Class/method popup. - Bookmarks. - Class browser: multi-part window for browsing and editing classes and their methods and attributes. Similar to the NeXTstep file browser and the Java Browser perspective in Eclipse. - UML editor (incl. code generation and reverse engineering). Eclipse has several UML plugins and offers a language-independent modelling framework (EMF) that supports code generation. This could be adapted for Python. - Design patterns, templates: not found anywhere, yet, but might be an interesting feature, especially for Zope development, where we have a lot of recipes that need to be applied often. - Pydoc integration: show the docs simultaneously with the code. - ZPT debugging, sensible error messages. - ZODB inspection: give insight into what is actually stored in the ZODB. - Ftp, WebDav - Launching/restarting Zope locally and remotely. - Python and Jython support. - Live error tracking (while typing). - Task management. - Calling trees: who calls whom and who is called by whom? Well, there is certainly more, but this is a start... ;-) One could start from Eclipse/PyDev (http://pydev.sourceforge.net/) and add features. Does anybody (Martin) have concrete plans to do this? Also look at http://www.python.org/cgi-bin/moinmoin/EclipsePythonIntegration 5 for more ideas. kind regards and success Andre -- Dr. Andre P. Meyerhttp://home.hccnet.nl/a.meyer/ TNO FEL Command & Control and Simulation, http://www.fel.tno.nl/div2/ Delft Cooperation on Intelligent Systems, http://www.decis.nl/ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] How should an ideal Zope IDE look like?
So, I give it a try and submit a "wish list" for an ideal IDE for Python/Zope. Maybe some words about the IDEs I have been working with, so you can track where the features I wish to have come from: I used CodeWarrior, NetBeans, jEdit for both Java and Python/Zope, Boa Constructor and Eclipse with several plugins (like Omondo UML plugin, TruStudio and PyDev). And here comes the list of features: - Syntax coloring (standard everywhere) for python and zpt/xml/html/css code. - Commenting/uncommenting code (any hope Python will ever offer multi-line comments?). - Auto-completion for python and zpt/xml/html/css, incl. parameter editing. One should be able to specify the path to modules: for example I have a Python installation and a Zope installation with Python offering different modules. - Show declaration: jump to definition of classes/instances elsewhere in the code using a context menu. - Refactoring: actions, such as renaming a class, method or module and modify all references in the rest of the code; move classes and methods up or down in the class hierarchy. Eclipse supports this for Java and it saves a LOT of time, - Unit tests with reporting. - Folding: show/hide parts of the source code (like in jEdit). - Split windows. - Project management. - CVS/Subversion integration. - Search/replace, incl. regex in open files, project, - Compare and edit files/folders (diff, meld). - Drag&drop editing. - Multi-threaded debugging. - Outline: display classes, methods, attributes of a source file. - Class/method popup. - Bookmarks. - Class browser: multi-part window for browsing and editing classes and their methods and attributes. Similar to the NeXTstep file browser and the Java Browser perspective in Eclipse. - UML editor (incl. code generation and reverse engineering). Eclipse has several UML plugins and offers a language-independent modelling framework (EMF) that supports code generation. This could be adapted for Python. - Design patterns, templates: not found anywhere, yet, but might be an interesting feature, especially for Zope development, where we have a lot of recipes that need to be applied often. - Pydoc integration: show the docs simultaneously with the code. - ZPT debugging, sensible error messages. - ZODB inspection: give insight into what is actually stored in the ZODB. - Ftp, WebDav - Launching/restarting Zope locally and remotely. - Python and Jython support. - Live error tracking (while typing). - Task management. - Calling trees: who calls whom and who is called by whom? Well, there is certainly more, but this is a start... ;-) One could start from Eclipse/PyDev (http://pydev.sourceforge.net/) and add features. Does anybody (Martin) have concrete plans to do this? Also look at http://www.python.org/cgi-bin/moinmoin/EclipsePythonIntegration 5 for more ideas. kind regards and success Andre Martin Kretschmar wrote: Hello, it looks as if some people are missing a nice Zope IDE. So I would like to have your oppinions on what an ideal Zope IDE should look like and what technologies it should be built on. Regards, Martin ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope ) -- Dr. Andre P. Meyerhttp://home.hccnet.nl/a.meyer/ TNO FEL Command & Control and Simulation, http://www.fel.tno.nl/div2/ Delft Cooperation on Intelligent Systems, http://www.decis.nl/ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] The bleak Future of Zope?!
Well, Maik has more than a bad day. In fact, he is rather right about the points he raises! I have been developing for Zope for about half a year now and it took considerable effort to get anything going. I have experience with filesystem-based Zope 2 products, Plone and Archteypes and a bit of Zope 3. While Z3 looks promising it is not likely to just take over Z2. It is too much different. The biggest problem, however is the lack of (any useful) documentation and sample code. Without the help of the mailing lists you cannot get far with Zope. With respect to CMS, Plone archetypes are too simplistic for complex data/document types and customisation takes too much effort. Do not get me wrong! I decided to use Zope because it fits my bill and I am willing to invest more time in Python/Zope/Plone, because I like it a lot (*). But be aware of J2EE/.Net, especially after the Sun/M$ agreement. I have been a Java developer for years and I know that there are a lot of (commercial) parties to develop whatever anyone needs, if you pay them. The same must be true of .Net. A good IDE for Python/Zope with support for application patterns, UML, etc. would be a good thing. Real application development is a serious business and good tools are essential, just like deadlines and milestones for new releases and up-to-date documentation. I am currently using Eclipse with PyDev, but it has a long way to go until it offers the wealth of support that Eclipse offers for Java. Boa Constructor is a good try, too. This is meant to encourage everybody, I am an optimist ;-) Beware of the pragmatic commercial developers. (*) fyi http://zope.org/Members/drapmeyer/spyse Chris Withers wrote: Martin Kretschmar wrote: Maik Jablonski of the german speaking Zope Users Group DZUG issued a pretty bleak outlook for the future of Zope. What are your oppinions? Maik's having a bad day, he'll get over it ;-) Chris -- Dr. Andre P. Meyerhttp://home.hccnet.nl/a.meyer/ TNO FEL Command & Control and Simulation, http://www.fel.tno.nl/div2/ Delft Cooperation on Intelligent Systems, http://www.decis.nl/ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Re: [Zope-DB] Thread in ZODB
Thanks, the hint of Sandor with adding the thread as an attribute to the module instead of the class worked well for me. sorry for cross-posting kind regards Andre Andreas Jung wrote: You can't associate thread or locks as *persistent* attributes. Use _v_someattribute instead. -aj P.S. and please no crosspostings --On Samstag, 10. April 2004 10:33 Uhr +0200 Andre Meyer <[EMAIL PROTECTED]> wrote: Hi Zopers Here is a nice challenge, I hope: I have a multi-threaded Python application that I want to link to Zope. The idea is to provide a Web interface for viewing and editing the state of multiple threads running in Python. On thread should be associated with Zope and act as the "door" between the ZServer and the other threads. Unfortunately, I do not manage to create a reference to a thread in the Zope product's main class because the ZODB refuses to add it. This is the error message when trying to instantiate the product: Site Error An error was encountered while publishing this resource. Error Type: UnpickleableError Error Value: Cannot pickle objects And this is the code where it goes wrong: class Zpyse(SimpleFolder): meta_type = "Zpyse" manage_options = ( {'label':'Edit', 'action':'manage_main'}, {'label':'View', 'action':'index_html'} ) index_html = PageTemplateFile('zpt/index_html', globals()) def manage_editZpyse(self, title, REQUEST=None): "Method to edit Zpyse instances." self.title = title if REQUEST is not None: return self.index_html(self, REQUEST) def __init__(self, id, title): # Sender/Receiver Test print 'init Zpyse' ams = spyse.getAMS() * self.za = ams.createThread('ZopeThread', 'ZopeThread', globals()) qa = ams.createThread('Receiver', 'ReceiverThread', globals()) sa = ams.createThread('Sender', 'SenderThread', globals()) * only this goes wrong, the other threads are created (without self.). Is there anybody with a good idea about how to handle this? thanks a lot in advance Andre -- Dr. Andre P. Meyerhttp://home.hccnet.nl/a.meyer/ TNO FEL Command & Control and Simulation, http://www.fel.tno.nl/div2/ Delft Cooperation on Intelligent Systems, http://www.decis.nl/ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Thread in ZODB
Hi Zopers Here is a nice challenge, I hope: I have a multi-threaded Python application that I want to link to Zope. The idea is to provide a Web interface for viewing and editing the state of multiple threads running in Python. On thread should be associated with Zope and act as the "door" between the ZServer and the other threads. Unfortunately, I do not manage to create a reference to a thread in the Zope product's main class because the ZODB refuses to add it. This is the error message when trying to instantiate the product: Site Error An error was encountered while publishing this resource. Error Type: UnpickleableError Error Value: Cannot pickle objects And this is the code where it goes wrong: class Zpyse(SimpleFolder): meta_type = "Zpyse" manage_options = ( {'label':'Edit', 'action':'manage_main'}, {'label':'View', 'action':'index_html'} ) index_html = PageTemplateFile('zpt/index_html', globals()) def manage_editZpyse(self, title, REQUEST=None): "Method to edit Zpyse instances." self.title = title if REQUEST is not None: return self.index_html(self, REQUEST) def __init__(self, id, title): # Sender/Receiver Test print 'init Zpyse' ams = spyse.getAMS() * self.za = ams.createThread('ZopeThread', 'ZopeThread', globals()) qa = ams.createThread('Receiver', 'ReceiverThread', globals()) sa = ams.createThread('Sender', 'SenderThread', globals()) * only this goes wrong, the other threads are created (without self.). Is there anybody with a good idea about how to handle this? thanks a lot in advance Andre -- Dr. Andre P. Meyer http://home.hccnet.nl/a.meyer/ TNO FEL Command & Control and Simulation, http://www.fel.tno.nl/div2/ Delft Cooperation on Intelligent Systems, http://www.decis.nl/ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )