This merge does two things:
1. Removes completely dependency on the Sites framework (which was implemented erroneously).
Specifically, site field on Attribute and related constraints. With those changes, attributes are now global. That is, all attributes are visible to all entities. As a result, slug in now unique.
2. Content-type field is used to limit entities that can be assigned an attribute (see get_all_attributes method on Entity). This way attributes with content_type assigned are, for all intended purposes, private to Entity of that content type. The problem is that those attributes are still visible to other entities. Moreover, originally, attributes had non-unique slugs that are unique together with content_type and site. With removal of site (and because content_type is nullable) a situation might exist in which two attributes exist with the same slug/name but one with content_type and one with NULL. Simple solution to all this hassle is to drop private attributes altogether, which is what this pull-request does.
Resolves: #9
Commits:
* Remove sites dependency; fix Attribute uniqueness (#9)
* Add uniqueness test to attributes
* Remove content_type from Attribute class
* Update runtests
* Remove redudant call
* Fix wrong assertion in attribute test
* Fix string formatting
* Add debug Q-expr print function
* Change old __unicode__ methods to __str__ format
* Move __unicode__ methods to __str__
* Rewrite AND Q-expressions to safe form
* Make Q-expr debug print method use nicer format
* Document rewrite_q_expr function
* Rewrite/improve queries' test
* Document some more code
* Reorganize and document queryset module
* Add more tests for queries
* Use generic relation attribute instead instead of 'eav_values'
* Update docstring
* Fix a typo
* Move up a variable
* Rename a function
* Check if 'in' filter rhs is not a QuerySet
* Add newline to the end of file
* Fix typo; tweak docstring