Changeset 2281 in products
- Timestamp:
- May 10, 2010 1:40:40 PM (15 years ago)
- Location:
- quintagroup.referencedatagridfield/trunk/quintagroup/referencedatagridfield
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.referencedatagridfield/trunk/quintagroup/referencedatagridfield/_field.py
r2278 r2281 131 131 "title": row["title"], 132 132 # View data 133 "url": "", 134 "url_title": row["title"]}) 133 "url": ""}) 135 134 data = result[-1] 136 135 # Process remote URL and collect UIDs … … 138 137 data["url"] = quote(row["link"], safe='?$#@/:=+;$,&%') 139 138 # if title not set for remote url - set it equals to url 140 if not data[" url_title"]:141 data[" url_title"] = row["link"]139 if not data["title"]: 140 data["title"] = row["link"] 142 141 else: 143 142 uids[row["uid"]] = data … … 148 147 data = uids[b.UID] 149 148 data["url"] = b.getURL() 149 data["link"] = b.getPath() 150 150 # If title not set - get it from the brain 151 if not data[" url_title"]:152 data[" url_title"] = self._brains_title_or_id(b, instance)151 if not data["title"]: 152 data["title"] = self._brains_title_or_id(b, instance) 153 153 154 154 return result -
quintagroup.referencedatagridfield/trunk/quintagroup/referencedatagridfield/skins/referencedatagridfield/referencebrowser_popup.pt
r2279 r2281 315 315 style="text-align:right" 316 316 tal:define="title python:item.title_or_id().replace('\'', '\\\''); 317 path python: item.absolute_url(1)">317 path python:'/'+item.absolute_url(1)"> 318 318 <tal:referenceable tal:condition="referenceable"> 319 319 <a href="" -
quintagroup.referencedatagridfield/trunk/quintagroup/referencedatagridfield/skins/referencedatagridfield/referencedatagridwidget.pt
r2279 r2281 22 22 <a href="#" 23 23 tal:attributes="href data/url" 24 ><span tal:content="data/ url_title"/></a>24 ><span tal:content="data/title"/></a> 25 25 </li></tal:loop> 26 26 </ul>
Note: See TracChangeset
for help on using the changeset viewer.