def get_create_feedbackdraft_kwargs(self, form, publish):
     return {
         'groups': form.cleaned_groups,
         'feedbacktext_raw': form.cleaned_data['feedbacktext'],
         'feedbacktext_html': markdown_full(form.cleaned_data['feedbacktext']),
         'publish': publish,
         'points': self.get_points_from_form(form)
     }
 def get_create_feedbackdraft_kwargs(self, form, publish):
     return {
         'groups': form.cleaned_groups,
         'feedbacktext_raw': form.cleaned_data['feedbacktext'],
         'feedbacktext_html': markdown_full(form.cleaned_data['feedbacktext']),
         'publish': publish,
         'points': self.get_points_from_form(form)
     }
 def get_create_feedbackdraft_kwargs(self, form, publish):
     return {
         'feedbacktext_raw': form.cleaned_data['feedbacktext'],
         'feedbacktext_html': markdown_full(form.cleaned_data['feedbacktext']),
         'publish': publish,
         'points': self.get_points_from_form(form),
         'feedbackfile_uploadedfile': form.cleaned_data['feedbackfile'],
         'feedbackfile_has_changed': 'feedbackfile' in form.changed_data
     }
Exemplo n.º 4
0
 def get_create_feedbackdraft_kwargs(self, form, publish):
     return {
         'feedbacktext_raw': form.cleaned_data['feedbacktext'],
         'feedbacktext_html':
         markdown_full(form.cleaned_data['feedbacktext']),
         'publish': publish,
         'points': self.get_points_from_form(form),
         'feedbackfile_uploadedfile': form.cleaned_data['feedbackfile'],
         'feedbackfile_has_changed': 'feedbackfile' in form.changed_data
     }
Exemplo n.º 5
0
def devilry_group_markdown(value):
    return parse_markdown.markdown_full(value)
Exemplo n.º 6
0
def devilry_group_markdown(value):
    return parse_markdown.markdown_full(value)
 def _lorem_paras(self, count):
     return markdown_full(u'\n\n'.join(
         lorem_ipsum.paragraphs(count, common=False))
     )
Exemplo n.º 8
0
 def _parse(self, data):
     if 'md' in data:
         md = data['md']
         return HttpResponse(markdown_full(md))
     else:
         return HttpResponseBadRequest('"md" not in POST data.')
Exemplo n.º 9
0
 def _parse(self, data):
     if 'md' in data:
         md = data['md']
         return HttpResponse(markdown_full(md))
     else:
         return HttpResponseBadRequest('"md" not in POST data.')