summaryrefslogtreecommitdiff
path: root/doc/examples
AgeCommit message (Collapse)AuthorFilesLines
2015-06-10Remove apt.progress.gtk2Julian Andres Klode1-27/+0
2015-05-07Fix pep8 errorMichael Vogt1-2/+2
2015-05-07Update doc/example/action.py for py3 and latest APIMichael Vogt2-73/+75
closes: #782335
2015-05-07Update the print_uris.py example to use the new APIvon1-15/+3
Closes: #779217
2014-06-30make pep8 happy (again)Michael Vogt1-2/+2
2014-01-06Style fix: Do not use "is True" / "is False"Julian Andres Klode1-1/+1
This is uncommon style. It's better to use "pred" instead of "pred is True" and "not pred" instead of "pred is False".
2014-01-05make test_pep8.py passMichael Vogt10-16/+20
2014-01-05make pyflakes cleanMichael Vogt2-1/+3
2013-10-21doc/examples/*.py: Update examples to the new APIJulian Andres Klode19-174/+165
Closes: #639022
2013-10-21doc/examples: Start updating to new APIJulian Andres Klode10-155/+156
2012-01-04* doc/examples/build-deps.py:Michael Vogt2-36/+92
- update the build-deps.py example to use the apt API more
2011-04-11doc/examples: Add example on how to get architecture names (LP: #194374)Julian Andres Klode1-0/+12
2009-06-08merge with mvojak@debian.org1-1/+17
2009-05-05* apt/progress/__init__.py:Michael Vogt1-1/+17
- add update_status_full() that takes file_size/partial_size as additional callback arguments - add pulse_items() that takes a addtional "items" tuple that gives the user full access to the individual items that are fetched * python/progress.cc: - low level code for update_status_full and pulse_items()
2009-04-19* Update the code to use the new classes.Julian Andres Klode16-39/+39
2009-03-08* doc/examples/*.py: Fix some examples, cleanupJulian Andres Klode8-18/+6
2009-03-08apt/cache.py: If no progress is given for cache open, use OpProgress.Julian Andres Klode1-3/+3
Also fix doc/examples/records.py to use Package.candidate.*
2009-03-08* Merge with mvoJulian Andres Klode6-0/+7
2009-03-08* apt/progress/: New package, replaces apt.progress and apt.gtkJulian Andres Klode1-2/+2
- apt/progress/gtk2.py: Moved here from apt/gtk/widgets.py - apt/progress/__init__.py: Move here from apt/progress.py
2009-02-25add a bunch of #!/usr/bin/python to the examplesMichael Vogt6-0/+7
2009-01-12Cleanup: Comparisons to True/False, ==/!= None, deprecated modulesJulian Andres Klode8-24/+14
2009-01-11* Merge Ben Finney's do not use has_key() (Closes: #481878)Julian Andres Klode3-4/+4
A little bit adjusted to not remove the has_key() methods, and to use has_key() where needed [the low-level part does not have the needed functionality for 'key in mapping'].
2009-01-11Merge Ben Finney's whitespace changes (Closes: #481563)Julian Andres Klode24-296/+314
2009-01-09Cleanup: Remove whitespace at the end of line in all python codes.Julian Andres Klode7-12/+12
2008-11-24merged from the consolidation-bracn (with some modificatins)Michael Vogt1-109/+21
2008-11-07python/acquire.cc (GetPkgAcqFile): Support DestDir and DestFilename.Michael Vogt1-12/+1
2008-08-08'mapping.has_key' is deprecated, use current Python 'key in mapping' idiom.Ben Finney3-4/+4
2008-08-08Fix whitespace in changes from 0.7.7.Ben Finney1-1/+1
2008-07-21* doc/examples/config.py:Emanuele Rocca1-2/+1
- Fix config.py --help (closes: #257007)
2008-05-16Limit code lines to maximum 79 characters, to conform with PEP 8.Ben Finney8-12/+25
2008-05-16Imports on separate lines, to conform with PEP 8.Ben Finney6-6/+18
2008-05-16Remove redundant semicolons from statements.Ben Finney3-23/+23
2008-05-16Fix spaces adjacent to commas and operators, to conform with PEP 8.Ben Finney16-66/+66
2008-05-16Fix code indentation to 4 spaces, to conform with PEP 8.Ben Finney15-210/+210
2008-05-16Fixes to blank lines, to conform with PEP 8.Ben Finney10-36/+41
2008-05-16Remove trailing whitespace.Ben Finney1-2/+2
2008-05-16Remove trailing whitespace.Ben Finney7-13/+13
2008-01-08doc/examples/gui-inst.py:Michael Vogt1-42/+13
- update to reflect the current features
2008-01-04* use the new CacheFile::ListUpdate() codeMichael Vogt1-0/+13
* add example in doc/examples/update.py
2007-09-14* doc/examples/acquire.pyMichael Vogt1-2/+1
- add actiongroup to example
2007-09-04* python/metaindex.cc:Michael Vogt1-0/+15
- added support for the metaIndex objects * python/sourceslist.cc: - support new "List" attribute that returns the list of metaIndex source entries
2007-06-28* python/package.py:Michael Vogt1-0/+12
- added Record class that can be accessed like a dictionary and return it in candidateRecord and installedRecord (thanks to Alexander Sack for discussing this with me) * doc/examples/records.py: - added example how to use the new Records class
2007-06-10* merged translated package descriptions branchMichael Vogt1-0/+25
2006-10-02* progress.cc:Michael Vogt1-1/+1
- fix memleak in progress.cc * tests/memleak.py: - uncomment the mem-leak code * doc/examples/sources.py: - improved the example
2006-09-12* apt/progress.py:Michael Vogt1-4/+1
- use select() when waiting for child input
2006-08-03* basic ddtp support addedMichael Vogt1-0/+25
2006-06-09* changelog updatedMichael Vogt2-1/+23
* prints_uris.py example added
2006-04-26* added a simple "all_deps" recursive example Michael Vogt1-0/+34
2006-03-22* add PkgSrcRecords.Index to the codeMichael Vogt1-1/+1
2006-03-22* added indexFile.ArchiveURI(string)Michael Vogt1-0/+1