Last change
on this file since 1514 was
1,
checked in by myroslav, 19 years ago
|
Building directory structure
|
File size:
1.2 KB
|
Line | |
---|
1 | from Products.Archetypes.public import * |
---|
2 | #from Products.Archetypes.BaseContent import BaseContent |
---|
3 | from config import * |
---|
4 | |
---|
5 | schema = BaseSchema + Schema(( |
---|
6 | StringField('url', |
---|
7 | widget=StringWidget(label_msgid = 'label_url', |
---|
8 | description_msgid = 'help_url'), |
---|
9 | ), |
---|
10 | StringField('blog_name', |
---|
11 | widget=StringWidget(label_msgid = 'label_blog_name', |
---|
12 | description_msgid = 'help_blog_name'), |
---|
13 | ), |
---|
14 | TextField('excerpt', |
---|
15 | widget = RichWidget(label = "excerpt", |
---|
16 | label_msgid = "label_excerpt", |
---|
17 | i18n_domain = "plone")), |
---|
18 | |
---|
19 | )) |
---|
20 | |
---|
21 | |
---|
22 | class TrackBack(BaseContent): |
---|
23 | """Track Back Info container |
---|
24 | title - title of track Back |
---|
25 | url - server ping url |
---|
26 | blog_name - blog-sender name |
---|
27 | excerpt - simplified content text |
---|
28 | """ |
---|
29 | schema = schema |
---|
30 | |
---|
31 | # Override original ExtensibleMetadata method |
---|
32 | # for prevent "Unauthorized" exception raicing |
---|
33 | def allowDiscussion(self, allowDiscussion=None, **kw): |
---|
34 | """ """ |
---|
35 | return None |
---|
36 | |
---|
37 | |
---|
38 | registerType(TrackBack) |
---|
Note: See
TracBrowser
for help on using the repository browser.