[Zope3-Users] Re: Getting started with a zope 3 install as eggs

2007-11-04 Thread Philipp von Weitersehausen

Jesper Petersen wrote:

Hi Christian,
I've looked a bit at zopeproject, but I'm still wondering if it's 
possible to still install zope as eggs without zopeproject (if that

even makes sense).


Sure, you can do that. Nobody's stopping you. It's just that zopeproject 
gives you a head start with the sandbox. It's all about getting the 
environment primed and installing the most common eggs. From there you 
can take it anywhere you like.



Will zopeproject become _the_ way of developing in the future?


Dunno. I've primarily developed as a replacement tool for the 
tarball-centric mkzopeinstance script, because I didn't want to type all 
that boiler plate all the time. I use it in trainings, quite successfully.


Note that it's offspring from grokproject, which we've been using to set 
up Grok-based sandboxes for much longer now. I think the basic principle 
is well-established now.



I have a hosting situation that is a bit unclear
when it comes to running zopeproject because they use good old instances.
I have a discussion with them at the moment so I hope I get this sorted 
out :)


A zopeproject-generated sandbox is like an instance, except that it also 
installs the Zope eggs, and therefore is self-contained (the eggs can 
still be shared among multiple sandboxes, though). If you can host 
instances, you should be able to host buildout-driven sandboxes (because 
that's what zopeproject generates) too.


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


[Zope3-Users] Re: lack of security declaration: bug or feature?

2007-11-02 Thread Philipp von Weitersehausen

Lorenzo Gil Sanchez wrote:

Hi,

I'm using zope.app.container.ordered.OrderedContainer in my application
and I got this error:

ForbiddenAttribute: ('__getitem__',
)

I added this lines to my configure.zcml:

  

  

and that fixed the error.

It's totally ok when it's adding security declarations to my classes but
I feel a little bit awkward addind security declarations to Zope
classes.

Is this the right way to do? Shouldn't those lines belong to
zope.app.container's configure.zcml file?


I think OrderedContainer is a base class for your own container types. I 
don't see a problem if it doesn't have security declarations.


By the way, you probably want to split up your security declarations 
into read and write...


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