You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(2) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(4) |
Feb
|
Mar
|
Apr
(5) |
May
(11) |
Jun
|
Jul
|
Aug
(7) |
Sep
(17) |
Oct
(4) |
Nov
(1) |
Dec
(10) |
2005 |
Jan
(9) |
Feb
(10) |
Mar
(3) |
Apr
(4) |
May
(12) |
Jun
(24) |
Jul
(22) |
Aug
(29) |
Sep
(74) |
Oct
(47) |
Nov
(25) |
Dec
(22) |
2006 |
Jan
(36) |
Feb
(9) |
Mar
(36) |
Apr
(33) |
May
(39) |
Jun
(9) |
Jul
(18) |
Aug
(18) |
Sep
(26) |
Oct
(48) |
Nov
(14) |
Dec
(9) |
2007 |
Jan
(10) |
Feb
(2) |
Mar
(9) |
Apr
(3) |
May
(9) |
Jun
|
Jul
(12) |
Aug
(20) |
Sep
|
Oct
(16) |
Nov
(4) |
Dec
(21) |
2008 |
Jan
(32) |
Feb
(11) |
Mar
(4) |
Apr
(13) |
May
(13) |
Jun
(16) |
Jul
(1) |
Aug
(8) |
Sep
(9) |
Oct
(23) |
Nov
(7) |
Dec
|
2009 |
Jan
(17) |
Feb
(11) |
Mar
(35) |
Apr
(10) |
May
(8) |
Jun
(14) |
Jul
(3) |
Aug
(2) |
Sep
|
Oct
(2) |
Nov
|
Dec
(5) |
2010 |
Jan
(15) |
Feb
(4) |
Mar
|
Apr
|
May
(5) |
Jun
(4) |
Jul
(3) |
Aug
(1) |
Sep
(10) |
Oct
(2) |
Nov
(8) |
Dec
(3) |
2011 |
Jan
(3) |
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(4) |
Sep
|
Oct
|
Nov
(4) |
Dec
(1) |
2012 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2013 |
Jan
(5) |
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
(5) |
Oct
(1) |
Nov
(14) |
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(3) |
Dec
(1) |
2015 |
Jan
(1) |
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Caio B. <cai...@gm...> - 2010-01-18 12:53:26
|
On Sat, Jan 16, 2010 at 9:38 PM, Norman Rasmussen <no...@ra...>wrote: > On Fri, Jan 15, 2010 at 7:18 PM, Caio Brentano <cai...@gm...>wrote: > >> Hi all >> >> I developed a little client just to send messages. It's ok to send >> messages directly to users. But I need to send messages to Conferences Room >> too. Any idea how can I do this? >> > > You need to send presence to the room to enter it before sending it a > message. Generally you send directed presence to room@server/Nick (where > Nick is the name of your client in the room). The room will then send you > presence and message history. As soon as you see yourself in the room you > can send it a message. so cl.sendPresence('room@server/Nick') should work > > The conference rooms in my company xmpp server requires Authentication. I >> didn't find anything about auth to rooms. >> > > You will need to create a Presence stanza, set the password, and send it > separately, something like this should work: > p = Presence('room@server/Nick) > p.setTag('x', namespace=NS_MUC).setTag('password', pass) > cl.send(p) > > I did this: p = xmpp.protocol.Presence('my_room@my_server/my_Nick') p.setTag('x', namespace=xmpp.protocol.NS_MUC).setTag('password', 'my_password') cnx.send(p) And got this errors: Traceback (most recent call last): File "./teste.py", line 14, in ? p.setTag('x', namespace=xmpp.protocol.NS_MUC).setTag('password', 'my_password') File "/home/semon/testePY/xmpp/simplexml.py", line 282, in setTag else: return self.addChild(name, attrs, namespace=namespace) File "/home/semon/testePY/xmpp/simplexml.py", line 164, in addChild else: newnode=Node(tag=name, parent=self, attrs=attrs, payload=payload) File "/home/semon/testePY/xmpp/simplexml.py", line 78, in __init__ for attr,val in attrs.items(): AttributeError: 'str' object has no attribute 'items' It seems that it doesn't know the attribute 'password'... Thanks... Thanks in advance! >> -- >> Caio Brentano >> >> >> ------------------------------------------------------------------------------ >> Throughout its 18-year history, RSA Conference consistently attracts the >> world's best and brightest in the field, creating opportunities for >> Conference >> attendees to learn about information security's most important issues >> through >> interactions with peers, luminaries and emerging and established >> companies. >> http://p.sf.net/sfu/rsaconf-dev2dev >> _______________________________________________ >> Xmpppy-devel mailing list >> Xmp...@li... >> https://lists.sourceforge.net/lists/listinfo/xmpppy-devel >> >> > > > -- > - Norman Rasmussen > - Email: no...@ra... > - Home page: http://norman.rasmussen.co.za/ > > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for > Conference > attendees to learn about information security's most important issues > through > interactions with peers, luminaries and emerging and established companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > Xmpppy-devel mailing list > Xmp...@li... > https://lists.sourceforge.net/lists/listinfo/xmpppy-devel > > -- Caio Brentano |
From: Norman R. <no...@ra...> - 2010-01-16 23:38:49
|
On Fri, Jan 15, 2010 at 7:18 PM, Caio Brentano <cai...@gm...>wrote: > Hi all > > I developed a little client just to send messages. It's ok to send messages > directly to users. But I need to send messages to Conferences Room too. Any > idea how can I do this? > You need to send presence to the room to enter it before sending it a message. Generally you send directed presence to room@server/Nick (where Nick is the name of your client in the room). The room will then send you presence and message history. As soon as you see yourself in the room you can send it a message. so cl.sendPresence('room@server/Nick') should work The conference rooms in my company xmpp server requires Authentication. I > didn't find anything about auth to rooms. > You will need to create a Presence stanza, set the password, and send it separately, something like this should work: p = Presence('room@server/Nick) p.setTag('x', namespace=NS_MUC).setTag('password', pass) cl.send(p) Thanks in advance! > -- > Caio Brentano > > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for > Conference > attendees to learn about information security's most important issues > through > interactions with peers, luminaries and emerging and established companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > Xmpppy-devel mailing list > Xmp...@li... > https://lists.sourceforge.net/lists/listinfo/xmpppy-devel > > -- - Norman Rasmussen - Email: no...@ra... - Home page: http://norman.rasmussen.co.za/ |
From: Caio B. <cai...@gm...> - 2010-01-15 19:18:11
|
Hi all I developed a little client just to send messages. It's ok to send messages directly to users. But I need to send messages to Conferences Room too. Any idea how can I do this? The conference rooms in my company xmpp server requires Authentication. I didn't find anything about auth to rooms. Thanks in advance! -- Caio Brentano |
From: Yann L. <as...@la...> - 2009-12-03 15:03:22
|
Le 03/12/2009 14:11, Frank Laszlo a écrit : > Hello Adrian, > > Thanks for your reply. I followed the documentation and created the code > required to use the "getStatus()" method. However, it seems that it > returns "None" for most people who are online. I guess my goal here is > to find a way to determine if someone is online before actually sending > the message. Here is a sample of the code I created (This was just a > test of the method to make sure I was using it correctly) > > jid = xmpp.protocol.JID('jab...@do...') > cl = xmpp.Client(jid.getDomain(), debug=[]) > con = cl.connect() > auth = cl.auth(jid.getNode(), 'password', resource=jid.getResource()) > cl.sendInitPresence() > roster = cl.getRoster() > jids = roster.getItems() > for i in jids: > print i > print "Ask = %s" % roster.getAsk(i) > print "Name = %s" % roster.getName(i) > print "Group = %s" % roster.getGroups(i) > print "Priority = %s" % roster.getPriority(i) > print "Show = %s" % roster.getShow(i) > print "Status = %s" % roster.getStatus(i) > print "Sub = %s" % roster.getSubscription(i) > print "Resources = %s" % roster.getResources(i) > > Everything appears to be outputting correctly, but the status is almost > always "None" unless someone has specifically set it in their client. > There is no indication that a user is online or offline. > > Thanks in advance! Status is the status *message* a user provided. What you want is getShow(). -- Yann |
From: Frank L. <fr...@fr...> - 2009-12-03 13:11:32
|
Hello Adrian, Thanks for your reply. I followed the documentation and created the code required to use the "getStatus()" method. However, it seems that it returns "None" for most people who are online. I guess my goal here is to find a way to determine if someone is online before actually sending the message. Here is a sample of the code I created (This was just a test of the method to make sure I was using it correctly) jid = xmpp.protocol.JID('jab...@do...') cl = xmpp.Client(jid.getDomain(), debug=[]) con = cl.connect() auth = cl.auth(jid.getNode(), 'password', resource=jid.getResource()) cl.sendInitPresence() roster = cl.getRoster() jids = roster.getItems() for i in jids: print i print "Ask = %s" % roster.getAsk(i) print "Name = %s" % roster.getName(i) print "Group = %s" % roster.getGroups(i) print "Priority = %s" % roster.getPriority(i) print "Show = %s" % roster.getShow(i) print "Status = %s" % roster.getStatus(i) print "Sub = %s" % roster.getSubscription(i) print "Resources = %s" % roster.getResources(i) Everything appears to be outputting correctly, but the status is almost always "None" unless someone has specifically set it in their client. There is no indication that a user is online or offline. Thanks in advance! -Frank hornsby wrote: > hi, > > They are several functions in Class Roster that shoiuld help you do the > trick: > > getRoster(self) and getStatus(self,jid). > > > check the link: > http://xmpppy.sourceforge.net/apidocs/xmpp.roster.Roster-class.html > > > cheers, > adrian > > On Tue, 2009-12-01 at 11:02 -0500, Frank Laszlo wrote: > >> Hello, >> >> I'm currently working on a script for server monitoring, specifically >> the notification module for it. Since we use Jabber in house, I'd like >> to be able to send alerts this way. >> >> Actually sending the alerts was not difficult, however, I cannot find a >> solution to be able to verify that the person its being sent to is >> "Available." Currently, it will send it regardless of their status, but >> if they are offline, they get flooded with messages as soon as they sign >> on. >> >> I've pasted the applicable code below, if anyone could give me some >> guidance I'd greatly appreciate it. As a bit of background, jabber() is >> called with all strings as arguments. >> >> def jabber(name, jabberid, servername, load, eximcount, type): >> jid = xmpp.protocol.JID(config.jabberID) >> cl = xmpp.Client(jid.getDomain(), debug=[]) >> con = cl.connect() >> if not con: >> print "Could not connect to jabber\n" >> auth = cl.auth(jid.getNode(), config.jabberPass, >> resource=jid.getResource()) >> if not auth: >> print "Could not authenticate to jabber\n" >> if type == 'exim': >> msg = "[ALERT]: Too many messages in queue on %s >> - Current count: %s" % (servername, eximcount) >> elif type == 'load': >> msg = "[ALERT]: Processor load high on %s - >> Current load: %s" % (servername, load) >> elif type == 'down': >> msg = "[ALERT]: Server %s is unreachable. - Last >> recorded load: %s" % (servername, load) >> else: >> print "Invalid alert type: '%s'" % (type) >> id = cl.send(xmpp.protocol.Message(jabberid, msg)) >> time.sleep(1) >> print "Jabber alert message sent to %s" % (jabberid) >> >> >> >> -Frank >> >> ------------------------------------------------------------------------------ >> Join us December 9, 2009 for the Red Hat Virtual Experience, >> a free event focused on virtualization and cloud computing. >> Attend in-depth sessions from your desk. Your couch. Anywhere. >> http://p.sf.net/sfu/redhat-sfdev2dev >> _______________________________________________ >> Xmpppy-devel mailing list >> Xmp...@li... >> https://lists.sourceforge.net/lists/listinfo/xmpppy-devel >> > > > ------------------------------------------------------------------------------ > Join us December 9, 2009 for the Red Hat Virtual Experience, > a free event focused on virtualization and cloud computing. > Attend in-depth sessions from your desk. Your couch. Anywhere. > http://p.sf.net/sfu/redhat-sfdev2dev > _______________________________________________ > Xmpppy-devel mailing list > Xmp...@li... > https://lists.sourceforge.net/lists/listinfo/xmpppy-devel > |
From: hornsby <adr...@tu...> - 2009-12-03 09:36:58
|
hi, They are several functions in Class Roster that shoiuld help you do the trick: getRoster(self) and getStatus(self,jid). check the link: http://xmpppy.sourceforge.net/apidocs/xmpp.roster.Roster-class.html cheers, adrian On Tue, 2009-12-01 at 11:02 -0500, Frank Laszlo wrote: > Hello, > > I'm currently working on a script for server monitoring, specifically > the notification module for it. Since we use Jabber in house, I'd like > to be able to send alerts this way. > > Actually sending the alerts was not difficult, however, I cannot find a > solution to be able to verify that the person its being sent to is > "Available." Currently, it will send it regardless of their status, but > if they are offline, they get flooded with messages as soon as they sign > on. > > I've pasted the applicable code below, if anyone could give me some > guidance I'd greatly appreciate it. As a bit of background, jabber() is > called with all strings as arguments. > > def jabber(name, jabberid, servername, load, eximcount, type): > jid = xmpp.protocol.JID(config.jabberID) > cl = xmpp.Client(jid.getDomain(), debug=[]) > con = cl.connect() > if not con: > print "Could not connect to jabber\n" > auth = cl.auth(jid.getNode(), config.jabberPass, > resource=jid.getResource()) > if not auth: > print "Could not authenticate to jabber\n" > if type == 'exim': > msg = "[ALERT]: Too many messages in queue on %s > - Current count: %s" % (servername, eximcount) > elif type == 'load': > msg = "[ALERT]: Processor load high on %s - > Current load: %s" % (servername, load) > elif type == 'down': > msg = "[ALERT]: Server %s is unreachable. - Last > recorded load: %s" % (servername, load) > else: > print "Invalid alert type: '%s'" % (type) > id = cl.send(xmpp.protocol.Message(jabberid, msg)) > time.sleep(1) > print "Jabber alert message sent to %s" % (jabberid) > > > > -Frank > > ------------------------------------------------------------------------------ > Join us December 9, 2009 for the Red Hat Virtual Experience, > a free event focused on virtualization and cloud computing. > Attend in-depth sessions from your desk. Your couch. Anywhere. > http://p.sf.net/sfu/redhat-sfdev2dev > _______________________________________________ > Xmpppy-devel mailing list > Xmp...@li... > https://lists.sourceforge.net/lists/listinfo/xmpppy-devel |
From: Frank L. <fr...@fr...> - 2009-12-01 17:16:18
|
Hello, I'm currently working on a script for server monitoring, specifically the notification module for it. Since we use Jabber in house, I'd like to be able to send alerts this way. Actually sending the alerts was not difficult, however, I cannot find a solution to be able to verify that the person its being sent to is "Available." Currently, it will send it regardless of their status, but if they are offline, they get flooded with messages as soon as they sign on. I've pasted the applicable code below, if anyone could give me some guidance I'd greatly appreciate it. As a bit of background, jabber() is called with all strings as arguments. def jabber(name, jabberid, servername, load, eximcount, type): jid = xmpp.protocol.JID(config.jabberID) cl = xmpp.Client(jid.getDomain(), debug=[]) con = cl.connect() if not con: print "Could not connect to jabber\n" auth = cl.auth(jid.getNode(), config.jabberPass, resource=jid.getResource()) if not auth: print "Could not authenticate to jabber\n" if type == 'exim': msg = "[ALERT]: Too many messages in queue on %s - Current count: %s" % (servername, eximcount) elif type == 'load': msg = "[ALERT]: Processor load high on %s - Current load: %s" % (servername, load) elif type == 'down': msg = "[ALERT]: Server %s is unreachable. - Last recorded load: %s" % (servername, load) else: print "Invalid alert type: '%s'" % (type) id = cl.send(xmpp.protocol.Message(jabberid, msg)) time.sleep(1) print "Jabber alert message sent to %s" % (jabberid) -Frank |
From: Frank L. <fr...@fr...> - 2009-12-01 16:02:00
|
Hello, I'm currently working on a script for server monitoring, specifically the notification module for it. Since we use Jabber in house, I'd like to be able to send alerts this way. Actually sending the alerts was not difficult, however, I cannot find a solution to be able to verify that the person its being sent to is "Available." Currently, it will send it regardless of their status, but if they are offline, they get flooded with messages as soon as they sign on. I've pasted the applicable code below, if anyone could give me some guidance I'd greatly appreciate it. As a bit of background, jabber() is called with all strings as arguments. def jabber(name, jabberid, servername, load, eximcount, type): jid = xmpp.protocol.JID(config.jabberID) cl = xmpp.Client(jid.getDomain(), debug=[]) con = cl.connect() if not con: print "Could not connect to jabber\n" auth = cl.auth(jid.getNode(), config.jabberPass, resource=jid.getResource()) if not auth: print "Could not authenticate to jabber\n" if type == 'exim': msg = "[ALERT]: Too many messages in queue on %s - Current count: %s" % (servername, eximcount) elif type == 'load': msg = "[ALERT]: Processor load high on %s - Current load: %s" % (servername, load) elif type == 'down': msg = "[ALERT]: Server %s is unreachable. - Last recorded load: %s" % (servername, load) else: print "Invalid alert type: '%s'" % (type) id = cl.send(xmpp.protocol.Message(jabberid, msg)) time.sleep(1) print "Jabber alert message sent to %s" % (jabberid) -Frank |
From: Norman R. <no...@ra...> - 2009-10-28 01:58:43
|
off the top of my head, once you've connected your client you can access it's roster. Each roster item should have a way to get it's current presences. Note: if you've just connected and sentInitialPresence, then you may want to wait a short while for the server to connect to your contact's servers to check their presences. On Tue, Oct 27, 2009 at 5:39 PM, Martin Ostrovsky < mar...@gm...> wrote: > Hello, > > I'm trying to check the presence of a particular JID. I've seen the > xmpp.protocol.Presence class in the documentation, but I'm not sure > what to do with it. > > Any pointers? > > Thanks, > Martin > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Xmpppy-devel mailing list > Xmp...@li... > https://lists.sourceforge.net/lists/listinfo/xmpppy-devel > -- - Norman Rasmussen - Email: no...@ra... - Home page: http://norman.rasmussen.co.za/ |
From: Martin O. <mar...@gm...> - 2009-10-28 00:39:25
|
Hello, I'm trying to check the presence of a particular JID. I've seen the xmpp.protocol.Presence class in the documentation, but I'm not sure what to do with it. Any pointers? Thanks, Martin |
From: Norman R. <no...@ra...> - 2009-08-22 11:46:14
|
Try: html = Node('html') html.setNamespace('http://jabber.org/protocol/xhtml-im') xhtml = html.addChild('body',namespace='http://www.w3.org/1999/xhtml') xhtml.addData('Hello ') xhtml.addChild('strong', payload='strong') xhtml.addData(' World!') client.send(xmpp.protocol.Message(to, msg, payload=[xhtml])) You can also use XML2Node to convert an xml string into a Node that you can pass as payload to Message or add as a child to the html element. Cheers Norman On Fri, Aug 21, 2009 at 7:06 AM, Charles McLaughlin <mcl...@gm...>wrote: > Hi, > > First of all, thanks for the great work. I'd like to know how to do > minor formatting. I tried html tags such as <a> and <strong> but > they're not rendered in Pidgin. I suspect the python xmpp module is > escaping the tags? Is there a way to work around this? > > This is how I'm sending the messages: > > client.send(xmpp.protocol.Message(to, msg)) > > Thanks, > Charles > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Xmpppy-devel mailing list > Xmp...@li... > https://lists.sourceforge.net/lists/listinfo/xmpppy-devel > -- - Norman Rasmussen - Email: no...@ra... - Home page: http://norman.rasmussen.co.za/ |
From: Charles M. <mcl...@gm...> - 2009-08-21 06:07:08
|
Hi, First of all, thanks for the great work. I'd like to know how to do minor formatting. I tried html tags such as <a> and <strong> but they're not rendered in Pidgin. I suspect the python xmpp module is escaping the tags? Is there a way to work around this? This is how I'm sending the messages: client.send(xmpp.protocol.Message(to, msg)) Thanks, Charles |
From: Suyash G. <gog...@gm...> - 2009-07-13 03:40:32
|
thanks norman... I will try threading option On Sun, Jul 12, 2009 at 7:58 PM, Norman Rasmussen <no...@ra...>wrote: > On Sun, Jul 12, 2009 at 3:15 PM, Suyash Gogte <gog...@gm...>wrote: > >> I am trying to run script xtalk.py on windows, it runs well on linux but >> on windows it gives following error >> Error (10038, 'An operation was attempted on something that is not a >> socket') >> can anyone help me thanks >> > > xtalk is trying to select the network socket and > stdin, unfortunately windows doesn't support select on a non-socket so it > will fail. (this is a limitation of select on windows) > > If you really need the xtalk script to work on windows then you could > probably re-write it to make it multi threaded (one thread reading from > stdin, the other from the network), or alternativaly use WSAEventSelect and > WaitForMultipleObjects. > > -- > - Norman Rasmussen > - Email: no...@ra... > - Home page: http://norman.rasmussen.co.za/ > > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Xmpppy-devel mailing list > Xmp...@li... > https://lists.sourceforge.net/lists/listinfo/xmpppy-devel > > |
From: Norman R. <no...@ra...> - 2009-07-12 14:29:00
|
On Sun, Jul 12, 2009 at 3:15 PM, Suyash Gogte <gog...@gm...> wrote: > I am trying to run script xtalk.py on windows, it runs well on linux but on > windows it gives following error > Error (10038, 'An operation was attempted on something that is not a > socket') > can anyone help me thanks > xtalk is trying to select the network socket and stdin, unfortunately windows doesn't support select on a non-socket so it will fail. (this is a limitation of select on windows) If you really need the xtalk script to work on windows then you could probably re-write it to make it multi threaded (one thread reading from stdin, the other from the network), or alternativaly use WSAEventSelect and WaitForMultipleObjects. -- - Norman Rasmussen - Email: no...@ra... - Home page: http://norman.rasmussen.co.za/ |
From: Suyash G. <gog...@gm...> - 2009-07-12 13:16:04
|
hi all, I am trying to run script xtalk.py on wnidows ,it runs well on linux but on windows it gives following error Error (10038, 'An operation was attempted on something that is not a socket') (i , o, e) = select.select(socketlist.keys(),[],[],1) this line is giving error !! can anyone help me thanks |
From: sanket a. <snk...@gm...> - 2009-06-25 15:10:02
|
This is another simple query, I wish to send a invisible presence notification, what parameters do I need to pass to, sendPresence(jid='my...@my...',typ='?') I am not able to set the typ parameter! If it helps I am currently working with the google servers! On Sat, Jun 20, 2009 at 4:40 PM, Norman Rasmussen<no...@ra...> wrote: > On Sat, Jun 20, 2009 at 5:47 AM, sanket agarwal <snk...@gm...> > wrote: >> >> I have been using xmpppy off late, and was stuck up at a point with >> the RegisterHandler semantics! >> I used the following send command to request for a roster, > > If you're specifically looking for roster information then look at this > example: http://lucumr.pocoo.org/2006/10/22/transfering-jabber-rosters > -- > - Norman Rasmussen > - Email: no...@ra... > - Home page: http://norman.rasmussen.co.za/ > > ------------------------------------------------------------------------------ > Are you an open source citizen? Join us for the Open Source Bridge > conference! > Portland, OR, June 17-19. Two days of sessions, one day of unconference: > $250. > Need another reason to go? 24-hour hacker lounge. Register today! > http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org > _______________________________________________ > Xmpppy-devel mailing list > Xmp...@li... > https://lists.sourceforge.net/lists/listinfo/xmpppy-devel > > |
From: ErikZ <eri...@gm...> - 2009-06-22 14:21:23
|
Interesting. Actually, my script is doing exactly what I need at this point, but I was wondering how difficult it would be to send commands back over chat to the server. I'll have to check this out in the future. On Sun, Jun 21, 2009 at 8:21 PM, Cleber Santos<cle...@gm...> wrote: > I created a project called myservertalks do what you need. > Not tested in python 2.6, works fine in python 2.5. > Run in linux, windows and bsd > > www.myservertalks.com > code.google.com/p/myservertalks > > > > On Fri, May 15, 2009 at 8:06 AM, ErikZ <eri...@gm...> wrote: >> >> There we go. I went into both accounts and used the "Add contact". >> Once I was able to send and receive messages from the gmail screen, >> the fuction worked. >> >> I now have a script that will alert me when my server has an issue. >> Thanks! >> >> On Fri, May 15, 2009 at 12:45 AM, Norman Rasmussen >> <no...@ra...> wrote: >> > On Thu, May 14, 2009 at 11:12 PM, ErikZ <eri...@gm...> wrote: >> >> So, now it's working. Kind of. There's no errors, and just a few >> >> warnings. But my IM client (pidgin) isn't getting any messsges. And my >> >> Google phone didn't get it either. I'm seeing some warnings, but >> >> nothing that would stop the message from going out? >> > >> > Do XXXX and YYYY have subscriptions between their accounts? If they're >> > not on each other's roster and auth'ed, then Google typically blocks >> > messages. >> > >> > -- >> > - Norman Rasmussen >> > - Email: no...@ra... >> > - Home page: http://norman.rasmussen.co.za/ >> > >> > >> > ------------------------------------------------------------------------------ >> > Crystal Reports - New Free Runtime and 30 Day Trial >> > Check out the new simplified licensing option that enables >> > unlimited royalty-free distribution of the report engine >> > for externally facing server and web deployment. >> > http://p.sf.net/sfu/businessobjects >> > _______________________________________________ >> > Xmpppy-devel mailing list >> > Xmp...@li... >> > https://lists.sourceforge.net/lists/listinfo/xmpppy-devel >> > >> >> >> ------------------------------------------------------------------------------ >> Crystal Reports - New Free Runtime and 30 Day Trial >> Check out the new simplified licensing option that enables >> unlimited royalty-free distribution of the report engine >> for externally facing server and web deployment. >> http://p.sf.net/sfu/businessobjects >> _______________________________________________ >> Xmpppy-devel mailing list >> Xmp...@li... >> https://lists.sourceforge.net/lists/listinfo/xmpppy-devel > > > > -- > Cleber Santos > website: binho.net > skype: binhoweb > msn: ms...@bi... > > > ------------------------------------------------------------------------------ > Are you an open source citizen? Join us for the Open Source Bridge > conference! > Portland, OR, June 17-19. Two days of sessions, one day of unconference: > $250. > Need another reason to go? 24-hour hacker lounge. Register today! > http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org > _______________________________________________ > Xmpppy-devel mailing list > Xmp...@li... > https://lists.sourceforge.net/lists/listinfo/xmpppy-devel > > |
From: Cleber S. <cle...@gm...> - 2009-06-22 02:22:21
|
I created a project called myservertalks do what you need. Not tested in python 2.6, works fine in python 2.5. Run in linux, windows and bsd www.myservertalks.com code.google.com/p/myservertalks On Fri, May 15, 2009 at 8:06 AM, ErikZ <eri...@gm...> wrote: > There we go. I went into both accounts and used the "Add contact". > Once I was able to send and receive messages from the gmail screen, > the fuction worked. > > I now have a script that will alert me when my server has an issue. Thanks! > > On Fri, May 15, 2009 at 12:45 AM, Norman Rasmussen > <no...@ra...> wrote: > > On Thu, May 14, 2009 at 11:12 PM, ErikZ <eri...@gm...> wrote: > >> So, now it's working. Kind of. There's no errors, and just a few > >> warnings. But my IM client (pidgin) isn't getting any messsges. And my > >> Google phone didn't get it either. I'm seeing some warnings, but > >> nothing that would stop the message from going out? > > > > Do XXXX and YYYY have subscriptions between their accounts? If they're > > not on each other's roster and auth'ed, then Google typically blocks > > messages. > > > > -- > > - Norman Rasmussen > > - Email: no...@ra... > > - Home page: http://norman.rasmussen.co.za/ > > > > > ------------------------------------------------------------------------------ > > Crystal Reports - New Free Runtime and 30 Day Trial > > Check out the new simplified licensing option that enables > > unlimited royalty-free distribution of the report engine > > for externally facing server and web deployment. > > http://p.sf.net/sfu/businessobjects > > _______________________________________________ > > Xmpppy-devel mailing list > > Xmp...@li... > > https://lists.sourceforge.net/lists/listinfo/xmpppy-devel > > > > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables > unlimited royalty-free distribution of the report engine > for externally facing server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Xmpppy-devel mailing list > Xmp...@li... > https://lists.sourceforge.net/lists/listinfo/xmpppy-devel > -- Cleber Santos website: binho.net skype: binhoweb msn: ms...@bi... |
From: Norman R. <no...@ra...> - 2009-06-20 11:10:26
|
On Sat, Jun 20, 2009 at 5:47 AM, sanket agarwal <snk...@gm...>wrote: > I have been using xmpppy off late, and was stuck up at a point with > the RegisterHandler semantics! > I used the following send command to request for a roster, > If you're specifically looking for roster information then look at this example: http://lucumr.pocoo.org/2006/10/22/transfering-jabber-rosters -- - Norman Rasmussen - Email: no...@ra... - Home page: http://norman.rasmussen.co.za/ |
From: sanket a. <snk...@gm...> - 2009-06-20 03:47:39
|
Hi guys, I have been using xmpppy off late, and was stuck up at a point with the RegisterHandler semantics! I used the following send command to request for a roster, self._client.send('<iq type="get"><query xmlns="jabber:iq:roster"/></iq>') In the debug mode I can see the reply from the server which includes all the people in my list! Then I tried to add a handler to do some specific tasks: self._client.RegisterHandler('iq', self._iq) Where the definition of _iq is: def _iq(self, conn, node): #do some stuff! What I am not able to perceive is to use this callback, how can one decide what parameters to use in the callback, and what those parameters actually mean ? Like in the above case, suppose I want to have all the names in my buddy list printed out to console, how should I modify the callback ? Regards -Sanket |
From: Norman R. <no...@ra...> - 2009-06-19 21:14:50
|
On Fri, Jun 19, 2009 at 9:39 PM, Will Siddall <wil...@gm...>wrote: > I'm getting a lot of deprecation warning with the library. > It is now asking to import the ssl library and use the > ssl.wrap_socket() class instead of socket.ssl() > > If you need someone to test this or to help with development, I'd be > willing to take a look. > I know xmppony [1] (based on xmpppy) is python 2.6 compat, but if you wish to send patches to make xmpppy compat with 2.6 too, then I'll happily review and apply them. (please send in unified diff format) [1] http://xmppony.last-exile.org/ -- - Norman Rasmussen - Email: no...@ra... - Home page: http://norman.rasmussen.co.za/ |
From: Will S. <wil...@gm...> - 2009-06-19 19:40:00
|
Hey guys, I'm getting a lot of deprecation warning with the library. Here's what I've found so far: xmpp/auth.py: -import sha,base64,random,dispatcher,re -import md5 +try: + import base64,random,dispatcher,re + from hashlib import sha, md5 +except ImportError: + import sha,base64,random,dispatcher,re + import md5 xmpp/transport.py: The line's that getting the deprecation warning: 307:tcpsock._sslObj = socket.ssl(tcpsock._sock, None, None) It is now asking to import the ssl library and use the ssl.wrap_socket() class instead of socket.ssl() If you need someone to test this or to help with development, I'd be willing to take a look. Thanks, Will |
From: Will S. <wil...@gm...> - 2009-06-19 15:50:28
|
Hey Norman, Thanks for the tip, but I did manage to work, albeit not as elegantly as what Collin did. So, I gave it a try and actually found that it doesn't work for me. The SendAndCallForResponse function doesn't wait long enough. Instead, I took his idea and changed to only return the Given name of the user and produced the following: import sys,xmpp def request_vcard(client, JID): d=cl.Dispatcher n = xmpp.Node('vCard', attrs={'xmlns': xmpp.NS_VCARD}) iq = xmpp.Protocol('iq', JID, 'get', payload=[n]) return proc_vcard(d.WaitForResponse(d.send(iq))) def proc_vcard(stanza): return stanza.getTag('vCard').getTag('FN').getData() if len(sys.argv) < 2: print "Syntax: %s JID"%sys.argv[0] sys.exit(0) tojid=sys.argv[1] server=<servername> port=5222 jidparams={'jid':<username>,'password':<password>} jid=xmpp.protocol.JID(jidparams['jid']) cl=xmpp.Client(jid.getDomain(), debug=[]) con=cl.connect() if not con: print 'could not connect!' sys.exit() auth=cl.auth(jid.getNode(),jidparams['password'],resource=jid.getResource()) if not auth: print 'could not authenticate!' sys.exit() print request_vcard(cl, tojid) just calling `vcard.py us...@ja...` will return the user's full name. Thanks for the help! Will On Fri, Jun 19, 2009 at 12:03 PM, Norman Rasmussen<no...@ra...> wrote: > On Fri, Jun 19, 2009 at 4:24 PM, Will Siddall <wil...@gm...> > wrote: >> >> That's what I've been looking for... now the next question is how do I >> do a search for a vcard for a jid that's not in my roster? > > I was going to write a long example here, but then found a pre-made > one: http://collincode.wordpress.com/2009/01/31/xmpp-jabber-photo-module-2/ > -- > - Norman Rasmussen > - Email: no...@ra... > - Home page: http://norman.rasmussen.co.za/ > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Xmpppy-devel mailing list > Xmp...@li... > https://lists.sourceforge.net/lists/listinfo/xmpppy-devel > > |
From: Norman R. <no...@ra...> - 2009-06-19 15:03:56
|
On Fri, Jun 19, 2009 at 4:24 PM, Will Siddall <wil...@gm...>wrote: > That's what I've been looking for... now the next question is how do I > do a search for a vcard for a jid that's not in my roster? > I was going to write a long example here, but then found a pre-made one: http://collincode.wordpress.com/2009/01/31/xmpp-jabber-photo-module-2/ -- - Norman Rasmussen - Email: no...@ra... - Home page: http://norman.rasmussen.co.za/ |
From: Will S. <wil...@gm...> - 2009-06-19 14:24:38
|
That's what I've been looking for... now the next question is how do I do a search for a vcard for a jid that's not in my roster? Will On Fri, Jun 19, 2009 at 10:20 AM, Norman Rasmussen<no...@ra...> wrote: > On Fri, Jun 19, 2009 at 2:43 PM, Will Siddall <wil...@gm...> > wrote: >> >> I pretty much took the xsend example and re-purposed it... but instead >> of sending presence info or sending a message, I want to look for a >> vcard but everytime it gets to the 'disp.plugin(cl)' line, it faults >> with: > > ahh, > connect will create a dispatcher and plug it in for you, so you don't need to do that yourself. You can get the current instance like this: > disp = cl.Dispatcher > > -- > - Norman Rasmussen > - Email: no...@ra... > - Home page: http://norman.rasmussen.co.za/ > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Xmpppy-devel mailing list > Xmp...@li... > https://lists.sourceforge.net/lists/listinfo/xmpppy-devel > > |