Ignore:
Timestamp:
Apr 20, 2011 8:20:36 AM (13 years ago)
Author:
zidane
Message:

fixes pep8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.plonegooglesitemaps/trunk/quintagroup/plonegooglesitemaps/content/newsextender.py

    r2746 r3152  
    1313from quintagroup.plonegooglesitemaps.interfaces import INewsSitemapProvider 
    1414 
     15 
    1516class ExtendableStringField(ExtensionField, StringField): 
    1617    """An extendable string field.""" 
     18 
    1719 
    1820class ExtendableLinesField(ExtensionField, LinesField): 
     
    2022 
    2123access_lst = ["Subscription", "Registration"] 
    22 genres_lst = ["PressRelease","Satire","Blog","OpEd","Opinion","UserGenerated"] 
     24genres_lst = ["PressRelease", "Satire", "Blog", "OpEd", "Opinion", \ 
     25              "UserGenerated"] 
     26 
    2327 
    2428class NewsExtender(object): 
     
    2933        ExtendableStringField("gsm_access", 
    3034            accessor="gsm_access", 
    31             vocabulary=DisplayList(zip(["",]+access_lst, ["Open access",]+access_lst)), 
     35            vocabulary=DisplayList(zip(["", ] + access_lst, \ 
     36                                   ["Open access", ] + access_lst)), 
    3237            default="", 
    3338            schemata="GoogleSitemap", 
    34             widget = SelectionWidget( 
     39            widget=SelectionWidget( 
    3540                label="Access", 
    36                 description="Specifies whether an article is available to all " \ 
    37                     "readers (in case of the emtpy field, or only to those " \ 
    38                     "with a free or paid membership to your site.", 
     41                description="Specifies whether an article is available to " \ 
     42                    "all readers (in case of the emtpy field, or only to " \ 
     43                    "those with a free or paid membership to your site.", 
    3944                format="radio"), 
    4045        ), 
     
    4449            schemata="GoogleSitemap", 
    4550            default=(), 
    46             widget = MultiSelectionWidget( 
     51            widget=MultiSelectionWidget( 
    4752                label="Genres", 
    4853                description="Select one or more properties for an article, " \ 
    4954                    "namely, whether it is a press release, a blog post, an " \ 
    50                     "opinion, an op-ed piece, user-generated content, or satire.", 
     55                    "opinion, an op-ed piece, user-generated content, " \ 
     56                    "or satire.", 
    5157                format="checkbox"), 
    5258        ), 
     
    5561            default="", 
    5662            schemata="GoogleSitemap", 
    57             widget = StringWidget( 
     63            widget=StringWidget( 
    5864                label="Stock Tickers", 
    5965                description="A comma-separated list of up to 5 stock tickers "\ 
    60                     "of the companies, mutual funds, or other financial entities "\ 
    61                     "that are the main subject of the article. Relevant primarily "\ 
    62                     "for business articles. Each ticker must be prefixed by the "\ 
    63                     "name of its stock exchange, and must match its entry in "\ 
    64                     "Google Finance. For example, \"NASDAQ:AMAT\" (but not "\ 
    65                     "\"NASD:AMAT\"), or \"BOM:500325\" (but not \"BOM:RIL\").", 
     66                    "of the companies, mutual funds, or other financial " \ 
     67                    "entities that are the main subject of the article. " \ 
     68                    "Relevant primarily for business articles. Each ticker " \ 
     69                    "must be prefixed by the name of its stock exchange, " \ 
     70                    "and must match its entry in Google Finance. " \ 
     71                    "For example, \"NASDAQ:AMAT\" (but not \"NASD:AMAT\"), " \ 
     72                    "or \"BOM:500325\" (but not \"BOM:RIL\").", 
    6673                size=70), 
    6774        ), 
Note: See TracChangeset for help on using the changeset viewer.