[Zope3-Users] iteration over non sequence in wcdwz3 example

2007-03-05 Thread [EMAIL PROTECTED]
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 "", 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=u"Create 
a new recipe",
description = u"This factory instantiates new 
recipes."
)

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Fwd: RE: [Zope3-Users] Testing Book?]

2006-01-20 Thread [EMAIL PROTECTED]

Great! Thx.

 Message original 
Sujet:  RE: [Zope3-Users] Testing Book?
Date:   Fri, 20 Jan 2006 08:31:33 +0100
De: Lukasz Lakomy <[EMAIL PROTECTED]>
Pour:   Zope 3 Users 



The best book that considers unit/functional testing in Zope 3 environemnt
is:
http://www.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/Zope3Book/b
ook.pdf :)

Lukasz

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Steve Wedig
Sent: Thursday, January 19, 2006 8:43 PM
To: zope3-users@zope.org
Subject: [Zope3-Users] Testing Book?


Hello,

I'm planning to develop a zope 3 web application. Before this, I would
like to read a book about unit testing and test driven development.
Does anyone know a good book about testing that will apply well to
python and zope?

Thanks!
Steve
___
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

2005-10-27 Thread [EMAIL PROTECTED]

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


Re: [Zope3-Users] Re: Products

2005-10-27 Thread [EMAIL PROTECTED]


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

2005-10-27 Thread [EMAIL PROTECTED]

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

2005-10-27 Thread [EMAIL PROTECTED]

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] Re: Products

2005-10-27 Thread [EMAIL PROTECTED]



Hello,
   How to add self made products in ZOPE 3?
Best regards.
Jean Tinguely.


___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


RE: [Zope3-Users] Add menu item creation

2005-07-26 Thread [EMAIL PROTECTED]
Hi Dmitry,

Your analyse was correct: the menu-id may be incorrect. The menu-id has to
be declared in ZCML before it's use in ZCML. Like:



In this case zmi_views is the menu-id to be used.

Marc

Original Message:
-
From: Dmitry Vasiliev [EMAIL PROTECTED]
Date: Tue, 26 Jul 2005 11:14:35 +0400
To: zope3-users@zope.org
Subject: [Zope3-Users] Add menu item creation


Hi!

Is this a way to create the add menu item without the separate addMenuItem 
directive? For example if I write:



I've got the following error:

ConfigurationError: ('Invalid value for', 'menu', 'ImportError: Module 
zope.app.container has no global add')

Maybe the menu id should be changed?

-- 
Dmitry Vasiliev (dima at hlabs.spb.ru)
 http://hlabs.spb.ru
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users



mail2web - Check your email from the web at
http://mail2web.com/ .


___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users