Skip to content

Instantly share code, notes, and snippets.

@reorx
Created October 10, 2011 08:23
Show Gist options
  • Select an option

  • Save reorx/1274856 to your computer and use it in GitHub Desktop.

Select an option

Save reorx/1274856 to your computer and use it in GitHub Desktop.
prepare demo
def prepare(self):
"""
watch out _prepare* functions' sequence
NOTE: WITHOUT JUDGING self._finished THERE WILL BE BIG PROBLEMS
"""
self._prepare_debug()
if self._finished: return
self._prepare_mobile()
if self._finished: return
self._prepare_auth()
if self._finished: return
self._prepare_params()
if self._finished: return
self._prepare_web()
if self._finished: return
self._prepare_others()
if self._finished: return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment