source: products/qClickTrackingTool/trunk/campaign.py

Last change on this file was 1, checked in by myroslav, 18 years ago

Building directory structure

File size: 1.2 KB
Line 
1from Products.Archetypes.public import *
2from config import *
3
4schema = 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
21def modify_fti(fti):
22    fti['content_icon'] = 'link_icon.gif'
23
24class campaign(BaseContent):
25
26    schema=schema
27    archetype_name = TYPE_TITLE
28    _at_rename_after_creation = True
29
30registerType(campaign)
Note: See TracBrowser for help on using the repository browser.