def formToItem(form, orig_item):
  keys = ['status','categories','name','title','tags','content']
  if orig_item['type'] == 'page':
    keys.append('parent')
  item = dict((k, form.cleaned_data[k]) for k in keys)
  date = datetime.datetime.combine(form.cleaned_data['date'], form.cleaned_data['time'])
  item['date'] = date.isoformat(' ')
  item['url'] = util.getURL(date, item['name'], orig_item['type'])
  item['categories'] = util.cleanCSV(item['categories'])
  item['tags'] = util.cleanCSV(item['tags'])
  item['type'] = orig_item['type']
  item['filepath'] = util.getContentFilepath(date, item['name'])
  return item
  
###
### View operations
###
Remove duplicate entries from sys.path along with making them
dataset/ETHPy150Open DeanCutlet/filestack/views.py/formToItem--crossover with--dataset/ETHPy150Open babble/babble/include/jython/Lib/site.py/removeduppaths