[kforge-dev] Changeset [74]: Refactor package layout of models package. ...

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

Refactor package layout of models package. 

* models/base.py: create a base module and move [BaseRegistry?][1] there * models/init.py, 

> models/package.py: 

  * move [DomainModel?][2] object from package to init
  * change [DomainModel?][2] methods from being classmethods to instance methods 
  * don't have _Package in [DomainModel?][2] classes list 
  * instantiate one instance of [DomainModel?][2] and make avaiilable as dm 

* tests/models/test_package.py: update to reflect above changes 

    [1]: http://project.knowledgeforge.net/ckan/trac/wiki/BaseRegistry
    [2]: http://project.knowledgeforge.net/ckan/trac/wiki/DomainModel

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

More information about the kforge-dev mailing list