Note what we're doing during login
authorAlex Schroeder <alex@gnu.org>
Thu, 15 Aug 2019 09:27:55 +0000 (11:27 +0200)
committerAlex Schroeder <alex@gnu.org>
Thu, 15 Aug 2019 09:27:55 +0000 (11:27 +0200)
Login can take a moment so print some status information.

README.md
jan-pona-mute.py

index 7e8c5bd530d12169cdee79b9e771e63c6af463ad..39221d7f4c751edbcbebfa921b783d1ed9f9c342 100644 (file)
--- a/README.md
+++ b/README.md
@@ -39,6 +39,8 @@ Username and pod set: kensanata@pluspora.com
 > password *secret*
 Password set
 > login
+Setting up a connection...
+Logging in...
 > notifications
  1. 2019-08-13T19:40:17.000Z Joe Doe has liked your post I've started writing...
  2. 2019-08-13T17:59:23.000Z Joe Doe commented on your post Please help me wi...
index b54f8f3641629a655aa69bff8d56af24ab247c63..7ed8ebdcf440e7f6f0d99270b6600e08aaf19aef 100755 (executable)
@@ -232,9 +232,11 @@ enter a number to select the corresponding item.
         elif self.password == None:
             print("Use the 'password' command.")
         else:
+            print("Setting up a connection...")
             self.connection = diaspy.connection.Connection(
                 pod = "https://%s" % self.pod, username = self.username, password = self.password)
             try:
+                print("Logging in...")
                 self.connection.login()
             except diaspy.errors.LoginError:
                 print("Login failed.")