Mercurial > hg > bitsyauth
diff 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 diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/example/persona.py Thu Dec 26 20:04:08 2013 -0800 @@ -0,0 +1,24 @@ +#!/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()