[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#762934: debsources: refactoring - move queries out of models.py

Package: qa.debian.org
Severity: normal
User: qa.debian.org@packages.debian.org
Usertags: debsources

models.py contains several classes which are used only by the web app and that
have nothing to do with the ORM layer, e.g. Location, Directory, SourceFile.
Similarly, models.py also contains static methods
(e.g. PackageName.list_versions_from_name) that should better be moved to a
query-specific module.

We should refactor the code so that models.py contains only the ORM
abstraction, and move query code to separate modules.

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Reply to: