Cale moved the category and location into the scope_id


On Wed, Sep 4, 2013 at 10:34 AM, Ned Batchelder <notifications@github.com>wrote:

> In common/lib/xmodule/xmodule/modulestore/mongo/base.py:
>
> > @@ -860,11 +870,5 @@ def _create_new_model_data(self, category, location, definition_data, metadata):
> >              category
> >          )
> >
> > -        class_ = XModuleDescriptor.load_class(
> > -            category,
> > -            self.default_class
> > -        )
> > -        model_data = DbModel(kvs, class_, None, MongoUsage(None, location))
> > -        model_data['category'] = category
> > -        model_data['location'] = location
> > -        return model_data
> > +        field_data = DbModel(kvs)
> > +        return field_data
>
> Why doesn't this DbModel need the category and location annotated onto it
> like the old code did?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/edx/edx-platform/pull/839/files#r6155093>
> .
>