[ckan-changes] commit/ckanext-pdeu: pudo: theming and exception handling

Bitbucket commits-noreply at bitbucket.org
Mon Jun 13 12:49:34 UTC 2011


1 new changeset in ckanext-pdeu:

http://bitbucket.org/okfn/ckanext-pdeu/changeset/790db7ff8072/
changeset:   790db7ff8072
user:        pudo
date:        2011-06-13 14:49:24
summary:     theming and exception handling
affected #:  5 files (304 bytes)

--- a/ckanext/pdeu/plugin.py	Mon Jun 13 11:56:42 2011 +0200
+++ b/ckanext/pdeu/plugin.py	Mon Jun 13 14:49:24 2011 +0200
@@ -51,9 +51,11 @@
         return route_map
 
     def read(self, pkg):
-        from ckan.lib.base import request, c
-        c.eu_country = pkg.extras.get('eu_country')
-        c.harvest_catalogue_name = pkg.extras.get('harvest_catalogue_name', '(Unspecified)')
-        c.harvest_catalogue_url = pkg.extras.get('harvest_catalogue_url')
-        c.harvest_dataset_url = pkg.extras.get('harvest_dataset_url')
-
+        try:
+            from ckan.lib.base import request, c
+            c.eu_country = pkg.extras.get('eu_country')
+            c.harvest_catalogue_name = pkg.extras.get('harvest_catalogue_name', '(Unspecified)')
+            c.harvest_catalogue_url = pkg.extras.get('harvest_catalogue_url')
+            c.harvest_dataset_url = pkg.extras.get('harvest_dataset_url')
+        except TypeError, te:
+            pass


--- a/ckanext/pdeu/theme/public/css/style.css	Mon Jun 13 11:56:42 2011 +0200
+++ b/ckanext/pdeu/theme/public/css/style.css	Mon Jun 13 14:49:24 2011 +0200
@@ -25,12 +25,12 @@
 }
 
 header #site-name {
-  font-size: 1.2em;
+  font-size: 1.4em;
   font-family: Ubuntu, sans-serif;
   padding: 5px;
   padding-left: 82px;
-  padding-bottom: 5px;
-  font-weight: bold;
+  padding-bottom: 2px;
+  /*font-weight: bold;*/
   color: #333;
   text-shadow: 1px 1px 3px #ccc;
 }


--- a/ckanext/pdeu/theme/templates/home/index.html	Mon Jun 13 11:56:42 2011 +0200
+++ b/ckanext/pdeu/theme/templates/home/index.html	Mon Jun 13 14:49:24 2011 +0200
@@ -3,7 +3,7 @@
   xmlns:xi="http://www.w3.org/2001/XInclude"
   py:strip="">
   
-  <py:def function="page_title">European datasets</py:def>
+  <py:def function="page_title">Welcome to PublicData.eu - Europe's Public Data</py:def><py:def function="body_class">hide-sidebar</py:def><py:def function="optional_head">


--- a/ckanext/pdeu/theme/templates/layout_base.html	Mon Jun 13 11:56:42 2011 +0200
+++ b/ckanext/pdeu/theme/templates/layout_base.html	Mon Jun 13 14:49:24 2011 +0200
@@ -220,7 +220,7 @@
     });
   </script>
 
-  <script src="http://assets.okfn.org/banner/banner.js"></script> 
+  <!--script src="http://assets.okfn.org/banner/banner.js"></script--><script>
     var _gaq=[["_setAccount","UA-XXXXX-X"],["_trackPageview"]]; // Change UA-XXXXX-X to be your site's ID 


--- a/ckanext/pdeu/theme/templates/package/layout.html	Mon Jun 13 11:56:42 2011 +0200
+++ b/ckanext/pdeu/theme/templates/package/layout.html	Mon Jun 13 14:49:24 2011 +0200
@@ -12,9 +12,6 @@
       <li py:if="h.am_authorized(c, actions.EDIT, c.pkg)">
           ${h.subnav_link(c, h.icon('package_edit') + _('Edit'), controller='package', action='edit', id=c.pkg.name)}
       </li>
-      <li py:if="g.has_commenting">
-          ${h.subnav_link(c, h.icon('comments') + _('Comments & Questions'), controller='package', action='comments', id=c.pkg.name)}
-      </li><li>${h.subnav_link(c, h.icon('page_white_stack') + _('History'), controller='package', action='history', id=c.pkg.name)}</li><li py:if="h.am_authorized(c, actions.EDIT_PERMISSIONS, c.pkg)">
         ${h.subnav_link(c, h.icon('lock') + _('Authorization'), controller='package', action='authz', id=c.pkg.name)}

Repository URL: https://bitbucket.org/okfn/ckanext-pdeu/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.




More information about the ckan-changes mailing list