akhenakh/dico — pull request #1 by nizox (2012-07-19 15:40:49+00:00)
Title: Introduce _meta allowing __slots__ extensions

These changes allows a wrapper to declare slots by setting the _meta class attribute.

Concrete example:

```python
class MongoDocument(Document):
__slots__ = "_saved"
_meta = True

def save(self):
db.save(self.dict_for_save())
_saved = True
```