
def validateTitle(title):
    """A title must be supplied for Works."""
    
    if not(title) or not(title.strip()):
        return "You must supply a title."
    else:
        return None
    
def validateDescription(description):
    """The Internet Archive requires that a description of 5 words is
    provided; we just split on whitespace to determine words."""
    
    if not(description) or len(description.split()) < 5:
        return "You must supply a description of at least 5 words."


def validateWorkFormat(format):
    """A work format must be selected."""

    if not(format):
        return "You must select a work format."

def validateUsername(username):
    """A username must be specified."""

    if not(username):
        return "You must specify your archive.org username."

def validatePassword(password):
    """A password must be specified."""

    if not(password):
        return "You must specify your archive.org password."


011c062a34fe4b092d16d7ef4cc6586cbabe68f3
def validateTitle(title):
    """A title must be supplied for Works."""
    if not title or not title.strip():
        return 'You must supply a title.'
    else:
        return None


def validateDescription(description):
    """The Internet Archive requires that a description of 5 words is
    provided; we just split on whitespace to determine words."""
    if not description or len(description.split()) < 5:
        return 'You must supply a description of at least 5 words.'


<mask token>

def validateTitle(title):
    """A title must be supplied for Works."""
    if not title or not title.strip():
        return 'You must supply a title.'
    else:
        return None


def validateDescription(description):
    """The Internet Archive requires that a description of 5 words is
    provided; we just split on whitespace to determine words."""
    if not description or len(description.split()) < 5:
        return 'You must supply a description of at least 5 words.'


<mask token>


def validatePassword(password):
    """A password must be specified."""
    if not password:
        return 'You must specify your archive.org password.'

def validateTitle(title):
    """A title must be supplied for Works."""
    if not title or not title.strip():
        return 'You must supply a title.'
    else:
        return None


def validateDescription(description):
    """The Internet Archive requires that a description of 5 words is
    provided; we just split on whitespace to determine words."""
    if not description or len(description.split()) < 5:
        return 'You must supply a description of at least 5 words.'


def validateWorkFormat(format):
    """A work format must be selected."""
    if not format:
        return 'You must select a work format.'


<mask token>


def validatePassword(password):
    """A password must be specified."""
    if not password:
        return 'You must specify your archive.org password.'

def validateTitle(title):
    """A title must be supplied for Works."""
    if not title or not title.strip():
        return 'You must supply a title.'
    else:
        return None


def validateDescription(description):
    """The Internet Archive requires that a description of 5 words is
    provided; we just split on whitespace to determine words."""
    if not description or len(description.split()) < 5:
        return 'You must supply a description of at least 5 words.'


def validateWorkFormat(format):
    """A work format must be selected."""
    if not format:
        return 'You must select a work format.'


def validateUsername(username):
    """A username must be specified."""
    if not username:
        return 'You must specify your archive.org username.'


def validatePassword(password):
    """A password must be specified."""
    if not password:
        return 'You must specify your archive.org password.'


def validateTitle(title):
    """A title must be supplied for Works."""
    
    if not(title) or not(title.strip()):
        return "You must supply a title."
    else:
        return None
    
def validateDescription(description):
    """The Internet Archive requires that a description of 5 words is
    provided; we just split on whitespace to determine words."""
    
    if not(description) or len(description.split()) < 5:
        return "You must supply a description of at least 5 words."


def validateWorkFormat(format):
    """A work format must be selected."""

    if not(format):
        return "You must select a work format."

def validateUsername(username):
    """A username must be specified."""

    if not(username):
        return "You must specify your archive.org username."

def validatePassword(password):
    """A password must be specified."""

    if not(password):
        return "You must specify your archive.org password."

