{"action":"created","comment":{"url":"https://api.github.com/repos/rashadkm/webgrass/pulls/comments/71247249","id":71247249,"diff_hunk":"@@ -157,57 +143,59 @@ void MainUI::openModuleUI(Wt::WMenuItem* gitem) {\n   cancel->clicked().connect(dialog, &Wt::WDialog::reject);\n   Wt::WContainerWidget *mo = new Wt::WContainerWidget(dialog->contents());\n   mod = new Module(gmodule, mo);\n+  std::cout<<\"Module created\"<<std::endl;\n   dialog->rejectWhenEscapePressed();\n   dialog->finished().connect(this, &MainUI::runModule);\n   dialog->show();\n }\n \n void MainUI::runModule(Wt::WDialog::DialogCode code){\n-std::cout<<(mod->findById(\"Main\"))->objectName()<<\"check\"<<endl;\n-std::map<std::string,std::vector<Overall *> > mop = mod->map;\n-\n-std::string command = gmodule+\" \";\n-for (std::map<std::string,std::vector<Overall *> >::iterator it=mop.begin(); it != mop.end(); ++it) /*creation of widgets*/\n-         {   \n-            \n-            for(int i=0; i < it->second.size(); i++)\n-            { \n-              // std::cout<<\"got it\"<<std::endl;\n-              // std::cout<<((it->second[i])->Name_op)->text()<<std::endl;\n-              // std::string stre = ((it->second[i])->Name_op)->objectName();\n-               std::cout<<((it->second[i])->Name_op)->Name()<<std::endl;\n-              std::string object = ((it->second[i])->Name_op)->Name();\n-              // std::cout<<((it->second[i])->Name_op)->Type()<<std::endl;\n-              std::cout<<((it->second[i])->container_op)->text()<<std::endl;\n-              std::string value = (((it->second[i])->container_op)->text()).toUTF8();\n-              command = command + object+\"=\"+value + \" \";\n-\n-            }\n-\n-         }\n-std::cout<<command<<std::endl;\n-    // redi::ipstream proc(\"grass70 $HOME/grassdata/newLocation/PERMANENT\", redi::pstreams::pstdout | redi::pstreams::pstdin );\n-    //   std::string line;\n-    //   std::cout.flush();\n-    //   while (std::getline(proc.out(), line)){\n-    //     std::cout << \"stdout: \" << line << '\\n';\n-    // }\n-    redi::ipstream proc(\"export GRASS_PNG_AUTO_WRITE=TRUE; export GRASS_PNG_COMPRESSION=9; export GRASS_TRANSPARENT=TRUE; export GRASS_TRUECOLOR=TRUE; export LD_LIBRARY_PATH=/usr/lib/grass70/lib; export GISBASE=/usr/lib/grass70/; export GISDBASE=/home/mayank/grassdata1; export GISRC=/home/mayank/.grass7/rc; export PATH=/usr/lib/grass70/bin:/usr/lib/grass70/scripts:$PATH; g.gisenv\");\n-    // redi::ipstream proc(\"export GRASS_PNG_AUTO_WRITE=TRUE; export GRASS_PNG_COMPRESSION=9; export GRASS_TRANSPARENT=TRUE; export GRASS_TRUECOLOR=TRUE; export LD_LIBRARY_PATH=/usr/lib/grass70/lib; export GISBASE=/usr/lib/grass70/; export GISDBASE=/home/mayank/grassdata1; export GISRC=/home/mayank/.grass7/rc; export PATH=/usr/lib/grass70/bin:/usr/lib/grass70/scripts:$PATH; g.guienv\");\n-    // redi::ipstream proc(\"g.guienv\");      \n-      std::string line;\n-      std::cout.flush();\n-//       while (proc >> line) {\n-//     std::cout << line << std::endl;\n-// }\n-      while (std::getline(proc.out(), line)){\n-        std::cout << \"stdout: \" << line << '\\n';\n-      }\n-\n-      // redi::ipstream proc1(\"ls\");  \n-      // std::string line1;\n-      // std::cout.flush();\n-      // while (std::getline(proc1.out(), line1)){\n-      //   std::cout << \"stdout: \" << line1 << '\\n';\n-      // }\n+  if (code == Wt::WDialog::Accepted)\n+  {\n+        std::cout<<(mod->findById(\"Main\"))->objectName()<<\"check\"<<endl;\n+        std::map<std::string,std::vector<Parameter *> > mop = mod->map;\n+        std::vector<std::string>list= mod->container_IDs;\n+\n+        std::string command = gmodule+\" \";\n+        for (std::vector<std::string>::iterator it=list.begin(); it != list.end(); ++it) /*creation of widgets*/\n+                 {   \n+                    \n+\n+                      std::string d = *it;\n+                      // std::cout<<d<<endl;\n+                      WLineEdit *edit = dynamic_cast<WLineEdit *>(((mod->findById(\"Main\")))->findById(d));\n+                      // std::cout<<(edit->text()).toUTF8()<<std::endl;\n+                      std::string value = (edit->text()).toUTF8();\n+                      command = command + d+\"=\"+value + \" \";\n+\n+                    \n+\n+                 }\n+        std::cout<<command<<std::endl;\n+            // redi::ipstream proc(\"grass70 $HOME/grassdata/newLocation/PERMANENT\", redi::pstreams::pstdout | redi::pstreams::pstdin );\n+            //   std::string line;\n+            //   std::cout.flush();\n+            //   while (std::getline(proc.out(), line)){\n+            //     std::cout << \"stdout: \" << line << '\\n';\n+            // }\n+            redi::ipstream proc(\"export GRASS_PNG_AUTO_WRITE=TRUE; export GRASS_PNG_COMPRESSION=9; export GRASS_TRANSPARENT=TRUE; export GRASS_TRUECOLOR=TRUE; export LD_LIBRARY_PATH=/usr/lib/grass70/lib; export GISBASE=/usr/lib/grass70/; export GISDBASE=/home/mayank/grassdata1; export GISRC=/home/mayank/.grass7/rc; export PATH=/usr/lib/grass70/bin:/usr/lib/grass70/scripts:$PATH; g.gisenv\");","path":"src/MainUI.cpp","position":null,"original_position":112,"commit_id":"ff71ebfe3643296c31ff620a2bf6650c28215b23","original_commit_id":"c08b3eb7387a5bc06eacd6fb61822dd3bbbb8b9f","user":{"login":"rashadkm","id":2395451,"avatar_url":"https://avatars.githubusercontent.com/u/2395451?v=3","gravatar_id":"","url":"https://api.github.com/users/rashadkm","html_url":"https://github.com/rashadkm","followers_url":"https://api.github.com/users/rashadkm/followers","following_url":"https://api.github.com/users/rashadkm/following{/other_user}","gists_url":"https://api.github.com/users/rashadkm/gists{/gist_id}","starred_url":"https://api.github.com/users/rashadkm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rashadkm/subscriptions","organizations_url":"https://api.github.com/users/rashadkm/orgs","repos_url":"https://api.github.com/users/rashadkm/repos","events_url":"https://api.github.com/users/rashadkm/events{/privacy}","received_events_url":"https://api.github.com/users/rashadkm/received_events","type":"User","site_admin":false},"body":"you still could get mapset permission denied. but i want clean this up before merge. still getting mapset permission denied. i would recommend to build grass from source. the worst case, is we patch the source for webgrass!. but before that i want the script to run first and then run this command.\r\n\r\nremember to run script as . ./scripts/grass_init.sh. (note the first dot )","created_at":"2016-07-18T23:05:30Z","updated_at":"2016-07-18T23:05:30Z","html_url":"https://github.com/rashadkm/webgrass/pull/14#discussion_r71247249","pull_request_url":"https://api.github.com/repos/rashadkm/webgrass/pulls/14","_links":{"self":{"href":"https://api.github.com/repos/rashadkm/webgrass/pulls/comments/71247249"},"html":{"href":"https://github.com/rashadkm/webgrass/pull/14#discussion_r71247249"},"pull_request":{"href":"https://api.github.com/repos/rashadkm/webgrass/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/rashadkm/webgrass/pulls/14","id":77744877,"html_url":"https://github.com/rashadkm/webgrass/pull/14","diff_url":"https://github.com/rashadkm/webgrass/pull/14.diff","patch_url":"https://github.com/rashadkm/webgrass/pull/14.patch","issue_url":"https://api.github.com/repos/rashadkm/webgrass/issues/14","number":14,"state":"open","locked":false,"title":"all issues solved","user":{"login":"mayank33","id":12744703,"avatar_url":"https://avatars.githubusercontent.com/u/12744703?v=3","gravatar_id":"","url":"https://api.github.com/users/mayank33","html_url":"https://github.com/mayank33","followers_url":"https://api.github.com/users/mayank33/followers","following_url":"https://api.github.com/users/mayank33/following{/other_user}","gists_url":"https://api.github.com/users/mayank33/gists{/gist_id}","starred_url":"https://api.github.com/users/mayank33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mayank33/subscriptions","organizations_url":"https://api.github.com/users/mayank33/orgs","repos_url":"https://api.github.com/users/mayank33/repos","events_url":"https://api.github.com/users/mayank33/events{/privacy}","received_events_url":"https://api.github.com/users/mayank33/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-17T20:20:42Z","updated_at":"2016-07-18T23:05:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c25cbfdb370a141852636c5beeb6952508eb00fa","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/rashadkm/webgrass/pulls/14/commits","review_comments_url":"https://api.github.com/repos/rashadkm/webgrass/pulls/14/comments","review_comment_url":"https://api.github.com/repos/rashadkm/webgrass/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rashadkm/webgrass/issues/14/comments","statuses_url":"https://api.github.com/repos/rashadkm/webgrass/statuses/ff71ebfe3643296c31ff620a2bf6650c28215b23","head":{"label":"mayank33:gsoc2016","ref":"gsoc2016","sha":"ff71ebfe3643296c31ff620a2bf6650c28215b23","user":{"login":"mayank33","id":12744703,"avatar_url":"https://avatars.githubusercontent.com/u/12744703?v=3","gravatar_id":"","url":"https://api.github.com/users/mayank33","html_url":"https://github.com/mayank33","followers_url":"https://api.github.com/users/mayank33/followers","following_url":"https://api.github.com/users/mayank33/following{/other_user}","gists_url":"https://api.github.com/users/mayank33/gists{/gist_id}","starred_url":"https://api.github.com/users/mayank33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mayank33/subscriptions","organizations_url":"https://api.github.com/users/mayank33/orgs","repos_url":"https://api.github.com/users/mayank33/repos","events_url":"https://api.github.com/users/mayank33/events{/privacy}","received_events_url":"https://api.github.com/users/mayank33/received_events","type":"User","site_admin":false},"repo":{"id":55966709,"name":"webgrass","full_name":"mayank33/webgrass","owner":{"login":"mayank33","id":12744703,"avatar_url":"https://avatars.githubusercontent.com/u/12744703?v=3","gravatar_id":"","url":"https://api.github.com/users/mayank33","html_url":"https://github.com/mayank33","followers_url":"https://api.github.com/users/mayank33/followers","following_url":"https://api.github.com/users/mayank33/following{/other_user}","gists_url":"https://api.github.com/users/mayank33/gists{/gist_id}","starred_url":"https://api.github.com/users/mayank33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mayank33/subscriptions","organizations_url":"https://api.github.com/users/mayank33/orgs","repos_url":"https://api.github.com/users/mayank33/repos","events_url":"https://api.github.com/users/mayank33/events{/privacy}","received_events_url":"https://api.github.com/users/mayank33/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mayank33/webgrass","description":"","fork":true,"url":"https://api.github.com/repos/mayank33/webgrass","forks_url":"https://api.github.com/repos/mayank33/webgrass/forks","keys_url":"https://api.github.com/repos/mayank33/webgrass/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mayank33/webgrass/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mayank33/webgrass/teams","hooks_url":"https://api.github.com/repos/mayank33/webgrass/hooks","issue_events_url":"https://api.github.com/repos/mayank33/webgrass/issues/events{/number}","events_url":"https://api.github.com/repos/mayank33/webgrass/events","assignees_url":"https://api.github.com/repos/mayank33/webgrass/assignees{/user}","branches_url":"https://api.github.com/repos/mayank33/webgrass/branches{/branch}","tags_url":"https://api.github.com/repos/mayank33/webgrass/tags","blobs_url":"https://api.github.com/repos/mayank33/webgrass/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mayank33/webgrass/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mayank33/webgrass/git/refs{/sha}","trees_url":"https://api.github.com/repos/mayank33/webgrass/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mayank33/webgrass/statuses/{sha}","languages_url":"https://api.github.com/repos/mayank33/webgrass/languages","stargazers_url":"https://api.github.com/repos/mayank33/webgrass/stargazers","contributors_url":"https://api.github.com/repos/mayank33/webgrass/contributors","subscribers_url":"https://api.github.com/repos/mayank33/webgrass/subscribers","subscription_url":"https://api.github.com/repos/mayank33/webgrass/subscription","commits_url":"https://api.github.com/repos/mayank33/webgrass/commits{/sha}","git_commits_url":"https://api.github.com/repos/mayank33/webgrass/git/commits{/sha}","comments_url":"https://api.github.com/repos/mayank33/webgrass/comments{/number}","issue_comment_url":"https://api.github.com/repos/mayank33/webgrass/issues/comments{/number}","contents_url":"https://api.github.com/repos/mayank33/webgrass/contents/{+path}","compare_url":"https://api.github.com/repos/mayank33/webgrass/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mayank33/webgrass/merges","archive_url":"https://api.github.com/repos/mayank33/webgrass/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mayank33/webgrass/downloads","issues_url":"https://api.github.com/repos/mayank33/webgrass/issues{/number}","pulls_url":"https://api.github.com/repos/mayank33/webgrass/pulls{/number}","milestones_url":"https://api.github.com/repos/mayank33/webgrass/milestones{/number}","notifications_url":"https://api.github.com/repos/mayank33/webgrass/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mayank33/webgrass/labels{/name}","releases_url":"https://api.github.com/repos/mayank33/webgrass/releases{/id}","deployments_url":"https://api.github.com/repos/mayank33/webgrass/deployments","created_at":"2016-04-11T11:29:13Z","updated_at":"2016-04-11T11:29:16Z","pushed_at":"2016-07-18T09:52:21Z","git_url":"git://github.com/mayank33/webgrass.git","ssh_url":"git@github.com:mayank33/webgrass.git","clone_url":"https://github.com/mayank33/webgrass.git","svn_url":"https://github.com/mayank33/webgrass","homepage":null,"size":2498,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rashadkm:master","ref":"master","sha":"83f4f4d69e5b1becc98afefd400a60929c16b96f","user":{"login":"rashadkm","id":2395451,"avatar_url":"https://avatars.githubusercontent.com/u/2395451?v=3","gravatar_id":"","url":"https://api.github.com/users/rashadkm","html_url":"https://github.com/rashadkm","followers_url":"https://api.github.com/users/rashadkm/followers","following_url":"https://api.github.com/users/rashadkm/following{/other_user}","gists_url":"https://api.github.com/users/rashadkm/gists{/gist_id}","starred_url":"https://api.github.com/users/rashadkm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rashadkm/subscriptions","organizations_url":"https://api.github.com/users/rashadkm/orgs","repos_url":"https://api.github.com/users/rashadkm/repos","events_url":"https://api.github.com/users/rashadkm/events{/privacy}","received_events_url":"https://api.github.com/users/rashadkm/received_events","type":"User","site_admin":false},"repo":{"id":55173133,"name":"webgrass","full_name":"rashadkm/webgrass","owner":{"login":"rashadkm","id":2395451,"avatar_url":"https://avatars.githubusercontent.com/u/2395451?v=3","gravatar_id":"","url":"https://api.github.com/users/rashadkm","html_url":"https://github.com/rashadkm","followers_url":"https://api.github.com/users/rashadkm/followers","following_url":"https://api.github.com/users/rashadkm/following{/other_user}","gists_url":"https://api.github.com/users/rashadkm/gists{/gist_id}","starred_url":"https://api.github.com/users/rashadkm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rashadkm/subscriptions","organizations_url":"https://api.github.com/users/rashadkm/orgs","repos_url":"https://api.github.com/users/rashadkm/repos","events_url":"https://api.github.com/users/rashadkm/events{/privacy}","received_events_url":"https://api.github.com/users/rashadkm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rashadkm/webgrass","description":"","fork":false,"url":"https://api.github.com/repos/rashadkm/webgrass","forks_url":"https://api.github.com/repos/rashadkm/webgrass/forks","keys_url":"https://api.github.com/repos/rashadkm/webgrass/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rashadkm/webgrass/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rashadkm/webgrass/teams","hooks_url":"https://api.github.com/repos/rashadkm/webgrass/hooks","issue_events_url":"https://api.github.com/repos/rashadkm/webgrass/issues/events{/number}","events_url":"https://api.github.com/repos/rashadkm/webgrass/events","assignees_url":"https://api.github.com/repos/rashadkm/webgrass/assignees{/user}","branches_url":"https://api.github.com/repos/rashadkm/webgrass/branches{/branch}","tags_url":"https://api.github.com/repos/rashadkm/webgrass/tags","blobs_url":"https://api.github.com/repos/rashadkm/webgrass/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rashadkm/webgrass/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rashadkm/webgrass/git/refs{/sha}","trees_url":"https://api.github.com/repos/rashadkm/webgrass/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rashadkm/webgrass/statuses/{sha}","languages_url":"https://api.github.com/repos/rashadkm/webgrass/languages","stargazers_url":"https://api.github.com/repos/rashadkm/webgrass/stargazers","contributors_url":"https://api.github.com/repos/rashadkm/webgrass/contributors","subscribers_url":"https://api.github.com/repos/rashadkm/webgrass/subscribers","subscription_url":"https://api.github.com/repos/rashadkm/webgrass/subscription","commits_url":"https://api.github.com/repos/rashadkm/webgrass/commits{/sha}","git_commits_url":"https://api.github.com/repos/rashadkm/webgrass/git/commits{/sha}","comments_url":"https://api.github.com/repos/rashadkm/webgrass/comments{/number}","issue_comment_url":"https://api.github.com/repos/rashadkm/webgrass/issues/comments{/number}","contents_url":"https://api.github.com/repos/rashadkm/webgrass/contents/{+path}","compare_url":"https://api.github.com/repos/rashadkm/webgrass/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rashadkm/webgrass/merges","archive_url":"https://api.github.com/repos/rashadkm/webgrass/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rashadkm/webgrass/downloads","issues_url":"https://api.github.com/repos/rashadkm/webgrass/issues{/number}","pulls_url":"https://api.github.com/repos/rashadkm/webgrass/pulls{/number}","milestones_url":"https://api.github.com/repos/rashadkm/webgrass/milestones{/number}","notifications_url":"https://api.github.com/repos/rashadkm/webgrass/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rashadkm/webgrass/labels{/name}","releases_url":"https://api.github.com/repos/rashadkm/webgrass/releases{/id}","deployments_url":"https://api.github.com/repos/rashadkm/webgrass/deployments","created_at":"2016-03-31T18:19:44Z","updated_at":"2016-07-11T19:05:55Z","pushed_at":"2016-07-18T09:52:22Z","git_url":"git://github.com/rashadkm/webgrass.git","ssh_url":"git@github.com:rashadkm/webgrass.git","clone_url":"https://github.com/rashadkm/webgrass.git","svn_url":"https://github.com/rashadkm/webgrass","homepage":null,"size":2496,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rashadkm/webgrass/pulls/14"},"html":{"href":"https://github.com/rashadkm/webgrass/pull/14"},"issue":{"href":"https://api.github.com/repos/rashadkm/webgrass/issues/14"},"comments":{"href":"https://api.github.com/repos/rashadkm/webgrass/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/rashadkm/webgrass/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/rashadkm/webgrass/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rashadkm/webgrass/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/rashadkm/webgrass/statuses/ff71ebfe3643296c31ff620a2bf6650c28215b23"}}}}
{"actor":{"display_login":"rashadkm"}}