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

Use xpath as key for valueLabels dict #897

Merged
merged 6 commits into from
Feb 9, 2017
Merged

Conversation

royrutto-xx
Copy link

@royrutto-xx royrutto-xx commented Feb 6, 2017

@royrutto-xx royrutto-xx changed the title [DNM] use varNames as key for valueLabels dict Use xpath as key for valueLabels dict Feb 6, 2017
@skambo
Copy link
Contributor

skambo commented Feb 7, 2017

@royrutto Some forms work, like the one you're testing with, but @faith-mutua and I get different errors

@skambo skambo added the QA+ PR passed QA testing label Feb 8, 2017
@@ -737,10 +739,25 @@ def _get_sav_value_labels(self):
name = choice['name'].strip()
label = self.get_choice_label_from_dict(choice['label'])
_value_labels[name] = label.strip()
self._sav_value_labels[q['name']] = _value_labels
self._sav_value_labels[var_name or q['name']] = _value_labels
Copy link
Contributor

Choose a reason for hiding this comment

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

Should var_name be q['name'] when xpath_var_names in None?

Copy link
Author

Choose a reason for hiding this comment

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

yes

@denniswambua denniswambua merged commit 9fcac0f into master Feb 9, 2017
@denniswambua denniswambua deleted the sav-exports-fix branch February 9, 2017 05:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
QA+ PR passed QA testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants