{"action":"created","issue":{"url":"https://api.github.com/repos/openwebwork/pg/issues/219","labels_url":"https://api.github.com/repos/openwebwork/pg/issues/219/labels{/name}","comments_url":"https://api.github.com/repos/openwebwork/pg/issues/219/comments","events_url":"https://api.github.com/repos/openwebwork/pg/issues/219/events","html_url":"https://github.com/openwebwork/pg/pull/219","id":92189433,"number":219,"title":"IO Cleanup","user":{"login":"goehle","id":1774907,"avatar_url":"https://avatars.githubusercontent.com/u/1774907?v=3","gravatar_id":"","url":"https://api.github.com/users/goehle","html_url":"https://github.com/goehle","followers_url":"https://api.github.com/users/goehle/followers","following_url":"https://api.github.com/users/goehle/following{/other_user}","gists_url":"https://api.github.com/users/goehle/gists{/gist_id}","starred_url":"https://api.github.com/users/goehle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goehle/subscriptions","organizations_url":"https://api.github.com/users/goehle/orgs","repos_url":"https://api.github.com/users/goehle/repos","events_url":"https://api.github.com/users/goehle/events{/privacy}","received_events_url":"https://api.github.com/users/goehle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-06-30T20:17:52Z","updated_at":"2015-07-02T13:46:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openwebwork/pg/pulls/219","html_url":"https://github.com/openwebwork/pg/pull/219","diff_url":"https://github.com/openwebwork/pg/pull/219.diff","patch_url":"https://github.com/openwebwork/pg/pull/219.patch"},"body":"This is a bit of a cleanup of the PG IO system. \r\n-  It removes some methods `read_whole_file` and `createFile` that were not used.  \r\n  -  Test by trying to use either method in a problem\r\n-  It strips off any paths that might be part of `loadMacros`. \r\n  -  To test, add a path to something in `loadMacros` and check that only the file name is used.\r\n-  Adds a check to read_whole_problem_file to see if problem file is coming from a courses directory. \r\n  -  To test, try and put `read_whole_problem_file('/webwork2/thing.pg')` in a problem \r\n-  Removes a couple of obsolete macro files from pg/macros.  \r\n\r\nNote:   This needs to be tested with WeBWorK pull request 606.  "},"comment":{"url":"https://api.github.com/repos/openwebwork/pg/issues/comments/118038354","html_url":"https://github.com/openwebwork/pg/pull/219#issuecomment-118038354","issue_url":"https://api.github.com/repos/openwebwork/pg/issues/219","id":118038354,"user":{"login":"mgage","id":1203580,"avatar_url":"https://avatars.githubusercontent.com/u/1203580?v=3","gravatar_id":"","url":"https://api.github.com/users/mgage","html_url":"https://github.com/mgage","followers_url":"https://api.github.com/users/mgage/followers","following_url":"https://api.github.com/users/mgage/following{/other_user}","gists_url":"https://api.github.com/users/mgage/gists{/gist_id}","starred_url":"https://api.github.com/users/mgage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgage/subscriptions","organizations_url":"https://api.github.com/users/mgage/orgs","repos_url":"https://api.github.com/users/mgage/repos","events_url":"https://api.github.com/users/mgage/events{/privacy}","received_events_url":"https://api.github.com/users/mgage/received_events","type":"User","site_admin":false},"created_at":"2015-07-02T13:46:32Z","updated_at":"2015-07-02T13:46:32Z","body":"At the moment Library is pointing to OpenProblemLibrary but CAPA, and \r\nsome other useful problems are in Contrib which is at the same level as OpenProblemLibrary.\r\n\r\nThere is nothing in defaults.config\r\nat the moment that points to webwork-open-problem-library/Contrib -- if there were \r\nwe could use that as the prefix for the CAPA addresses.  \r\n\r\nI believe one of the reasons\r\nwe put the paths to CAPA in default.config was because otherwise one had to create\r\nseveral aliases in modelCourse in order to get to the CAPA graphics, the tools and the problems,\r\nand describing the setup to newbies wanting to use CAPA problems was overly complicated.\r\n"}}