Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emails not saving for Lead or Person #12

Open
jferdizzle opened this issue Aug 29, 2017 · 1 comment
Open

Emails not saving for Lead or Person #12

jferdizzle opened this issue Aug 29, 2017 · 1 comment
Labels

Comments

@jferdizzle
Copy link

jferdizzle commented Aug 29, 2017

I've just started investigating the issue, but my belief is that there seems to be an issue with the field Email. When I try instantiating an Email field, I get a recursive error. I believe if you edit the EmailSchema's Email field to be email = fields.String(allow_none=True), this should work for Lead and Person.

To test what I am referring to, try following the docs example for creating a person and the person 'steve' will not have an email.

from prospyr import Person

steve = Person(
    name='Steve Cognito',
    emails=[{'category': 'work', 'email': '[email protected]'}]
)

# steve only exists locally at this stage
steve.id
>>> None

# now he exists remotely too
steve.create()
>>> True
steve.id
>>> 1
@bennullgraham
Copy link
Contributor

You're right, this is broken. First guess is my hack to deal with ProsperWorks allowing whitespace around email addresses (prospyr/fields.py:35) is not working as expected (or no longer working as expected).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants