Added ModelFactory. This replaces the 'models' dict in the tweepy.models module.
authorJoshua <jroesslein@gmail.com>
Mon, 4 Jan 2010 03:42:03 +0000 (21:42 -0600)
committerJoshua <jroesslein@gmail.com>
Mon, 4 Jan 2010 03:46:34 +0000 (21:46 -0600)
commitb58ea115882f08b74a7ab0066618593c9c7ee6e8
tree8a7c97f35987e7210f6a827b43d165b813171b45
parente626b7e5d7e54c4fb666ddf464c6aef11b30b98a
Added ModelFactory. This replaces the 'models' dict in the tweepy.models module.

This will allow for more flexible plug 'n play for developers that need
to extend Tweepy's models. To use custom models, they will extend the ModelFactory
and then pass this new factory into the API constructor.

Example:
    class MyStatus(Status):
        """A extended Status model"""

    class MyModelFactory(ModelFactory):
        status = MyStatus

    api = API(model_factory=MyModelFactory)
CHANGELOG
tweepy/__init__.py
tweepy/api.py
tweepy/models.py
tweepy/parsers.py