mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-17 08:01:13 +02:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user