Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fucked tabs

  • Loading branch information...
commit 56580141984b380d81cb206cb1ca82073e0e06c7 1 parent 24e2d56
Roman Gladkov authored
Showing with 23 additions and 23 deletions.
  1. +20 −20 Psto/Psto.py
  2. +3 −3 readme
40 Psto/Psto.py
View
@@ -7,27 +7,27 @@
from xmpp import JID, Client, Message
settings = {"jid": "",
- "password": "",
- "pstobot": "psto@psto.net",
- "res": "Sublime Text Psto-Plugin"}
+ "password": "",
+ "pstobot": "psto@psto.net",
+ "res": "Sublime Text Psto-Plugin"}
class PstoCommand(WindowCommand):
- def __init__(self):
- jid = JID(settings["jid"])
- conn = Client(jid.getDomain(), debug=[])
- if not conn.connect():
- statusMessage("PSTO: connection error")
- if not conn.auth(jid.getNode(), settings["password"], settings["res"]):
- statusMessage("PSTO: autentification error")
- self.conn = conn
+ def __init__(self):
+ jid = JID(settings["jid"])
+ conn = Client(jid.getDomain(), debug=[])
+ if not conn.connect():
+ statusMessage("PSTO: connection error")
+ if not conn.auth(jid.getNode(), settings["password"], settings["res"]):
+ statusMessage("PSTO: autentification error")
+ self.conn = conn
- def run(self, window, args):
- view = window.activeView()
- window.showInputPanel("Message:", view.name(), partial(self.onDone), None, None)
+ def run(self, window, args):
+ view = window.activeView()
+ window.showInputPanel("Message:", view.name(), partial(self.onDone), None, None)
- def onDone(self, text):
- if text:
- self.conn.send(Message(to=settings["pstobot"], body=text))
- statusMessage("PSTO: Message sended (%s)" % text)
- else:
- statusMessage("PSTO: Error. Not message")
+ def onDone(self, text):
+ if text:
+ self.conn.send(Message(to=settings["pstobot"], body=text))
+ statusMessage("PSTO: Message sended (%s)" % text)
+ else:
+ statusMessage("PSTO: Error. Not message")
6 readme
View
@@ -6,8 +6,8 @@ copy Psto to %sublime/text/intall/path%/Data/Packages/
settings:
username and password for you jabber account set in Psto/Psto.py:
settings = {"jid": "",
- "password": "",
- "pstobot": "psto@psto.net",
- "res": "Sublime Text Psto-Plugin"}
+ "password": "",
+ "pstobot": "psto@psto.net",
+ "res": "Sublime Text Psto-Plugin"}
using: Tools -> Packages -> Psto and see screens
Please sign in to comment.
Something went wrong with that request. Please try again.