[Zope3-Users] iteration over non sequence in wcdwz3 example
I'm reading Web Component Development with Zope 3. The line from worldcookery.recipe import Recipe gives me this error: Traceback (most recent call last): File interactive input, line 1, in ? File C: \Programmi\Python24\lib\site-packages\worldcookery\recipe.py, line 4, in ? class Recipe: File C:\programmi\Python24\Lib\site- packages\zope\interface\advice.py, line 132, in advise return callback(newClass) File C:\programmi\Python24\Lib\site- packages\zope\interface\declarations.py, line 485, in _implements_advice classImplements(cls, *interfaces) File C: \programmi\Python24\Lib\site-packages\zope\interface\declarations.py, line 462, in classImplements spec.declared += tuple(_normalizeargs (interfaces)) File C:\programmi\Python24\Lib\site- packages\zope\interface\declarations.py, line 1371, in _normalizeargs _normalizeargs(v, output) File C:\programmi\Python24\Lib\site- packages\zope\interface\declarations.py, line 1370, in _normalizeargs for v in sequence: TypeError: Error when calling the metaclass bases iteration over non-sequence Can anyone say to me what this message means? I use zope 3.3.1, python 2.4.4, win XP. Thanks Michele p.s. the recipe code is from zope.interface import implements from worldcookery.interfaces import IRecipe class Recipe: implements (IRecipe) name = u'' ingredients = [] tools = [] time_to_cook = 0 description = u'' from zope.component.factory import Factory recipeFactory = Factory( Recipe, title=uCreate a new recipe, description = uThis factory instantiates new recipes. ) ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Re: Products
Hello, I'm a new user of zope 3. What is the zcml? Where can I find documentation about zope 3? Is there already some books? Best regards. Jean Tinguely. Stephan Richter a écrit : On Thursday 27 October 2005 08:34, [EMAIL PROTECTED] wrote: How to add self made products in ZOPE 3? First I'll note that the Zope 2 products do not work in Zope 3. Secondly, they are not called products anymore; they are just Python packages. Now, you can add any Python package you want anywhere you like, as long as it is in the Python path. In order to hook up the ZCML to the startup process, please look at packages like zope.app.preference to see how they implemented it; the files you are interested in are SETUP.cfg and preference-configure.zcml. Regards, Stephan ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Re: Products
Hello, Is there a development environment for Python? Best regards. Jean Tinguely. [EMAIL PROTECTED] a écrit : Hello, I'm a new user of zope 3. What is the zcml? Where can I find documentation about zope 3? Is there already some books? Best regards. Jean Tinguely. Stephan Richter a écrit : On Thursday 27 October 2005 08:34, [EMAIL PROTECTED] wrote: How to add self made products in ZOPE 3? First I'll note that the Zope 2 products do not work in Zope 3. Secondly, they are not called products anymore; they are just Python packages. Now, you can add any Python package you want anywhere you like, as long as it is in the Python path. In order to hook up the ZCML to the startup process, please look at packages like zope.app.preference to see how they implemented it; the files you are interested in are SETUP.cfg and preference-configure.zcml. Regards, Stephan ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Re: Products
Thank you everybody for all your answer! Best regards. Jean Tinguely. James Allwyn a écrit : Googling for development environment Python (no quotes) points you to this: http://www.python.org/idle/ IDLE - an Integrated DeveLopment Environment for Python A stable version of IDLE is now being distributed with each Python distribution Personally, on Windows, I'm using SciTE ( http://www.scintilla.org/SciTE.html ) as a Text Editor. Regards, James On 27/10/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, Is there a development environment for Python? Best regards. Jean Tinguely. [EMAIL PROTECTED] a écrit : Hello, I'm a new user of zope 3. What is the zcml? Where can I find documentation about zope 3? Is there already some books? Best regards. Jean Tinguely. Stephan Richter a écrit : On Thursday 27 October 2005 08:34, [EMAIL PROTECTED] wrote: How to add self made products in ZOPE 3? First I'll note that the Zope 2 products do not work in Zope 3. Secondly, they are not called products anymore; they are just Python packages. Now, you can add any Python package you want anywhere you like, as long as it is in the Python path. In order to hook up the ZCML to the startup process, please look at packages like zope.app.preference to see how they implemented it; the files you are interested in are SETUP.cfg and preference-configure.zcml. Regards, Stephan ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Re: Products
Hello, I'm only the reincarnation. Have a nice day. Andre Meyer a écrit : Hi Jean You are not THE Jean Tinguely, I guess ;-) I use Eclipse with PyDev for all my Python development and occasionaly IDLE for just experimenting with a few lines of code. http://www.eclipse.org/ http://pydev.sourceforge.net/ kind regards André [EMAIL PROTECTED] wrote: Thank you everybody for all your answer! Best regards. Jean Tinguely. James Allwyn a écrit : Googling for development environment Python (no quotes) points you to this: http://www.python.org/idle/ IDLE - an Integrated DeveLopment Environment for Python A stable version of IDLE is now being distributed with each Python distribution Personally, on Windows, I'm using SciTE ( http://www.scintilla.org/SciTE.html ) as a Text Editor. Regards, James On 27/10/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, Is there a development environment for Python? Best regards. Jean Tinguely. [EMAIL PROTECTED] a écrit : Hello, I'm a new user of zope 3. What is the zcml? Where can I find documentation about zope 3? Is there already some books? Best regards. Jean Tinguely. Stephan Richter a écrit : On Thursday 27 October 2005 08:34, [EMAIL PROTECTED] wrote: How to add self made products in ZOPE 3? First I'll note that the Zope 2 products do not work in Zope 3. Secondly, they are not called products anymore; they are just Python packages. Now, you can add any Python package you want anywhere you like, as long as it is in the Python path. In order to hook up the ZCML to the startup process, please look at packages like zope.app.preference to see how they implemented it; the files you are interested in are SETUP.cfg and preference-configure.zcml. Regards, Stephan ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users