Esempio n. 1
0
def notice(message=None, email=False, tweet=False):
    """Sets or remove a site-wide notice."""
    if email:
        print("Sending mail...")
        email_subscribers("Status update", message)

    if tweet:
        post_tweet(message)

    set_notice(message)
Esempio n. 2
0
def notice(message=None, email=False, tweet=False):
    """Sets or remove a site-wide notice."""
    if email:
        print("Sending mail...")
        email_subscribers("Status update", message)

    if tweet:
        post_tweet(message)

    set_notice(message)
Esempio n. 3
0
def tweet(message, silent=False):
    """Sends a update to Twitter."""
    post_tweet(message)

    if silent is not True:
        print("Update posted.")
Esempio n. 4
0
def tweet(message, silent=False):
    """Sends a update to Twitter."""
    post_tweet(message)

    if silent is not True:
        print("Update posted.")