[Zope3-dev] newbie question

Eckart Hertzler hertzler.eckart at guj.de
Thu Apr 8 09:12:12 EDT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ok,

here I am again:

I am now processing the MessageBoard Example.
In the example it says : 

from zope.app.interfaces.container import IContainer

Shouldn't it be :

from zope.app.container.interfaces import IContainer 

Shall I change this in the cookbook  or let someone less green do it ?

Regards,

Eckart





On Thursday 08 April 2004 13:09, Eckart Hertzler is believed to have said:
> On Thursday 08 April 2004 12:47, Stephan Richter is believed to have said:
> > On Thursday 08 April 2004 06:34, Eckart Hertzler wrote:
> > > Hello List,
> > >
> > > I am a newbie to zope and zope3.
> >
> > Welcome.
> >
> > > I am trying to create a zope3 application ( for my own education )
> > > following the excellent tutorial of Stephan.
>
> Right, it was the cookbook then. I had so many tabs open on my browser I
> got confused...(not for the last time I presume).
>
> > The tutorial (http://dev.zope.org/Zope3/ProgrammerTutorial) is written by
> > Jim, I wrote most of the book (http://dev.zope.org/Zope3/DevelCookbook).
> >
> > > I want to create an interface for a content object. I noticed everyone
> > > is putting all interface definitions in an interfaces.py file.
> > >
> > > The coding guide however says :
> > >
> > > ----------- snip ----------
> > > Defining Interfaces
> > >
> > > There should be one interface per file and the file should have the
> > > same name as the interface.
> > >
> > > ---------------------------
> > >
> > > This doesn't match with all the interfaces.py files ?
> > > Ist the coding style of of date ?
> >
> > Oops, we must have missed updating this part. All public interfaces
> > should go to interfaces.py. With public I mean interfaces you expect to
> > be implemented multiple times. Interfaces that will be only implemented
> > once, can live in the same module as their implementation.
>
> Ok, understood. I go ahead with your recipe then...
>
> I expect you will hear from me again ...
>
> Regards,
>
> Eckart
>
> > Regards,
> > Stephan
>
> _______________________________________________
> Zope3-dev mailing list
> Zope3-dev at zope.org
> http://mail.zope.org/mailman/listinfo/zope3-dev
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAdU+shG4SSzcwNxgRAruIAKC1YrNCy9mFxpoLNMRTy3tpLuuX/wCgqBlf
HI1j3TOLkta6OqqybQFUTU8=
=/9LH
-----END PGP SIGNATURE-----



More information about the Zope3-dev mailing list