Do not show extra variables in ExportToModel workflow settings

This commit is contained in:
Benjamin Dauvergne 2011-06-21 20:08:21 +00:00
parent 372bc5be24
commit eefdb17afb
1 changed files with 0 additions and 12 deletions

View File

@ -63,9 +63,6 @@ def get_varnames(fields):
varnames.append(('var_%s' % field.varname, label))
else:
varnames.append(('f%s' % field.id, label))
# and finally add it as its manually defined variable name
varnames.extend(ADDITIONAL_VARIABLES)
return varnames
@ -576,15 +573,6 @@ class SendmailWorkflowStatusItem(WorkflowStatusItem):
register_item_class(SendmailWorkflowStatusItem)
ADDITIONAL_VARIABLES = (
('url', _('URL of the form')),
('url_status', _('URL of the form status')),
('details', _('Full details of the form')),
('name', _('Form type')),
('number', _('Form number')),
('comment', _('Last comment')),)
def template_on_formdata(formdata, template, process=None):
dict = {}
dict['url'] = formdata.get_url()