Python 3: Building a Wiki Application
May 20, 2011, 05:12 (0 Talkback[s])
(Other stories by Michel Anders)
[ Thanks to Naheed
for this link. ]
"With the entities and relations in our data model identified,
we can have a look at their specific qualities.
"The basic entity in a wiki is a Topic. A topic, in this
context, is basically a title that describes what this topic is
about. A topic has any number of associated Pages. Each instance of
a Page represents a revision; the most recent revision is the
current version of a topic. Each time a topic is edited, a new
revision is stored in the database. This way, we can simply revert
to an earlier version if we made a mistake or compare the contents
of two revisions. To simplify identifying revisions, each revision
has a modification date. We also maintain a relation between the
Page and the User that modified that Page.
"In the wiki application that we will develop, it is also
possible to associate any number of tags with a topic. A Tag entity
consists simply of a tag attribute. The important part is the
relation that exists between the Topic entity and the Tag
entity."
Complete Story
Related Stories: