[ckan-dev] uppercase file format
Isabel Ruiz
isaruizmellado at gmail.com
Fri Aug 9 11:04:59 UTC 2013
OK! Thanks!
On Fri, Aug 9, 2013 at 11:38 AM, David Raznick <david.raznick at okfn.org>wrote:
> Hello
>
> There is the after show hook you can do this in an extension.
>
> Look here lines 369 to 372
>
>
> https://github.com/okfn/ckanext-geodatagov/blob/master/ckanext/geodatagov/plugins.py#L369
>
> This is a complicated example as it does it for many formats but you may
> want to reuse the logic as it covers a wide range of formats.
>
>
> https://github.com/okfn/ckanext-geodatagov/blob/master/ckanext/geodatagov/plugins.py#L57
>
> Thanks
>
> David
>
>
>
> On 8 August 2013 22:10, Ian Ward <ian at excess.org> wrote:
>
>> Hi Isabel,
>>
>> That little bit of magic is buried in model_dictize.py:
>>
>> https://github.com/okfn/ckan/blob/master/ckan/lib/dictization/model_dictize.py#L105
>>
>> Unfortunately it's not in a place that it can be overridden without
>> changing the CKAN source, such as a validator in the schema.
>>
>> On Wed, Aug 7, 2013 at 7:17 AM, Isabel Ruiz <isaruizmellado at gmail.com>
>> wrote:
>> > Hi!
>> >
>> > I have installed CKAN 2.0.1
>> >
>> > I have added resources, that contains differents files formats (csv,
>> pdf,
>> > zip) .
>> >
>> > I made this mistake:
>> >
>> > First: I added pdf files, I have written 'PDF' in file type.
>> > Second: I added csv files, I have written 'csv' in file type.
>> >
>> >
>> > I see CKAN files formats filters PDF (uppercase) and csv (lowercase)
>> files.
>> >
>> > I need change format file csv (lowercase) to CSV (uppercase).
>> > I try:
>> > - edit resource and change csv to CSV type file, but it changes
>> > automatically to lowercase again.
>> >
>> > How can I change this?
>> >
>> >
>> > Thanks!
>> >
>> >
>> >
>> >
>> >
>> >
>> > --
>> > Isabel M. Ruiz Mellado
>> > http://about.me/isabelruiz
>> >
>> > _______________________________________________
>> > 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
>>
>
>
> _______________________________________________
> 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
>
>
--
Isabel M. Ruiz Mellado
http://about.me/isabelruiz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130809/d5cc57bd/attachment-0001.html>
More information about the ckan-dev
mailing list