Viewing posts for the category Python
Just a little script to find duplicate contact_mechanism entries on parties in tryton (how i run tryton stuff using ipython and proteus):
So I wanted some sort of progress printed while my import into tryton runs .. I just had dots to start with .. not easy to keep track though.
So I was busy testing tryton import scripts .. which means constantly re-setting my DB to clear it (deleting just takes 10 times longer than SQL restore)..
So after a bit of experimenting I now know how to add Notes to other objects (like Party) for example:
So I was having a small issue on a server I cannot easily update where certbot was out of date and gave me this error: "Client with the currently selected authenticator does not support any combination of challenges that will satisfy the CA."
Took me a while due to some dependencies my last updates had skipped certbot and it was still quite old .. Digging around a bit I found out that the error I had might be fixed already. But without a good way to update it I was a bit stuck..
Then I remembered .. who said I had to use the system installed certbot.. so virtualenv to the rescue: