2021-11-11 Fred Gleason <fredg@paravelsystems.com>

* Added a 'ListCarts()' method to the 'rivwebpyapi' API.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-11-11 16:35:11 -05:00
parent 73b5ca405e
commit 5bb2211cea
5 changed files with 202 additions and 2 deletions

View File

@@ -174,7 +174,10 @@ void Xport::ListCarts()
printf("Status: 200\n\n");
printf("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n");
printf("<cartList>\n");
printf("%s\n",(const char *)RDCart::xml(q,include_cuts,true).toUtf8());
QByteArray data=RDCart::xml(q,include_cuts,true).toUtf8();
// printf("%s\n",RDCart::xml(q,include_cuts,true).toUtf8().constData());
fwrite(data,1,data.size(),stdout);
rda->syslog(LOG_NOTICE,"xml size: %d",data.size());
printf("</cartList>\n");
delete q;
Exit(0);