2008-04-29T11:46:16  <nahor> hi, anybody around?
2008-04-29T11:46:56  <waldi> no
2008-04-29T11:47:49  <nahor> still I would like to ask something related to moinmoin
2008-04-29T11:48:10  <zenhase> well, go ahead
2008-04-29T11:48:15  <zenhase> (and moin btw)
2008-04-29T11:48:50  <nahor> Is there api to escape  Wikiname to become a link?
2008-04-29T11:49:06  <nahor> I know you can escape it with '!' etc
2008-04-29T11:49:28  <nahor> but is there API/function somewhere ?
2008-04-29T11:52:57  <zenhase> i don't quite understand the question
2008-04-29T11:53:18  <zenhase> you mean like WikiName to URL
2008-04-29T11:53:19  <zenhase> ?
2008-04-29T11:53:38  <nahor> I'm creating a page through PageEditor and writing some text to it ...
2008-04-29T11:54:18  <nahor> so text has some 'WikiName' (camelcase) like string..
2008-04-29T11:54:48  <nahor> which become link to newpage when that text/page is saved.
2008-04-29T11:56:09  <nahor> Now, I dont want them to become link, so is there api to escape wikinames from given text ?
2008-04-29T11:58:14  <starshine> you mean you want some list of camelcase names to defend against those ever being a link?
2008-04-29T11:58:34  <starshine> but otherwise support camelcase makign wikiwords?
2008-04-29T11:58:50  <nahor> not some list but any given text
2008-04-29T11:59:03  <starshine> or.... do you mean, as a sysadmin, you want to turn off the camelcase feature?
2008-04-29T11:59:23  <starshine> ok that's easy. it's an admin option. see HelpOnConfiguration
2008-04-29T11:59:31  <nahor> no, which it off ..
2008-04-29T12:00:48  <nahor> i want to know if there is api (PageEditor/Wikiutil) which insert '!' and turn off linking to wikiname like text
2008-04-29T12:01:16  <starshine> oh, you mean you'd like it added as a button in the gui editor?
2008-04-29T12:02:15  <nahor> 1 more level deep, i'm developing something with Moin so I want it in code
2008-04-29T12:02:26  <nahor> some class/api/function
2008-04-29T12:02:29  <starshine> the Parser is the parser
2008-04-29T12:02:34  <starshine> that's where it's honored
2008-04-29T12:02:57  <starshine> whatever you do that generates text, just generate your text with that in it.
2008-04-29T12:03:29  <starshine> what are you developing, btw?
2008-04-29T12:03:49  <starshine> (if you don't mind saying on a logged channel)
2008-04-29T12:03:54  <nahor> yes, that is the option, but I was wondering if something already there.
2008-04-29T12:04:05  <starshine> it's the right way
2008-04-29T12:04:35  <nahor> till now I can say - 'its a web app'
2008-04-29T12:06:16  <nahor> So, parser has API which can tell me if given string is wikiname or not?
2008-04-29T12:06:31  <nahor> somewhere else?
2008-04-29T12:08:41  <starshine> nahor: I told you, it's in parser/wiki.py
2008-04-29T12:09:05  <starshine> I think it's _notword_ something
2008-04-29T12:09:14  <nahor> ok
2008-04-29T12:09:25  <starshine> which isn't the same as what you just asked for
2008-04-29T12:09:42  <starshine> but the fact is, the parser is the parser, and trying to do the parsing yourself is silly
2008-04-29T12:10:24  <starshine> maybe you'd prefer to look up the relevant Formatter, which is how moin produces output
2008-04-29T12:10:34  <nahor> yes, thats what i'm trying to avoid
2008-04-29T12:10:49  <nahor> ok, will look at that.
2008-04-29T12:11:58  <starshine> asking if something is an already created page in your wiki, is btw not the same thing either
2008-04-29T12:12:25  <starshine> after all certain things are magical and do count as a page even though backend storage might not contain them
2008-04-29T12:12:37  <starshine> e.g. Category stuff
2008-04-29T12:14:00  <nahor> yes
2008-04-29T12:17:12  <starshine> I really think you want to look at the html formatter for this one
2008-04-29T12:19:05  <starshine> maybe also look at how the formatter works
2008-04-29T12:21:07  <nahor> yeah, looking at them..
2008-04-29T12:21:34  <nahor> but think there could be some easier option
2008-04-29T12:22:17  <nahor> to elaborate more ...
2008-04-29T12:22:22  <starshine> if you just want to ask Moin if a page exists, it's in page.py
2008-04-29T12:22:51  <starshine> but if you want to collect a list of all possible words that are pagenames I'm not sure we already have anything for you.
2008-04-29T12:23:17  <starshine> especially since moin *will* honor hotlinks whose case is wrong.
2008-04-29T12:23:45  <nahor> I have a page in my wiki listing few file names, now the file names could be like 'FileName.txt'
2008-04-29T12:24:15  <starshine> attachments aren't page names
2008-04-29T12:24:36  <nahor> moin makes 'FileName' as link to 'FileName' page in wiki,
2008-04-29T12:25:01  <nahor> which I dont want
2008-04-29T12:25:12  <starshine> no, in that context it'd be a link to the offer to upload it.
2008-04-29T12:25:16  <nahor> these are not attachements, this is text info in page
2008-04-29T12:26:01  <starshine> but yes you can notword that item anyway
2008-04-29T12:26:41  <starshine> we have a plaintext formatter, I dunno if we have a formatter with no hotlinks.
2008-04-29T12:26:45  <starshine> but
2008-04-29T12:27:00  <nahor> I want that to happen automatically for particular page by modifying some code!
2008-04-29T12:27:06  <starshine> you'd be welcome to create one, that does the same as text_html but doesn't make the links.
2008-04-29T12:27:25  <starshine> I recommend making a copy of the formatter and *then* modifying it
2008-04-29T12:28:00  <nahor> yes, thats a option
2008-04-29T12:28:29  <starshine> if you wanted it to happen to a page automatically by edting a line in the page ... you'd have an alternate parser, and look at HelpOnProcessingDirectives
2008-04-29T12:28:48  <starshine> since there's a #thingy whose name I don't remember for settign which parse to use for a page
2008-04-29T12:29:29  <starshine> I mean if you honestly don't want the links for your purpose, but want to allow moin later to have them.
2008-04-29T12:29:34  <nahor> will look at that info
2008-04-29T12:29:58  <starshine> ok. good luck
2008-04-29T12:30:04  <nahor> thanks for the help
2008-04-29T12:46:07  <dreimark> nahor: starshine: please continue this discussion on #moin
2008-04-29T12:46:30  <dreimark> it is definitly a third-party issue
2008-04-29T16:13:10  <waldi> hmm, I think about translating the data for the include macro into an xinclude definition
2008-04-29T17:02:09  <xorAxAx> moon: hi, how were your exams? :)
2008-04-29T17:17:00  <CIA-48> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 2635:23982c6fbb4c 1.6/MoinMoin/search/builtin.py: xapian search: fix AttributeError that happened when trying to access an attribute only used with xapian search (but regex search is not done by xapian)
2008-04-29T17:19:54  <CIA-48> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 3545:7e4b68c11362 1.7/MoinMoin/search/builtin.py: xapian search: fix AttributeError that happened when trying to access an attribute only used with xapian search (but regex search is not done by xapian)
2008-04-29T18:18:22  <dreimark> bbl
2008-04-29T20:32:44  <ThomasWaldmann> re
2008-04-29T20:58:03  <dreimark> re
2008-04-29T22:27:52  <dreimark> gn

MoinMoin: MoinMoinChat/Logs/moin-dev/2008-04-29 (last edited 2008-04-29 10:00:02 by IrcLogImporter)