Changeset 584
- Timestamp:
- 10/19/06 11:20:34
- Files:
-
- SimpleBlog/branches/plone-2.5/config.py (modified) (1 diff)
- SimpleBlog/branches/plone-2.5/content/blog.py (modified) (3 diffs)
- SimpleBlog/branches/plone-2.5/content/blogentry.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
SimpleBlog/branches/plone-2.5/config.py
r583 r584 14 14 # use at your own risk. this is not fully tested 15 15 ENTRY_IS_FOLDERISH = 1 16 17 18 DIGG_TOPICS = DisplayList(( \ 19 ('apple', 'Technology:Apple') \ 20 ,('design', 'Technology:Design') \ 21 ,('gadgets', 'Technology:Gadgets') \ 22 ,('hardware', 'Technology:Hardware') \ 23 ,('tech_news', 'Technology:Industry News') \ 24 ,('linux_unix', 'Technology:Linux/Unix') \ 25 ,('mods', 'Technology:Mods') \ 26 ,('programming', 'Technology:Programming') \ 27 ,('security', 'Technology:Security') \ 28 ,('software', 'Technology:Software') \ 29 ,('tech_deals', 'Technology:Tech Deals') \ 30 ,('space', 'Science:Space') \ 31 ,('environment', 'Science:Environment') \ 32 ,('health', 'Science:Health') \ 33 ,('general_sciences', 'Science:General Sciences') \ 34 ,('business_finance', 'World & Business:Business Finance') \ 35 ,('politics', 'World & Business:Political News') \ 36 ,('political_opinion', 'World & Business:Political Opinion') \ 37 ,('world_news', 'World & Business:World News') \ 38 ,('offbeat_news', 'World & Business:Offbeat News') \ 39 ,('baseball', 'Sports:Baseball') \ 40 ,('basketball', 'Sports:Basketball') \ 41 ,('extreme_sports', 'Sports:Extreme Sports') \ 42 ,('football', 'Sports:Football - US/Canada') \ 43 ,('golf', 'Sports:Golf') \ 44 ,('hockey', 'Sports:Hockey') \ 45 ,('motorsport', 'Sports:Motorsport') \ 46 ,('soccer', 'Sports:Soccer') \ 47 ,('tennis', 'Sports:Tennis') \ 48 ,('other_sports', 'Sports:Other Sports') \ 49 ,('videos_animation', 'Videos:Animation') \ 50 ,('videos_comedy', 'Videos:Comedy') \ 51 ,('videos_educational', 'Videos:Educational') \ 52 ,('videos_gaming', 'Videos:Gaming') \ 53 ,('videos_music', 'Videos:Music') \ 54 ,('videos_people', 'Videos:People') \ 55 ,('videos_sports', 'Videos:Sports') \ 56 ,('celebrity', 'Entertainment:Celebrity') \ 57 ,('movies', 'Entertainment:Movies') \ 58 ,('music', 'Entertainment:Music') \ 59 ,('television', 'Entertainment:Television') \ 60 ,('gaming_news', 'Gaming:Gaming News') \ 61 ,('playable_web_games', 'Gaming:Playable Web Games') \ 62 )).sortedByValue() SimpleBlog/branches/plone-2.5/content/blog.py
r583 r584 9 9 from Products.CMFCore.utils import getToolByName 10 10 11 import MetaWeblogAPI 12 import BloggerAPI 13 import MovableTypeAPI 11 from Products.SimpleBlog import MetaWeblogAPI 12 from Products.SimpleBlog import BloggerAPI 13 from Products.SimpleBlog import MovableTypeAPI 14 from Products.Archetypes.utils import unique 14 15 15 16 from Products.ATContentTypes.content.base import ATCTFolder … … 48 49 i18n_domain="SimpleBlog", 49 50 description='Supply the list of possible categories that can be used in SimpleBlog Entries.')), 50 BooleanField('warnForUnpublishedEntries',51 default=1,52 widget=BooleanWidget(label='Show unpublished entries warning',53 i18n_domain="SimpleBlog",54 label_msgid="label_warnForUnpublishedEntries",55 description_msgid="help_warnForUnpublishedEntries",56 description='When checked, a warning will be displayed on the blog\'s frontpage if there are entries that are not yet published.')),57 51 BooleanField('allowCrossPosting', 58 52 default=0, … … 68 62 description='List of tags.'), 69 63 ), 64 BooleanField('warnForUnpublishedEntries', 65 default=1, 66 schemata = 'interface', 67 widget=BooleanWidget(label='Show unpublished entries warning', 68 i18n_domain="SimpleBlog", 69 label_msgid="label_warnForUnpublishedEntries", 70 description_msgid="help_warnForUnpublishedEntries", 71 description='When checked, a warning will be displayed on the blog\'s frontpage if there are entries that are not yet published.')), 70 72 BooleanField('tagsEnabled', 71 73 accessor = 'isTagsEnabled', SimpleBlog/branches/plone-2.5/content/blogentry.py
r583 r584 1 1 from Products.Archetypes.public import BaseSchema, BaseFolderSchema, Schema 2 2 from Products.Archetypes.public import StringField, TextField, LinesField, BooleanField, ReferenceField 3 from Products.Archetypes.public import TextAreaWidget, VisualWidget, MultiSelectionWidget, StringWidget, IdWidget, LinesWidget 3 from Products.Archetypes.public import TextAreaWidget, VisualWidget, MultiSelectionWidget, StringWidget, IdWidget, LinesWidget, KeywordWidget, SelectionWidget 4 4 from Products.Archetypes.public import RichWidget, BooleanWidget 5 5 from Products.Archetypes.public import BaseContent, registerType, BaseFolder … … 18 18 from Products.ATContentTypes.content.base import ATCTContent, ATCTFolder 19 19 20 from Products.CMFCore.utils import getToolByName 20 21 import string,os,urllib,httplib,urlparse,re 21 22 import sys 22 from util import *23 from config import DIGG_TOPICS23 from Products.SimpleBlog.util import * 24 from Products.SimpleBlog.config import DIGG_TOPICS 24 25 25 26 if ENTRY_IS_FOLDERISH:
