From Fedora Project Wiki
Refs
How to read ResultsDB Code
ResultsDB is written using TurboGears2 Web Framework, which has quite awesome documentation itself [2], so I won't go into much detail, but just pass links to the appropriate parts of the documentation.