Re: Custom type is missing id_schema in reg_form
from
Tim Hicks
on Dec 14, 2006 09:25 AM
Rob Miller wrote:
> Tim Hicks wrote:
>> Hi,
>>
>> I've got a product that defines a custom remember-ish member type. The
>> schema for this type uses
>> Products.remember.context.member_schema.id_schema as (the first) part of
>> its schema, along with some custom schema elements capturing extra
>> address information, etc.
>>
>> When I register my type as the default member type in the configlet and
>> then visit the join_form (aka reg_form), strangely the id_schema fields
>> do not get shown, while the fields from the custom part of my schema do.
>>
>> My type is registered to use member_auto_workflow (as rob suggested on
>> irc). So I don't think it's a permissions issue (which I was facing
>> before).
>>
>> Does anyone have any idea why the 'username' field isn't getting
>> displayed?
>
> not w/o more info. maybe you can post your schema definition? or,
> better yet, point us to a code repo where we can look at it, and how
> it's woven into your class?
I'm afraid it's in a private repo, so I've pasted to somewhere
temporary. See <http://paste.plone.org/12090> for my schema definition
and <http://paste.plone.org/12091> for my member class.
(For the benefit of others searching the archive, maybe you could quote
any problematic portions of my code directly in your reply.)
>> As a secondary question, when I fill in this (username-less) reg_form
>> and then click 'register', I get a status message saying "Saved." (or
>> words to that effect, but I'm just presented with the reg_form again,
>> and the url in the browser is still pointing at something with
>> portal_factory in it. Am I right to assume that this is related to my
>> id_schema/username issue?
>
> almost certainly. w/o the id_schema you're not going to pass
> validation. sounds like the status message might not be very helpful,
> though.
Yeah, that was my thinking.
Thanks,
Tim