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

* Removed debugging code from 'web/rdxport/carts.cpp'.
	* Removed debugging code from 'apis/rivwebpyapi/api/rivwebpyapi.py'.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2021-11-11 17:12:04 -05:00
parent 5bb2211cea
commit 04ea0f0ca6
3 changed files with 4 additions and 5 deletions

View File

@ -22609,3 +22609,6 @@
'web/tests/listcarts.html'.
2021-11-11 Fred Gleason <fredg@paravelsystems.com>
* Added a 'ListCarts()' method to the 'rivwebpyapi' API.
2021-11-11 Fred Gleason <fredg@paravelsystems.com>
* Removed debugging code from 'web/rdxport/carts.cpp'.
* Removed debugging code from 'apis/rivwebpyapi/api/rivwebpyapi.py'.

View File

@ -277,7 +277,6 @@ class rivwebpyapi(object):
'songId': 'string'
}
handler=RivWebPyApi_ListHandler(base_tag='cart',fields=fields)
print(r.text)
xml.sax.parseString(r.text,handler)
return handler.output()

View File

@ -174,10 +174,7 @@ void Xport::ListCarts()
printf("Status: 200\n\n");
printf("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n");
printf("<cartList>\n");
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("%s\n",RDCart::xml(q,include_cuts,true).toUtf8().constData());
printf("</cartList>\n");
delete q;
Exit(0);