copy everything. 我去改.


On Fri, Dec 6, 2013 at 3:10 PM, Greg Wang <notifications@github.com> wrote:

> In management/shop/item.py:
>
> > +            p1.name = row[name_index]
> > +          elif (index == category_index):
> > +
> > +            catParent = ''
> > +
> > +            result = re.split('->', row[category_index])
> > +
> > +            for catName in result:
> > +              if (not(Category.objects.filter(name=catName).exists())):
> > +                if (not(catParent=='')):
> > +                  p = Category.objects.create(name = catName, store = Store.objects.get(name = store_name),
> > +                      parent = Category.objects.get(name = catParent))
> > +                else:
> > +                  p = Category.objects.create(name = catName, store = Store.objects.get(name = store_name))
> > +              catParent = catName
> > +            p1.category = Category.objects.get(name = catName)
>
> 这段需要加comment解释
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/gregwym/fruitex/pull/16/files#r8172221>
> .
>