Re: [Zope3-Users] Re: Applying permissions to users from LDAP

2007-02-16 Thread Alec Munro

On 2/13/07, Stephan Richter <[EMAIL PROTECTED]> wrote:

On Tuesday 13 February 2007 04:51, David Johnson wrote:
> I'm trying to understand this situation also since we face it
> frequently. The PAU has a Group Folder which works well in this
> regard. Would the idea of extending Groups in the PAU to include any
> person in the ldap directory be useful? It seems this would be
> easier and more flexible.

That's what I would do. I think LDAP permissions/roles/groups map best to our
concept of groups. To implement a group folder that gets its groups from LDAP
should not be that hard, given the existing ldappas implementation.

Regards,
Stephan
--
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training


Hi All,

Thanks to all your excellent advice, I have gone ahead and extended
the existing Group folder to automatically import and periodically
synchronize it's groups with an LDAP directory. The functionality is
currently a bit crude, but it gets the job done. I'm talking to my
employer about open sourcing it, would anyone here be interested in
it?

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


[Zope3-Users] Using zope.component outside Zope 3-how to bootstrap the registries

2007-02-16 Thread Andreas Jung

I am trying to use zope.component (Zope3 3.0) within a Python module
(not running the whole Zope 3 boilerplate). I want to register a utility.
What is the correct way to setup the registries (in particular the Utility
registry) in order to register utilities?

Andreas

pgpbf44gSXBxE.pgp
Description: PGP signature
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Re: Applying permissions to users from LDAP

2007-02-16 Thread Vinny
On Fri, 16 Feb 2007 09:03:29 -0400
"Alec Munro" <[EMAIL PROTECTED]> wrote:

[snip]
> 
> Thanks to all your excellent advice, I have gone ahead and extended
> the existing Group folder to automatically import and periodically
> synchronize it's groups with an LDAP directory. The functionality is
> currently a bit crude, but it gets the job done. I'm talking to my
> employer about open sourcing it, would anyone here be interested in
> it?
> 
> Alec

+1

I, for one, would probably learn something useful from the code, if
you decide to release it.  Thanks in advance if that is the case.

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


[Zope3-Users] IContainer as IReadFile in WebDav

2007-02-16 Thread Alek Kowalczyk
Hi,

I have the following objects structure:

ISomeContainer (subclass IContainer)
  IPlot (subclass of IContainer)
IPlotPoint (subclass IContained)

IPlotPoint is rather a simple object, containing X and Y of the point
I would like to provide all the IPlot's in ISomeContainer as CSV files using
WebDAV, to allow easy getting the data into Excel.

The problem is that for some reason WebDAV always list all IPlot's as Web
Folders, not as files. I cannot make zope to list IPlot as file in WebDAV 
Folder.

I don't know how to override this. I wrote my own adapter for IPlot, but it
seems to be never called:



How to wire this adapter into WebDav? Should I do that another way?



  

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


[Zope3-Users] Configure.zcml In Hello World Video On WorldCookery.Com Doesn't Work

2007-02-16 Thread Mark, Jonathan (Integic)
Here is my configure.zcml file, which is identical to the one Paul Everitt says 
to write:

http://namespaces.zope.org/browser";>






and here is the error message that I get when I reboot the Zope 3.3
server on Windows XP:

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

Everything I did was identical to the training video. What went wrong?
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Configure.zcml In Hello World Video On WorldCookery.Com Doesn't Work

2007-02-16 Thread Adam Groszer
Hello Jonathan,

A quick guess:
for="zope.app.container.interfaces.Icontainer"
is
for="zope.app.container.interfaces.IContainer"

Friday, February 16, 2007, 5:24:22 PM, you wrote:

> Here is my configure.zcml file, which is identical to the one Paul Everitt 
> says to write:

> http://namespaces.zope.org/browser";>

> name="hello"
>template="helloworld.html"
>   
>for="zope.app.container.interfaces.Icontainer"
>permission="zope.Public" />

> 


> and here is the error message that I get when I reboot the Zope 3.3
> server on Windows XP:

> ConfigurationError: ('Invalid value for', 'for',
> 'ImportError: Module
> zope.app.container.interfaces has no global
> Icontainer')

> Everything I did was identical to the training video. What went wrong?
> ___
> Zope3-users mailing list
> Zope3-users@zope.org
> http://mail.zope.org/mailman/listinfo/zope3-users


-- 
Best regards,
 Adammailto:[EMAIL PROTECTED]
--
Quote of the day:
Going with the flow is smoothing but risky

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


[Zope3-Users] Re: Configure.zcml In Hello World Video On WorldCookery.Com Doesn't Work

2007-02-16 Thread Robert Hicks

Mark, Jonathan (Integic) wrote:

Here is my configure.zcml file, which is identical to the one Paul Everitt says 
to write:

http://namespaces.zope.org/browser";>

  
   for="zope.app.container.interfaces.Icontainer"

   permission="zope.Public" />





XML is case sensitive "Icontainer" should be "IContainer"...

Robert

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


[Zope3-Users] Re: Configure.zcml In Hello World Video On WorldCookery.Com Doesn't Work

2007-02-16 Thread Jürgen Kartnaller



Robert Hicks wrote:

Mark, Jonathan (Integic) wrote:
Here is my configure.zcml file, which is identical to the one Paul 
Everitt says to write:


http://namespaces.zope.org/browser";>







XML is case sensitive "Icontainer" should be "IContainer"...

It's not XML that is case sensitive, it is python !
You get the same error if you try to import "Icontainer" in python (what 
 the zcml directive is actually doing).


Jürgen

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


[Zope3-Users] Re: Configure.zcml In Hello World Video On WorldCookery.Com Doesn't Work

2007-02-16 Thread Robert Hicks

Jürgen Kartnaller wrote:



Robert Hicks wrote:

Mark, Jonathan (Integic) wrote:
Here is my configure.zcml file, which is identical to the one Paul 
Everitt says to write:


http://namespaces.zope.org/browser";>







XML is case sensitive "Icontainer" should be "IContainer"...

It's not XML that is case sensitive, it is python !
You get the same error if you try to import "Icontainer" in python (what 
 the zcml directive is actually doing).


Jürgen


That makes sense.

Robert

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


[Zope3-Users] Infrastructure Requirements?

2007-02-16 Thread Dan Buch
I'm at the very beginning of what will hopefully be a successful
deployment of some Zope3 apps.  The big question I'm getting now from
the infrastructure-minded people is what sort of hardware requirements
I'll need (?)

Given that I'm a bit of an Ubuntu nut, I wanted to look into a Sun
server.  I know that I won't need much in the way of storage, the
minimum CPU and memory will do...  after that I get a little lost :)

If our final setup (a couple years down the line) will have something
like 4-5 components all running on Zope3, must be highly available, and
gracefully handle minor failures, what should I spec in terms of
hardware?  

/me awaits flames ... 


Thanks in advance for patience, etc.

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


Re: [Zope3-Users] Infrastructure Requirements?

2007-02-16 Thread Jonathan


- Original Message - 
From: "Dan Buch" <[EMAIL PROTECTED]>

To: 
Sent: Friday, February 16, 2007 4:42 PM
Subject: [Zope3-Users] Infrastructure Requirements?



I'm at the very beginning of what will hopefully be a successful
deployment of some Zope3 apps.  The big question I'm getting now from
the infrastructure-minded people is what sort of hardware requirements
I'll need (?)

Given that I'm a bit of an Ubuntu nut, I wanted to look into a Sun
server.  I know that I won't need much in the way of storage, the
minimum CPU and memory will do...  after that I get a little lost :)

If our final setup (a couple years down the line) will have something
like 4-5 components all running on Zope3, must be highly available, and
gracefully handle minor failures, what should I spec in terms of
hardware?


Why don't you run some load tests to determine what a single server can 
handle with your application.  Then ask the 'marketing/sales' guys for user 
projections (total users,  simultaneous users). Then you will have a rough 
idea of what you need (rough being the operative word: you may need to look 
at load balancing, separate application and database servers, etc).



Jonathan 


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


RE: [Zope3-Users] Infrastructure Requirements?

2007-02-16 Thread Doyon, Jean-Francois
(From my Zope 2 experience, though it should be relevant here).

Building an HA architecture for Zope is pretty much like anything else
... There's very little that's Zope specific.

Minimum:

- 8 boxes: 2 web, 2 app, 2 storage, 2 load balancers
- On the web boxes run Apache with mod_rewrite to get you to the Zope
instance(s) running on the app layer machines
- Use ZEO w/ ZRS on the storage side.  There are ways without ZRS
probably, look at the Disk Replication Block Device (DRBD) project.

I still bother to try and get single CPU machines, because of the whole
Python GIL vs. Thread issue, though newer linuxes have CPU affinity.

How you setup the load-blanacing will depend on a whole lot of factors,
notably what software we use, and is beyond this list (Besides I don't
do that bit, our "infrastructure" guys do that for me).

We've head great success with that setup (3 app servers however) ...
Vastly improved perfromance and availability.

J.F.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Dan Buch
Sent: February 16, 2007 4:43 PM
To: zope3-users@zope.org
Subject: [Zope3-Users] Infrastructure Requirements?

I'm at the very beginning of what will hopefully be a successful
deployment of some Zope3 apps.  The big question I'm getting now from
the infrastructure-minded people is what sort of hardware requirements
I'll need (?)

Given that I'm a bit of an Ubuntu nut, I wanted to look into a Sun
server.  I know that I won't need much in the way of storage, the
minimum CPU and memory will do...  after that I get a little lost :)

If our final setup (a couple years down the line) will have something
like 4-5 components all running on Zope3, must be highly available, and
gracefully handle minor failures, what should I spec in terms of
hardware?  

/me awaits flames ... 


Thanks in advance for patience, etc.

--
Dan Buch
SmartEd Services
___
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] Infrastructure Requirements?

2007-02-16 Thread Benji York

Doyon, Jean-Francois wrote:

- On the web boxes run Apache with mod_rewrite to get you to the Zope
instance(s) running on the app layer machines


Some people substitute Squid for Apache, or in certain circumstances, 
leave that layer out all together.



I still bother to try and get single CPU machines, because of the whole
Python GIL vs. Thread issue, though newer linuxes have CPU affinity.


I don't quite understand that statement.  You can certainly run an 
instance per CPU and modern OS schedulers are smart enough to make 
setting CPU affinity overkill.


Four instances on a four core box works quite nicely. :)
--
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Infrastructure Requirements?

2007-02-16 Thread Jonathan


- Original Message - 
From: "Benji York" <[EMAIL PROTECTED]>

To: "Doyon, Jean-Francois" <[EMAIL PROTECTED]>
Cc: ; <[EMAIL PROTECTED]>
Sent: Friday, February 16, 2007 5:00 PM
Subject: Re: [Zope3-Users] Infrastructure Requirements?



Doyon, Jean-Francois wrote:

- On the web boxes run Apache with mod_rewrite to get you to the Zope
instance(s) running on the app layer machines


Some people substitute Squid for Apache, or in certain circumstances, 
leave that layer out all together.



I still bother to try and get single CPU machines, because of the whole
Python GIL vs. Thread issue, though newer linuxes have CPU affinity.


I don't quite understand that statement.  You can certainly run an 
instance per CPU and modern OS schedulers are smart enough to make setting 
CPU affinity overkill.


Four instances on a four core box works quite nicely. :)


Do you mean "four instances on a box with 4 cpus" or "4 instances on a box 
with 2 cpus, where each CPU has a dual core"?
ie. has anyone tried running 2 instances of zope on a dual-core cpu? If so, 
how did it perform?



Jonathan 


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


[Zope3-Users] Infrastructure Requirements?

2007-02-16 Thread Dan Buch
I'm bound to show my naivete on this round ;-) 

Let's say that we take HA out of the equation and that our supposed
infrastructure already has storage and web covered.  The app will be
used by *maybe* 50 concurrent users.  I'm already pretty confident in
the answer, but would I do okay with something like "Config 1" shown
here:  (please forgive the HUGE URL)

http://shop.sun.com/is-bin/INTERSHOP.enfinity/WFS/Sun_NorthAmerica-Sun_Store_US-Site/en_US/-/USD/ViewStandardCatalog-ShowAllProducts;pgid=Ljhoa7SWrIFSR0Uo1qu2uEHihp2IWGSt?CategoryName=HID-1686398653&CategoryDomainName=Sun_NorthAmerica-Sun_Store_US-SunCatalog


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


Re: [Zope3-Users] Infrastructure Requirements?

2007-02-16 Thread Benji York

Jonathan wrote:

From: "Benji York" <[EMAIL PROTECTED]>

Four instances on a four core box works quite nicely. :)


Do you mean "four instances on a box with 4 cpus" or "4 instances on a box 
with 2 cpus, where each CPU has a dual core"?


The latter, but it generally makes little difference.

ie. has anyone tried running 2 instances of zope on a dual-core cpu? If so, 
how did it perform?


I'm not sure what kind of answer you're looking for so here's the most 
useful one I can muster: very well.  :)

--
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Infrastructure Requirements?

2007-02-16 Thread Jonathan


- Original Message - 
From: "Benji York" <[EMAIL PROTECTED]>




Jonathan wrote:

From: "Benji York" <[EMAIL PROTECTED]>

Four instances on a four core box works quite nicely. :)


Do you mean "four instances on a box with 4 cpus" or "4 instances on a 
box with 2 cpus, where each CPU has a dual core"?


The latter, but it generally makes little difference.

ie. has anyone tried running 2 instances of zope on a dual-core cpu? If 
so, how did it perform?


I'm not sure what kind of answer you're looking for so here's the most 
useful one I can muster: very well.  :)


Thanks for the info!  What OS are you running on the dual-core cpus?

I hadn't heard anything about anyone running 2 instances of zope on a 
dual-core cpu and was wondering if it was better to go with 2 cpus on a 
single box, or run 2 instances of zope on a single dual-core cpu in a single 
box.  It would be nice to set up both configurations and compare them 
side-by-side, but unfortunately hardware just for playing with is scarce 
around here ;-)


Jonathan


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


Re: [Zope3-Users] Infrastructure Requirements?

2007-02-16 Thread Benji York

Jonathan wrote:

Thanks for the info!  What OS are you running on the dual-core cpus?


We generally run CentOS in our production clusters.  There isn't really 
anything special about CentOS though, any good OS would be fine.  Maybe 
even Windows. :)


I hadn't heard anything about anyone running 2 instances of zope on a 
dual-core cpu and was wondering if it was better to go with 2 cpus on a 
single box, or run 2 instances of zope on a single dual-core cpu in a single 
box.


I doubt it would make a measurable difference.
--
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Using zope.component outside Zope 3-how to bootstrap the registries

2007-02-16 Thread Jeff Shell

On 2/16/07, Andreas Jung <[EMAIL PROTECTED]> wrote:

I am trying to use zope.component (Zope3 3.0) within a Python module
(not running the whole Zope 3 boilerplate). I want to register a utility.
What is the correct way to setup the registries (in particular the Utility
registry) in order to register utilities?


I don't think you need to set up the registries. There should be a
base Global Registry in place already.

Quite some time ago, I used zope.component, zope.interface, and a
couple of other core supporting packages (zope.exceptions,
zope.testing) in a command line tool. I didn't need to do any
bootstrapping. I was able to use `zope.component.provideUtility`
immediately.

I used packages extracted manually from Zope 3.1. I'm not sure what
`zope.component (Zope3 3.0)` is like. If it's from Zope3 3.0.0, it may
be radically different than what I used. I believe Zope 3.1
implemented the "Simplify Component Architecture" proposal which got
rid of extraneous bits like Services, and as such may be a bit easier
to work with.

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