apyrgio / synnefo

Synnefo is open source cloud software, used to create massively scalable IaaS clouds.
GNU General Public License v3.0
0 stars 0 forks source link

Extra formatting for emails #246

Open apyrgio opened 10 years ago

apyrgio commented 10 years ago

Allow the following when emailing VMs:

VM Name: {{ vm_name }}
VM id: {{ vm_id }}
IPv4: {{ vm_ipv4 }}
OS: {{ vm_os }}
apyrgio commented 10 years ago

@AthinaB : There is an issue with the above. Right now, we send an email per user. Therefore, I cannot know which VMs the admin has selected in order to show their names. How should we handle this?

apyrgio commented 10 years ago

We can solve this problem with the following way:

After selecting a number of items, allow the user to choose between two modes: a) Send one email per owner of the items. This is the current behavior b) Send one email per item, possibly many per owner.

If the user selects (b), then he/she should be able to add in the mail body the details for the item. Instead of using custom tags like {{ vm_os }}, there should be a way to get any of the database items. This reduces the above problem to a problem of visualizing the database tables and the relations between them.

The problem of visualization may be easily fixed by django-extensions. If we decide to go that route however, we will probably need to add and a template language for the email, a preview option, documentation etc.

Since the above are far from trivial, this functionality should be included in 0.17.