[ckan-changes] commit/ckanextiati: pudo: minor fixes

Bitbucket commits-noreply at bitbucket.org
Tue May 24 12:52:50 UTC 2011


1 new changeset in ckanextiati:

http://bitbucket.org/okfn/ckanextiati/changeset/d1714676a4a3/
changeset:   r59:d1714676a4a3
user:        pudo
date:        2011-05-24 14:52:42
summary:     minor fixes
affected #:  4 files (152 bytes)

--- a/ckanext/iati/authz.py	Wed Feb 02 11:00:32 2011 +0100
+++ b/ckanext/iati/authz.py	Tue May 24 14:52:42 2011 +0200
@@ -21,7 +21,7 @@
         authz_group = model.AuthorizationGroup(name=authz_group_name)
         model.Session.add(authz_group)
         model.add_user_to_authorization_group(user, authz_group, model.Role.ADMIN)
-        model.add_authorization_group_to_role(authz_group, model.Role.OWNER, group)
+        model.add_authorization_group_to_role(authz_group, model.Role.READER, group)
     return authz_group
 
 
@@ -44,7 +44,7 @@
                 model.Session.delete(package_role)
         for authz_group in authz_groups:
             pkg_role = model.PackageRole(package=pkg, user=None, authorized_group=authz_group, 
-                                         role=model.Role.OWNER)
+                                         role=model.Role.ADMIN)
             model.Session.add(pkg_role)
 
 


--- a/ckanext/iati/forms/package.py	Wed Feb 02 11:00:32 2011 +0100
+++ b/ckanext/iati/forms/package.py	Tue May 24 14:52:42 2011 +0200
@@ -109,9 +109,9 @@
 
             
 # Setup the fieldset
-def build_package_iati_form(is_admin=False, user_editable_groups=None):
+def build_package_iati_form(is_admin=False, user_editable_groups=None, **kwargs):
     builder = package.build_package_form(is_admin=is_admin, 
-                                         user_editable_groups=user_editable_groups)
+                                         user_editable_groups=user_editable_groups, **kwargs)
     
     # IATI specifics
     
@@ -134,7 +134,7 @@
     
     builder.add_field(CommaListExtraField('donors_type'))
     builder.set_field_text('donors_type', _('Donor type'), "Separate multiple entries using commas.")
-    
+
     builder.add_field(CommaListExtraField('donors_country'))
     builder.set_field_text('donors_country', _('Donor country'), "Separate multiple entries using commas.")
     
@@ -221,7 +221,7 @@
      _('Precision'), _('Taxonomy URL'), _('Department'), _('Agency'), 
      ]
 
-def get_package_fieldset(is_admin=False, user_editable_groups=None):
+def get_package_fieldset(is_admin=False, user_editable_groups=None, **kwargs):
     return build_package_iati_form(is_admin=is_admin, 
-                                   user_editable_groups=user_editable_groups).get_fieldset()
+                                   user_editable_groups=user_editable_groups, **kwargs).get_fieldset()
     


--- a/public/css/iati.css	Wed Feb 02 11:00:32 2011 +0100
+++ b/public/css/iati.css	Tue May 24 14:52:42 2011 +0200
@@ -314,6 +314,7 @@
 
 #minornavigation ul li a {
 	padding: 5px;
+    text-decoration: none; 
 }
 
 #minornavigation ul li a img {
@@ -323,3 +324,7 @@
 #minornavigation ul li {
 	float: right;
 }
+
+#minornavigation ul {
+     list-style: none !important;
+     }


--- a/setup.py	Wed Feb 02 11:00:32 2011 +0100
+++ b/setup.py	Tue May 24 14:52:42 2011 +0200
@@ -21,7 +21,6 @@
       install_requires=[
           # -*- Extra requirements: -*-
           'ckanclient>=0.3',
-          'lxml>2.2.6'
       ],
       entry_points="""
       # -*- Entry points: -*-

Repository URL: https://bitbucket.org/okfn/ckanextiati/

--

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