mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-21 22:13:00 +02:00
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:
@@ -22609,3 +22609,6 @@
|
|||||||
'web/tests/listcarts.html'.
|
'web/tests/listcarts.html'.
|
||||||
2021-11-11 Fred Gleason <fredg@paravelsystems.com>
|
2021-11-11 Fred Gleason <fredg@paravelsystems.com>
|
||||||
* Added a 'ListCarts()' method to the 'rivwebpyapi' API.
|
* 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'.
|
||||||
|
@@ -277,7 +277,6 @@ class rivwebpyapi(object):
|
|||||||
'songId': 'string'
|
'songId': 'string'
|
||||||
}
|
}
|
||||||
handler=RivWebPyApi_ListHandler(base_tag='cart',fields=fields)
|
handler=RivWebPyApi_ListHandler(base_tag='cart',fields=fields)
|
||||||
print(r.text)
|
|
||||||
xml.sax.parseString(r.text,handler)
|
xml.sax.parseString(r.text,handler)
|
||||||
|
|
||||||
return handler.output()
|
return handler.output()
|
||||||
|
@@ -174,10 +174,7 @@ void Xport::ListCarts()
|
|||||||
printf("Status: 200\n\n");
|
printf("Status: 200\n\n");
|
||||||
printf("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n");
|
printf("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n");
|
||||||
printf("<cartList>\n");
|
printf("<cartList>\n");
|
||||||
QByteArray data=RDCart::xml(q,include_cuts,true).toUtf8();
|
printf("%s\n",RDCart::xml(q,include_cuts,true).toUtf8().constData());
|
||||||
// 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");
|
printf("</cartList>\n");
|
||||||
delete q;
|
delete q;
|
||||||
Exit(0);
|
Exit(0);
|
||||||
|
Reference in New Issue
Block a user