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

Merged sitemap_date branch into trunk

Location:
quintagroup.plonegooglesitemaps/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.plonegooglesitemaps/trunk

    • Property svn:mergeinfo
      •  

        old new  
        33/quintagroup.plonegooglesitemaps/branches/migratioin_product:2826-2839 
        44/quintagroup.plonegooglesitemaps/branches/plone4:2549-2553 
         5/quintagroup.plonegooglesitemaps/branches/sitemap_date:3481-3509 
        56/quintagroup.plonegooglesitemaps/branches/test_refactoring:2527-2536 
  • quintagroup.plonegooglesitemaps/trunk/quintagroup/plonegooglesitemaps/browser/newssitemapview.py

    r3163 r3510  
    2121 
    2222        return ( 
    23             ('publication_date', lambda x: x.Date and \ 
    24                                  formatDate(x.Date) or ""), 
     23            ('publication_date', 
     24             lambda x: x.Date and formatDate(x.Date) or ""), 
    2525            ('keywords', lambda x: x.Subject and ', '.join(x.Subject) or ""), 
    2626            ('title', lambda x: x.Title or x.getId or x.id), 
    27             ('name', lambda x: x.Title and \ 
    28                      reTrailingParenthtical.sub("", x.Title) or ""), 
     27            ('name', lambda x: x.Title and 
     28                reTrailingParenthtical.sub("", x.Title) or ""), 
    2929            ('language', lambda x: x.Language or self.default_language()), 
    3030            ('access', lambda x: x.gsm_access or ""), 
    31             ('genres', lambda x: x.gsm_genres and \ 
    32                        ", ".join(x.gsm_genres) or ""), 
     31            ('genres', lambda x: x.gsm_genres and 
     32                ", ".join(x.gsm_genres) or ""), 
    3333            ('stock', lambda x: x.gsm_stock or ""), 
    3434        ) 
     
    4747            review_state=self.context.getStates(), 
    4848            effective={"query": min_date, 
    49                        "range": "min"} 
    50             ) 
     49                       "range": "min"}, 
     50            is_default_page=False 
     51        ) 
Note: See TracChangeset for help on using the changeset viewer.