Re: [Zope-dev] SVN: z3c.form/trunk/ ``GroupForm`` and ``Group`` now use ``getContent`` method when instantiating group classes instead of directly accessing ``self.context``, as this is the usual way

2010-01-19 Thread Laurent Mignon
Hi, I doesn't understand the motivation behind this change and I've the feeling that it'll break some existing code May be am I wrong but ``getContent`` method is used to provides values to widgets and actions as described into the interface: '''Return the content to be displayed and/or

Re: [Zope-dev] z3c.password and failedAttempts andSessionCredentialsPlugin

2010-01-19 Thread Jan-Wijbrand Kolman
Adam GROSZER agros...@gmail.com wrote: Thank you for your reply! Right. Well right now the lame solution is to try to count the number of resources needed to load the page and multiply maxFailedAttempts by that number. Other than that you _will_ want to offload resources in production. Oh,

[Zope-dev] Zope Tests: 6 OK

2010-01-19 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list. Period Mon Jan 18 12:00:00 2010 UTC to Tue Jan 19 12:00:00 2010 UTC. There were 6 messages: 6 from Zope Tests. Tests passed OK --- Subject: OK : Zope-2.10 Python-2.4.6 : Linux From: Zope Tests Date: Mon Jan 18 20:36:48 EST 2010 URL:

Re: [Zope-dev] SVN: z3c.form/trunk/ ``GroupForm`` and ``Group`` now use ``getContent`` method when instantiating group classes instead of directly accessing ``self.context``, as this is the usual way

2010-01-19 Thread Michael Howitz
Am 19.01.2010 um 09:44 schrieb Laurent Mignon: Hi, I doesn't understand the motivation behind this change and I've the feeling that it'll break some existing code The motivation is the following: self.getContent() seems to be the pattern to access the context of a form. I used grep:

Re: [Zope-dev] SVN: z3c.form/trunk/ ``GroupForm`` and ``Group`` now use ``getContent`` method when instantiating group classes instead of directly accessing ``self.context``, as this is the usual way

2010-01-19 Thread Laurent Mignon
Michael Howitz wrote: The motivation is the following: self.getContent() seems to be the pattern to access the context of a form. I used grep: there is no place where self.context is used directly besides in group.py. So it seems to be an error in the code not to use the common pattern.

Re: [Zope-dev] SVN: z3c.form/trunk/ ``GroupForm`` and ``Group`` now use ``getContent`` method when instantiating group classes instead of directly accessing ``self.context``, as this is the usual way

2010-01-19 Thread Michael Howitz
Am 19.01.2010 um 16:58 schrieb Laurent Mignon: Michael Howitz wrote: The motivation is the following: self.getContent() seems to be the pattern to access the context of a form. I used grep: there is no place where self.context is used directly besides in group.py. So it seems to be an

[Zope-dev] Wrong check out path on zope site

2010-01-19 Thread Yuan HOng
Hi, The svn check out path for Zope 3.4 given on the following page: http://docs.zope.org/developer/subversion-readonly-checkouts.html is not correct. The correct one should be: svn co svn://svn.zope.org/repos/main/Zope3/branches/3.4 Zope Can someone correct this please. -- Hong Yuan

Re: [Zope-dev] SVN: z3c.form/trunk/ ``GroupForm`` and ``Group`` now use ``getContent`` method when instantiating group classes instead of directly accessing ``self.context``, as this is the usual way

2010-01-19 Thread Michael Howitz
Am 19.01.2010 um 21:30 schrieb Stephan Richter: On Tuesday 19 January 2010, Michael Howitz wrote: My understand of ``getContent`` is to provide a way to give values used by the widgets. By default, since the common use case is to edit / display values from the context, the implementation

Re: [Zope-dev] SVN: z3c.form/trunk/ ``GroupForm`` and ``Group`` now use ``getContent`` method when instantiating group classes instead of directly accessing ``self.context``, as this is the usual way

2010-01-19 Thread Laurent Mignon
On Tue, 2010-01-19 at 15:33 -0500, Stephan Richter wrote: On Tuesday 19 January 2010, Michael Howitz wrote: class AddressGroup(group.Group): label = 'Address' fields = field.Fields(zope.schema.TextLine( __name__ = 'owner', title='Owner',