]>
git.ipfire.org Git - people/jschlag/pbs.git/blob - backend/base.py
6 Main object where all other objects inherit from.
8 This is used to access the global instance of Pakfire
9 and hold the database connection.
11 def __init__(self
, pakfire
):
12 self
.pakfire
= pakfire
14 # Shortcut to the database.
15 self
.db
= self
.pakfire
.db
17 # Shortcut to settings.
18 if hasattr(self
.pakfire
, "settings"):
19 self
.settings
= self
.pakfire
.settings
27 Shortcut to the cache.
32 return self
.pakfire
.cache
36 return self
.pakfire
.geoip