Post #51,740
9/14/02 1:42:13 PM
|
Re: What do you mean not easy to fix?
Currently, the philosophy used here is that what you type in is what gets stored, apart from translation of filtered tags. Line breaks are turned into br tags at display time by Zope built-ins. In other words, if you go back to edit your post, it will look exactly like what you first typed in. One thing I disliked about ezBoard was its penchant for hopelessly mangling stuff that had ezcodes embedded.
In order to fix line breaks in pre tags, I would either need to filter line breaks out of pre tags upon display, or before the data is stored. Doing it at display time is a cpu hit; doing it before the data is stored breaks the previous assertion by changing what the user has typed in.
It is also likely to take me longer than five minutes, which is the threshold I typically use for "is this straightforward or not"... ;-)
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #51,742
9/14/02 1:51:24 PM
|
Ah. I would have used a different strategy
I would have done all of my mangling at one place, and then stored both the unedited original and the mangled display code in different fields. Then on display there would be no separate mangling that worked according to different rules.
Cheers, Ben
"Career politicians are inherently untrustworthy; if it spends its life buzzing around the outhouse, it\ufffds probably a fly." - [link|http://www.nationalinterest.org/issues/58/Mead.html|Walter Mead]
|
Post #51,743
9/14/02 1:54:27 PM
|
That's one of the possible fixes.
As it was, I used the "simplest thing that works" strategy when I was building the site. :-) But, adding an extra field, adding code for storing the originals, etc. would again take longer than my 5 minute threshold... Also, it would effectively double the amount of storage used for the posts.
Anyway, back to bearding the C++ dragon here at work. I find that C++ quickly saps my will to do any sort of other programming, no matter how fun.
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #51,749
9/14/02 3:47:42 PM
|
Understood
I don't think that doubling the storage is a big issue. But taking time that you don't want to devote, that I know well. And I also understand intimately how doing something that you don't like can ruin the fun of doing anything vaguely similar...
Cheers, Ben
PS You are working today? Hope this doesn't become a habit...
"Career politicians are inherently untrustworthy; if it spends its life buzzing around the outhouse, it\ufffds probably a fly." - [link|http://www.nationalinterest.org/issues/58/Mead.html|Walter Mead]
|
Post #51,754
9/14/02 4:03:59 PM
|
Re: Understood
There's a big production drop coming up soon, and I have jury duty in a week. So, I have to plan on not having the time necessary to get everything done.
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #51,759
9/14/02 4:13:27 PM
|
Good luck then
I don't know how it is for you, but in New York the fastest way through jury duty is just to get on the first straightforward case that you can. (Note that grand juries are usually not straightforward.)
Barring that, well point out that you know what jury nullification is and are not afraid to use it - that is often good cause to get off of a jury. :-)
Cheers, Ben
"Career politicians are inherently untrustworthy; if it spends its life buzzing around the outhouse, it\ufffds probably a fly." - [link|http://www.nationalinterest.org/issues/58/Mead.html|Walter Mead]
|
Post #51,744
9/14/02 1:57:38 PM
|
Addendum:
Note that the strategy that I employed certainly does not preclude moving to a double storage at a later date. Storing already mangled posts, however, would have made doing so nearly impossible.
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #51,748
9/14/02 3:45:07 PM
|
Noted
"Career politicians are inherently untrustworthy; if it spends its life buzzing around the outhouse, it\ufffds probably a fly." - [link|http://www.nationalinterest.org/issues/58/Mead.html|Walter Mead]
|