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

Optional manifest url #1543

Merged
merged 4 commits into from
Jan 22, 2019
Merged

Optional manifest url #1543

merged 4 commits into from
Jan 22, 2019

Conversation

lincmba
Copy link
Contributor

@lincmba lincmba commented Jan 21, 2019

Optional fields in formList such as manifestUrl should not be included in formList incase none exists.
fixes #1519

self._to_xml(xml, value)
xml.endElement(key)
if key not in FORMLIST_MANDATORY_FIELDS and value is None:
pass
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we use the continue keyword and avoid the else block? I think it seems cleaner that way.

Signed-off-by: Lincoln Simba <[email protected]>
Update tests

Signed-off-by: Lincoln Simba <[email protected]>
Signed-off-by: Lincoln Simba <[email protected]>
@ukanga ukanga merged commit 39aa191 into master Jan 22, 2019
@ukanga ukanga deleted the 1519-optional-manifest-url branch January 22, 2019 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error in ODK Briefcase when pulling data in versions 11 to 13
2 participants