Esempio n. 1
0
	def do_messages(self, args):
		if len(self.messages) == 0:
			self.do_fetch_messages("")
		
		for message_id in range(len(self.messages)):
			client.log("[%i] %s" % (message_id, self.messages[message_id]['title']))
			client.log("  * From: %s" % self.messages[message_id]['creator']['name'])
			client.log("  * Date: %s" % self.messages[message_id]['created'])
			print ""

		message_id = int(client.input("Message id: "))
		self.print_message(self.messages[message_id])
Esempio n. 2
0
	def do_login(self, args):
		username = client.input("Username: "******"Password (no chars will be shown): ")
		self.v.login(username, password)