Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(33)  |  Call(33)  |  Derive(0)  |  Import(0)

src/c/o/CollabQ-HEAD/common/sms.py   CollabQ(Download)
 
    try:
      api.actor_add_contact(sender_ref, sender_ref.nick, clean_nick)
      self.send_message((sender,),
                        "%s followed %s" % (sender_ref.display_nick(), nick))

src/j/a/JaikuEngine-HEAD/common/sms.py   JaikuEngine(Download)
 
    try:
      api.actor_add_contact(sender_ref, sender_ref.nick, clean_nick)
      self.send_message((sender,),
                        "%s followed %s" % (sender_ref.display_nick(), nick))

src/j/a/jaikuenginepatch-HEAD/common/sms.py   jaikuenginepatch(Download)
 
    try:
      api.actor_add_contact(sender_ref, sender_ref.nick, clean_nick)
      self.send_message((sender,),
                        "%s followed %s" % (sender_ref.display_nick(), nick))

src/c/o/CollabQ-HEAD/common/im.py   CollabQ(Download)
 
    try:
      api.actor_add_contact(jid_ref, jid_ref.nick, nick)
      self.send_message((from_jid,),
                        "%s followed %s" % (jid_ref.nick, nick))

src/j/a/jaikuenginepatch-HEAD/common/im.py   jaikuenginepatch(Download)
 
    try:
      api.actor_add_contact(jid_ref, jid_ref.nick, nick)
      self.send_message((from_jid,),
                        "%s followed %s" % (jid_ref.nick, nick))

src/j/a/JaikuEngine-HEAD/common/im.py   JaikuEngine(Download)
 
    try:
      api.actor_add_contact(jid_ref, jid_ref.nick, nick)
      self.send_message((from_jid,),
                        "%s followed %s" % (jid_ref.nick, nick))

src/j/a/JaikuEngine-HEAD/common/test/api.py   JaikuEngine(Download)
    self.assert_(not is_contact_before)
 
    api.actor_add_contact(api.ROOT, self.popular_nick, self.unpopular_nick)
 
    actor_after = api.actor_get(api.ROOT, self.popular_nick)
    self.assert_(is_contact_before)
 
    api.actor_add_contact(api.ROOT, self.popular_nick, self.unpopular_nick)
 
    actor_after = api.actor_get(api.ROOT, self.popular_nick)
    def _modify_other():
      api.actor_add_contact(self.hermit, self.popular_nick,
                            self.unpopular_nick)
    self.assertRaises(exception.ApiException, _modify_other)
 
    self.assert_(len(public_streams))
 
    api.actor_add_contact(api.ROOT, subscriber.nick, public_target.nick)
 
    for stream in public_streams:
    self.assert_(len(private_streams))
 
    api.actor_add_contact(api.ROOT, subscriber.nick, private_target.nick)
 
    for stream in private_streams:

src/c/o/CollabQ-HEAD/common/test/api.py   CollabQ(Download)
    self.assert_(not is_contact_before)
 
    api.actor_add_contact(api.ROOT, self.popular_nick, self.unpopular_nick)
 
    actor_after = api.actor_get(api.ROOT, self.popular_nick)
    self.assert_(is_contact_before)
 
    api.actor_add_contact(api.ROOT, self.popular_nick, self.unpopular_nick)
 
    actor_after = api.actor_get(api.ROOT, self.popular_nick)
    def _modify_other():
      api.actor_add_contact(self.hermit, self.popular_nick,
                            self.unpopular_nick)
    self.assertRaises(exception.ApiException, _modify_other)
 
    self.assert_(len(public_streams))
 
    api.actor_add_contact(api.ROOT, subscriber.nick, public_target.nick)
 
    for stream in public_streams:
    self.assert_(len(private_streams))
 
    api.actor_add_contact(api.ROOT, subscriber.nick, private_target.nick)
 
    for stream in private_streams:

src/j/a/jaikuenginepatch-HEAD/common/test/api.py   jaikuenginepatch(Download)
    self.assert_(not is_contact_before)
 
    api.actor_add_contact(api.ROOT, self.popular_nick, self.unpopular_nick)
 
    actor_after = api.actor_get(api.ROOT, self.popular_nick)
    self.assert_(is_contact_before)
 
    api.actor_add_contact(api.ROOT, self.popular_nick, self.unpopular_nick)
 
    actor_after = api.actor_get(api.ROOT, self.popular_nick)
    def _modify_other():
      api.actor_add_contact(self.hermit, self.popular_nick,
                            self.unpopular_nick)
    self.assertRaises(exception.ApiException, _modify_other)
 
    self.assert_(len(public_streams))
 
    api.actor_add_contact(api.ROOT, subscriber.nick, public_target.nick)
 
    for stream in public_streams:
    self.assert_(len(private_streams))
 
    api.actor_add_contact(api.ROOT, subscriber.nick, private_target.nick)
 
    for stream in private_streams: