Log In
New Account
  
Home My Page Project Cloud Code Snippets Project Openings Hermes
Summary Lists News SCM
1 class ConsoleUICallback:
2     """Meets the fb2contacts' authentication callback contract using
3        the console.
4     
5        Copyright (c) Andrew Flegg <andrew@bleb.org> 2009.
6        Released under the Artistic Licence."""
8     # -----------------------------------------------------------------------
9     def need_auth(self):
10         print 'Need authentication...'
12     # -----------------------------------------------------------------------
13     def block_for_auth(self):
14         print 'Press enter when logged in...'
15         raw_input()
16     
17     # -----------------------------------------------------------------------
18     def progress(self, current, maximum):
19         print current, maximum

Terms of Use    Privacy Policy    Contribution Guidelines    Feedback

Powered By GForge Collaborative Development Environment