#2695: Pretty icons for various file types.
------------------------------------------------+---------------------------
Reporter: Curtis Buys <[EMAIL PROTECTED]> | Owner: jonas
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: browser | Version: 0.9.3
Severity: trivial | Resolution:
Keywords: |
------------------------------------------------+---------------------------
Comment (by Curtis Buys <[EMAIL PROTECTED]>):
Anyway, as I was saying, my grasp of Python is somewhat limited. I
learned while putting this much together that there's no switch/select
case type of structure in Python, so I imitated an idiom I discovered
along the way.
I started with 'Rakefile' because I can match the whole file name against
a string. From here I could use some help matching against file
extensions, perhaps with regular expressions. I'd also considered working
with mime_types to determine which CSS class should be applied.
Ideally, IMO, the icon mapping would occur in some misc. configuration
file that could be easily updated, but my knowledge of Python and Trac
internals prevented me from getting that far. Anyone want to lend some
help and/or pointers?
Thanks!
--
Ticket URL: <http://projects.edgewall.com/trac/ticket/2695>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets