On Fri, 2009-06-05 at 09:32 +0200, Hedley Roos wrote:
> Tim Knapp wrote:
> > Hello again,
> > 
> > I've implemented these changes as per your suggestion below and put a
> > pdb statement in the create method of the PageAddForm class but it
> > doesn't even get there and just fails. Are you sure you implemented this
> > for a remember-based class?
> > 
> 
> Hi Tim
> 
> It was not implemented for a remember based class, but since member is 
> basically a BaseObject subclass I assume it should work. Then again, 
> assumption is the mother of all... you know what.
> 
> I'll try it myself a bit later if I have time.

Well after some more hunting through the code it appears that the
creation of the remember objects is invoked via the createMember.cpy
script, which creates a member object via portal_factory in the
portal_memberdata tool, and returns reg_form.cpt (hence circumventing
the browser view), and then eventually calls another script
(do_register.cpy), which does:

<code>
new_context = getToolByName(context, 'portal_factory').doCreate(context,
id)
new_context.processForm()
</code>

so IOW it completely bypasses the formlib PageAddForm we created.

Thanks,
Tim

> 
> Hedley
> 
> 
> --
> Archive: 
> http://www.openplans.org/projects/remember/lists/remember/archive/2009/06/1244187196967
> To unsubscribe send an email with subject "unsubscribe" to 
> [email protected].  Please contact 
> [email protected] for questions.
> 



--
Archive: 
http://www.openplans.org/projects/remember/lists/remember/archive/2009/06/1244189723212
To unsubscribe send an email with subject "unsubscribe" to 
[email protected].  Please contact 
[email protected] for questions.

Reply via email to