Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/pynslcd/cache.py
Commit message (Collapse)AuthorAgeFilesLines
* Improve Python code styleArthur de Jong2019-09-081-10/+23
| | | | | | This also adds a flake8 test that checks code style. Note that this test is not run by default because it requires network access to create the virtualenv with the test software.
* Add Python 3 supportArthur de Jong2019-09-081-7/+13
| | | | | | | | | This ensures that both pynslcd and the command-line utilities work with Python3 as interpreter and runs some tests with all installed Python interpreters. This drops support for Python 2.6 and extends 5a84be2 to perform more testing with Python 3.
* Fix commentArthur de Jong2014-06-051-1/+1
|
* Remove unneeded importsArthur de Jong2013-09-151-1/+0
|
* Use retrieve_by, group_by and group_columns in the cacheArthur de Jong2013-08-171-66/+64
| | | | | | | | | | This removes custom retrieve() functions and Query classes from the database modules and uses retrieve_sql retrieve_by, group_by and group_columns to make a custom retrieval query. In the cache module this completely replaces how the query grouping is done. The Query class is now only used inside the cache and the CnAliasedQuery, RowGrouper and related classed have been removed.
* Make Cache a context managerArthur de Jong2013-08-171-0/+6
|
* Give cache tables friendlier namesArthur de Jong2013-08-171-4/+4
| | | | This also defined the tables for netgroup storage.
* Explicitly define tables used for cacheArthur de Jong2013-08-171-14/+21
| | | | | | | This introduces the tables property in the Cache object that is used to define the used tables. This also fixes the storing of mulit-valued attributes in the cache.
* Move cache table creation to modulesArthur de Jong2013-08-171-167/+38
| | | | | | This also moves the creation of a SQLite database connection to a _get_connection() function to ensure the cache is only created when the caches are instantiated.
* Python style changesArthur de Jong2013-04-121-3/+1
| | | | | | | This tries to conform more closely to PEP8. Imports have been checked and, if used only once, moved closer to the use to avoid potential import loops. This also includes a few other minor changes, like using __main__ for utility scripts and variable renames to avoid name clashes.
* disable pynslcd cache for nowArthur de Jong2013-02-081-1/+4
|
* implement a naive offline cacheArthur de Jong2012-01-291-0/+312
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1615 ef36b2f9-881f-0410-afb5-c4e39611909c