2006-07-24T00:21:28  <ThomasWaldmann> http://hg.thinkmo.de/moin/1.6?cs=f5b796658f93 <- strange effect
2006-07-24T00:21:40  <Kepplar> O-o
2006-07-24T00:22:15  <ThomasWaldmann> i ripped out the info/diff/edit handlers from action/__init__.py module
2006-07-24T00:23:01  <ThomasWaldmann> and suddenly the edit.py code needs an http_headers() call to not crash when saving a page.
2006-07-24T00:24:56  <ThomasWaldmann> request.http_headers() # XXX WHY? XXX
2006-07-24T00:26:40  <ThomasWaldmann> (usually send_page handles this. and it worked without that call until I ripped it out from __init__.py)
2006-07-24T00:38:23  <Kepplar> er
2006-07-24T00:38:27  <Kepplar> circular import :/
2006-07-24T00:39:31  <Kepplar> ThomasWaldmann: help
2006-07-24T00:39:54  <ThomasWaldmann> ?
2006-07-24T00:39:58  <Kepplar> i have a problem
2006-07-24T00:40:01  <Kepplar> storage is importing flatfile
2006-07-24T00:40:05  <Kepplar> and flatfile is importing storage
2006-07-24T00:40:22  <ThomasWaldmann> dont do that :)
2006-07-24T00:40:28  <Kepplar> (im importing flatfile from storage as a hack so it can create a storage engine
2006-07-24T00:40:34  <Kepplar> so i dont have to code the plugin system now
2006-07-24T00:43:06  <ThomasWaldmann> btw, implemented has only 1 i
2006-07-24T00:43:26  <Kepplar> oops
2006-07-24T00:43:54  <Kepplar> make test
2006-07-24T00:44:00  <Kepplar> ignore
2006-07-24T00:44:05  <xorAxAx> as announced, here are my lines:
2006-07-24T00:44:07  <xorAxAx>  LAST: Fixed Python 2.5 incompatiblity issues, fixed wikidicts problem, added MoinLocalWiki class, added documentation to the code (doc strings), made SyncPages show a list of new pages on the remote side (as a first test :)), added new getAllPagesEx XMLRPC method, made TagStore working (uses pickles currently), finished mergeChanges.
2006-07-24T00:44:13  <xorAxAx>  NEXT: enhance interwiki system, implement merging logic
2006-07-24T00:44:15  <xorAxAx>  BLOCKERS: -
2006-07-24T00:45:36  <Kepplar> ThomasWaldmann: im further behind than anticipated becuase of stupid essay, but by getting it out of the way (well more or less) i've freed up more time next weekend
2006-07-24T00:46:23  <ThomasWaldmann> Kepplar: you dont USE flatfile in storage, why do you import it?
2006-07-24T00:46:48  <Kepplar> fixed it now :)
2006-07-24T00:46:58  <Kepplar> i was hacking it so the sem can create a storage engine of flatfile type
2006-07-24T00:47:13  <Kepplar> ive now moved all the storageengine implimentation api abstract stuff to its own file
2006-07-24T00:47:19  <Kepplar> so that flatfile imports that instead
2006-07-24T00:50:15  <Kepplar> woo exceptions fired off whenit was suppose to \o/
2006-07-24T00:52:43  <Kepplar> x-moin-wiki
2006-07-24T00:52:45  <Kepplar> = default type?
2006-07-24T00:56:47  <ThomasWaldmann> i guess it was text/moin-wiki and yes it is the default for a wikipage with no #format (as long we have no other default_markup set in the cfg)
2006-07-24T01:06:10  <Kepplar> how do i grab values from config/
2006-07-24T01:12:47  <Kepplar>     self.new_revision = self.item_revision.clone()
2006-07-24T01:12:47  <Kepplar> TypeError: unbound method clone() must be called with WikiTextRevision instance as first argument (got nothing instead)
2006-07-24T01:44:22  <ThomasWaldmann> use request.cfg for the stuff from wikiconfig/farmconfig.
2006-07-24T08:59:18  *** irc.freenode.net sets mode: +o ChanServ
2006-07-24T09:04:49  *** irc.freenode.net sets mode: +o ChanServ
2006-07-24T09:14:35  *** irc.freenode.net sets mode: +o ChanServ
2006-07-24T09:22:20  *** irc.freenode.net sets mode: +o ChanServ
2006-07-24T10:43:05  <fpletz> moin
2006-07-24T10:49:01  <Kepplar> moin
2006-07-24T11:00:27  <ThomasWaldmann> moin everybody
2006-07-24T11:01:19  <ThomasWaldmann> ok, welcome to our 2nd monday meeting.
2006-07-24T11:01:36  <ThomasWaldmann> Kepplar: how was it going last week?
2006-07-24T11:03:22  <ThomasWaldmann> ffesti: are you reading?
2006-07-24T11:03:50  * ThomasWaldmann assumes richard is still on vacation
2006-07-24T11:04:14  <Kepplar> hey
2006-07-24T11:04:17  <Kepplar> er
2006-07-24T11:04:18  <Kepplar> well
2006-07-24T11:04:22  <Kepplar> going ok
2006-07-24T11:04:36  <Kepplar> i lost a couple of days unfortantly one for this damn essay for uni
2006-07-24T11:04:39  <fpletz> ThomasWaldmann: yeah, I think for about 3 weeks
2006-07-24T11:04:45  <Kepplar> testing is now well underway
2006-07-24T11:04:59  <Kepplar> and its actually brought some interesting results
2006-07-24T11:05:19  <Kepplar> nice to see how some of the more complex algors worked first time
2006-07-24T11:05:37  <Kepplar> also implimented the final functionalities at the start of the week prior to testing
2006-07-24T11:05:37  <fpletz> ThomasWaldmann: sorry, 2 weeks, he'll be back next week
2006-07-24T11:05:55  <Kepplar> I will have to say I'm a couple of days behind where I would want to be, but im not teribly worried
2006-07-24T11:06:22  <Kepplar> 00:12 < Kepplar> TypeError: unbound method clone() must be called with
2006-07-24T11:06:23  <Kepplar>                  WikiTextRevision instance as first argument (got nothing instead)
2006-07-24T11:06:27  <Kepplar> is the latest bug i hve
2006-07-24T11:06:40  <Kepplar> which im not too sure about since clone should be a valid method from its superclass
2006-07-24T11:07:00  <ThomasWaldmann> Kepplar: did you do any "real life" tests?
2006-07-24T11:07:18  <Kepplar> You mean end to end?
2006-07-24T11:07:42  <ThomasWaldmann> i mean making, reading, writing some item on-disk
2006-07-24T11:07:50  <Kepplar> since its not intergrated it cant do that
2006-07-24T11:08:01  <Kepplar> thats what this week is for :)
2006-07-24T11:08:14  <Kepplar> trivial should still be able to save to disk and stuff too
2006-07-24T11:08:22  <Kepplar> the only problem is i havent reached that far because of bugs
2006-07-24T11:08:32  <Kepplar> it should be capable of doing it
2006-07-24T11:08:54  <Kepplar> so in a way yes I adm doing real life tests at the moment, its just nor hitting as far as the saving
2006-07-24T11:09:16  * ThomasWaldmann sees a timing problem approaching
2006-07-24T11:09:45  <Kepplar> i did say two weeks last week :)
2006-07-24T11:10:24  <Kepplar> any idea on whats causing that bug above?
2006-07-24T11:10:24  <ThomasWaldmann> except that TypeError, other problems?
2006-07-24T11:10:27  <Kepplar> anyone?
2006-07-24T11:10:29  <Kepplar> nope
2006-07-24T11:10:36  <Kepplar> everythings working as expected
2006-07-24T11:10:37  <Kepplar> well
2006-07-24T11:10:44  <Kepplar> i have had other problems, but they were quick fixes
2006-07-24T11:10:55  <Kepplar> exceptions are firing in the right places
2006-07-24T11:11:00  <Kepplar> things are not working when expected
2006-07-24T11:11:02  <ThomasWaldmann> Kepplar: give complete error msg
2006-07-24T11:11:02  <Kepplar> so im confident
2006-07-24T11:11:33  <Kepplar> i think that was it basically
2006-07-24T11:11:37  <Kepplar> it was clone()'s test
2006-07-24T11:11:52  <Kepplar> in testItemRevisionFunctions
2006-07-24T11:11:59  <Kepplar> (yes yes i know its methods)
2006-07-24T11:12:12  <Kepplar> its creating a specialised item class
2006-07-24T11:12:16  <Kepplar> from the clone
2006-07-24T11:12:22  <Kepplar> which is working.. its pulling out the correct class
2006-07-24T11:12:33  <Kepplar> its just doesnt like cloning it
2006-07-24T11:12:47  <Kepplar> as clone is defined by the itemrevision superclass
2006-07-24T11:14:23  <Kepplar> ignore from the clone
2006-07-24T11:14:27  <Kepplar> its creating a blank new revision
2006-07-24T11:14:29  <Kepplar> and trying to clone it
2006-07-24T11:14:34  <Kepplar> which should technically work
2006-07-24T11:17:09  <Kepplar> anyone home?
2006-07-24T11:18:59  * fpletz shrugs
2006-07-24T11:19:16  <ThomasWaldmann> i was looking at the code...
2006-07-24T11:19:22  <Kepplar> ah
2006-07-24T11:20:17  <ThomasWaldmann> i guess you have to include the bug details in your CHANGES file (how to reproduce, traceback, ...) so I can look at it later
2006-07-24T11:20:34  <Kepplar> ah i just used make test
2006-07-24T11:21:57  <ThomasWaldmann> btw, every time you write ==None in your code, it will jump at me in bold red
2006-07-24T11:22:10  <Kepplar> I havent been writing any more :)
2006-07-24T11:22:17  <Kepplar> its ones that ive yet to pull out
2006-07-24T11:22:23  <Kepplar> and they are gradually going
2006-07-24T11:25:25  <ThomasWaldmann> what type is item_revision when you encounter the bug?
2006-07-24T11:25:38  <Kepplar> wikitextrevision
2006-07-24T11:25:45  <Kepplar> (aka "default")
2006-07-24T11:26:40  <Kepplar> er
2006-07-24T11:26:44  <Kepplar> i am using 2.3.5
2006-07-24T11:29:24  <ThomasWaldmann> hmm, i don't see an obvious error, but I have to look into that later...
2006-07-24T11:29:28  <Kepplar> hey ThomasWaldmann we do can do this after the meeting (im sure the others are getting boreD)
2006-07-24T11:29:47  <ThomasWaldmann> ok, fpletz, your channel :)
2006-07-24T11:30:12  <fpletz> ok ;)
2006-07-24T11:30:23  <fpletz> LAST: support paging for search results, configurable; CategorySearch is live (recognizes regex previously used, can do regular moinSearch); subpages aren't an issue, solved by regexes (perhaps usuability improvements?); we need some kind of query optimizer to use xapian and moinSearch for one query and merge both results; extended SystemInfo macro to see the status of the index; general bugfixes all over the place while testing a lot of stuff
2006-07-24T11:30:30  <fpletz> NEXT: finally some more UI stuff as the backend's fairly complete so far (without some extended stuff like the history stuff)
2006-07-24T11:30:34  <fpletz> BLOCKERS: -
2006-07-24T11:31:14  <fpletz> and a comment about timing issues: at the end of soc, xapian should work pretty well and the search ui will be complete along with some other features (like the history stuff), but I'd really like to continue to work on moin after soc to do, perhaps amonst other things, some improvements to the search code (i.e. xapwrap) which most probably would go beyond the scope of soc (considering time). furthermore, I saw that trac, which has borrowed moin c
2006-07-24T11:32:29  <ThomasWaldmann> "borrow moin c" was the end of your stuff that got here
2006-07-24T11:33:05  <fpletz> furthermore, I saw that trac, which has borrowed moin code in the past, is also considering integrating xapian where I'd like to assist
2006-07-24T11:33:40  <fpletz> but all that after soc and some more work on moin of course ;)
2006-07-24T11:34:28  <ThomasWaldmann> the trac fork has happened ages ago
2006-07-24T11:34:58  <fpletz> really? I saw it as a todo for 1.0
2006-07-24T11:35:08  <fpletz> but that's not important right now anyway ;)
2006-07-24T11:35:59  <fpletz> oh, you're right
2006-07-24T11:37:08  <ThomasWaldmann> the paging UI could be a bit improved
2006-07-24T11:37:56  <ThomasWaldmann> maybe like first previous 1 2 3 4 5 6 7 8 next last
2006-07-24T11:38:24  <ThomasWaldmann> no, rather previous 1 2 3 4 5 6 7 8 next
2006-07-24T11:38:25  <fpletz> yup, no problem ;)
2006-07-24T11:38:48  <ThomasWaldmann> did you use css classes for that stuff?
2006-07-24T11:39:05  <fpletz> no, no styles at all
2006-07-24T11:39:14  <fpletz> just the links
2006-07-24T11:39:51  <ThomasWaldmann> (and highlight current page number by using different class)
2006-07-24T11:40:36  <ThomasWaldmann> the next/prev links are easily overseen currently
2006-07-24T11:40:49  <fpletz> yes, perhaps some icons?
2006-07-24T11:41:31  <ThomasWaldmann> if you find some (non-(C)) :)
2006-07-24T11:41:44  <ThomasWaldmann> should be also done by CSS
2006-07-24T11:42:05  <fpletz> ok
2006-07-24T11:42:08  <ThomasWaldmann> what do you mean by "subpages arent an issue"?
2006-07-24T11:42:17  <fpletz> did you read the comments of johill on that?
2006-07-24T11:42:57  <fpletz> that was wednesday night I think
2006-07-24T11:43:12  <ThomasWaldmann> ehrm, maybe not
2006-07-24T11:43:28  <fpletz> but he basically wanted to know how we can do subpages search reliably with xapian
2006-07-24T11:43:57  <fpletz> after some thinking, I think regexps are the best way.. we don't need any changes in this case
2006-07-24T11:45:14  <fpletz> the query optimizer (merging search results from all search engines for one query) was also an idea from johill
2006-07-24T11:45:34  <fpletz> but I think I can't do this in the scope of soc
2006-07-24T11:45:51  <ThomasWaldmann> instead of just "index available", it would maybe be useful to show mtime of index (to see if it got updated recently)
2006-07-24T11:46:26  <fpletz> yes, good idea
2006-07-24T11:47:17  <ThomasWaldmann> the UI stuff you do next?
2006-07-24T11:48:15  <fpletz> finally this new advanced search dialog
2006-07-24T11:48:35  <fpletz> but first I'll improve the paging
2006-07-24T11:49:28  <fpletz> mmh, and I see I should probably merge with main
2006-07-24T11:50:21  <ThomasWaldmann> yes :)
2006-07-24T11:50:45  <fpletz>  local changed MoinMoin/multiconfig.py which remote deleted
2006-07-24T11:50:57  <ThomasWaldmann> btw, a nice thing to have would be multi-colour highlighting
2006-07-24T11:50:59  <fpletz> mmh
2006-07-24T11:51:07  <ThomasWaldmann> it moved to config/
2006-07-24T11:51:12  <fpletz> okay
2006-07-24T11:51:26  <fpletz> mmh, multi-colour? I don't understand why ;)
2006-07-24T11:51:52  <ThomasWaldmann> if you search for "this that", it could show "this" in blue, and "that" in yellow
2006-07-24T11:52:32  <fpletz> I see, right
2006-07-24T11:52:45  <fpletz> I need to work on the highlighting anyway
2006-07-24T11:52:45  <ThomasWaldmann> (nice, but not extremely important)
2006-07-24T11:53:00  <fpletz> so I can include this in the process
2006-07-24T11:53:27  <fpletz> also using css classes, right?
2006-07-24T11:53:40  <ThomasWaldmann> i guess that would be best, yes
2006-07-24T11:54:39  <ThomasWaldmann> btw, we could make a joke of a google UI:
2006-07-24T11:54:53  <Kepplar> O_o
2006-07-24T11:55:03  <ThomasWaldmann> Moooooooooooooooooooin >
2006-07-24T11:55:21  <fpletz> lol
2006-07-24T11:55:21  <fpletz> yeah, definitely! will do! :p
2006-07-24T11:55:28  <ThomasWaldmann> (page: 1 2 3 4 5 6 7 below the "o"s)
2006-07-24T11:55:55  <ThomasWaldmann> I hope they have no patent on that. X-|
2006-07-24T11:56:41  <Kepplar> That so bad its good :)
2006-07-24T11:57:15  <ThomasWaldmann> btw, that first "Info" line about how many results in how many pages, seconds, etc. also needs CSS class.
2006-07-24T11:58:06  <fpletz> right
2006-07-24T11:58:10  <ThomasWaldmann> btw, do you handle search results in multiple wikis?
2006-07-24T11:58:44  <fpletz> currently not at all
2006-07-24T11:58:56  <fpletz> but this is coming ;)
2006-07-24T11:58:59  <ThomasWaldmann> (iirc, we index the InterWiki name)
2006-07-24T11:59:17  <fpletz> umm
2006-07-24T11:59:32  <fpletz> do you mean multiple wiki on a wikifarm?
2006-07-24T11:59:41  <ThomasWaldmann> yes
2006-07-24T12:00:02  <fpletz> ok, then my answer is correct ;)
2006-07-24T12:00:43  <ThomasWaldmann> ok, time is out. Alexander posted his stuff tonight, btw.
2006-07-24T12:00:57  <ThomasWaldmann> (he has exams today)
2006-07-24T12:02:55  <Kepplar> ey
2006-07-24T12:03:05  <Kepplar> hmm
2006-07-24T12:03:28  <ThomasWaldmann> fpletz: maybe the search UI could also steal some principal UI stuff from google
2006-07-24T12:04:31  <ThomasWaldmann> like placement of search field, search button, advanced search right of it
2006-07-24T12:05:35  <ThomasWaldmann> instead of "Web Pictures Groups ..." above we could have "Pages Documents Filesystem ..."
2006-07-24T12:07:11  <fpletz> ah, yes.. but I think we should keep the search box at the top, perhaps add link below the search box to this page
2006-07-24T12:08:48  <ThomasWaldmann> sure, the "simple search" at top right will stay
2006-07-24T12:09:53  <ThomasWaldmann> btw, if you need gfx / css, maybe TheSheep and Starshine can help you
2006-07-24T12:11:36  <fpletz> great. css is no problem for me, but gfx most probably ;)
2006-07-24T12:12:08  <ThomasWaldmann> (try to stay "business compatible", though. thus, not TOO funny.)
2006-07-24T12:13:15  <ThomasWaldmann> (i.e. no herds of sheep :)
2006-07-24T12:14:17  <fpletz> hehe, but as the ui is/should be themeable anyway it can be made more serious ;)
2006-07-24T12:15:36  * fpletz is now afk.. lunch
2006-07-24T12:18:16  * ThomasWaldmann must go, too. bbl.
2006-07-24T12:24:07  <Kepplar> ThomasWaldmann: when you get back any if i dont say so on irc assume i havent fixed that bug
2006-07-24T13:17:36  <ffesti> ops, I is monday...
2006-07-24T13:18:01  <Kepplar> not if your on cook island or the likes
2006-07-24T14:02:16  <xorAxAx> hi!
2006-07-24T14:02:20  <xorAxAx> bad exam :-/
2006-07-24T14:03:09  <xorAxAx> fpletz: of course it would be nice if you continued helping the moin project :)
2006-07-24T14:03:36  <xorAxAx> and furthermore, i am not sure if trac really forked. they took much of the design and maybe parts of the parser
2006-07-24T14:04:03  <xorAxAx> but all in all, that code is much too clean to be originating from moin's code base ;-)
2006-07-24T14:04:17  <fpletz> yeah ;) there's a fork and a 0.1 release but not very much activity recently
2006-07-24T14:04:23  <fpletz> lol
2006-07-24T14:05:44  <xorAxAx> 0.1 release of what?
2006-07-24T14:05:58  <xorAxAx> there is a fulltextsearch fork of trac?
2006-07-24T14:06:17  <fpletz> http://trac.edgewall.org/wiki/AdvancedSearch
2006-07-24T14:06:22  <fpletz> these are their notes
2006-07-24T14:06:27  <fpletz> http://swapoff.org/wiki/pyndexter
2006-07-24T14:06:29  <fpletz> and that's the fork
2006-07-24T14:06:44  <xorAxAx> wow, a link to MoinMoin:
2006-07-24T14:06:53  <xorAxAx> we are the big brother :)
2006-07-24T14:06:54  <fpletz> well, sort of fork ;)
2006-07-24T14:06:57  <fpletz> yeah ;)
2006-07-24T14:07:20  <xorAxAx> fpletz: that page sounds like it is a plugin
2006-07-24T14:07:22  <xorAxAx> (--> not a fork)
2006-07-24T14:07:30  <xorAxAx> and estraier is worse than xapian ;-)
2006-07-24T14:16:05  <Kepplar> xorAxAx: any idea about my bug?
2006-07-24T14:16:22  <xorAxAx> Kepplar: traceback?
2006-07-24T14:16:23  <Kepplar> basically a subclass cant find a method defined in the superclass
2006-07-24T14:16:26  <xorAxAx> Kepplar: or file:lineno
2006-07-24T14:16:46  <Kepplar> _test/test_storage.py
2006-07-24T14:16:48  <Kepplar> er
2006-07-24T14:17:08  <Kepplar> its the clone() test on testItemRevisionFunctions
2006-07-24T14:17:15  <Kepplar> it creates a new revision
2006-07-24T14:17:18  <Kepplar> on setup
2006-07-24T14:17:20  <Kepplar> tries to clone it
2006-07-24T14:17:23  <Kepplar> but cant
2006-07-24T14:17:45  <Kepplar> traceback i havent got open now, but was regarding wikitextrevision
2006-07-24T14:17:59  <Kepplar> not having clone() bound to it or something
2006-07-24T14:18:08  <Kepplar> where wikitextrevision is the default "item type"
2006-07-24T14:18:19  <Kepplar> declared in MoinMoin.storage.storage
2006-07-24T14:21:41  <xorAxAx> can i see the traceback please?
2006-07-24T14:21:59  <Kepplar> my servers in a few pieces at the moment ><
2006-07-24T14:22:02  <Kepplar> if you have my branch
2006-07-24T14:22:03  <Kepplar> make test
2006-07-24T14:22:07  <Kepplar> its first error
2006-07-24T14:22:11  <xorAxAx> furthermore you may want to use the copy module
2006-07-24T14:22:16  <Kepplar> copy module?
2006-07-24T14:22:20  <xorAxAx> help("copy")
2006-07-24T14:22:26  <xorAxAx> it does object copying for you
2006-07-24T14:22:37  <xorAxAx> you just need to define some methods in some cases
2006-07-24T14:22:39  <Kepplar> not sure ieven have python on this box
2006-07-24T14:22:51  <Kepplar> im assuming that does dict copy of the attributes?
2006-07-24T14:22:55  <Kepplar> clone isnt a full clone
2006-07-24T14:23:02  <Kepplar> since things like itemrevision number wont go across
2006-07-24T14:23:09  <xorAxAx> you can override the behaviour with custom methdos
2006-07-24T14:23:13  <Kepplar> oo
2006-07-24T14:23:13  <Kepplar> cool
2006-07-24T14:23:14  <Kepplar> :)
2006-07-24T14:23:14  <Kepplar> ta
2006-07-24T14:29:23  <xorAxAx> Kepplar: bug found
2006-07-24T14:29:30  <xorAxAx> Kepplar: item.empty_revision() returns a class and not an instance
2006-07-24T14:29:42  <xorAxAx> presumely after looking at test and traceback
2006-07-24T14:31:39  <Kepplar> ahhhhhhhhhh
2006-07-24T14:31:47  <Kepplar> strange
2006-07-24T14:31:52  <Kepplar> its return should fire off a instance
2006-07-24T14:32:22  <Kepplar> xorAxAx: thanks :)
2006-07-24T14:32:26  <xorAxAx> ugh, indirection alarm :)
2006-07-24T14:34:01  <xorAxAx>    371            return result_object
2006-07-24T14:34:17  <Kepplar> yea
2006-07-24T14:34:24  <Kepplar> fetch_Revision instantises it
2006-07-24T14:34:38  <Kepplar> but i forgot about it completly for create_empty_revision
2006-07-24T17:09:09  <fpletz> lol, yeah, you gotta love it... _moinSearch = 246.547s
2006-07-24T17:44:55  <ThomasWaldmann> uh
2006-07-24T17:45:06  <ThomasWaldmann> what was that?
2006-07-24T17:48:58  <Kepplar> oh shit
2006-07-24T17:49:02  <Kepplar> im in uber truthful mode
2006-07-24T17:49:25  <Kepplar> i just sprouted a long essay in reply to my placement people on how they can improve it
2006-07-24T17:49:48  <Kepplar> which ended up as a philisophical discussion of the problems of all resourcing departments world wide and method of approch
2006-07-24T22:04:59  <Kepplar> ThomasWaldmann: cloned item revisions currently do not retain the item revision number. However should one want to access the cloned revisions data it will need the revision number to pull it out of storage
2006-07-24T22:05:03  <Kepplar> possible solutions are:
2006-07-24T22:05:20  <Kepplar> a) on clone pull data out of storage and assign it as if it is loaded (not recommended imho)
2006-07-24T22:06:17  <Kepplar> b) pass the revision number onto the cloned revision and let add/commit see its new (as its unlocked) and change it to a new erevision number (no recomemnded, if we need to have any future functionality for modifying existing revisions it could get messy)
2006-07-24T22:06:48  <Kepplar> c) have a second revision id tag which is called if it cannot find one (when its new) for data
2006-07-24T22:06:51  <Kepplar> or
2006-07-24T22:07:05  <Kepplar> let the parent item revision send a reference of itself to its clone
2006-07-24T22:07:10  <Kepplar> (which i recommend)
2006-07-24T22:20:20  <ThomasWaldmann> does the original itemrevision have a revision number inside?
2006-07-24T22:38:04  <Kepplar> yep
2006-07-24T22:38:54  <Kepplar> I'm doing effective end to end testing
2006-07-24T22:39:21  <Kepplar> at the moment flatfile cannot create a storage location because for somereason it can't locate the item data type
2006-07-24T22:39:32  <Kepplar> short break
2006-07-24T22:39:32  <Kepplar> back in5
2006-07-24T23:07:05  <Kepplar> ThomasWaldmann: xorAxAx: is it possible to "print" to the traceback
2006-07-24T23:07:14  <Kepplar> as debugging this error iwill be a PAIN
2006-07-24T23:07:20  <Kepplar> (different error, im actually quite far)
2006-07-24T23:07:22  <Kepplar> cloning works
2006-07-24T23:07:25  <xorAxAx> Kepplar: ?
2006-07-24T23:07:39  <Kepplar> i want to know the state of a variable
2006-07-24T23:08:12  <Kepplar> because the storage implementation isnt catching the item type (so it can open the correct location) and instead is throwing ItemTypeNonExistant
2006-07-24T23:08:20  <Kepplar> which makes no sense
2006-07-24T23:08:38  <xorAxAx> Kepplar: ah, then simply raise Exception
2006-07-24T23:08:44  <Kepplar> i have
2006-07-24T23:08:52  <xorAxAx> so?
2006-07-24T23:08:54  <Kepplar> i need to know the condition of another variable
2006-07-24T23:09:09  <Kepplar> (aka if its null or something)
2006-07-24T23:09:11  <xorAxAx> print it or use an ide with a debugger
2006-07-24T23:09:18  <xorAxAx> or use pdb
2006-07-24T23:09:30  <Kepplar> im using make test
2006-07-24T23:09:45  <Kepplar> which is a moin bespoke test rig?
2006-07-24T23:10:51  <xorAxAx> rig?
2006-07-24T23:11:01  <xorAxAx> then use pdb, its simplest
2006-07-24T23:11:09  <xorAxAx> import pdb; pdb.set_trace()
2006-07-24T23:11:49  <Kepplar> but thats going way out
2006-07-24T23:12:02  <Kepplar> make test (whatever it actually is) gives me a traceback
2006-07-24T23:12:04  <Kepplar> all i need is to write it
2006-07-24T23:12:08  <Kepplar> im running it via make test
2006-07-24T23:12:24  <Kepplar> so i have nothing else viewing stdout
2006-07-24T23:12:44  <xorAxAx> "write it"?
2006-07-24T23:12:46  <xorAxAx> where to?
2006-07-24T23:12:52  <Kepplar> whatever make test is
2006-07-24T23:13:04  <Kepplar> i dont know what the moin moin test rig is like
2006-07-24T23:13:10  <Kepplar> except it uses unittest
2006-07-24T23:14:05  <Kepplar> i goto moin directory
2006-07-24T23:14:05  <Kepplar> and hit
2006-07-24T23:14:07  <Kepplar> "make test"
2006-07-24T23:14:22  <Kepplar> it does all the tests and fires out tracebacks if theres are problems
2006-07-24T23:14:36  <Kepplar> im wondering if theres an easy way to manually spit something out on those tracebacks
2006-07-24T23:17:24  <xorAxAx> just use print
2006-07-24T23:17:45  <Kepplar> so that works for this? ok
2006-07-24T23:24:54  <Kepplar> oo thanks xorAxAx

MoinMoin: MoinMoinChat/Logs/moin-dev/2006-07-24 (last edited 2007-10-29 19:09:08 by localhost)