[Bug 349189] Re: Could be much easier to find packages in a distro

2010-10-27 Thread Brian Murray
This was fixed on the Launchpad side and wasn't actually an issue with
python-launchpadlib as far as I can tell.

** Changed in: python-launchpadlib (Ubuntu)
   Status: Triaged => Invalid

-- 
Could be much easier to find packages in a distro
https://bugs.launchpad.net/bugs/349189
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 349189] Re: Could be much easier to find packages in a distro

2009-04-03 Thread Celso Providelo
** Changed in: soyuz
   Status: Fix Committed => Fix Released

-- 
Could be much easier to find packages in a distro
https://bugs.launchpad.net/bugs/349189
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 349189] Re: Could be much easier to find packages in a distro

2009-03-28 Thread Rick Spencer
This change sounds fine. It does seem that from a developer's and
project manager's point of view, it would be logical to ask "In this
series, what bugs are on this package"? However, perhaps my specific API
change was not appropriate.

Certainly appreciate your responsiveness on this change. It will
definitely be quite helpful.

Cheers, Rick

-- 
Could be much easier to find packages in a distro
https://bugs.launchpad.net/bugs/349189
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 349189] Re: Could be much easier to find packages in a distro

2009-03-27 Thread Celso Providelo
RF 8118

Rick, once that revision is available in edge you can do:

{{{
>>> packages = ubuntu.searchSourcePackages('ubuntu-desktop')
>>> packages[0].searchTasks(status='New')
}}}

I personally don't see a use-case for searching bugtasks in a series by
passing a distribution_source_package, but I don't use it much, better
discussing this in a separate bug report with the launchpad-bugs guys.



** Changed in: soyuz
   Status: In Progress => Fix Committed

-- 
Could be much easier to find packages in a distro
https://bugs.launchpad.net/bugs/349189
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 349189] Re: Could be much easier to find packages in a distro

2009-03-27 Thread Celso Providelo
** Changed in: soyuz
   Status: Triaged => In Progress

** Changed in: soyuz
Milestone: pending => 2.2.3
 Assignee: (unassigned) => Celso Providelo (cprov)

-- 
Could be much easier to find packages in a distro
https://bugs.launchpad.net/bugs/349189
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 349189] Re: Could be much easier to find packages in a distro

2009-03-26 Thread Celso Providelo
** Branch linked: lp:~cprov/launchpad/bug-349189-distribution-package-
search

-- 
Could be much easier to find packages in a distro
https://bugs.launchpad.net/bugs/349189
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 349189] Re: Could be much easier to find packages in a distro

2009-03-26 Thread Celso Providelo
Exposing distribution.searchSourcePackage(text) returning a collection
of distribution_source_packages will solve the problem.

** Changed in: soyuz
   Importance: Undecided => Medium

** Changed in: soyuz
   Status: New => Triaged

** Changed in: soyuz
Milestone: None => pending

-- 
Could be much easier to find packages in a distro
https://bugs.launchpad.net/bugs/349189
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 349189] Re: Could be much easier to find packages in a distro

2009-03-26 Thread Francis J. Lacoste
** Changed in: soyuz
  Product: launchpadlib  => Soyuz

** Tags added: api

-- 
Could be much easier to find packages in a distro
https://bugs.launchpad.net/bugs/349189
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 349189] Re: Could be much easier to find packages in a distro

2009-03-26 Thread Rick Spencer
** Description changed:

  Binary package hint: python-launchpadlib
  
  The scenario is searching for bug tasks associated with a package
  requested by the user. In order to do this, the developer must:
  
  1. query the current (or desired distro) for source histories that match the 
string supplied by the user. As this is a user entered string, typically the 
developer will want to offer a list to the user to choose the correct package.
  2. After the user chooses the correct history object, use the 
source_package_name attribute on that object to return the package itself.
  3. Use the searchTasks method on the source package object to find the but 
tasks.
  (Note that this is very hard to figure out from the documentation, but the 
#launchpad community is very helpful)
  
  #1
  package_text = text
  ubuntu = self.launchpad.distributions['ubuntu']
  archive = ubuntu.main_archive
- packages = archive.getPublishedSources( source_name=params['text'], 
status='Published', distro_series=ubuntu.current_series)
+ packages = archive.getPublishedSources( package_text, status='Published', 
distro_series=ubuntu.current_series)
  
  #2
  pack_name = params["package"].source_package_name
  package = self.launchpad.distributions['ubuntu'].getSourcePackage( name = 
pack_name )
   
  #3
  tasks = package.searchTasks(status="New")
  return tasks
  
  I would propose that more intuitive approach for the developer might be to 
support two ways of accomplishing this task. First, have a method to directly 
search for packages in a distro, and second, support searching for packages in 
the searchTasks method.
  pseudo code:
  #1
  packages = launchpad.distributions['ubunut'].searchSourcePackages(text = 
'foo')
  
  #2
  bug_tasks = launchpad.distributions['ubuntu'].myseries.searchTasks( 
source_package = packages[0] )
  
  ProblemType: Bug
  Architecture: amd64
  DistroRelease: Ubuntu 9.04
  Package: python-launchpadlib 0.2~bzr35-0ubuntu1
  PackageArchitecture: all
  ProcEnviron:
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: python-launchpadlib
  Uname: Linux 2.6.28-11-generic x86_64

-- 
Could be much easier to find packages in a distro
https://bugs.launchpad.net/bugs/349189
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 349189] Re: Could be much easier to find packages in a distro

2009-03-26 Thread James Westby
Hi Rick,

Thanks for the report. I've added a launchpadlib task so that the
launchpadlib developers can review your suggestions.

Thanks,

James


** Also affects: launchpadlib
   Importance: Undecided
   Status: New

** Changed in: python-launchpadlib (Ubuntu)
   Importance: Undecided => Wishlist

** Changed in: python-launchpadlib (Ubuntu)
   Status: New => Triaged

-- 
Could be much easier to find packages in a distro
https://bugs.launchpad.net/bugs/349189
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 349189] Re: Could be much easier to find packages in a distro

2009-03-26 Thread Rick Spencer

** Attachment added: "Dependencies.txt"
   http://launchpadlibrarian.net/24374055/Dependencies.txt

-- 
Could be much easier to find packages in a distro
https://bugs.launchpad.net/bugs/349189
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs