Mercurial > libervia-backend
comparison sat_frontends/jp/cmd_blog.py @ 2876:84f82d014d06
jp (blog/set): fixed use of --item argument
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 25 Mar 2019 18:40:10 +0100 |
parents | 2f39682f6d40 |
children | b2f323237fce |
comparison
equal
deleted
inserted
replaced
2875:f07b6fd8aac3 | 2876:84f82d014d06 |
---|---|
181 | 181 |
182 def start(self): | 182 def start(self): |
183 self.pubsub_item = self.args.item | 183 self.pubsub_item = self.args.item |
184 mb_data = {} | 184 mb_data = {} |
185 self.setMbDataFromArgs(mb_data) | 185 self.setMbDataFromArgs(mb_data) |
186 if self.pubsub_item is not None: | |
187 mb_data["id"] = self.pubsub_item | |
186 content = codecs.getreader("utf-8")(sys.stdin).read() | 188 content = codecs.getreader("utf-8")(sys.stdin).read() |
187 self.setMbDataContent(content, mb_data) | 189 self.setMbDataContent(content, mb_data) |
188 | 190 |
189 self.host.bridge.mbSend( | 191 self.host.bridge.mbSend( |
190 self.args.service, | 192 self.args.service, |