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