Changeset 1804
- Timestamp:
- 11/18/08 16:46:22 (16 months ago)
- Files:
-
- 1 modified
-
trunk/pylucid_project/PyLucid/system/BasePlugin.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pylucid_project/PyLucid/system/BasePlugin.py
r1706 r1804 145 145 page_style.replace_add_data() puts the file links into the page. 146 146 """ 147 def is_added(slug_list, url): 148 for entry in slug_list: 149 if entry["url"] == url: 150 return True 151 return False 152 147 153 for slug in ("js", "css"): 148 154 url = self.internal_page.get_url(internal_page_name, slug) 149 155 if url == None: 150 156 continue 151 self.context["%s_data" % slug].append({ 157 158 slug_list = self.context["%s_data" % slug] 159 if is_added(slug_list, url): 160 # The same url has been added in the past -> skip 161 continue 162 163 slug_list.append({ 152 164 "plugin_name": self.plugin_name, 153 165 "url": url,