source: products/qPingTool/tags/0.2/PingInfo.py

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

Building directory structure

File size: 1.6 KB
Line 
1from Products.Archetypes.public import *
2from Products.Archetypes.BaseContent import BaseContentMixin
3from Products.CMFCore.ActionInformation import ActionInformation
4from Products.CMFCore.Expression import Expression, createExprContext
5from Products.CMFCore.utils import getToolByName
6from Acquisition import aq_inner, aq_parent
7from config import *
8
9schema = BaseContentMixin.schema +  Schema((
10    #StringField('id',
11    #            required=1,
12    #            widget=StringWidget(size=70,
13    #                                label_msgid = 'label_id',
14    #                                description_msgid = 'help_id'),
15    #            ),
16    StringField('url',
17                required=1,
18                widget=StringWidget(label_msgid = 'label_url',
19                                    description_msgid = 'help_url'),
20               ),
21    StringField('method_name',
22                default='weblogUpdates.ping',
23                required=1,
24                widget=StringWidget(label_msgid = 'label_method_name',
25                                    description_msgid = 'help_method_name'),
26               ),
27    StringField('rss_version',
28                vocabulary=RSS_LIST,
29                default='Blog',
30                widget=SelectionWidget(label_msgid = 'label_rss_version',
31                                    description_msgid = 'help_rss_version'),
32                ),
33    ))
34
35
36class PingInfo(BaseContentMixin):
37    """Ping Info container
38       id - name of the server to ping
39       url - server ping url
40       method_name - ping method
41       rss_version - rss version supported by the server
42    """ 
43    schema = schema
44
45registerType(PingInfo)
Note: See TracBrowser for help on using the repository browser.