[ckan-dev] Permissions and workflows

Alice Heaton a.heaton at nhm.ac.uk
Mon Jun 23 11:43:31 UTC 2014


Hi,

On 20/06/14 20:04, Pabitra Dash wrote:
>
> I am now trying to see how your userdatasets plugin works. I am 
> getting the following error at the module load time:
>
> AttributeError: 'functools.partial' object has no attribute '__module__'

Thanks for reporting this. I've created an issue here - 
https://github.com/NaturalHistoryMuseum/ckanext-userdatasets/issues/1

Rather than work out what the difference is between our two setups, I 
will rewrite the code not to use partials. The change is trivial, and I 
expect this issue will keep creeping up otherwise as CKAN use's it's own 
wrappers and decorators a lot.

I'll let you know what it's fixed.

Cheers,
Alice


>
> Pabitra
>
>
>
>
>
> > From: a.heaton at nhm.ac.uk
> > To: ckan-dev at lists.okfn.org
> > Date: Mon, 16 Jun 2014 13:50:53 +0000
> > Subject: Re: [ckan-dev] Permissions and workflows
> >
> >
> > Pabitra Dash wrote:
> >
> > > We had a similar workflow issue that we solved via an extension 
> that we implemented. Basically the extension hides the Edit button for 
> a displayed dataset if the user is not the owner of the dataset.
> >
> > Hi Pabitra,
> >
> > I'm not sure whether your implementation works at the theme level 
> (as you mention "hidding" the button) or the permission level. Either 
> way, it seems to work by removing permissions from the 'editor' role. 
> In case you're interested we've made an extension (which works at the 
> permission level) that works by adding permissions to the 'member' 
> role instead. If you are interested you can help us by testing it! See 
> my other post for details.
> >
> > Best Wishes,
> > Alice Heaton
> > _______________________________________________
> > ckan-dev mailing list
> > ckan-dev at lists.okfn.org
> > https://lists.okfn.org/mailman/listinfo/ckan-dev
> > Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140623/3094b21d/attachment-0003.html>


More information about the ckan-dev mailing list