Example #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)
Example #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)
Example #3
0
def tweet(message, silent=False):
    """Sends a update to Twitter."""
    post_tweet(message)

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

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