26 from cm.models.template
import Template
27 from cm.utils.exception
import CMException
28 from common.states
import template_states
29 from cm.utils.decorators
import user_log
42 templates = [t.dict
for t
in Template.objects.filter(state__exact=template_states[
'active']).order_by(
'cpu',
'memory')]
44 raise CMException(
"template_list")
59 t = Template.objects.get(id=template_id)
61 raise CMException(
"template_get")