From: Dan F. <dfr...@cs...> - 2005-03-24 16:10:37
|
Any word on what issues remain before release, and an estimated time? As I have not been pitching in, I can't complain. Just wondering. Dan P.S. By the way, I took the spam code for more-than-20-links for our next release of StormZebra. Thanks. We got massively spammed, so we needed something, since we don't yet have an active community. I turned the "20" into a config param (SPAM_MAX_EXTERNAL_LINKS). I also changed the error message that occurs when the spam happened. It used to say "Conflicting edits", which seemed wrong. Of course I didn't take all of the code in phpwiki CVS current, so maybe I missed something. Anyway, I tried to attach our copy of editpage.php, but it got bounced as spam by SourceForge. It has all sorts of other mods too (e.g., structured data), but feel free to take whatever is useful. For example: @@ -335,19 +411,21 @@ $oldtext = $current->getPackedContent(); $newtext =& $this->_content; // 1. Not more then 20 new external links - if ($this->numLinks($newtext) - $this->numLinks($oldtext) >= 20) { + if (!defined('SPAM_MAX_EXTERNAL_LINKS')) define('SPAM_MAX_EXTERNAL_LINK S', 20); + if ($this->numLinks($newtext) - $this->numLinks($oldtext) >= SPAM_MAX_E XTERNAL_LINKS) { // mail the admin? $this->tokens['PAGE_LOCKED_MESSAGE'] = HTML($this->getSpamMessage(), - HTML::p(HTML::em(_("Too many external links.")))); + HTML::p(HTML::em(sprintf(_("Too many external links (more than %d)."), SPAM_MAX_EXTERNAL_LINKS)))); return true; } ... ====== @@ -117,35 +134,95 @@ // output, and update the version $this->_content = implode ("\n", $output); $this->_currentVersion = $this->current->getVersion(); - $this->version = $this->_currentVersion; $unresolved = $diff->ConflictingBlocks; + if ($this->version != $this->_currentVersion) { + // saveFailed because of conflicting edits + $this->version = $this->_currentVersion; $tokens['CONCURRENT_UPDATE_MESSAGE'] = $this->getConflictMessage($unresolved); ... Reini Urban wrote: > Dan Frankowski schrieb: > >> Reini Urban wrote: >> >>> I cannot release it at this state because certain unneeded features >>> are not fully implemented, and some optional extensions are buggy. >> >> >> >> I understand. That's a tough situation. Releases always end up in >> that situation. >> >> Could you perhaps disable the unneeded features and optional >> extensions (make it so people can't trigger the bugs), release, then >> try to fix the unneeded features and optional extensions, and release >> again? >> >> "Release early, release often": >> http://www.catb.org/~esr/writings/cathedral-bazaar/cathedral-bazaar/ar01s04.html > > > > > > I know. But it's already almost a year, and this should be more stable > than 1.3.10. > There are still several issues known to me. |