comparison sat_frontends/jp/cmd_pubsub.py @ 2761:4b693ea24d5f

jp (base, pubsub, ticket): handle order-by: --order-by has been added to pubsub group. New getPubsubExtra helper method generate extra dict according to arguments. getPubsubExtra is used for pubsub/get, blog/get and and ticket/get.
author Goffi <goffi@goffi.org>
date Sun, 06 Jan 2019 17:39:57 +0100
parents 56f94936df1e
children 92af49cde255
comparison
equal deleted inserted replaced
2760:3480d4fdf83a 2761:4b693ea24d5f
758 self.args.service, 758 self.args.service,
759 self.args.node, 759 self.args.node,
760 self.args.max, 760 self.args.max,
761 self.args.items, 761 self.args.items,
762 self.args.sub_id, 762 self.args.sub_id,
763 {}, 763 self.getPubsubExtra(),
764 self.profile, 764 self.profile,
765 callback=self.psItemsGetCb, 765 callback=self.psItemsGetCb,
766 errback=self.psItemsGetEb, 766 errback=self.psItemsGetEb,
767 ) 767 )
768 768
1215 service, 1215 service,
1216 node, 1216 node,
1217 self.args.max, 1217 self.args.max,
1218 items, 1218 items,
1219 "", 1219 "",
1220 {}, 1220 self.getPubsubExtra(),
1221 self.profile, 1221 self.profile,
1222 callback=search, 1222 callback=search,
1223 errback=errback, 1223 errback=errback,
1224 ) 1224 )
1225 self.to_get += 1 1225 self.to_get += 1