#3425: WebAdmin should be more conservative with trac.ini
-------------------------+--------------------------------------------------
Reporter: eblot | Owner: cboos
Type: enhancement | Status: closed
Priority: normal | Milestone: 0.10
Component: webadmin | Version: devel
Severity: minor | Resolution: fixed
Keywords: |
-------------------------+--------------------------------------------------
Changes (by cboos):
* resolution: => fixed
* status: new => closed
Comment:
Sorry, I applied attachment:config_save_in_lexical_ordering-r3538.patch
(improved the way described in comment:10) as r3556, before seeing your
reply...
Replying to [comment:11 eblot]:
> Replying to [comment:10 anonymous]:
> Is ''anonymous'' eq ''cboos'' ?
Sure ;)
> but "%s" % (unicode_value) generates a UnicodeEncodeError, doesn't it?
no, it gives you back `unicode_value` (i.e. is equivalent to `u"%s"`)
> > I'll add a `# -*- coding: utf-8 -*-` first line to the file, to make
that clear.
> You mean in the trac.ini file? Make it less pythonic (users/admin don't
have to care about the language and naming conventions used for Trac),
something like
It's not (only) a Trac or Python convention, it's an Emacs convention and
I believe
Emacs is widely used.
> > Also, there's no support yet for Unicode keys and section names,
> > as I think this would have been overkill.
>
> Plugins may need non-ascii values. A typical case is the
th:TracFrenchTranslation which stores the translated term in the ini file.
The configuration file should support UTF-8 natively (but no other
encoding scheme).
Ok, I'll think about adding this later.
--
Ticket URL: <http://trac.edgewall.org/ticket/3425>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets