On Nov 19, 2008, at 2:59 PM, Osipov wrote:
> I'm using HTMLWriter just because I found an example.
> If it is depending on writer, its fine, because, I need to modify
> writer anyway.
> And one another moment. About red links, like in Mediawiki. Parser
> must find them, because Writer knows nothing about database. If it is
> supported, how do parser checks whether article exists or not? Having
> databases with interface like CDB, an only way to check it is to get
> an article text and make red link if text is None. But we can have
> many links to very large pages, and this way is very slow.

The parser currently does not check for the existence of linked pages.  
If you implement this in the writer, using CDB these calculations  
should be very fast since it is no more than a hashtable lookup to  
decide whether a page exists.

Maybe it is helpful to have a look at the htmlwriter code from the  
WikiBrowse project:
http://dev.laptop.org/git?p=projects/wikiserver;a=blob;f=server.py;h=51e7164ef59f8d00d6f3cb38463e6e4c71a925f1;hb=HEAD

Heiko



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"mwlib" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/mwlib?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to