Re: Some questions about file handling + some other things

"John P. Rouillard" <[email protected]>
Newsgroups gmane.comp.bug-tracking.roundup.user
Message-ID <[email protected]>
Hi Nagy:

Sorry for the late reply. I was not feeling well yesterday.

In message <20210325024931.57054746@Dell>,
Nagy Gabor writes:
>I wanted to use this to group the files (=documents) of a task item
>by their 'filetype' (=category), similarly to a Class' index view: First
>list documents with type "copy of diploma", then ... And since
>'filetype' is a user-editable (sorted) list, I do not want to hard-code
>it to my html template.
>
>> I would like to deprecate its use.
>
>I am fine with that, too. As I said in my reply to John's email, it can
>be easily replaced by Python's sorted() function (by accessing _value).
>
>> > Second, this method does not seem to respect the data type of the
>> > 'order' property of 'filetype' class.  
>> 
>> This is definitely worth a bug-report, especially if this also applies
>> to sorting by non-multilinks.
>> I *think* we currently allow only strings as key- order- and label
>> properties. This should probably change.
>
>If this is the case, then I should quickly modify my schema.py soon,
>because my schema.py is full of order=Integer(). :) So I am happy that
>I brought this up. 

Actually you should't do that. Right now only the sorting of the items
in a multlink are messed up. If you were to have an index page for the
items integer order (soted by the database) would work fine if you
sorted by document.

It's only if you use sorting in python (e.g the subsort on a
multilink) that it's broken.  I think we have properly identified the
cause. We should be able to develop a fix for it that should apply
cleanly to 2.0.0. Ralf do you agree?

I'll try to work on it this weekend if I am feeling better. Ralf if
you want to try to fix/test this beofre i can get to it feel free. I
don't think there is a ticket for it.

--
				-- rouilj
John Rouillard
===========================================================================
My employers don't acknowledge my existence much less my opinions.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.