app/soc/views/document/edit.py
changeset 499 d22e4fe8e64b
parent 482 839740b061ad
child 500 44ea4620c5c0
equal deleted inserted replaced
498:1cd81063a4c6 499:d22e4fe8e64b
    55  ugettext_lazy('Document saved.'),
    55  ugettext_lazy('Document saved.'),
    56 )
    56 )
    57 
    57 
    58 
    58 
    59 def getDocForForm(form):
    59 def getDocForForm(form):
    60   """Extracts doc fields from a form and creates a new doc from it
    60   """Extracts doc fields from a form and creates a new doc from it.
    61   """
    61   """
    62 
    62 
    63   user = users.get_current_user()
    63   user = users.get_current_user()
    64 
    64 
    65   partial_path = form.cleaned_data.get('partial_path')
    65   partial_path = form.cleaned_data.get('partial_path')