-
Notifications
You must be signed in to change notification settings - Fork 3
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
Replace couch update handler (xml2json) with python implementation #71
Conversation
this is awesome. |
Thanks yeah. I didn't get all the hq tests to pass last night so there must be done outstanding issues, but it mostly just went pretty smoothly. |
instead of the update handler which has been removed
change name of post_from_settings to create_xform_from_xml and expose as couchforms.create_xform_from_xml
- new exception couchforms.XMLSyntaxError (Didn't just let the lxml error bleed through because that would be tying the API to an implemenation detail.) - add short docstring indicating exception raised
refactor to use xml2json (python) broke the exception chain moved piece of code written for this to the correct new place
Conflicts: couchforms/__init__.py couchforms/util.py
Forwarded forms for a project for a week to staging (about 600 forms), compared forms on staging and www. Diff includes only the following properties:
Feeling pretty confident now. |
holy canoli! |
settings.COUCH_USERNAME, | ||
settings.COUCH_PASSWORD) | ||
|
||
def _extract_meta_instance_id(form): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you should use this function in _handle_id_conflict
to get the id out
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome, done
Replace couch update handler (xml2json) with python implementation
it's finally happened? yay! |
Hell yeah it has! |
No description provided.