sim0nx/voteX — pull request #4 by willwo13 (2012-09-30 10:38:19+00:00)
Title: Mau

refactoring code in pull.py

* Exception are handled in one place -> BaseController
+ error catching doesn't clutter the controller code
+ error handling is done in a unifrom way
+ guaranteed to catch every error
+ easy customization of error reporting behavior for dev/prod environment
* cleanup redudant params checks
+ some checks were done 2-3 time
+ some checks were done to catch exception, easier to let them through so errors when they occured aren't masked.
* controller raises exception on anormal state

added lib/authentication.py

* main class which handles authentication
* modules are duck classes which overrides __call__, so every class could be a authetnication module