zeitgeist team mailing list archive
-
zeitgeist team
-
Mailing list archive
-
Message #00066
[Bug 407369] [NEW] Define content and source types in one central place
Public bug reported:
currently there are two places where content and source objects are defined
* zeitgeist/datamodel.py (definition and URI abstraction)
* _zeitgeist/engine/base.py (mapping, lookup, and caching content/source URI -> database ID)
We should change this to
* have the URI (etc.) definition in one central place
* make it easily possible to added new content and source types
* allow easy lookup in the database implementation
* there should still be a datamodel module in the public API, which knows about all definitions but nothing about the database
** Affects: zeitgeist
Importance: Medium
Assignee: Markus Korn (thekorn)
Status: New
** Changed in: zeitgeist
Importance: Undecided => Medium
** Changed in: zeitgeist
Assignee: (unassigned) => Markus Korn (thekorn)
--
Define content and source types in one central place
https://bugs.launchpad.net/bugs/407369
You received this bug notification because you are a member of
Zeitgeist-Engine, which is the registrant for Zeitgeist Engine.
Status in Zeitgeist Engine: New
Bug description:
currently there are two places where content and source objects are defined
* zeitgeist/datamodel.py (definition and URI abstraction)
* _zeitgeist/engine/base.py (mapping, lookup, and caching content/source URI -> database ID)
We should change this to
* have the URI (etc.) definition in one central place
* make it easily possible to added new content and source types
* allow easy lookup in the database implementation
* there should still be a datamodel module in the public API, which knows about all definitions but nothing about the database
Follow ups
References