It creates one, but if there's a parent, the behavior works better if you
pass the parent's system (cached inheritance and any other cached data are
used rather than regenerated)


On Mon, Jul 1, 2013 at 9:59 AM, Christina Roberts
<notifications@github.com>wrote:

> In cms/djangoapps/contentstore/views/item.py:
>
> >
> > -    get_modulestore(template).update_metadata(new_item.location.url(), own_metadata(new_item))
> > +    get_modulestore(category).create_and_save_xmodule(dest_location, definition_data=data,
> > +        metadata=metadata, system=parent.system)
>
> So why do we not need to specify system all the time when we call
> create_and_save_xmodule?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/edx/edx-platform/pull/270/files#r4962168>
> .
>