From abbc143c81d9c5b808d5c8ee14acc33835871fd5 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Wed, 28 Jan 2009 12:52:56 +0100 Subject: Moved DictDatabase --- portato/db/database.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'portato/db/database.py') diff --git a/portato/db/database.py b/portato/db/database.py index 7c51667..0ff71a7 100644 --- a/portato/db/database.py +++ b/portato/db/database.py @@ -29,14 +29,42 @@ class PkgData (object): class Database (object): + ALL = _("ALL") + def populate (self, category = None): + """Populates the database. + + @param category: An optional category - so only packages of this category are inserted. + @type category: string + """ raise NotImplentedError def get_cat (self, cat = None, byName = True): + """Returns the packages in the category. + + @param cat: category to return the packages from; if None it defaults to C{ALL} + @type cat: string + @param byName: selects whether to return the list sorted by name or by installation + @type byName: boolean + @return: an iterator over the packages + @rtype: L{PkgData} + """ raise NotImplentedError def get_categories (self, installed = False): + """Returns all categories. + + @param installed: Only return these with at least one installed package. + @type installed: boolean + @returns: the list of categories + @rtype: string + """ raise NotImplentedError def reload (self, cat = None): + """Reloads the given category. + + @param cat: category + @type cat: string + """ raise NotImplentedError -- cgit v1.2.3-54-g00ecf msg
Commit message (Expand)AuthorFilesLines
2020-04-16Remove built manpagesRené 'Necoro' Neumann5-169/+0
2020-04-16No more (obsolete) testsRené 'Necoro' Neumann9-419/+0
2020-04-16No more gem-buildingRené 'Necoro' Neumann2-1654/+0
2020-04-16Delete obsolete stuffRené 'Necoro' Neumann12-880/+0
2020-04-15More info for cleaning channelsRené 'Necoro' Neumann2-1/+11
2020-04-15Cleanup cacheRené 'Necoro' Neumann2-5/+61
2017-09-13Rename config to RbConfigruby22René 'Necoro' Neumann1-1/+1
2016-03-25Fix pythonismgroupsRené 'Necoro' Neumann1-17/+15
2016-03-25Take the 'group' value if no target is givenRené 'Necoro' Neumann1-1/+1
2016-03-25Groups support for feedsRené 'Necoro' Neumann1-7/+31
2016-03-25images are now rendered inline, no need for the multipart handlingmailRené 'Necoro' Neumann1-22/+6
2016-03-25image uri's may contain spacesRené 'Necoro' Neumann1-1/+6
2016-03-25Only one instance of the fetcher neededRené 'Necoro' Neumann1-1/+1
2016-03-25Replace RMail by Mail. This also reduces the handling we have to do ourselves.René 'Necoro' Neumann2-62/+65
2016-03-25Use debug mode for testingRené 'Necoro' Neumann1-1/+1
2016-03-25Add mail to the dependenciesRené 'Necoro' Neumann1-0/+1
2015-06-09itemtomail: embed images using data: URLsHEADmasterAntonio Terceiro1-18/+2
2015-05-10Bump versionAntonio Terceiro1-1/+1
2015-05-10Fix regression in `include-images` optionAntonio Terceiro3-8/+16
2015-05-03Bump versionAntonio Terceiro1-1/+1
2015-05-03Fix usage of filtersAntonio Terceiro2-16/+24
2015-01-13Handle being given numbers as feed nameAntonio Terceiro2-0/+16
2015-01-13Rakefile: remove wrong (and thus unused) flagAntonio Terceiro1-1/+0
2015-01-13Remove deprecated 'test suite' fileAntonio Terceiro1-12/+0
2015-01-13Rakefile: re-indentAntonio Terceiro1-35/+35
2015-01-13Rakefile: run tests in verbose modeAntonio Terceiro1-1/+2
2014-10-071.2.3 releaseAntonio Terceiro1-1/+1
2014-10-07Fix cleanup of maildirsAntonio Terceiro3-1/+16
2014-05-18feed2imap-test: reuse cache dir/protect configAntonio Terceiro1-1/+1
2014-02-13feed2imap-test: can now take a feed URL as argumentAntonio Terceiro1-3/+22
2014-02-13update .gitignoreAntonio Terceiro1-0/+2
2014-02-13fix dependency on ruby-feedparserAntonio Terceiro1-1/+1
2014-02-05Release 1.2.2Antonio Terceiro2-2/+2
2014-02-05config: fix regression with arrays as targetAntonio Terceiro2-1/+17
2013-08-28Fix teardown method nameAntonio Terceiro1-1/+1