Last change
on this file since 2737 was
1,
checked in by myroslav, 19 years ago
|
Building directory structure
|
File size:
1.1 KB
|
Line | |
---|
1 | from Products.Archetypes.public import * |
---|
2 | from config import * |
---|
3 | |
---|
4 | schema = BaseSchema+Schema(( |
---|
5 | TextField('description', |
---|
6 | widget = TextAreaWidget( |
---|
7 | description = "Enter your description.", |
---|
8 | label="Description" |
---|
9 | ), |
---|
10 | ), |
---|
11 | StringField('url', |
---|
12 | default = "http://", |
---|
13 | validators = ('isURL',), |
---|
14 | widget = StringWidget( |
---|
15 | description = "Url address of your campaign location", |
---|
16 | ), |
---|
17 | ), |
---|
18 | )) |
---|
19 | |
---|
20 | def modify_fti(fti): |
---|
21 | fti['content_icon'] = 'link_icon.gif' |
---|
22 | |
---|
23 | class campaign(BaseContent): |
---|
24 | |
---|
25 | schema=schema |
---|
26 | archetype_name = TYPE_NAME |
---|
27 | |
---|
28 | registerType(campaign) |
---|
Note: See
TracBrowser
for help on using the repository browser.