l.r.m.p.ProjectGroupSet : class documentation

Part of lp.registry.model.projectgroup View In Hierarchy

No class docstring
Method __init__ Undocumented
Method __iter__ Undocumented
Method __getitem__ Undocumented
Method get See lp.registry.interfaces.projectgroup.IProjectGroupSet.
Method getByName See IProjectGroupSet.
Method new See lp.registry.interfaces.projectgroup.IProjectGroupSet.
Method count_all Undocumented
Method forReview Undocumented
Method search Search through the Registry database for project groups that match
def __init__(self):
Undocumented
def __iter__(self):
Undocumented
def __getitem__(self, name):
Undocumented
def get(self, projectgroupid):

See lp.registry.interfaces.projectgroup.IProjectGroupSet.

>>> getUtility(IProjectGroupSet).get(1).name
u'apache'
>>> getUtility(IProjectGroupSet).get(-1)
Traceback (most recent call last):
...
NotFoundError: -1
def getByName(self, name, ignore_inactive=False):
See IProjectGroupSet.
def new(self, name, display_name, title, homepageurl, summary, description, owner, mugshot=None, logo=None, icon=None, registrant=None, bug_supervisor=None, driver=None):
See lp.registry.interfaces.projectgroup.IProjectGroupSet.
def count_all(self):
Undocumented
def forReview(self):
Undocumented
def search(self, text=None, search_products=False, show_inactive=False):
Search through the Registry database for project groups that match the query terms. text is a piece of text in the title / summary / description fields of project group (and possibly product). soyuz, bazaar, malone etc are hints as to whether the search should be limited to projects that are active in those Launchpad applications.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.