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

All Samples(42)  |  Call(42)  |  Derive(0)  |  Import(0)
The meat of the whole Lamson operation, this method takes all the
arguments given, and then goes through the routing listing to figure out
which state handlers should get the gear.  The routing operates on a
simple set of rules:

    1) Match on all functions that match the given To in their
    registered format pattern.
    2) Call all @stateless state handlers functions.
    3) Call the first method that's in the right state for the From/To.
(more...)

src/l/a/lamson-1.3.4/examples/osb/tests/handlers/comments_tests.py   lamson(Download)
def test_spam_sent_by_unconfirmed_user():
    setup()
 
    client.begin()
    Router.deliver(make_spam())
def test_spam_sent_by_confirmed_user():
    test_confirmed_user_comments()
    clear_queue("run/posts")
 
    Router.deliver(make_spam())

src/l/a/lamson-HEAD/examples/osb/tests/handlers/comments_tests.py   lamson(Download)
def test_spam_sent_by_unconfirmed_user():
    setup()
 
    client.begin()
    Router.deliver(make_spam())
def test_spam_sent_by_confirmed_user():
    test_confirmed_user_comments()
    clear_queue("run/posts")
 
    Router.deliver(make_spam())

src/l/a/lamson-1.3.4/examples/librelist/tests/handlers/bounce_tests.py   lamson(Download)
    msg = create_bounce(list_addr, sender)
 
    Router.deliver(msg)
    assert_in_state('app.handlers.admin', list_addr, sender, 'BOUNCING')
    assert_in_state('app.handlers.bounce', list_addr, sender, 'BOUNCING')
    assert msg.bounce.is_soft()
 
    Router.deliver(msg)
    assert_in_state('app.handlers.admin', list_addr, sender, 'BOUNCING')
    assert_in_state('app.handlers.bounce', list_addr, sender, 'BOUNCING')

src/l/a/lamson-HEAD/examples/librelist/tests/handlers/bounce_tests.py   lamson(Download)
    msg = create_bounce(list_addr, sender)
 
    Router.deliver(msg)
    assert_in_state('app.handlers.admin', list_addr, sender, 'BOUNCING')
    assert_in_state('app.handlers.bounce', list_addr, sender, 'BOUNCING')
    assert msg.bounce.is_soft()
 
    Router.deliver(msg)
    assert_in_state('app.handlers.admin', list_addr, sender, 'BOUNCING')
    assert_in_state('app.handlers.bounce', list_addr, sender, 'BOUNCING')

src/s/a/salmon-mail-1/examples/osb/tests/handlers/comments_tests.py   salmon-mail(Download)
def test_spam_sent_by_unconfirmed_user():
    setup()
 
    client.begin()
    Router.deliver(make_spam())
def test_spam_sent_by_confirmed_user():
    test_confirmed_user_comments()
    clear_queue("run/posts")
 
    Router.deliver(make_spam())

src/s/a/salmon-mail-1/examples/librelist/tests/handlers/bounce_tests.py   salmon-mail(Download)
    msg = create_bounce(list_addr, sender)
 
    Router.deliver(msg)
    assert_in_state('app.handlers.admin', list_addr, sender, 'BOUNCING')
    assert_in_state('app.handlers.bounce', list_addr, sender, 'BOUNCING')
    assert msg.bounce.is_soft()
 
    Router.deliver(msg)
    assert_in_state('app.handlers.admin', list_addr, sender, 'BOUNCING')
    assert_in_state('app.handlers.bounce', list_addr, sender, 'BOUNCING')

src/l/a/lamson-1.3.4/lamson/server.py   lamson(Download)
        try:
            logging.debug("Message received from Peer: %r, From: %r, to To %r." % (Peer, From, To))
            routing.Router.deliver(mail.MailRequest(Peer, From, To, Data))
        except SMTPError, err:
            # looks like they want to return an error, so send it out
 
            logging.debug("Message received from Peer: %r, From: %r, to To %r." % (Peer, From, To))
            routing.Router.deliver(msg)
        except SMTPError, err:
            # looks like they want to return an error, so send it out

src/l/a/lamson-HEAD/lamson/server.py   lamson(Download)
        try:
            logging.debug("Message received from Peer: %r, From: %r, to To %r." % (Peer, From, To))
            routing.Router.deliver(mail.MailRequest(Peer, From, To, Data))
        except SMTPError, err:
            # looks like they want to return an error, so send it out
 
            logging.debug("Message received from Peer: %r, From: %r, to To %r." % (Peer, From, To))
            routing.Router.deliver(msg)
        except SMTPError, err:
            # looks like they want to return an error, so send it out

src/s/h/shiva-HEAD/receiver/core/server.py   shiva(Download)
        try:
            logging.debug("Message received from Peer: %r, From: %r, to To %r." % (Peer, From, To))
            routing.Router.deliver(mail.MailRequest(Peer, From, To, Data))
        except SMTPError, err:
            # looks like they want to return an error, so send it out
 
            logging.debug("Message received from Peer: %r, From: %r, to To %r." % (Peer, From, To))
            routing.Router.deliver(msg)
        except SMTPError, err:
            # looks like they want to return an error, so send it out

src/l/a/lamson-1.3.4/tests/lamson_tests/bounce_tests.py   lamson(Download)
def test_bounce_to_decorator():
    import bounce_filtered_mod
    msg = mail.MailRequest(None,None,None, open("tests/bounce.msg").read())
 
    Router.deliver(msg)
    msg.bounce.primary_status = (4, u'Persistent Transient Failure')
    Router.clear_states()
    Router.deliver(msg)
    assert Router.in_state(bounce_filtered_mod.START, msg)
    assert bounce_filtered_mod.SOFT_RAN, "Soft bounce didn't actually run."
 
    msg = mail.MailRequest(None, None, None, open("tests/signed.msg").read())
    Router.clear_states()
    Router.deliver(msg)

  1 | 2  Next