mrjoes/flask-babelex — pull request #1 by jace (2013-06-24 17:16:35+00:00)
Title: Allow init_app to be called after package load.

`self.locale_selector_func` and `timezone_selector_func` are set to `None` in `init_app()`. This breaks the following code structure:

```python
app = Flask(instance)
babel = Babel()

@babel.timezoneselector
def get_timezone():
pass

def init():
app.config.from_pyfile('settings.py')
babel.init_app(app)

if __name__ == '__main__':
init()
app.run(debug=True)
```

This patch moves the two values to `Babel.__init__()`.