[PATCH 3/6] Move DEVICE_TYPE constants into storage and use them everywhere.

David Lehman dlehman at redhat.com
Thu Nov 8 15:13:52 UTC 2012


On Wed, 2012-11-07 at 14:56 -0800, Brian C. Lane wrote:
> On Wed, Nov 07, 2012 at 03:57:36PM -0600, David Lehman wrote:
> 
> > diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
> > index e25e97a..2bb29e8 100644
> > --- a/pyanaconda/ui/gui/spokes/custom.py
> > +++ b/pyanaconda/ui/gui/spokes/custom.py
> > @@ -49,6 +49,13 @@ from pyanaconda.storage.formats import getFormat
> >  from pyanaconda.storage.formats.fs import FS
> >  from pyanaconda.storage.size import Size
> >  from pyanaconda.storage import Root
> > +from pyanaconda.storage import DEVICE_TYPE_LVM
> > +from pyanaconda.storage import DEVICE_TYPE_BTRFS
> > +from pyanaconda.storage import DEVICE_TYPE_PARTITION
> > +from pyanaconda.storage import DEVICE_TYPE_MD
> > +from pyanaconda.storage import DEVICE_TYPE_DISK
> 
> Maybe we need a storage.constants module to hold things like this?

Yeah, there is a bunch of stuff in storage/__init__.py that needs to
find a new home. I'll be addressing that after f18.

Dave

> 
> _______________________________________________
> anaconda-patches mailing list
> anaconda-patches at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches




More information about the anaconda-patches mailing list