[Zope-PAS] maxlistusers and OverflowError

Jens Vagelpohl jens at dataflake.org
Fri Dec 10 04:19:56 EST 2004


On Dec 10, 2004, at 0:23, Willi Langenberger wrote:

> According to Jens Vagelpohl:
>> The OverflowError is supposed to be caught in the local role form that
>> is accessible from the Security ZMI tab. If the OverflowError happens
>> the form will show a simple text input widget to type in a user's ID
>> and not try to list all users from the user folder, which is a really
>> bad idea in many situations.
>
> Thanks, Jens!
>
> So, if i understand correctly, "maxlistusers" is only there for local
> roles support. And the "get_valid_userids" method is a helper function
> for the ZMI local role form. If silva uses it, it should use it in the
> same way as that ZMI form...

Yes, that's it. "maxlistusers" is really used so that there is an 
"emergency brake" for the user folder that it can apply before listing 
all users brings the machine to a crawl or standstill due to the 
expense of grabbing them all or the sheer number.

jens



More information about the Zope-PAS mailing list