Changeset 584

Show
Ignore:
Timestamp:
10/19/06 11:20:34
Author:
chervol
Message:

fixed post merge incompatibilities

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • SimpleBlog/branches/plone-2.5/config.py

    r583 r584  
    1414# use at your own risk. this is not fully tested 
    1515ENTRY_IS_FOLDERISH = 1 
     16 
     17 
     18DIGG_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  
    99from Products.CMFCore.utils import getToolByName 
    1010 
    11 import MetaWeblogAPI 
    12 import BloggerAPI 
    13 import MovableTypeAPI 
     11from Products.SimpleBlog import MetaWeblogAPI 
     12from Products.SimpleBlog import BloggerAPI 
     13from Products.SimpleBlog import MovableTypeAPI 
     14from Products.Archetypes.utils import  unique 
    1415 
    1516from Products.ATContentTypes.content.base import ATCTFolder 
     
    4849                                  i18n_domain="SimpleBlog", 
    4950                                  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.')), 
    5751    BooleanField('allowCrossPosting', 
    5852             default=0,  
     
    6862                                  description='List of tags.'), 
    6963               ), 
     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.')), 
    7072    BooleanField('tagsEnabled', 
    7173                  accessor = 'isTagsEnabled', 
  • SimpleBlog/branches/plone-2.5/content/blogentry.py

    r583 r584  
    11from Products.Archetypes.public import BaseSchema, BaseFolderSchema, Schema 
    22from Products.Archetypes.public import StringField, TextField, LinesField, BooleanField, ReferenceField 
    3 from Products.Archetypes.public import TextAreaWidget, VisualWidget,  MultiSelectionWidget, StringWidget, IdWidget, LinesWidget 
     3from Products.Archetypes.public import TextAreaWidget, VisualWidget,  MultiSelectionWidget, StringWidget, IdWidget, LinesWidget, KeywordWidget, SelectionWidget 
    44from Products.Archetypes.public import RichWidget, BooleanWidget 
    55from Products.Archetypes.public import BaseContent, registerType, BaseFolder 
     
    1818from Products.ATContentTypes.content.base import ATCTContent, ATCTFolder 
    1919 
     20from Products.CMFCore.utils import getToolByName 
    2021import string,os,urllib,httplib,urlparse,re 
    2122import sys 
    22 from util import * 
    23 from config import DIGG_TOPICS 
     23from Products.SimpleBlog.util import * 
     24from Products.SimpleBlog.config import DIGG_TOPICS 
    2425 
    2526if ENTRY_IS_FOLDERISH: