Re: Templates and customization
Georg Bauer <gb-BRhJDZTO+/[email protected]> Fri, 12 Mar 2004 20:07:14 +0100
| Newsgroups | gmane.comp.pythin.pyds.devel |
|---|---|
| Message-ID | <r02010100-1028-7A066DDD745811D8BE7D000A9573A72A@[10.0.0.145]> |
Hi! > The specific changes I made are in PreferencesTools.py and > WeblogTemplate.tmpl, no *Rendering changes were necessary, fortunately. Ah, you are talking about the list of categories on the desktop. That wasn't clear to me from your first post. Ok, with the desktop things are a bit different. I think it would be ok to have stuff in the template, so people can customize it if they want to, but use macros and helper stuff from python code. I assume you made the number of columns for the categories customizable in the preferences? > (And for organizing something into three columns, "<table>" is the > correct solution anyhow, even on an otherwise pure-CSS site. ;-) ) Oh, three-column-layouts can be made with just CSS quite easily. But since w3m doesn't support CSS layout, I need tables at least in the desktop view. > So I guess my question would be, which would you prefer right now, a > patch that allows you to have your categories rendered in columns purely > in Cheetah, or a patch that moves category rendering into Nuggets, > leaves relevant CSS hooks, and changes the *.tmpl files to use the > nugget? Another way of looking at it is "Do you want to move up that I'd say change the template, create some code that does the tabular layout (sounds like a macro that takes a list of checkboxes and does a tabular layout - this could be reused in other cases) and use that in the template. Sure, could be done with a nugget, but I think if it's just some code to render checkboxes in tabular form, I don't think it's worth to be put in a nugget, as I don't think anybody will ever change that code later on. The desktop mostly uses templates and stuff like that because it's easier to write the HTML code that way than to integrate it into the Python code. It's not because of much need for configuration - it's the desktop, there might be the need to put in hooks and stuff like that, but I don't think it really needs to be reconfigured as much as the rendering. The rendering, on the other hand, is what other people see and that needs as much ways of tweaking as possible ;-) bye, Georg