/[pac]/pac/PACDefault/FormLetter.py
ViewVC logotype

Diff of /pac/PACDefault/FormLetter.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by tvon, Fri Oct 3 17:18:29 2003 UTC revision 1.8 by tvon, Fri Oct 3 21:45:44 2003 UTC
# Line 1  Line 1 
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"),
# Line 21  schema = BaseSchema +  Schema(( Line 19  schema = BaseSchema +  Schema((
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    

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26