[ckan-dev] User Quota

Pabitra Dash pkdash_reena at hotmail.com
Sat Oct 26 05:36:32 UTC 2013


Thanks Nigel for responding to my email. User quota implementation is not a high priority for us at this time. I guess we will wait for the new CKAN version (2.2) before doing any implementation related to user quota.
 
 
Pabitra


 
From: nigel.babu at okfn.org
Date: Mon, 21 Oct 2013 12:18:29 +0530
To: ckan-dev at lists.okfn.org
Subject: Re: [ckan-dev] User Quota

Hi Pabitra,

There isn't any configuration to implement user quota at this time. Implementing such a user quota system in CKAN is bound to be challenging. For starters, I'm not sure how you'd do this from an extension besides monkey patching.



The place to look into would be ckan/controllers/storage.py. We store uploaded-by as metadata along with the file. You would need to write an endpoint to check for filesize and then call it from JS before doing the file upload. The actual file upload is handled by JS in CKAN.



However, we're in the middle of changing how the filestore works significantly. This should land in a few weeks for 2.2 and this will, unfortunately, make your changes incompatible with future versions.


Nigel Babu


Developer  |  @nigelbabu

The Open Knowledge Foundation

Empowering through Open Knowledge

http://okfn.org/  |  @okfn  |  OKF on Facebook  |  Blog  |  Newsletter






CKAN | http://ckan.org/ | @CKANproject | the world’s leading open-source data portal platform




On 21 October 2013 11:40, Pabitra Dash <pkdash_reena at hotmail.com> wrote:





Hi All,
 
Is there any configuration settings to implement user quota to restrict to a certain limit of disk data space for each user data upload? If there is no such settings then would like any pointers on how to implement such a user quota system in CKAN.


 
Thanks,
Pabitra


 		 	   		  

_______________________________________________

ckan-dev mailing list

ckan-dev at lists.okfn.org

http://lists.okfn.org/mailman/listinfo/ckan-dev

Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev





_______________________________________________
ckan-dev mailing list
ckan-dev at lists.okfn.org
http://lists.okfn.org/mailman/listinfo/ckan-dev
Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20131026/6d130b8f/attachment-0001.html>


More information about the ckan-dev mailing list