view example/persona.py @ 23:21124b238feb

stub persona/browserid example
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 26 Dec 2013 20:04:08 -0800
parents
children bdb005ae848b
line wrap: on
line source

#!/usr/bin/env python

import optparse
import os
import sys

"""
test Mozilla persona auth

https://login.persona.org/about
"""

here = os.path.dirname(os.path.realpath(__file__))
page = os.path.join(here, 'persona.html')

def main(args=sys.argv[1:]):

    usage = '%prog [options]'
    parser = optparse.OptionParser(usage=usage, description=__doc__)
    parser
    options, args = parser.parse_args(args)

if __name__ == '__main__':
    main()