Mercurial > libervia-backend
comparison doc/libervia-cli/pubsub.rst @ 3635:7bc443253b7c
merge branche "@"
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 28 Aug 2021 15:32:58 +0200 |
parents | 21e7d46b988c 7acf19bdca2f |
children | e597dbfbc4c6 |
comparison
equal
deleted
inserted
replaced
3633:597a535ee187 | 3635:7bc443253b7c |
---|---|
344 if not "SàT" in item_raw: | 344 if not "SàT" in item_raw: |
345 print("SKIP") | 345 print("SKIP") |
346 else: | 346 else: |
347 print(item_raw.replace("SàT", "Libervia")) | 347 print(item_raw.replace("SàT", "Libervia")) |
348 | 348 |
349 And save it a some location, e.g. ``~/expand_sat.py`` (don't forget to make is executable | 349 And save it a some location, e.g. ``~/expand_sat.py`` (don't forget to make it executable |
350 with ``chmod +x ~/expand_sat.py``). | 350 with ``chmod +x ~/expand_sat.py``). |
351 | 351 |
352 To be sure it's safe, you can first do a dry-run and check the result:: | 352 To be sure it's safe, you can first do a dry-run and check the result:: |
353 | 353 |
354 $ li pubsub transform -n urn:xmpp:microblog:0 -A -o creation ~/expand_sat.py | 354 $ li pubsub transform -n urn:xmpp:microblog:0 -A -o creation ~/expand_sat.py |