[GeneralDiscussion] darcs patch: Upgrade SearchableText and Title if they are TextIndex...

[email protected] (betabug.darcs)
Newsgroups gmane.comp.web.zope.zwiki
Message-ID <20080502203418.989CB1F5534__17862.0391794995$1209760563$gmane$org@briareus.betabug.ch>
Fri May  2 22:27:11 EEST 2008  [email protected]
  * Upgrade SearchableText and Title if they are TextIndex based.



New patches:

[Upgrade SearchableText and Title if they are TextIndex based.
[email protected]**20080502192711] hunk ./Admin.py 444
-            if not i in catalogindexes:
+            if not i in catalogindexes or \
+            catalog._catalog.getIndex(i).meta_type == 'TextIndex':
+                if i in catalogindexes: # it's there, so it's the wrong kind
+                    catalog.delIndex(i)

Context:

[resolve sendMailTo conflict
Simon Michael <[email protected]>**20080502200623] 
[refactor sendMailTo
Simon Michael <[email protected]>**20080502192315] 
[provide x access key only when external edit is available
Simon Michael <[email protected]>**20080502182412] 
[preserve unicode when evaluating DTML (#1411)
Simon Michael <[email protected]>**20080502155438] 
[fix an unsafe use of page name which could break editform (#1376, Noboyuku Koyoshi)
[email protected]**20080502033908] 
[be more careful when mutating the parents property, to avoid inconsistencies (#1353, Willi Langenberger)
[email protected]**20080502040059] 
[dublin core Creator method now returns the CMF creators property if present, ignoring Zwiki's creator property (#1302)
[email protected]**20080502020025] 
[remove unused allowed argument
Simon Michael <[email protected]>**20080501234746] 
[require at least one word character after the : to make an interwiki link
Simon Michael <[email protected]>**20080501233821] 
[drop /updateCatalog & add /index alias for index_object
Simon Michael <[email protected]>**20080501233809] 
[fix LOG macro to pass tests
Simon Michael <[email protected]>**20080501194524
 toencoded & tounicode are now available as functions, and LOG now encodes to utf8.
] 
[fix event log message formatting
Simon Michael <[email protected]>**20080501182526] 
[provide indexObject to avoid revision indexing in plone 3 (#1407, Dorneles Tremea)
Simon Michael <[email protected]>**20080501171817] 
[fix yesterday's wwml patch
Simon Michael <[email protected]>**20080501171721] 
[fix a unicode-related issue properties form breakage
Simon Michael <[email protected]>**20080430205610] 
[fix a unicode-related WWML page type breakage
Simon Michael <[email protected]>**20080430201457] 
[fix a unicode-related rss feed breakage
Simon Michael <[email protected]>**20080430201933] 
[fix a unicode-related recent changes breakage
Simon Michael <[email protected]>**20080430201342
 Page brains now contain lastEditor, not last_editor.
] 
[fix a unicode-related mail-out breakage
Simon Michael <[email protected]>**20080430201120] 
[Create ZCTextIndexes with Unicode splitters by default.
[email protected]**20080501184537] 
[Added a simple unicode aware splitter, based on code by Stefan H. Holek.
[email protected]**20080501164607
 The following code is mostly taken from the UnicodeLexicon product by 
 Stefan H. Holek (ZPL) which can be found at:
 http://www.zope.org/Members/shh/UnicodeLexicon
 Many thanks to you Stefan!
 
 We are using this here, so people with minimal needs don't have to
 install extra products. If you need more than this install a more
 specific splitter (e.g. a CJK splitter) create a new "ZCTextIndex
 Lexicon" and recreate the "SearchableText" and "Title" indexes with your
 new lexicon.
 
] 
[Added some more functional tests (filling out the options, searching)
[email protected]**20080430181047] 
[add a "created" timestamp at top right, like Michael Haubenwallner's on the zope3 wiki
Simon Michael <[email protected]>**20080427175953] 
[fix WWML page type unicode handling
Simon Michael <[email protected]>**20080427093426] 
[make comment's mail-sending optional
Simon Michael <[email protected]>**20080426212647] 
[capitalisation
Simon Michael <[email protected]>**20080426212449] 
[more release notes cleanup
Simon Michael <[email protected]>**20080426182510] 
[release note cleanups and rendering fixes
Simon Michael <[email protected]>**20080426180347] 
[style guide cleanups
Simon Michael <[email protected]>**20080426064426] 
[doc file cleanups for sphinx
Simon Michael <[email protected]>**20080426061324] 
[a basic sphinx doc building setup (easy_install sphinx, make doc)
Simon Michael <[email protected]>**20080426061304] 
[utf8-encode CHANGES.txt, for Sphinx
Simon Michael <[email protected]>**20080426051644] 
[add suffix to skins readme
Simon Michael <[email protected]>**20080426051536] 
[give all doc files a .txt suffix to help tools like Sphinx
Simon Michael <[email protected]>**20080426045333] 
[fix failing test and wiki upgrades: be more robust when rebuilding outline
Simon Michael <[email protected]>**20080426032931] 
[fix failing func. test: we were appending ?redirect twice in options link
Simon Michael <[email protected]>**20080426032858] 
[fix failing test: yes, do encode the from and subject fields in a Message
Simon Michael <[email protected]>**20080426032803] 
[fix failing test: use the unicode-aware getParents accessor
Simon Michael <[email protected]>**20080426032706] 
[resolve testExcerptAt conflict
Simon Michael <[email protected]>**20080425214002] 
[make tests pass, move test_excerptAt
Simon Michael <[email protected]>**20080425211609] 
[mark as unstable version
Simon Michael <[email protected]>**20080423195233] 
[remove cruft
Simon Michael <[email protected]>**20080308193434] 
[Skin cleanups mega-patch - rearrange templates, enable nav links and access keys in more places, skin machinery cleanups and basic support for alternate filesystem skins
Simon Michael <[email protected]>**20080423193924
 Old changes detail:
 
   Sat Mar  8 08:03:24 PST 2008  Simon Michael <[email protected]>
     * ratingform css id
   
   Sat Mar  8 08:03:56 PST 2008  Simon Michael <[email protected]>
     * accesskeys css id and div wrapper
   
   Sat Mar  8 08:04:18 PST 2008  Simon Michael <[email protected]>
     * content css id
   
   Sat Mar  8 08:05:01 PST 2008  Simon Michael <[email protected]>
     * navlinks css id
   
   Sat Mar  8 08:06:04 PST 2008  Simon Michael <[email protected]>
     * remove duplicate access key definitions from navlinks since they require pressing enter in firefox 3
   
   Sat Mar  8 08:06:27 PST 2008  Simon Michael <[email protected]>
     * pagemanagementform css id
   
   Sat Mar  8 08:11:09 PST 2008  Simon Michael <[email protected]>
     * main css id; move accesskeys, links and ratingform into pageheader template
   
   Sat Mar  8 08:11:47 PST 2008  Simon Michael <[email protected]>
     * move pagemanagementform into a new pagefooter template
   
   Sat Mar  8 08:30:32 PST 2008  Simon Michael <[email protected]>
     * resolve accesskeys conflict
   
   Sat Mar  8 08:47:13 PST 2008  Simon Michael <[email protected]>
     * resolve links conflict
   
   Sat Mar  8 09:00:25 PST 2008  Simon Michael <[email protected]>
     * resolve pageheader conflict
   
   Sat Mar  8 11:14:18 PST 2008  Simon Michael <[email protected]>
     * started to split wiki and page access keys, but thought better of it
   
   Sat Mar  8 11:16:07 PST 2008  Simon Michael <[email protected]>
     * add wikifooter and wikiheader - visible header/footer for wiki-contextual views (maybe merge siteheader/sitefooter later)
   
   Sat Mar  8 11:18:16 PST 2008  Simon Michael <[email protected]>
     * include either pageheader or wikiheader in every view, for appropriate links, access keys, etc. Polish later.
   
   Sat Mar  8 12:04:04 PST 2008  Simon Michael <[email protected]>
     * go back to showing all nav links everywhere, just like access keys
   
   Mon Mar 10 11:08:08 PDT 2008  Simon Michael <[email protected]>
     * drop the s for search form access key, so s for save edit works without enter
   
   Sat Mar  8 08:03:01 PST 2008  Simon Michael <[email protected]>
     * nub
   
   Sat Mar  8 08:15:52 PST 2008  Simon Michael <[email protected]>
     * some skin machinery cleanup and basic support for alternate filesystem skins, selectable by "skin" property or request var
   
   Sat Mar  8 09:04:26 PST 2008  Simon Michael <[email protected]>
     * resolve Views conflict
   
   Wed Apr 23 11:24:12 PDT 2008  Simon Michael <[email protected]>
     * resolve skins/unicode conflict
 
] 
[UnicodeGeddon mega-patch - switch to unicode for internal text handling.
Simon Michael <[email protected]>**20080423175324
 This collapses all patches from the unicode branch, their conflict
 resolutions, and some subsequent unicode patches into one mega-patch which
 should avoid the conflict problem and preserve quick pushing between
 stable and unstable. Here is the old darcs changes detail:
 
   Mon Jun  4 09:04:16 PDT 2007  [email protected]
     * UnicodeGeddon! a big set of changes switching to unicode for internal text handling. Still in progress (#1347)
   
   Wed Jun  6 09:17:43 PDT 2007  [email protected]
     * notes
   
   Wed Jun  6 09:19:54 PDT 2007  [email protected]
     * unicodegeddon: add proper conversions to all text handling methods as per notes
   
   Sat Jul 14 10:08:48 PDT 2007  [email protected]
     * unicode-aware lastEditor, lastEditorIp methods
   
   Sat Jul 14 10:33:27 PDT 2007  [email protected]
     * resolve unicode/safe_hasattr conflicts
   
   Sat Jul 14 10:36:43 PDT 2007  [email protected]
     * notes
   
   Mon Aug  6 16:04:09 PDT 2007  [email protected]
     * unicodegeddon: use last editor accessors in templates (custom RecentChanges, editform, history templates may need upgrading)
   
   Mon Aug  6 16:58:02 PDT 2007  [email protected]
     * unicodegeddon: fix test errors
   
   Wed Aug 22 16:04:47 PDT 2007  [email protected]
     * notes
   
   Sat Aug 25 02:03:30 PDT 2007  [email protected]
     * unicodegeddon: fix last two unicode-related test failures
   
   Thu Sep 20 10:14:44 PDT 2007  Simon Michael <[email protected]>
     * resolve Editing_tests conflict
   
   Sat Oct 27 23:45:44 PDT 2007  Simon Michael <[email protected]>
     * resolve rename cleanup/unicode conflict
   
   Sat Oct 27 23:48:35 PDT 2007  Simon Michael <[email protected]>
     * resolve conflict
   
   Sat Oct 27 23:54:31 PDT 2007  Simon Michael <[email protected]>
     * resolve conflicts
   
   Sat Oct 27 23:55:21 PDT 2007  Simon Michael <[email protected]>
     * resolve conflict
   
   Sun Oct 28 00:31:51 PDT 2007  Simon Michael <[email protected]>
     * resolve strange Editing.py conflict
   
   Thu Feb 21 22:12:57 PST 2008  Simon Michael <[email protected]>
     * fix a stray breakage (checkutf8)
   
   Sun Oct 28 00:32:16 PDT 2007  Simon Michael <[email protected]>
     * resolve logging macros conflict
   
   Thu Feb 21 22:17:30 PST 2008  Simon Michael <[email protected]>
     * resolve unicode/cleanup conflict
   
   Thu Feb 21 22:32:45 PST 2008  Simon Michael <[email protected]>
     * resolve unicode/cleanup conflict
   
   Thu Feb 21 22:56:02 PST 2008  Simon Michael <[email protected]>
     * resolve unicode/cleanup conflict
   
   Thu Feb 21 23:02:03 PST 2008  Simon Michael <[email protected]>
     * resolve unicode/cleanup conflict
   
   Thu Feb 21 23:07:55 PST 2008  Simon Michael <[email protected]>
     * resolve unicode/cleanup conflict
   
   Thu Feb 21 23:18:45 PST 2008  Simon Michael <[email protected]>
     * resolve conflict
   
   Thu Feb 21 23:36:17 PST 2008  Simon Michael <[email protected]>
     * resolve conflict
   
   Thu Feb 21 23:53:52 PST 2008  Simon Michael <[email protected]>
     * resolve conflict
   
   Sat Mar  8 09:50:31 PST 2008  Simon Michael <[email protected]>
     * fix help page with new unicode code
   
   Sat Mar  8 11:09:51 PST 2008  Simon Michael <[email protected]>
     * purge outline cache before upgradeAll or fixAllPagesEncoding so they can upgrade a non-unicode wiki
   
   Sat Mar  8 11:34:57 PST 2008  Simon Michael <[email protected]>
     * fix a unicode bug caught by the tests, comments were not recognised
   
   Mon Mar 10 11:08:36 PDT 2008  Simon Michael <[email protected]>
     * fix issue page rendering
   
   Mon Mar 10 11:14:17 PDT 2008  Simon Michael <[email protected]>
     * make fixAllPagesEncoding work better and quicker; it no longer re-renders
   
   Mon Mar 10 11:14:49 PDT 2008  Simon Michael <[email protected]>
     * note that message objects hold encoded text
   
   Mon Mar 10 14:01:48 PDT 2008  Simon Michael <[email protected]>
     * a bunch more unicode-related fixes. We can now upgradeAll the content of zwiki.org then serve it without obvious problems (complete cataloging requires unicode-aware indexes)
 
] 
[the bones of 0.61 release notes
Simon Michael <[email protected]>**20080411230600] 
[fix the plone 3 document actions display glitch - hide them
Simon Michael <[email protected]>**20080411223339] 
[pages now returns nothing without a fully-configured catalog (to avoid blowing up zodb cache when viewing old revisions)
Simon Michael <[email protected]>**20080311225700] 
[optimise the bottom-quoting regexp a little.. I suspect it's blowing up memory on mailin
Simon Michael <[email protected]>**20080213123018] 
[More functional tests: recentchanges and options
[email protected]**20080213112039] 
[make plone member email lookup more robust to fix non-mail-out (#1400)
Simon Michael <[email protected]>**20080328150941] 
[make lastLog more robust, prevent occasional page breakage
Simon Michael <[email protected]>**20080308092303] 
[drop the "discussion" nav link activated by GeneralDiscussion, it is a special case and confusable with per-page discussion
Simon Michael <[email protected]>**20080216224956] 
[add nav links to contents form too
Simon Michael <[email protected]>**20080214205006] 
[don't break showAccessKeys legacy url
Simon Michael <[email protected]>**20080214204924] 
[add site navigation links to all forms
Simon Michael <[email protected]>**20080214204402] 
[move access key help to help page
Simon Michael <[email protected]>**20080214204114] 
[split links macro so we can omit the page-specific nav links on forms
Simon Michael <[email protected]>**20080214200045] 
[add the nav links to the help page, testing
Simon Michael <[email protected]>**20080213112240] 
[more CHANGES updates
Simon Michael <[email protected]>**20080213110704] 
[strip some bottom-quoting from mailins
Simon Michael <[email protected]>**20080209035936] 
[include doctest in testsupport
Simon Michael <[email protected]>**20080209035718] 
[makefile cleanup
Simon Michael <[email protected]>**20080208173901] 
[replace: subscriberCount, wikiSubscriberCount with: subscriberCount, pageSubscriberCount, wikiSubscriberCount
Simon Michael <[email protected]>**20080207185156] 
[import latest zwiki-plone translations from launchpad
Simon Michael <[email protected]>**20080207041102] 
[more translation make rule cleanups
Simon Michael <[email protected]>**20080207034939] 
[import latest translations from launchpad
Simon Michael <[email protected]>**20080207034918] 
[switch to i18ndude, regenerate pot file
Simon Michael <[email protected]>**20080207025001] 
[update makefile translation docs
Simon Michael <[email protected]>**20080206175636] 
[recognise a site_footer attribute, like site_header, useful for eg stats tracking
[email protected]**20080126040833] 
[whitespace
Simon Michael <[email protected]>**20080125235821] 
[update access key help
Simon Michael <[email protected]>**20080125235815] 
[remove Makefile's trailing whitespace
Simon Michael <[email protected]>**20080124165849] 
[include Makefile in tarball so that folks can see how to run tests
Simon Michael <[email protected]>**20080124165839] 
[Print a note about Functional tests not running <2.10.
[email protected]**20071222191229] 
[Added some functional tests.
[email protected]**20071222185611
 These are implemented using zope.testbrowser, that's why they will
 unfortunately only run on Zope 2.10. The tests basically mimic a browser
 going through some page edits. In that way the tests provide a nice 
 high-level walkthrough. They are using doctest syntax and therefore it's 
 easy to add more. For an overview of the syntax, see:
 SOFTWARE_HOME/zope/testbrowser/README.txt
] 
[1397 - fix revert by re-adding setVotes.
[email protected]**20071222000704
 While rebuilding the rating/voting mechanism I had deleted setVotes()
 since revert() wants to use setVotes() to reset the votes, reverting
 resulted in an ugly traceback.
] 
[1017 - clicking create without pagename gives friendlier error now.
[email protected]**20071126180646
 This probably isn't perfect (user has to click the browsers "back"
 button), but I believe it's much, much better than displaying a
 traceback.
] 
[1352 - remove further (last?) hasattr() calls.
[email protected]**20071117150226
 Since these are in dtml or pt code, we replace them with getattr()
 calls, so we don't have to import our safe_hasattr() here. It would
 be nice if Zope had a built in safe_hasattr().
] 
[962 - Show form on issue pages in HTML markup.
[email protected]**20071117144917] 
[1348 - Quote the redirect URL for the "options" page.
[email protected]**20071105195729
 This is ammending "1348 - Setting useroptions now returns to previous page",
 the URL in a POST variable should be properly quoted. It usually works without 
 this, but it's not correct.
] 
[Catch only locale specific errors, no bare except.
[email protected]**20071013183750] 
[1391 - fixed "Footer 'create' button without page name results in AttributeError"
[email protected]**20071105185015
 In this case the name of the new page is not entered from the initial 
 "footer" form, but only on the edit/create page.
] 
[doc updates, release notes
Simon Michael <[email protected]>**20080118162912] 
[more coding style notes
Simon Michael <[email protected]>**20071104173259] 
[directory overview & more style notes
Simon Michael <[email protected]>**20071104164649] 
[add a doc file overview to README
Simon Michael <[email protected]>**20071104163944] 
[move/update some old style docs
Simon Michael <[email protected]>**20071104154420] 
[start a developer style guide, with some documentation guidelines
Simon Michael <[email protected]>**20071102174859] 
[Recorded rating change.
[email protected]**20071030110512
 We want to update CHANGES incrementally. Attempting to find a form for
 that here, which at the release could be changed quickly to the final
 release CHANGES.
] 
[Update only rating related indexes in catalog.
[email protected]**20071030085420
 We're saving some bytes by updating only the indexes actually
 related to voting. All metadata will unfortunately be updated anyway.
] 
[Switched to OOBTree for recording ratings.
[email protected]**20071030083921
 Dictionaries on persistant objects in the ZODB can only be saved by
 writing all of the object to the ZODB again. Inefficient. We're using
 a BTree now, which will save us some kB writing to disk and also
 reduces the likelyhood of ConflictErrors on the page.
 On accessting the "votes" we check for old votes still being 
 dictionaries, moving them to BTrees on-the-fly. The overhead for this
 is counterbalanced by easier recording of votes, just set the entry
 in the BTree.
] 
[Remove mentions of purple numbers in comments.
[email protected]**20071029174114] 
[clarify that handleEditText permissions check
Simon Michael <[email protected]>**20071028080428] 
[#1393 Catch ValueError too on importing unknown pagetypes.
[email protected]**20071022074304] 
[a little whitespace
[email protected]**20071028062937] 
[make linecounts
[email protected]**20071028062925] 
[oops! not running tests enough. Two typos and one bugfix
[email protected]**20071028022406] 
[create cleanup. All significant methods in Editing have now been reviewed/tightened up.
Simon Michael <[email protected]>**20071028020234] 
[move methods
Simon Michael <[email protected]>**20071028014132] 
[comment cleanup
[email protected]**20071028014019] 
[autoSubscriptionEnabled cleanup
Simon Michael <[email protected]>**20071028011715] 
[append, edit cleanup
[email protected]**20071028011427] 
[handleSubtopicsProperty cleanup
Simon Michael <[email protected]>**20071028010818] 
[handleEditText cleanup
Simon Michael <[email protected]>**20071028010617] 
[delete cleanup, drop unused updatebacklinks argument
Simon Michael <[email protected]>**20071028010321] 
[handleRename cleanup
Simon Michael <[email protected]>**20071028005220] 
[handleEditPageType cleanup
[email protected]**20071028005122] 
[move a method
[email protected]**20071028004655] 
[revert cleanup
[email protected]**20071026162019] 
[setCreatorLike, setLastEditorLike
[email protected]**20071026162005] 
[tests for new expunge methods
[email protected]**20071026160319] 
[clarification
[email protected]**20071026160308] 
[handy new manager methods expungeLastEditor, expungeLastEditorEverywhere; expunge, expungeEditsEverywhereBy cleanup
[email protected]**20071026150936] 
[PUT cleanup
Simon Michael <[email protected]>**20071019053515] 
[file upload code cleanup
[email protected]**20071018022343] 
[rename cleanup
[email protected]**20071017125051] 
[Catch only AttributeError for self.DestinationURL().
[email protected]**20071013191137] 
[cleanupText cleanup
[email protected]**20071017123631] 
[clean up subtopicsEnabled
[email protected]**20071016174006] 
[make bare page rendering at the debug prompt work again, cleanup
[email protected]**20071016172335] 
[os.mkdir will raise OSError, removed bare except.
[email protected]**20071013184205] 
[Zope version path changed in >=2.9, bare except removed.
[email protected]**20071013171756] 
[Catch only AttributeError instead of bare except clause (in old fix for #1137).
[email protected]**20071003184029] 
[Fix test_setupDtmlMethods for sitemap.xml.dtml.
[email protected]**20071003183255] 
[Change content-type of the SomePage/text (or /src) methods to UTF-8.
[email protected]**20071009085748
 Makes the /text view of wiki pages much more usefull for non-ascii languages.
] 
[removed some unused code in ZWikiPage.py
Simon Michael <[email protected]>**20071013190549] 
[notes update
[email protected]**20071010163932] 
[wording
[email protected]**20071010150624] 
[a google sitemap.xml, installed by setupDtmlMethod.. may reduce load from search bots
[email protected]**20070927201735] 
[remove the anti-spam 24 hour indexing delay introduced in 0.41, for better
Simon Michael <[email protected]>**20070925161611
  indexing of actively-edited pages (#1387)
] 
[feedUrl
Simon Michael <[email protected]>**20070924165908] 
[upgrade notes
Simon Michael <[email protected]>**20070920192543] 
[more upgrade notes
Simon Michael <[email protected]>**20070920190255] 
[clean up and add summary & upgrade notes for 0.60
[email protected]**20070920185128] 
[convert recent relnote headings to definition lists like the rest
[email protected]**20070920182235] 
[merge rc notes, add headings
[email protected]**20070920181617] 
[mailin test comment
[email protected]**20070919175328] 
[keep any text/x-darcs-patch part, as well as the first text/plain part of a mailin
[email protected]**20070919060849] 
[fix darcs patch mailin test
[email protected]**20070919055056] 
[test mailin of a darcs patch
[email protected]**20070918164333] 
[rename changes_rss to edits_rss (with a backwards compatibility alias) and
[email protected]**20070918152135
 update the docstring. Also, test forwarding to the PatchDiscussion page.
] 
[1272 - create PageBrain only for Zwiki Pages.
[email protected]**20070917193709
 Since we are now ensuring that there is always a catalog in a Zwiki,
 the method metadataFor() shouldn't be needed any more. But I'm still
 adding this patch (credits and thanks to koegler), in case some code
 hits on it in the time between an upgrade and running the /upgradeAll
 method.
] 
[TAG release-0-60-0
[email protected]**20070915222130] 
Patch bundle hash:
6c4128bda38a326726bf80b7bdabac302fcc4341

--
forwarded from http://zwiki.org/GeneralDiscussion#[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.