Changeset 3510 in products for quintagroup.plonegooglesitemaps/trunk/quintagroup/plonegooglesitemaps/content
- Timestamp:
- Aug 22, 2012 10:22:22 AM (12 years ago)
- Location:
- quintagroup.plonegooglesitemaps/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.plonegooglesitemaps/trunk
- Property svn:mergeinfo
-
old new 3 3 /quintagroup.plonegooglesitemaps/branches/migratioin_product:2826-2839 4 4 /quintagroup.plonegooglesitemaps/branches/plone4:2549-2553 5 /quintagroup.plonegooglesitemaps/branches/sitemap_date:3481-3509 5 6 /quintagroup.plonegooglesitemaps/branches/test_refactoring:2527-2536
-
- Property svn:mergeinfo
-
quintagroup.plonegooglesitemaps/trunk/quintagroup/plonegooglesitemaps/content/newsextender.py
r3152 r3510 22 22 23 23 access_lst = ["Subscription", "Registration"] 24 genres_lst = ["PressRelease", "Satire", "Blog", "OpEd", "Opinion", \24 genres_lst = ["PressRelease", "Satire", "Blog", "OpEd", "Opinion", 25 25 "UserGenerated"] 26 26 … … 31 31 32 32 fields = [ 33 ExtendableStringField("gsm_access", 33 ExtendableStringField( 34 "gsm_access", 34 35 accessor="gsm_access", 35 vocabulary=DisplayList(zip(["", ] + access_lst, \36 vocabulary=DisplayList(zip(["", ] + access_lst, 36 37 ["Open access", ] + access_lst)), 37 38 default="", … … 39 40 widget=SelectionWidget( 40 41 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 " 43 44 "those with a free or paid membership to your site.", 44 45 format="radio"), 45 46 ), 46 ExtendableLinesField("gsm_genres", 47 ExtendableLinesField( 48 "gsm_genres", 47 49 accessor="gsm_genres", 48 50 vocabulary=DisplayList(zip(genres_lst, genres_lst)), … … 51 53 widget=MultiSelectionWidget( 52 54 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.", 57 59 format="checkbox"), 58 60 ), 59 ExtendableStringField("gsm_stock", 61 ExtendableStringField( 62 "gsm_stock", 60 63 accessor="gsm_stock", 61 64 default="", … … 63 66 widget=StringWidget( 64 67 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\"), " 72 75 "or \"BOM:500325\" (but not \"BOM:RIL\").", 73 76 size=70), -
quintagroup.plonegooglesitemaps/trunk/quintagroup/plonegooglesitemaps/content/sitemap.py
r3163 r3510 52 52 widget=atapi.MultiSelectionWidget( 53 53 label=_(u"Review status"), 54 description=_(u"You may include items in sitemap depend of " \54 description=_(u"You may include items in sitemap depend of " 55 55 u"their review state."), 56 56 ), … … 65 65 label=_(u"Blackout entries"), 66 66 description=_( 67 u"Objects which match filter condition will be excluded " \68 u"from the sitemap.Every record should follow the spec: " \69 u"[<filter name>:]<filter arguments>. By default there are " \70 u"\"id\" and \"path\" filters (\"id\" used if filter name " \71 u"not specified). There is possibility to add new filters. " \72 u"Look into README.txt of the " \67 u"Objects which match filter condition will be excluded " 68 u"from the sitemap.Every record should follow the spec: " 69 u"[<filter name>:]<filter arguments>. By default there are " 70 u"\"id\" and \"path\" filters (\"id\" used if filter name " 71 u"not specified). There is possibility to add new filters. " 72 u"Look into README.txt of the " 73 73 u"quintagroup.plonegooglesitemaps package."), 74 74 ), … … 82 82 widget=atapi.LinesWidget( 83 83 label=_(u"URL processing Regular Expressions"), 84 description=_(u"Provide regular expressions (in Perl syntax), " \85 u"one per line to be applied to URLs before " \86 u"including them into Sitemap. Example 1: " \87 u"\"s/\/index_html//\" will remove /index_html " \88 u"from URLs representing default documents. " \89 u"Example 2: " \90 u"\"s/[you_site\/internal\/path]/[domain]/\" will " \91 u"fix URLs in the sitemap in case they are " \92 u"generated on the basis of your site internal" \84 description=_(u"Provide regular expressions (in Perl syntax), " 85 u"one per line to be applied to URLs before " 86 u"including them into Sitemap. Example 1: " 87 u"\"s/\/index_html//\" will remove /index_html " 88 u"from URLs representing default documents. " 89 u"Example 2: " 90 u"\"s/[you_site\/internal\/path]/[domain]/\" will " 91 u"fix URLs in the sitemap in case they are " 92 u"generated on the basis of your site internal" 93 93 u"path rather than your site domain URL. "), 94 94 ), … … 103 103 widget=atapi.LinesWidget( 104 104 label=_(u"Additional URLs"), 105 description=_(u"Define additional URLs that are not objects and " \105 description=_(u"Define additional URLs that are not objects and " 106 106 u"that should be included in sitemap."), 107 107 ), … … 115 115 widget=atapi.MultiSelectionWidget( 116 116 label=_(u"Pinging workflow transitions"), 117 description=_(u"Select workflow transitions for pinging " \117 description=_(u"Select workflow transitions for pinging " 118 118 u"google on."), 119 119 ), … … 170 170 for wf_tr in wf.transitions.values(): 171 171 if wf_tr.after_script_name in AVAILABLE_WF_SCRIPTS: 172 wf_trans.append(("%s#%s" % (wf_id, wf_tr.id), 173 "%s : %s (%s)" % (wf_id, wf_tr.id, \ 174 wf_tr.title_or_id()))) 172 wf_trans.append( 173 ("%s#%s" % (wf_id, wf_tr.id), 174 "%s : %s (%s)" % (wf_id, wf_tr.id, 175 wf_tr.title_or_id()))) 175 176 return atapi.DisplayList(wf_trans) 176 177
Note: See TracChangeset
for help on using the changeset viewer.