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

have case details ui fail gracefully when forms have no xml attachments #45

Merged
merged 1 commit into from
May 23, 2013

Conversation

dannyroberts
Copy link
Member

This came up while I was testing bihar reports locally, as my copy_group_data mgmt cmd doesn't copy attachments.

Anyway, thought it might come in handy.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0%) when pulling cd91e62 on ui-fail-gracefully into f1bb5dc on master.

try:
return self[const.TAG_XML]
except AttributeError:
return None
Copy link
Member

Choose a reason for hiding this comment

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

sort of surprised this is AttributeError and not KeyError - i guess some couchdbkit hackery?

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah, it throws the same exception whether you do self[key] or self.key

czue added a commit that referenced this pull request May 23, 2013
have case details ui fail gracefully when forms have no xml attachments
@czue czue merged commit 90ad718 into master May 23, 2013
@czue czue deleted the ui-fail-gracefully branch May 23, 2013 18:19
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.

None yet

4 participants