allura.tasks

allura.tasks.admin_tasks.install_app(*args, **kwargs)

Install an application directly onto c.project, bypassing the UI and any app constraints like installable=False.

Arguments:

(ep_name, mount_point=None, mount_label=None, ordinal=None, **override_options)
allura.tasks.export_tasks.bulk_export(tools, filename=None, send_email=True, with_attachments=False)

Export the current project data. Send notification to current user.

Parameters:
  • tools (list) – list of mount_points to export
  • filename (str) – optional filename to use
allura.tasks.mail_tasks.sendmail(fromaddr, destinations, text, reply_to, subject, message_id, in_reply_to=None, sender=None, references=None, metalink=None)

Send an email to the specified list of destinations with respect to the preferred email format specified by user. It is best for broadcast messages.

Parameters:fromaddr – ObjectId or str(ObjectId) of user, or email address str
allura.tasks.mail_tasks.sendsimplemail(fromaddr, toaddr, text, reply_to, subject, message_id, in_reply_to=None, sender=None, references=None, cc=None)

Send a single mail to the specified address. It is best for single user notifications.

Parameters:
  • fromaddr – ObjectId or str(ObjectId) of user, or email address str
  • toaddr – ObjectId or str(ObjectId) of user, or email address str