Skip to content
This repository has been archived by the owner on Jun 12, 2018. It is now read-only.

Commit

Permalink
Remove non-functional dialogue answers export action.
Browse files Browse the repository at this point in the history
  • Loading branch information
hodgestar committed Feb 13, 2015
1 parent 74db1e1 commit 4b2267e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
6 changes: 0 additions & 6 deletions go/apps/dialogue/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,3 @@ def test_edit_model_data_channel_types(self):

model_data = response.context["model_data"]
self.assertEqual(json.loads(model_data), expected)

def test_export_user_data(self):
conv_helper = self.setup_conversation()
response = self.client.get(conv_helper.get_view_url('user_data'))
self.assertEqual(response['Content-Type'], 'application/csv')
self.assertEqual(response.content, "TODO: write data export.")
14 changes: 0 additions & 14 deletions go/apps/dialogue/view_definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,6 @@ def get(self, request, conversation):
})


class UserDataView(ConversationTemplateView):
view_name = 'user_data'
path_suffix = 'users.csv'

def get(self, request, conversation):
# TODO: write new CSV data export
csv_data = "TODO: write data export."
return HttpResponse(csv_data, content_type='application/csv')


class SendDialogueForm(Form):
# TODO: Something better than this?
pass
Expand All @@ -80,10 +70,6 @@ class SendDialogueForm(Form):
class ConversationViewDefinition(ConversationViewDefinitionBase):
edit_view = DialogueEditView

extra_views = (
UserDataView,
)

action_forms = {
'send_jsbox': SendDialogueForm,
}

0 comments on commit 4b2267e

Please sign in to comment.