From: Dan F. <dfr...@cs...> - 2004-07-14 20:27:53
|
I am looking at how the InterWikiMap page displays, because this is an example of a page whose content and rendering are noticeably different from each other. I am wondering whether I should declare a new page type PageType_WikilensList analogous to PageType_InterWikiMap, and use that to scrape what I want out of the page source (list items which are term-definition style, list owner, list type for example "favorites") and display it however I want. ** Question: Is that a good idea? Anyway, while I was looking at it, I got very confused about how it's displayed, and that's because if you save version N of InterWikiMap, it displays version N-1. This is a bug, no? I have caching NONE, and furthermore I instrumented WikiDB_Page::save() to print "wikitext" (the actual text of the page) and "type" (the PageType_InterWikiMap-interpreted version, which turns out to be N-1). I include it below my sig, and you can see that the wikitext doesn't match the type. Note: I'm running phpwiki 1.3.9+ with a 'SQL' backend on Linux with Apache. ** Question: Should I be filing these as bugs @ SourceForge, or is it sufficient to email phpwiki-talk? I am currently trying to figure out where the interpretation happens. For some reason, I find InlineParser, BlockParser, etc. incredibly time consuming to figure out. Dan wikitext: The InterWiki map used on this wiki is listed below. The map is taken from the text in the verbatim block below. (But this only works if this page is locked.) <verbatim> WikiPedia http://www.wikipedia.com/wiki </verbatim> type: pagetype_interwikimap Object ( [_map] => Array ( [WikiPedia] => http://www.wikipedia.com/wiki [foo] => bar50 [InterWLink] => http:/ [Upload] => http://gibson/../uploads/ ) [_regexp] => (?:WikiPedia|foo|InterWLink|Upload) ) |