Ignore:
Timestamp:
Aug 15, 2012 10:23:48 AM (12 years ago)
Author:
potar
Message:

fixed pep8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.plonegooglesitemaps/branches/sitemap_date/quintagroup/plonegooglesitemaps/content/newsextender.py

    r3152 r3506  
    2222 
    2323access_lst = ["Subscription", "Registration"] 
    24 genres_lst = ["PressRelease", "Satire", "Blog", "OpEd", "Opinion", \ 
     24genres_lst = ["PressRelease", "Satire", "Blog", "OpEd", "Opinion", 
    2525              "UserGenerated"] 
    2626 
     
    3131 
    3232    fields = [ 
    33         ExtendableStringField("gsm_access", 
     33        ExtendableStringField( 
     34            "gsm_access", 
    3435            accessor="gsm_access", 
    35             vocabulary=DisplayList(zip(["", ] + access_lst, \ 
     36            vocabulary=DisplayList(zip(["", ] + access_lst, 
    3637                                   ["Open access", ] + access_lst)), 
    3738            default="", 
     
    3940            widget=SelectionWidget( 
    4041                label="Access", 
    41                 description="Specifies whether an article is available to " \ 
    42                     "all readers (in case of the emtpy field, or only to " \ 
     42                description="Specifies whether an article is available to " 
     43                    "all readers (in case of the emtpy field, or only to " 
    4344                    "those with a free or paid membership to your site.", 
    4445                format="radio"), 
    4546        ), 
    46         ExtendableLinesField("gsm_genres", 
     47        ExtendableLinesField( 
     48            "gsm_genres", 
    4749            accessor="gsm_genres", 
    4850            vocabulary=DisplayList(zip(genres_lst, genres_lst)), 
     
    5153            widget=MultiSelectionWidget( 
    5254                label="Genres", 
    53                 description="Select one or more properties for an article, " \ 
    54                     "namely, whether it is a press release, a blog post, an " \ 
    55                     "opinion, an op-ed piece, user-generated content, " \ 
    56                     "or satire.", 
     55                description="Select one or more properties for an article, " 
     56                            "namely, whether it is a press release, " 
     57                            "a blog post, an opinion, an op-ed piece, " 
     58                            "user-generated content, or satire.", 
    5759                format="checkbox"), 
    5860        ), 
    59         ExtendableStringField("gsm_stock", 
     61        ExtendableStringField( 
     62            "gsm_stock", 
    6063            accessor="gsm_stock", 
    6164            default="", 
     
    6366            widget=StringWidget( 
    6467                label="Stock Tickers", 
    65                 description="A comma-separated list of up to 5 stock tickers "\ 
    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\"), " \ 
     68                description="A comma-separated list of up to 5 stock tickers " 
     69                    "of the companies, mutual funds, or other financial " 
     70                    "entities that are the main subject of the article. " 
     71                    "Relevant primarily for business articles. Each ticker " 
     72                    "must be prefixed by the name of its stock exchange, " 
     73                    "and must match its entry in Google Finance. " 
     74                    "For example, \"NASDAQ:AMAT\" (but not \"NASD:AMAT\"), " 
    7275                    "or \"BOM:500325\" (but not \"BOM:RIL\").", 
    7376                size=70), 
Note: See TracChangeset for help on using the changeset viewer.