{"action":"created","issue":{"url":"https://api.github.com/repos/flavour/eden/issues/1034","labels_url":"https://api.github.com/repos/flavour/eden/issues/1034/labels{/name}","comments_url":"https://api.github.com/repos/flavour/eden/issues/1034/comments","events_url":"https://api.github.com/repos/flavour/eden/issues/1034/events","html_url":"https://github.com/flavour/eden/pull/1034","id":54211199,"number":1034,"title":"[S3Method]: Download assessment form(.xls and .rtf) working","user":{"login":"raj454raj","id":6368364,"avatar_url":"https://avatars.githubusercontent.com/u/6368364?v=3","gravatar_id":"","url":"https://api.github.com/users/raj454raj","html_url":"https://github.com/raj454raj","followers_url":"https://api.github.com/users/raj454raj/followers","following_url":"https://api.github.com/users/raj454raj/following{/other_user}","gists_url":"https://api.github.com/users/raj454raj/gists{/gist_id}","starred_url":"https://api.github.com/users/raj454raj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raj454raj/subscriptions","organizations_url":"https://api.github.com/users/raj454raj/orgs","repos_url":"https://api.github.com/users/raj454raj/repos","events_url":"https://api.github.com/users/raj454raj/events{/privacy}","received_events_url":"https://api.github.com/users/raj454raj/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-01-13T16:04:28Z","updated_at":"2015-01-24T13:46:55Z","closed_at":"2015-01-23T09:02:14Z","pull_request":{"url":"https://api.github.com/repos/flavour/eden/pulls/1034","html_url":"https://github.com/flavour/eden/pull/1034","diff_url":"https://github.com/flavour/eden/pull/1034.diff","patch_url":"https://github.com/flavour/eden/pull/1034.patch"},"body":"I have removed the code for \"from PyRTF import something\" and replaced by \"from gluon.contrib.pyrtf import *\" because now web2py has pyrtf module inbuilt. No need to check whether user have it installed or not!!! YAY !!!"},"comment":{"url":"https://api.github.com/repos/flavour/eden/issues/comments/71317315","html_url":"https://github.com/flavour/eden/pull/1034#issuecomment-71317315","issue_url":"https://api.github.com/repos/flavour/eden/issues/1034","id":71317315,"user":{"login":"raj454raj","id":6368364,"avatar_url":"https://avatars.githubusercontent.com/u/6368364?v=3","gravatar_id":"","url":"https://api.github.com/users/raj454raj","html_url":"https://github.com/raj454raj","followers_url":"https://api.github.com/users/raj454raj/followers","following_url":"https://api.github.com/users/raj454raj/following{/other_user}","gists_url":"https://api.github.com/users/raj454raj/gists{/gist_id}","starred_url":"https://api.github.com/users/raj454raj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raj454raj/subscriptions","organizations_url":"https://api.github.com/users/raj454raj/orgs","repos_url":"https://api.github.com/users/raj454raj/repos","events_url":"https://api.github.com/users/raj454raj/events{/privacy}","received_events_url":"https://api.github.com/users/raj454raj/received_events","type":"User","site_admin":false},"created_at":"2015-01-24T13:46:55Z","updated_at":"2015-01-24T13:46:55Z","body":"@nursix : Doubts -\r\n1. How do I call a S3Method class(series_ExportFormatted) without request object while writing tests. I mean how do I pass r and attr parameters to the apply_method function.\r\n2. How do I create a temporary widget in tests by this -\r\n```\r\n        qtable = s3db.survey_question\r\n        record = Storage(name = \"Test for string widgets\",\r\n                         type = \"String\",\r\n                         code = \"72H-68\")\r\n        question_id = qtable.insert(**record)\r\n```\r\nbut the problem here is every time I run the tests it inserts multiple times. Shall do a select first and then see if the record is there or not?\r\nThanks."}}