mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
add aurweb.db.session
+ Added Session class and global session object to aurweb.db, these are sessions created by sqlalchemy ORM's sessionmaker and will allow us to use declarative/imperative models. Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
7c65604dad
commit
4238a9fc68
6 changed files with 260 additions and 32 deletions
|
@ -25,6 +25,13 @@ def _get_parser():
|
|||
return _parser
|
||||
|
||||
|
||||
def rehash():
|
||||
""" Globally rehash the configuration parser. """
|
||||
global _parser
|
||||
_parser = None
|
||||
_get_parser()
|
||||
|
||||
|
||||
def get(section, option):
|
||||
return _get_parser().get(section, option)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue