summaryrefslogtreecommitdiff
path: root/client/macro.cc
diff options
context:
space:
mode:
authordeva <deva>2008-05-22 06:47:43 +0000
committerdeva <deva>2008-05-22 06:47:43 +0000
commit5dac0856cb400a4f40280e7caae188781dac7b85 (patch)
tree3ec0d430532ed6d90e120e08ade3536992c3e869 /client/macro.cc
parent62f78877e99e1748d6548deeb65067770c0ad0b8 (diff)
Made script take current user into account. Generalized some naming stuff.
Diffstat (limited to 'client/macro.cc')
-rw-r--r--client/macro.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/macro.cc b/client/macro.cc
index 08a956a..d06e4c0 100644
--- a/client/macro.cc
+++ b/client/macro.cc
@@ -64,6 +64,7 @@ void create_macro(QString name)
QDomDocument xml_doc;
if (!xml_doc.setContent(ba)) {
printf("ERROR: Invalid XML recieved!\n");
+ fwrite(ba.data(), ba.size(), 1, stdout);
}
// Initiate the macro builder with the xml document
@@ -99,7 +100,7 @@ static QDomDocument xml_request(QString name)
printf("macro: %s, cpr: %s, user: %s\n", name.toStdString().c_str(), cpr.toStdString().c_str(), user.toStdString().c_str());
xml_array.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
xml_array.append("<pracro version=\"1.0\" cpr=\"" + cpr + "\" user=\"" + user + "\">\n");
- xml_array.append(" <request macro=\"" + name + "\"/>\n");
+ xml_array.append(" <request course=\"example2\" macro=\"" + name + "\"/>\n");
xml_array.append("</pracro>");
// Print to stdout for debug purposes