[kforge-dev] Changeset [82]: Add Tag object to the domain model. ...

28: Timeline admin at okfn.org
Mon Feb 26 20:15:09 UTC 2007

Add Tag object to the domain model. 

  * trunk/development.ini: change to postgres db as sqlite's lack of [ForeignKey?][1] was causing problems for unit tests. Specifically Package - Tag [RelatedJoin?][2] was not working properly in that when you deleted a package or a tag it was not removing related stuff from join table. 
  * trunk/ckan/models/package.py: 

    * Tag: add class 
    * Package: 

      * tags: new [RelatedJoin?][2] attribute 
      * add_tag_by_name: new method 

  * trunk/ckan/models/init.py: add Tag to list of domain model classes 
  * trunk/ckan/tests/models/test_package.py: 

    * [TestTag?][3]: add 
    * [TestPackageWithTags?][4]: add 

    [1]: http://project.knowledgeforge.net/ckan/trac/wiki/ForeignKey
    [2]: http://project.knowledgeforge.net/ckan/trac/wiki/RelatedJoin
    [3]: http://project.knowledgeforge.net/ckan/trac/wiki/TestTag
    [4]: http://project.knowledgeforge.net/ckan/trac/wiki/TestPackageWithTags

URL: http://project.knowledgeforge.net/ckan/trac/changeset/82

More information about the kforge-dev mailing list