----- "Scott Brown" <[EMAIL PROTECTED]> wrote:
> I'm still dead in the water on this issue. The non-unicode string did
> not seem to make a difference. Any suggestions on how to proceed with
> identifying exactly why I am getting no values in the Default Member
> types?
>
Scott, no solution, but I would suggest just trying this for now to move
forward. Edit remember/utils.py to look like this for getRememberTypes -
security.declarePublic('getRememberTypes')
def getRememberTypes(context):
"""
Return a list of all the membrane types that implement IReMember.
"""
attool = getToolByName(context, 'archetype_tool')
mbtool = getToolByName(context, MBTOOLNAME)
mbtypes = set(mbtool.listMembraneTypes())
#remtypes = [t.getId() for t in
# attool.listPortalTypesWithInterfaces([IReMember])]
#remtypes = set(remtypes)
#return list(mbtypes.intersection(remtypes))
return list(mbtypes)
This just ignores the remember interface stuff and shows all membrane types.
It's been working for me.
Jim
> ----- "Rob Miller" wrote:
> > From: "Rob Miller" <[EMAIL PROTECTED]>
> > To: [email protected]
> > Sent: Monday, December 1, 2008 9:00:05 PM GMT -05:00 US/Canada
> Eastern
> > Subject: Re: [Remember Mailing List] What determines vaules in the
> Defualt Member Type dropdown
> >
> > Scott Brown wrote:
> > > When I run 'list portal types' in the debugger, only the Member
> type is
> > > returned as a unicode string....all others are non-unicode.
> > >
> > > Do you think this could cause the types not to be displayed?
> >
> > possibly, yes. can you change the value to be a regular string and
> see if
> > that helps?
> >
> > relatedly, i'm sorry i haven't been able to dig in to this, but i've
> been
> > overwhelmed w/ work and family stuff. hoping to be able to give it
> some time
> > over the next couple of days if you haven't figured it out by then.
> >
> > -r
> >
> >
> > --
> > Archive:
> http://www.openplans.org/projects/remember/lists/remember/archive/2008/12/1228183204982
> > 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/2008/12/1228940766839
To unsubscribe send an email with subject "unsubscribe" to [EMAIL PROTECTED]
Please contact [EMAIL PROTECTED] for questions.