summaryrefslogtreecommitdiffstats
path: root/base/common/python/pki/system.py
Commit message (Collapse)AuthorAgeFilesLines
* Added cleanUp() and cert_import scriptlet.ticket-2244-2Endi S. Dewata2016-05-051-3/+10
|
* Added createCertificates().Endi S. Dewata2016-05-051-7/+38
|
* Added existing database parameter.Endi S. Dewata2016-05-041-3/+3
|
* Added createUsers() and configureSecurityDomain().Endi S. Dewata2016-05-041-0/+20
|
* Refactored SystemConfigService.finalizeConfiguration().Endi S. Dewata2016-05-041-0/+13
|
* Remove #!python shebang from non-executablesChristian Heimes2016-01-191-1/+0
| | | | | | | | | A lot of Python files start with a #!/usr/bin/python shebang although the files are neither executables nor designed as scripts. Shebangs are only required for executable scripts. Without unnecessary shebangs it's a bit easier to track Python 3 porting.
* Py3 modernization: libmodernize.fixes.fix_importChristian Heimes2015-08-171-0/+1
| | | | | | | | | | | | | | Enforce absolute imports or explicit relative imports. Python 3 no longer supports implicit relative imports, that is unqualified imports from a module's directory. In order to load a module from the same directory inside a package, use from . import module The future feature 'from __future__ import absolute_import' ensures that pki uses absolute imports on Python 2, too. See https://www.python.org/dev/peps/pep-0328/
* Make pki PEP 8 compatibleChristian Heimes2015-08-141-2/+7
| | | | | | | | | | | | | | | | | | | Large portions of the patch was automatically created with autopep8: find base/ -name '*.py' | xargs autopep8 --in-place --ignore E309 \ --aggressive find base/common/upgrade base/server/upgrade -type f -and \ -not -name .gitignore | autopep8 --in-place --ignore E309 --aggressive autopep8 --in-place --ignore E309 --aggressive \ base/common/sbin/pki-upgrade \ base/server/sbin/pkispawn \ base/server/sbin/pkidestroy \ base/server/sbin/pki-server \ base/server/sbin/pki-server-upgrade About two dozent violations were fixed manually. https://fedorahosted.org/pki/ticket/708
* PKI TRAC Ticket #1388 - pylint unidiomatic-typecheck warnings cause koji ↵Matthew Harmsen2015-05-261-2/+2
| | | | | | builds to fail (cherry picked from commit d2c24aff4e9dc6aa27b337479cfee1fac4940994)
* Fixed problem cloning Dogtag 10.1.x to 10.2.x.Endi S. Dewata2015-02-061-12/+53
| | | | | | | | The JSON format of security domain info has changed between Dogtag 10.1.x and 10.2.x, so the Python client library has been changed to accommodate both formats. https://fedorahosted.org/pki/ticket/1235
* Updates to some python client classes for prettier API docs.Ade Lee2014-10-271-0/+105
| | | | | Added missing .rst annotations and missing docstrings. Added log file for sphinx runs.
* formatting fixes in python client code for pycharmAde Lee2014-05-291-1/+3
|
* latest changes for code reviewAde Lee2014-05-291-5/+15
|
* Added security domain functionality to python APIAde Lee2014-05-291-5/+44
| | | | | | | | | Currently the security domain python API just extracts the security domain name from the json returned by the server. This patch allows it to extract and use all the information in the response. This info is needed to determine the state of the security domain for the IPA vault case.
* fix issues identified by pycharm for system.pyAde Lee2014-05-291-15/+15
|
* Added decorator to handle exceptionsAde Lee2014-02-191-18/+17
| | | | | | Decorator catches HttpErrorExceptions from Requests and extracts the relevant PKIException object, and rethrows it.
* Replaced Jettison with Jackson.Endi S. Dewata2014-02-061-5/+4
| | | | | | | | | The Jettison library has been replaced with Jackson library as JSON provider for RESTEasy. All class paths and the deployment tools have been updated accordingly. The Python library and the TPS UI have been updated as well to use the new JSON format. Ticket #817
* Debian: add init script functionalityAde Lee2014-01-081-0/+5
| | | | | | | | | | | | | | | The addtions in this patch will add start/stop/restart/status functionality to operations, so that Debian systems can perform these operations by calling these functions from an init script. We also introduce a parameter in the configuration scripts that can be used to determine if the system is a debian system. This parameter is used to specify a system V init script instead of a systemd script on a debian system, when the configuration scriptlets start and stop a system. Also source apparently does not work by default in debian. Used dot (.) instead.
* Fixes for issues reported by pylint.Abhishek Koneru2013-07-181-1/+1
| | | | | | Fixed the warning W0202 - attributes defined outside init and error E0202 - An instance attribute hiding a method (which is actually an error in json.encoder.JSONEncoder line 157.)
* Applied PEP8 formatting to python files.Abhishek Koneru2013-06-271-1/+1
| | | | | | | General formatting done for all the python files except for the line length issue, which could not be formatted using Pydev in Eclipse. Ticket #316
* Fix tests in pkispawn to use legacy URLs as fallbackAde Lee2013-05-041-0/+10
| | | | | | | | | | When setting up clones or non-CA subsystems, pkispawn checks if the security domain is accessible and if the user can log in. These calls invoke REST URIs, which are not available on older subsystems. To support these subsystems, we need to attempt the older legacy servlets if the REST APIs are not available. Ticket #604
* Fixed JSON encoding class registration.Endi Sukma Dewata2013-03-211-5/+3
| | | | | | | The class registration for JSON encoding has been moved after the class definitions to avoid problems. Ticket #532
* Refactor installation code to remove dependency on jythonAde Lee2013-03-211-1/+51
| | | | | | | | | | | | | Connection is now made to the installation servlet through a python client using JSON. The code to construct the ConfgurationRequest and parse the results has been moved to pkihelper.py, and configuration.py no longer calls a separate jython process to create the Configuration object and parse the results. The jython code has therefore been removed. Also added status servlet to other java subsystems, to be tested prior to starting configuration. Trac Ticket 532
* Fixed python-requests compatibility issue.Endi Sukma Dewata2013-03-191-1/+2
| | | | | | | | The Python REST client has been modified to parse JSON data using a method that is compatible with python-requests 1.1. The RPM spec file has been modified to require python-requests 1.1 package. Ticket #535
* Added security domain info validation.Endi Sukma Dewata2013-03-071-0/+38
The installer script has been modified to validate security domain info in both interactive and silent installation. A basic Python API has been added to access the REST interface. Ticket #473