Commit graph

106 commits

Author SHA1 Message Date
Yu Ming Zhu
a58148a7ed sort imports in hub 2019-12-12 11:00:57 +00:00
Yuming Zhu
b2b8d5f9cc strict per item in config_files 2019-10-15 09:14:16 +02:00
Yu Ming Zhu
4c1928f377 extract read_config_files util for config parsing 2019-10-15 09:14:16 +02:00
Ken Dreyer
d2a8c10efc hub: remove reference to PythonOption
With mod_python we could use Apache's PythonOption directive. That
directive does not exist with mod_wsgi and we have to use SetEnv
instead.

Remove the PythonOption directive and describe how to use SetEnv.
2019-10-14 10:05:08 +02:00
Yuming Zhu
7b60e0e7eb backwards compatibility for ProxyDNs change 2019-10-10 13:04:06 +00:00
Yuming Zhu
d662fb837d keep on using REMOTE_USER
and handover realm translation to auth_to_local rules in /etc/krb5.conf
2019-10-10 13:02:55 +00:00
Yu Ming Zhu
4a3dc40147 use GSS_NAME instead of REMOTE_USER for GSSAPI auth
jira: https://projects.engineering.redhat.com/browse/BST-475
2019-10-10 13:01:24 +00:00
Yu Ming Zhu
ab37e28d4d hub: add AllowedKrbRealms option and (add|remove)UserKrbPrincipal API 2019-10-10 16:37:56 +02:00
Mike McLean
a8fb6c952d rollback errors in multiCall
Fixes: https://pagure.io/koji/issue/1357
2019-05-06 10:23:15 -04:00
Mike McLean
22c112c0b1 avoid multiple server_setup calls when multiple threads in use 2019-03-19 11:43:55 -04:00
Tomas Kopecek
d0338fd4e7 fix code inspects 2019-02-05 15:49:54 +01:00
Tomas Kopecek
2343763598 marshaller update 2019-02-05 15:49:54 +01:00
Tomas Kopecek
fd9a6a32a1 encode xmlrpc responses correctly 2019-02-05 15:49:13 +01:00
Tomas Kopecek
caae1a0a8b workaround unnecessary list conversions 2018-07-11 17:37:40 -04:00
Tomas Kopecek
b37236d7ae fix incorrect divisions 2018-07-11 17:37:40 -04:00
Tomas Kopecek
8e61dc7c56 python-modernize -f libmodernize.fixes.fix_classic_division 2018-07-11 17:37:40 -04:00
Tomas Kopecek
be535c2854 python-modernize -f libmodernize.fixes.fix_imports_six 2018-07-11 17:37:39 -04:00
Tomas Kopecek
f03646bab5 python-modernize -f lib2to3.fixes.fix_methodattrs 2018-07-11 17:37:39 -04:00
Tomas Kopecek
9173587056 python-modernize -f lib2to3.fixes.fix_funcattrs 2018-07-11 17:37:39 -04:00
Tomas Kopecek
5ad9027320 python-modernize -f libmodernize.fixes.fix_basestring 2018-07-11 17:37:39 -04:00
Tomas Kopecek
bcee24e50c python-modernize -f libmodernize.fixes.fix_dict_six 2018-07-11 17:37:39 -04:00
Tomas Kopecek
b96092334d python-modernize -f libmodernize.fixes.fix_xrange_six 2018-07-11 17:37:39 -04:00
Alex Iribarren
9d093f8e31 Keep None as the default DBPort 2018-05-04 11:37:26 -04:00
Alex Iribarren
e1e4245822 Add option to configure DB port 2018-05-04 11:37:26 -04:00
Tomas Kopecek
fb48f62c4d drop migrateImage call
The migrateImage call allows migrating pre-1.8 image builds from the old
model (no build entry) to the new model (image build type). This call
was added in 1.8 (4.5 years ago) as a one-time tool for migration.  It
is only available if the EnableImageMigration is set on the hub.

See also: https://docs.pagure.org/koji/migrating_to_1.8/

Related: https://pagure.io/koji/issue/612
2017-12-19 09:56:45 -05:00
Tomas Kopecek
d6a5cdf987 python-modernize -f lib2to3.fixes.fix_except . -w 2017-10-31 16:05:16 +01:00
Mike McLean
9bcce9dc3e pull in core volume policy functions from earlier branches 2017-10-06 17:16:03 -04:00
Mike McLean
6835409a2b allow_none is the default for our dumps 2017-08-25 16:48:02 -04:00
Mike McLean
a59dd67765 hub returns datetime objects as strings 2017-08-25 16:48:02 -04:00
Mike McLean
be2fae90ae move custom xmlrpc marshaller to its own file 2017-08-25 16:48:02 -04:00
Mike McLean
ab48fa80b2 move xmlrpc marshaller into lib and use i8 for large ints 2017-08-25 16:48:02 -04:00
Tomas Kopecek
448924e2c6 Patch xmlrpclib for 64-bit integers
Related: https://pagure.io/koji/issue/464
2017-08-25 16:48:02 -04:00
Tomas Kopecek
b98d93d788 drop mod_python support
Fixes: https://pagure.io/koji/issue/466
2017-07-06 14:04:19 +02:00
Mike McLean
64a04a45b1 avoid secondary traceback when hub plugin fails to load 2017-06-07 14:47:47 -04:00
Tomas Kopecek
22bedc900d whitespace formatting 2017-03-17 11:35:53 -04:00
Tomas Kopecek
ed86da02dc remove types module 2017-03-17 11:35:53 -04:00
Mike McLean
5f109a7855 return datetime objects in iso string format 2017-03-14 12:18:05 -04:00
Tomas Kopecek
1494301465 use new exception syntax 2017-03-02 10:52:30 -05:00
Mike McLean
1088e5f4fb new hub CheckClientIP option 2017-02-14 11:27:55 -05:00
Mike McLean
6bbf9afdc8 don't assume content type is given 2016-11-22 16:41:31 -05:00
Mike McLean
47da84ed72 preCommit too. why not? 2016-09-14 14:20:28 -04:00
Mike McLean
3ecc5dbe52 add postCommit callback 2016-09-14 14:20:28 -04:00
Mohan Boddu
dd82e9cea2 Remove all bad-whitespaces
Signed-off-by: Mohan Boddu <mboddu@redhat.com>
2016-08-29 14:26:32 -04:00
Mike McLean
70006e6cfc don't recycle event ids in multicalls 2016-05-11 16:56:58 -04:00
Mike McLean
34a400652e cg_import policy stub 2015-11-17 10:45:31 -05:00
Mike McLean
c19f9a60a8 Revert "fix superclass ref"
This reverts commit ce4e19739b.
2015-10-14 16:45:26 -04:00
Mike McLean
ce4e19739b fix superclass ref 2015-09-23 16:15:42 -04:00
Mike McLean
f68099f584 fix more #pylint issues 2015-06-06 17:38:52 -04:00
Pavol Babincak
9e89ebb9a4 Ran reindent.py from cpython tools on all python scripts
Citing from reindent docs:

    Change Python (.py) files to use 4-space indents and no hard tab
    characters. Also trim excess spaces and tabs from ends of lines, and
    remove empty lines at the end of files.  Also ensure the last line
    ends with a newline.

Citing from PEP 8:

    Use 4 spaces per indentation level.

    Python 2 code indented with a mixture of tabs and spaces should be
    converted to using spaces exclusively.

    Don't write string literals that rely on significant trailing
    whitespace. Such trailing whitespace is visually indistinguishable
    and some editors (or more recently, reindent.py) will trim them.

Also PyLint recommends not to have trailing whitespace on any line.
2015-05-13 16:39:53 -04:00
Mike McLean
1ce5413904 in modpy mode, if ConfigFile is set to default, then default to normal ConfigDir 2015-02-19 15:25:19 -05:00