Attachment 'patch-for-debli-startup.patch'
Download 1 diff --git a/godebian-server.py b/godebian-server.py
2 index 2e7576f..6288e2c 100755
3 --- a/godebian-server.py
4 +++ b/godebian-server.py
5 @@ -43,7 +43,7 @@ except ImportError:
6 if __name__ == '__main__':
7 if len(sys.argv) > 1:
8 host, port = sys.argv[1:]
9 - app.run(host=host, port=port)
10 + app.run(host=host, port=int(port))
11 else:
12 app.run()
13
14 diff --git a/godebian/db.py b/godebian/db.py
15 index 655f578..1ea92f6 100644
16 --- a/godebian/db.py
17 +++ b/godebian/db.py
18 @@ -1,3 +1,4 @@
19 +#!/usr/bin/env python
20 # -*- coding: utf-8 -*-
21 __author__ = "Bernd Zeimetz"
22 __contact__ = "bzed@debian.org"
23 @@ -40,8 +41,12 @@ _metadata = MetaData()
24
25 _URL_ID_TYPE = Integer
26 if DatabaseConfig.connection.startswith('postgres'):
27 - from sqlalchemy.databases.postgres import PGBigInteger
28 - _URL_ID_TYPE = PGBigInteger
29 + try:
30 + from sqlalchemy.databases.postgres import PGBigInteger
31 + _URL_ID_TYPE = PGBigInteger
32 + except ImportError:
33 + from sqlalchemy.databases import postgresql
34 + _URL_ID_TYPE = postgresql.BIGINT
35
36 _URL_TABLE = 'godebian_urls'
37 _URL_ID_SEQ = 'url_id_seq'
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.