Message2076
Logged In: YES
user_id=113859
Hi Alexander,
and now to the question of where to save the charset,
which seems unavoidable to save somewhere. ;-)
Reading RFC2046 the MIME maintype is "text" and
the subtype is "plain". "charset" would be a critical, but
optional parameter. So where do we save this within roundup?
Two ideas:
a) added as string to the filetype
b) creating a new parameter to the file class
b.1) calling this new parameter "charset"
b.2) making this new parameter more generic
Idea a) has the potential to break code that relies on the
assumption that all filetypes are of the form MAIN/SUB.
In addition it would always need more parsing to seperate
the main- and subtypes from the parameters, if they are
needed seperately.
Idea b.1) would need a change in the schema and be specific
to "text" maintypes. "text" will be an important case, so it
might be fine.
Idea b.2) would be generic for all parameters that are there
to come for any attachment type, so it probably should be
implemented ideally similar to a python dictionary.
Implementation and usage in the code would be more
complicated as in b.1.
In principle I do not care which solution is implemented,
as long as one is done, though. I have a tendency for the
b.1 or b.2 solutions, as I cannot judge if a) will break
anything and I do not like parsing the string each time I
want a parameter.
Thanks again for considering this
and I hope you will have a happy rollover!
Bernhard |
|
Date |
User |
Action |
Args |
2009-02-03 14:21:31 | admin | link | issue1381559 messages |
2009-02-03 14:21:31 | admin | create | |
|