scikits_index / code / scikits.py

Diff from to

code/scikits.py

 			<html><body>
 			We are experiencing some technical difficulties.
 			<br />In the meantime have a look at
-			<a href="http://pypi.python.org/pypi?:action=search&term=scikits&submit=search">PyPI's scikits listing</a>
+			<a href="http://pypi.python.org/pypi?:action=search&term=scikit&submit=search">PyPI's scikit listing</a>
 			</body></html>
 			""")
 			return
 		# done before printing header to build title
 		package = Package.packages().get(package_name)
 		if package is None:
-			package_name = "scikits.%s" % package_name
-			package = Package.packages().get(package_name)
+			package = Package.packages().get("scikits.%s" % package_name)
+		if package is None:
+			package = Package.packages().get("scikit.%s" % package_name)
 		if package is None:
 			self.error(404)
 			self.write("404 not found")
 		#~ logger.debug(parts)
 		#~ escaped_description = parts["fragment"]
 
-		try:
-			escaped_description = rst2html(d["description"].replace(r"\n", "\n"))
-		except docutils.utils.SystemMessage, e:
-			escaped_description = ("<!-- DOCUTILS WARNING! %s -->\n" % str(e)) + htmlquote(d["description"]).replace(r"\n", "<br />\n")
+		convert_rst = 1
+
+		if convert_rst:
+			try:
+				escaped_description = rst2html(d["description"].replace(r"\n", "\n"))
+			except docutils.utils.SystemMessage, e:
+				escaped_description = ("<!-- DOCUTILS WARNING! %s -->\n" % str(e)) + htmlquote(d["description"]).replace(r"\n", "<br />\n")
+		else:
+			escaped_description = htmlquote(d["description"]).replace(r"\n", "<br />\n")
 
 		revision = d.get("revision")
 		revision = ("version " + revision) if revision else ""
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.