[Yum-devel] a lot of api breaking, I think
Tim Lauridsen
tim at rasmil.dk
Fri Jan 27 15:57:48 UTC 2006
On Fri, 2006-01-27 at 09:29 -0500, Tim Lauridsen wrote:
>
> I like 3. best, what about change po.repoid to return po.repo.id
> directly by adding a __get__ method to the package object, like it is
> done in the Option Classes.
>
Or something like this should do the job.
import warnings
..
..
class YumAvailablePackage ....
..
..
def get_repoid(self):
warnings.warn(' repoid go away, use .... ", DeprecationWarning)
return self.repo.id
repoid = property(get_repoid)
Tim
More information about the Yum-devel
mailing list