Re: Can a custom field have two database columns?

2006-06-23 Thread arthur debert
HI Ian. Thanks for the pointer. It's an interesting approach though, if I did understand it, that requeries the "raw" markup source's name to be hardcoded into the middleware, right (e.g. 'description')? If so, I am back to square one, for among all models I have quite a few that must be parsed

Re: Can a custom field have two database columns?

2006-06-23 Thread Ian Holsman
Hi Arthur. I do something similar to this. I chose to implement it in middleware http://svn.zyons.python-hosting.com/trunk/zilbo/common/text/ middleware/Markup.py in a nutshell, if the 'description' field exists it will create the description_html field in the post, which would get applied

Can a custom field have two database columns?

2006-06-23 Thread arthur debert
In a current project, I've got a lot of fields that must accept markup. Currently I am using markdown to parse the raw text. I am aware of the useful template tags to apply markdown on the template itself, but since reads are much more common than writes I would like to store the markup on the