1 |
from Products.Archetypes.public import * |
from Products.Archetypes.public import * |
2 |
from Products.Archetypes.TemplateMixin import TemplateMixin |
from Products.Archetypes.TemplateMixin import TemplateMixin |
|
from Products.Archetypes.SQLStorage import PostgreSQLStorage |
|
3 |
|
|
4 |
from Products.PACDefault.config import * |
from Products.PACDefault.config import * |
5 |
|
|
6 |
schema = BaseSchema + Schema(( |
schema = BaseSchema + Schema(( |
7 |
|
|
8 |
StringField("emailSubject", |
StringField("emailSubject", |
|
storage=PostgreSQLStorage(), |
|
9 |
searchable=1, |
searchable=1, |
10 |
widget = StringWidget(label="Email Subject", |
widget = StringWidget(label="Email Subject", |
11 |
description="This is used when the letter is sent as an email"), |
description="This is used when the letter is sent as an email"), |
19 |
'text/plain', |
'text/plain', |
20 |
'text/html'), |
'text/html'), |
21 |
widget = RichWidget(label="Body"), |
widget = RichWidget(label="Body"), |
|
storage=PostgreSQLStorage(), |
|
22 |
), |
), |
23 |
)) + TemplateMixin.schema |
)) + TemplateMixin.schema |
24 |
|
|