source: products/qClickTrackingTool/tags/0.4.1/campaign.py

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

Building directory structure

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