2006-08-24T00:00:18  <Kepplar> well
2006-08-24T00:00:32  <Kepplar> page revision list is ... what i can only describe as sorta working
2006-08-24T00:01:43  <Kepplar> right im going to have dinner now
2006-08-24T03:23:46  *** irc.freenode.net sets mode: +o ChanServ
2006-08-24T09:23:20  <birkenfeld> hey Kepplar, you managed to setup a Borg wiki
2006-08-24T09:26:27  <xorAxAx> i love comments like "Removed ACL Validation."
2006-08-24T09:26:48  <xorAxAx> and the work that has to be put into the codetree to get it secure again
2006-08-24T09:27:29  <xorAxAx> esp. considering that there isnt even a badge
2006-08-24T09:30:08  <birkenfeld> what has ACL to do with storage?
2006-08-24T09:30:39  <xorAxAx> birkenfeld: an ACL is stored in the metadata. so metadata support doesnt seem to be working
2006-08-24T09:46:08  <ThomasWaldmann> fpletz: +    """ Returns a WikiAnalyer instance
2006-08-24T09:48:50  <ThomasWaldmann> fpletz: http://hg.thinkmo.de/moin/1.6-xapian-fpletz?cs=9d82a1c73131 that cs looks a bit strange compared to what its comment tells
2006-08-24T10:06:56  <Kepplar> er
2006-08-24T10:06:58  <Kepplar> ACL does work
2006-08-24T10:07:15  <Kepplar> what I meant by ACL validation was when a page gets saved again it checks to see if the ACL supplied is valid
2006-08-24T10:07:24  <Kepplar> that ive had to remove
2006-08-24T10:07:49  <xorAxAx> lets see ...
2006-08-24T10:23:54  <xorAxAx> completly borked: http://storage.wikiwikiweb.de/HilfeInhalt
2006-08-24T10:24:29  <xorAxAx> Kepplar: ACLs are borked:  http://storage.wikiwikiweb.de/HilfeInhalt?action=edit&editor=text
2006-08-24T10:24:38  <xorAxAx> normal anonymous users are not allowed to edit that page
2006-08-24T10:24:41  * xorAxAx sighs
2006-08-24T10:32:42  * ThomasWaldmann currently switched off xapian_search on xap.www.de
2006-08-24T10:48:56  <Kepplar> xorAxAx: atm getting page to work is what im doing
2006-08-24T10:49:22  <xorAxAx> Kepplar: you should at least add badges at the places where you destroy things
2006-08-24T10:49:35  <Kepplar> i did
2006-08-24T10:49:56  <Kepplar> look
2006-08-24T10:50:00  <Kepplar> storage isnt going to make it to 1.6
2006-08-24T10:50:18  <Kepplar> in hindsight its impossible to get it production ready until page user etc etc are ALL removed and fully migrated
2006-08-24T10:51:41  <ThomasWaldmann> and it will be impossible to do that without a working base below
2006-08-24T10:52:03  <Kepplar>  apart from the random bug related to saving pages it is working
2006-08-24T10:52:31  <ThomasWaldmann> i dont like those "apart from where it doesnt work, it works"
2006-08-24T10:55:44  <ThomasWaldmann> maximum recursion depth exceeded <- on http://storage.wikiwikiweb.de/RecentChanges
2006-08-24T10:56:37  <Kepplar> i think its related to the revision bug
2006-08-24T10:57:07  <Kepplar> im not getting that bug
2006-08-24T10:57:15  <Kepplar> im seeing __User__filename bug
2006-08-24T10:57:20  <Kepplar> which is understandable
2006-08-24T11:00:56  <Kepplar> btw note that I'm away (i cant get out of it so it has nothing to do with "my priorities") from tomorrow through Monday
2006-08-24T11:03:03  <ThomasWaldmann> everything has to do with priorities
2006-08-24T11:03:18  <xorAxAx> ThomasWaldmann: yeah, man ionice ;-)
2006-08-24T11:03:28  <ThomasWaldmann> hehe
2006-08-24T11:03:47  <ThomasWaldmann> that won't make it faster
2006-08-24T11:08:05  * ThomasWaldmann switched on xapian_search again on xap.www.de
2006-08-24T11:08:18  <ThomasWaldmann> fpletz: where are you?
2006-08-24T11:08:26  <Kepplar> why did you turn it off?
2006-08-24T11:09:04  <ThomasWaldmann> to try how stuff behaves when it is turned off
2006-08-24T11:09:28  <ThomasWaldmann> users must not be fooled with features that won't work anyway
2006-08-24T11:10:12  <ThomasWaldmann> we need to put that AdvancedSearch macro on FindPage, but we can't when it fools people with great stuff only xapian offers.
2006-08-24T11:10:29  <ThomasWaldmann> so those features must get offered conditionally
2006-08-24T11:10:35  <Kepplar> oh
2006-08-24T11:11:29  <ThomasWaldmann> (or features that don't make sense with slow search because they would be extremely slow)
2006-08-24T11:28:22  <Kepplar> ls
2006-08-24T11:29:18  <xorAxAx> ThomasWaldmann: the macro should just hide some fields)
2006-08-24T11:29:26  <xorAxAx> Kepplar: . ..
2006-08-24T11:30:08  <ThomasWaldmann> xorAxAx: yeah, see xap test wiki todo list
2006-08-24T11:32:51  <xorAxAx> hmm, i dislike todo lists in test wikis :)#
2006-08-24T11:32:55  <Kepplar>   File "/usr/lib/python2.4/site-packages/MoinMoin/server/standalone.py", line 42
2006-08-24T11:32:58  <Kepplar> , in ?
2006-08-24T11:33:01  <Kepplar>     from MoinMoin.request import STANDALONE
2006-08-24T11:33:04  <Kepplar>   File "/usr/lib/python2.4/site-packages/MoinMoin/request/__init__.py", line 12,
2006-08-24T11:33:07  <Kepplar>  in ?
2006-08-24T11:33:09  <Kepplar>     from MoinMoin import config, wikiutil, user, caching
2006-08-24T11:33:12  <Kepplar>   File "/usr/lib/python2.4/site-packages/MoinMoin/user.py", line 23, in ?
2006-08-24T11:33:13  * xorAxAx sighs
2006-08-24T11:33:14  <Kepplar>     from MoinMoin.storage import storage, interim_sem
2006-08-24T11:33:17  <Kepplar> ImportError: No module named storage
2006-08-24T11:34:04  <ThomasWaldmann> xorAxAx: this is stuff to get fixed in next few days
2006-08-24T11:34:35  <xorAxAx> Kepplar: can you please use a wiki page for that?
2006-08-24T11:34:49  <Kepplar> which one?
2006-08-24T11:34:52  <ThomasWaldmann> Kepplar: where does that happen?
2006-08-24T11:34:58  <Kepplar> ThomasWaldmann: when i run moin.py
2006-08-24T11:35:14  <xorAxAx> Kepplar: any wiki
2006-08-24T11:35:18  <xorAxAx> Kepplar: and then paste an URL
2006-08-24T11:35:22  <ThomasWaldmann> check storage.py existance and access rights
2006-08-24T11:35:30  <Kepplar> xorAxAx: i would use pastebin
2006-08-24T11:35:37  <Kepplar> but it keeps braking under my broswers
2006-08-24T11:35:38  <xorAxAx> Kepplar: it might sense to use a wiki
2006-08-24T11:35:46  <Kepplar> ThomasWaldmann: ok
2006-08-24T11:36:13  <Kepplar> fgs
2006-08-24T11:36:20  <Kepplar> I'm not rewriting the installer just to test this thing
2006-08-24T11:36:26  <Kepplar> the files arent there
2006-08-24T11:36:54  <ThomasWaldmann> after using setup.py?
2006-08-24T11:36:58  <Kepplar> yes
2006-08-24T11:37:12  <ThomasWaldmann> check if MoinMoin.storage is in setup.py
2006-08-24T11:37:28  <ThomasWaldmann> see MoinMoin.request in there for how to do it
2006-08-24T11:37:34  <Kepplar> cd ~/dev/moin/storage
2006-08-24T11:37:52  * Kepplar looks unimpressed at on mouse over focus
2006-08-24T11:40:29  <Kepplar> yay
2006-08-24T11:40:32  <Kepplar> standalones up
2006-08-24T11:40:54  <Kepplar> (and page loaded)
2006-08-24T11:40:55  <xorAxAx> just 3 months too late :)
2006-08-24T11:41:20  <Kepplar> i have a very short amount of patience with things =)
2006-08-24T11:41:38  <Kepplar> this is usually why i have lacky to do this sort of thing for me :)
2006-08-24T11:41:43  <Kepplar> i just make the decisions =)
2006-08-24T11:43:08  <xorAxAx> who is lacky?
2006-08-24T11:43:30  <Kepplar> junior software engineers =) and average students in group projects :P
2006-08-24T12:00:51  <Kepplar> er
2006-08-24T12:00:54  <Kepplar> for some reason
2006-08-24T12:00:57  <Kepplar> hitting create page
2006-08-24T12:01:05  <Kepplar> accessing the current fiel for ALOT Of files
2006-08-24T12:01:10  <Kepplar> oh
2006-08-24T12:01:13  <Kepplar> Syntax Reference
2006-08-24T12:01:15  <Kepplar> Help on Editing
2006-08-24T12:01:18  <Kepplar> and gets revision 1
2006-08-24T12:01:22  <Kepplar> why?
2006-08-24T12:02:26  <xorAxAx> because there are page links
2006-08-24T12:02:30  <xorAxAx> e.g. your tabs
2006-08-24T12:02:47  <Kepplar> that is so inefficient
2006-08-24T12:05:04  <xorAxAx> it is your code :)
2006-08-24T12:05:09  <Kepplar> no
2006-08-24T12:05:11  <xorAxAx> the old code doesnt fetch any revs to display links
2006-08-24T12:05:34  <Kepplar> def not my code
2006-08-24T12:05:53  <Kepplar> it might be integration code because I dont understand what most if it does
2006-08-24T12:06:01  <Kepplar> and hacked on replaements to access my code
2006-08-24T12:06:19  <xorAxAx> "your code" == "you wrote it"
2006-08-24T12:06:29  <Kepplar> nah my code = storage/
2006-08-24T12:06:33  <Kepplar> and rubik!
2006-08-24T12:06:43  <Kepplar> integration is me trying my best when working with shite code :P
2006-08-24T12:07:04  <Kepplar> and overwhelming amount i might add
2006-08-24T12:11:49  <ThomasWaldmann> rendering a link is different for existing and nonexisting pages
2006-08-24T12:12:32  <ThomasWaldmann> and you only know that after checking. this can be optimized by a cache, but that's not Kepplar's task now
2006-08-24T12:13:21  <xorAxAx> ThomasWaldmann: he is fetching the page revision, thats wrong but not something where a cache would help
2006-08-24T12:13:35  <Kepplar> that will be solved
2006-08-24T12:13:39  <xorAxAx> sure
2006-08-24T12:13:39  <Kepplar> when Page and co is removed
2006-08-24T12:13:42  <xorAxAx> Kepplar: no
2006-08-24T12:13:45  <Kepplar> and moved to ItemPageRevision
2006-08-24T12:13:58  <xorAxAx> its not important
2006-08-24T12:14:01  <ThomasWaldmann> you should only need .exists(), no content access
2006-08-24T12:14:05  <xorAxAx> but it has to be solved before release
2006-08-24T12:14:09  <xorAxAx> ThomasWaldmann: right
2006-08-24T12:14:20  <xorAxAx> Kepplar: and we need the compat code in the release
2006-08-24T12:14:34  <Kepplar> it will be compat
2006-08-24T12:14:51  <Kepplar> just alot more needs to change if im to be happy over how sturdy it all is
2006-08-24T12:14:59  <Kepplar> tbh im amazed storage worked before
2006-08-24T12:15:20  <Kepplar> it certainly felt to me that it was put together with cardboard, paper-mache and sticky-back plastic
2006-08-24T12:16:03  <Kepplar> then again one must remember im strongly against "hacking" :P
2006-08-24T12:16:38  <xorAxAx> but you had been hacking for the last 3 weeks :-p
2006-08-24T12:16:45  <Kepplar> yes
2006-08-24T12:16:50  <Kepplar> and ive felt dirty having to do it
2006-08-24T12:16:59  <Kepplar> thank god ive managed to hack around storage and not storage itself
2006-08-24T12:17:08  <Kepplar> means that storage will be fine for when we pull out the hacks
2006-08-24T12:17:10  <Kepplar> and redo it
2006-08-24T12:18:15  * xorAxAx sighs
2006-08-24T12:18:28  <Kepplar> what?
2006-08-24T12:18:33  <xorAxAx> you introduced many hacks because you didnt try to understand the cdoe
2006-08-24T12:18:34  <xorAxAx> code
2006-08-24T12:18:52  <Kepplar> thats irrelevent
2006-08-24T12:18:57  <Kepplar> i would have still designed storage the same way
2006-08-24T12:18:58  <xorAxAx> Page will have to be usable
2006-08-24T12:19:03  <xorAxAx> that doesnt fit your plan
2006-08-24T12:19:44  <Kepplar> how i design new code is irrelevent to how old code works
2006-08-24T12:19:57  <Kepplar> you simply put a hacked adaptor on it
2006-08-24T12:20:00  <Kepplar> which is what page is now
2006-08-24T12:20:40  <Kepplar> so that later that adapter can be removed and the next section of code in the hierarchy can be refactored to suppose the new architecture
2006-08-24T12:20:48  <Kepplar> support*
2006-08-24T12:23:15  <xorAxAx> there is no need to have something hacked ...
2006-08-24T12:23:34  <xorAxAx> it might make sense to rewrite Page, though, as a lightweight-wrapper aroudn the native SEM system
2006-08-24T12:23:35  <Kepplar> how else does the archtecture work with the old ocde
2006-08-24T12:23:44  <Kepplar> thats what it suppose to be
2006-08-24T12:23:45  <Kepplar> except
2006-08-24T12:23:52  <Kepplar> i couldnt in the time because the code is that bad
2006-08-24T12:23:53  <xorAxAx> Kepplar: i dislike your understanding of the word "hacked"
2006-08-24T12:24:14  <Kepplar> hacked = badly designed code to fix a short term problem
2006-08-24T12:24:20  <xorAxAx> as someone who irregularly peeked into your commits, i had the impression that you didnt try to abstract the old model
2006-08-24T12:24:31  <xorAxAx> to be able to map it on the design level to the new one
2006-08-24T12:24:54  <xorAxAx> if you dont do that (which is one of your best skills according to your own words), then you cannot write clean code
2006-08-24T12:25:06  <Kepplar> i dont follow
2006-08-24T12:25:07  <Kepplar> map?
2006-08-24T12:25:12  <Kepplar> thats exactly what im doing
2006-08-24T12:25:29  <xorAxAx> no, you hack, you dont map
2006-08-24T12:25:41  <xorAxAx> map == think about how the old API looks, what needs to call what in your SEM
2006-08-24T12:25:49  <Kepplar> ah indeed
2006-08-24T12:25:50  <Kepplar> ok
2006-08-24T12:25:51  <Kepplar> granted
2006-08-24T12:25:55  <Kepplar> time constraints prevented me
2006-08-24T12:25:56  <xorAxAx> on a whiteboard, your fav. UML system (you said that you have UML tools ...) etc.
2006-08-24T12:26:02  <Kepplar> it would tkae an entire soc student to do that
2006-08-24T12:26:23  <Kepplar> storage is really a two soc student project
2006-08-24T12:26:25  <xorAxAx> i am not sure about that ... Page doesnt have such many methods that would have to be mapped
2006-08-24T12:26:36  <Kepplar> its not that simple
2006-08-24T12:26:48  <Kepplar> you remember already know the arch very well
2006-08-24T12:27:01  <xorAxAx> yeah, and you skipped the step of getting into it
2006-08-24T12:27:14  <Kepplar> I did spent time early on actually
2006-08-24T12:27:16  <Kepplar> however
2006-08-24T12:27:24  <Kepplar> I expect to read docs no reverse engineer source
2006-08-24T12:27:28  <Kepplar> not*
2006-08-24T12:27:43  <Kepplar> infact irl i'd be livid if someone presented me code like that
2006-08-24T12:28:14  <Kepplar> if i want to quickly know how everything works i dont want to have to spend so much time reading every damn line
2006-08-24T12:29:21  <Kepplar> plus much of the old storage code is obfuscated
2006-08-24T12:31:28  <xorAxAx> i have just seen bad, not obfuscated code :)
2006-08-24T12:32:48  <Kepplar> 400 send page method?
2006-08-24T12:32:52  <Kepplar> i just looked at it and laughed
2006-08-24T12:33:31  <xorAxAx> you should have laughed earlier
2006-08-24T12:34:09  <Kepplar> what was it like before O_o?
2006-08-24T12:34:16  <Kepplar> your scaring me now
2006-08-24T12:36:11  <xorAxAx> it wasnt changed in 3 months
2006-08-24T12:36:24  <Kepplar> i was laughing at the start :P
2006-08-24T12:36:26  <xorAxAx> (i mean, besides bug fixes)
2006-08-24T12:36:44  <xorAxAx> then you should have mixed your laughs together with cries for help :)
2006-08-24T12:38:03  <Kepplar> i did, i just didnt get much of a response :P
2006-08-24T12:38:06  <ThomasWaldmann> Kepplar: stop discussing how bad the world is and get your stuff going
2006-08-24T12:38:20  <Kepplar> ThomasWaldmann: im am working
2006-08-24T12:38:29  <ThomasWaldmann> esp. if you insist that next 4 days something else has higher prio for you
2006-08-24T12:40:37  <ThomasWaldmann> bbl
2006-08-24T12:43:03  <Kepplar> xorAxAx: append on a file that doesnt exist creates or not?
2006-08-24T12:43:30  <Kepplar> (if it doesnt i think i know whats causing all of this)
2006-08-24T12:54:34  <ThomasWaldmann> $ python<enter>
2006-08-24T13:26:02  <xorAxAx> Kepplar: depends on the creation mode
2006-08-24T13:32:54  <Kepplar> saving problems in flatfile.. for some reason its not creating the file.. although it can work since users work
2006-08-24T13:33:01  <Kepplar> strange
2006-08-24T13:33:58  <Kepplar> its not throwing any exception either
2006-08-24T13:34:04  <Kepplar> and the dir's are being created
2006-08-24T13:45:03  <Kepplar> Seriously im stumped on this
2006-08-24T13:45:20  <Kepplar> theres absolutly no way I shouldn't be getting at least a blank file
2006-08-24T14:48:26  <Kepplar> SETTING RAW
2006-08-24T14:48:26  <Kepplar> Descrisdfdsfbe Page here.
2006-08-24T14:48:26  <Kepplar> ACCESS STORAGE
2006-08-24T14:48:26  <Kepplar> /usr/share/moin/mywiki
2006-08-24T14:48:26  <Kepplar> data/pages/Page/revisions/00000001
2006-08-24T14:48:28  <Kepplar> data/pages/Page/revisions/0000000No Exception
2006-08-24T14:48:31  <Kepplar> IN SET DATA
2006-08-24T14:48:33  <Kepplar> SET DATA :data/pages/Page/revisions/00000001
2006-08-24T14:48:36  <Kepplar> DATA IS : Descrisdfdsfbe Page here.
2006-08-24T14:48:38  <Kepplar> ACCESS STORAGE
2006-08-24T14:48:41  <Kepplar> /usr/share/moin/mywiki
2006-08-24T14:48:44  <Kepplar> data/pages/Page/revisions/00000001
2006-08-24T14:48:46  <Kepplar> No Exception
2006-08-24T14:48:48  <Kepplar> Setting the raw data.. accessing storage for metadata
2006-08-24T14:48:51  <Kepplar> then accesses storage for data
2006-08-24T14:48:53  <Kepplar> (i know its the same)
2006-08-24T14:49:01  <Kepplar> Point is
2006-08-24T14:49:09  <Kepplar> even with me manually putting in a write()
2006-08-24T14:49:13  <Kepplar> its not creating the file
2006-08-24T14:49:24  <Kepplar> the cwd and str location are correct!
2006-08-24T14:49:44  <Kepplar> ThomasWaldmann: *im seriously* stumpted on this problem i have no clue whats causing it
2006-08-24T14:50:57  <Kepplar> and touching the file name
2006-08-24T14:51:04  <Kepplar> still has no effect
2006-08-24T14:51:07  <Kepplar> its not writing
2006-08-24T14:51:08  <Kepplar> -_-
2006-08-24T14:51:36  <xorAxAx> Kepplar: where is the write?
2006-08-24T14:52:07  <birkenfeld> xorAxAx: line 155
2006-08-24T14:53:16  <xorAxAx> birkenfeld: is it funny? :)
2006-08-24T14:53:29  <birkenfeld> funny?
2006-08-24T14:57:51  <Kepplar> writing is flatfile:334 via the lambda
2006-08-24T14:57:53  <Kepplar> however
2006-08-24T14:58:04  <Kepplar> i insserted a fp.write("alalala")
2006-08-24T14:58:05  <Kepplar> above it
2006-08-24T14:58:24  <Kepplar> its not throwing any exceptions either
2006-08-24T14:59:38  <xorAxAx> i somehow have the feeling that you mixed up brackets
2006-08-24T14:59:41  <xorAxAx> in line 155
2006-08-24T14:59:48  <xorAxAx> i am lazy to count, though
2006-08-24T15:00:10  <xorAxAx> im stumped on this
2006-08-24T15:01:20  <birkenfeld> xorAxAx: I don't see a bracket on line 155
2006-08-24T15:15:48  <Kepplar> lambda look fine
2006-08-24T15:15:52  <Kepplar> plus metadata doesnt write either
2006-08-24T15:16:35  <Kepplar>  I believe its somewhere in access_Storage
2006-08-24T15:18:09  <xorAxAx> http://moin.pocoo.org:8080/moin-1.6-storage-a?f=4a99a38a0972;file=MoinMoin/storage/formats/flatfile.py
2006-08-24T15:18:16  <xorAxAx> Kepplar: line 155
2006-08-24T15:18:38  <xorAxAx> i mean the round bracket :-)
2006-08-24T15:18:47  <xorAxAx> the parenthesis in general
2006-08-24T15:34:52  <ThomasWaldmann> 'raw-unicode-escape' ???
2006-08-24T15:37:42  <ThomasWaldmann> and you definitely should use less lambda
2006-08-24T15:37:44  <ThomasWaldmann> Kepplar:
2006-08-24T15:40:05  <ThomasWaldmann> and those IOError error_number - is it portable?
2006-08-24T15:40:51  <xorAxAx> not completly
2006-08-24T15:40:55  <ThomasWaldmann>    346                raise IOError(str(error_number) + ": at " + str_location +"(" + error_string +")")
2006-08-24T15:41:00  <xorAxAx> the old storage code does a few translations
2006-08-24T15:41:14  <ThomasWaldmann> this definitely cries for %
2006-08-24T15:42:12  <ThomasWaldmann> and also check IOError params
2006-08-24T15:46:47  <Kepplar> Hmm
2006-08-24T15:46:47  <Kepplar> Ok
2006-08-24T15:47:01  <Kepplar> ok fair points all of these
2006-08-24T15:47:14  <Kepplar> but I still dont see a problem with 155 =)
2006-08-24T15:47:30  <Kepplar> ThomasWaldmann: whats wrong with raw-unicode-escape?
2006-08-24T15:47:49  <ThomasWaldmann> Kepplar: what does it do? I never used it.
2006-08-24T15:47:52  <xorAxAx> Kepplar: havent you seen the links that i posted?
2006-08-24T15:47:59  <Kepplar> its clipping -_-
2006-08-24T15:48:00  <xorAxAx> ThomasWaldmann: its doing what repr(unicode(x)) does
2006-08-24T15:48:18  <Kepplar> whats after a3 at the end?
2006-08-24T15:48:20  <Kepplar> of the link
2006-08-24T15:49:45  <Kepplar> http://moin.pocoo.org:8080/moin-1.6-storage-a?f=4a99a3
2006-08-24T15:49:49  <Kepplar> thats what i have
2006-08-24T15:49:50  <ThomasWaldmann> we usually encode to / decode from config.charset for item content
2006-08-24T15:49:53  <Kepplar> i cant see anything after that
2006-08-24T15:50:12  <Kepplar> ThomasWaldmann: im aware it should be storage-textitem related :)
2006-08-24T15:50:21  <Kepplar> atm i just want it working! :)
2006-08-24T15:50:46  <xorAxAx> 10:23:54 < xorAxAx> completly borked: http://storage.wikiwikiweb.de/HilfeInhalt
2006-08-24T15:50:49  <xorAxAx> 10:24:29 < xorAxAx> Kepplar: ACLs are borked: http://storage.wikiwikiweb.de/HilfeInhalt?action=edit&editor=text
2006-08-24T15:50:54  <xorAxAx> Kepplar: umm, please fix your irc client
2006-08-24T15:51:06  <xorAxAx> ThomasWaldmann: thats the wrong approach
2006-08-24T15:51:12  <xorAxAx> ThomasWaldmann: every text item has its own charset
2006-08-24T15:51:31  <Kepplar> based on language metadata?
2006-08-24T15:51:49  <xorAxAx> this can be inferred by that, yes, but thats not your task :)
2006-08-24T15:52:05  <Kepplar> not yet anway ;)
2006-08-24T15:52:11  <Kepplar> theres always more to do
2006-08-24T15:52:19  <xorAxAx> but its true that page contents was encoded to config.charset
2006-08-24T15:52:45  <Kepplar> why did you bring up the acl thing again?
2006-08-24T15:53:03  <xorAxAx> Kepplar: my main point is the first URL
2006-08-24T15:53:04  <Kepplar> right this second I'm just concentrating page editing
2006-08-24T15:53:07  <xorAxAx> Kepplar: look at the text
2006-08-24T15:53:11  <xorAxAx> we were talking about encoding
2006-08-24T15:53:12  <xorAxAx> s
2006-08-24T15:53:19  <Kepplar> ok
2006-08-24T15:54:02  <Kepplar> ah ok
2006-08-24T15:54:03  <Kepplar> i see
2006-08-24T15:54:09  <Kepplar> ta for brining it up
2006-08-24T15:54:22  <Kepplar> ill do that next after getting page loading and saving :)
2006-08-24T15:54:58  <ThomasWaldmann> Kepplar: what happens if your read utf-8 encoded content with raw-unicode-escape decoder?
2006-08-24T15:55:11  <Kepplar> er
2006-08-24T15:55:16  <Kepplar> i have said i dont know anything about charsets
2006-08-24T15:55:21  <Kepplar> atm its not my concern
2006-08-24T15:55:22  <Kepplar> my question
2006-08-24T15:55:25  <xorAxAx> ThomasWaldmann: see the link above
2006-08-24T15:55:36  <Kepplar> is why its not writing to disk
2006-08-24T15:55:43  <Kepplar> nothing else matters this second
2006-08-24T15:57:14  <xorAxAx> Kepplar: have you looked at 155?
2006-08-24T15:57:19  <xorAxAx> the fault is there, clearly
2006-08-24T15:57:22  <Kepplar> i dont see anything wrong with 155
2006-08-24T15:57:33  <Kepplar> i said that three times now
2006-08-24T15:57:40  <xorAxAx> then please write it down lispish in a few lines to see matching parenthesis
2006-08-24T15:59:28  <ThomasWaldmann> except that the brackets around the lambda are maybe superfluous, I also don't see a brackets error there
2006-08-24T15:59:44  <Kepplar> i think the same as TW on that
2006-08-24T16:00:31  <Kepplar> my output a few ago shows its got the correct path
2006-08-24T16:00:33  <Kepplar> its opening it
2006-08-24T16:00:37  <Kepplar> no exceptions being thrown
2006-08-24T16:00:40  <Kepplar> on write mode
2006-08-24T16:00:51  <Kepplar> even with a manual hardcoded write() with rubbish in it)
2006-08-24T16:00:54  <Kepplar> it still doesn't write
2006-08-24T16:00:58  <Kepplar> which is od
2006-08-24T16:01:00  <Kepplar> odd*
2006-08-24T16:01:03  <Kepplar> very very odd
2006-08-24T16:01:59  <birkenfeld> Kepplar: that's just impossible. if you open a file, write something into it and close it, and no exception occurs, the file must be there and contain the written text.
2006-08-24T16:02:33  <Kepplar> exactly
2006-08-24T16:02:36  <Kepplar> or at worse
2006-08-24T16:02:37  <Kepplar> a blank file
2006-08-24T16:02:41  <birkenfeld> is the path correct?
2006-08-24T16:02:45  <Kepplar> yep
2006-08-24T16:02:51  <Kepplar> ive forced it to print out
2006-08-24T16:02:55  <Kepplar> plus its creating dir structure for it
2006-08-24T16:03:02  <birkenfeld> exactly the path you pass to file()?
2006-08-24T16:03:23  <birkenfeld> you can also print repr(file) to see the exact path
2006-08-24T16:03:32  <birkenfeld> is the working dir correct?
2006-08-24T16:04:00  <ThomasWaldmann> (14:48) <   Kepplar> data/pages/Page/revisions/00000001
2006-08-24T16:04:07  <ThomasWaldmann> this is a relative path!?
2006-08-24T16:04:19  <birkenfeld> there's a trap using os.path.join when a component is not relative
2006-08-24T16:05:17  <Kepplar> ah
2006-08-24T16:05:18  <Kepplar> but
2006-08-24T16:05:23  <Kepplar> i printed the cwd above it
2006-08-24T16:05:43  <Kepplar> trap?
2006-08-24T16:05:54  <birkenfeld> Kepplar: os.path.join("/a/b", "/c/d") == "/c/d"
2006-08-24T16:06:18  <birkenfeld> which is useful behavior, but you have to know about it
2006-08-24T16:06:36  <Kepplar> ah yes
2006-08-24T16:08:00  <Kepplar> it can't be a relative path problem because
2006-08-24T16:08:06  <Kepplar> a) cwd makes it work
2006-08-24T16:08:20  <Kepplar> b) the first component that created that path is request.cfg.data_dir
2006-08-24T16:08:25  <Kepplar> which is used everwhere
2006-08-24T16:09:51  <birkenfeld> try to use abspath() and print the result
2006-08-24T16:10:49  <ThomasWaldmann> Kepplar: btw, what is your data_dir exactly?
2006-08-24T16:31:41  <Kepplar> ThomasWaldmann: whatever is being set
2006-08-24T16:31:50  <Kepplar> its outside storage
2006-08-24T16:31:54  <Kepplar> birkenfeld: ok
2006-08-24T16:32:09  <ThomasWaldmann> Kepplar: show me the config line
2006-08-24T16:32:29  <Kepplar> wheres that wikiconfig?>
2006-08-24T16:59:21  <Kepplar> birkenfeld: /usr/share/moin/mywiki/data/pages/Page/revisions/00000001
2006-08-24T16:59:25  <Kepplar> its correct
2006-08-24T17:17:07  <birkenfeld> well, then it must be magic
2006-08-24T17:17:18  <birkenfeld> you're in England, aren't you?
2006-08-24T17:17:49  <birkenfeld> did you check for suspicious broomsticks parked on your lawn?
2006-08-24T17:17:50  <ThomasWaldmann> or some sun storm
2006-08-24T17:25:17  <Kepplar> or
2006-08-24T17:25:19  <Kepplar> cygwin?
2006-08-24T17:26:22  <birkenfeld> cygwin?
2006-08-24T17:26:35  <birkenfeld> you're working with cygwin?
2006-08-24T17:30:03  <Kepplar> on this box yes
2006-08-24T17:30:14  <Kepplar> as i said my debian box is near dead
2006-08-24T17:30:24  <Kepplar> and needs a fresh install which is why ive avoided installing in the past
2006-08-24T17:31:11  <xorAxAx> its completly ok to work on windows
2006-08-24T17:31:24  <xorAxAx> but cygwin has its own pitfalls
2006-08-24T17:31:36  <Kepplar> ive manually tested opening files
2006-08-24T17:31:41  <Kepplar> and closing them without writing
2006-08-24T17:31:51  <Kepplar> and they create a blank file on cygwin
2006-08-24T17:31:57  <Kepplar> so i dont see how its that really
2006-08-24T17:33:30  <xorAxAx> your open mode is?
2006-08-24T17:34:29  <Kepplar> w
2006-08-24T17:34:34  <Kepplar> w for metadata
2006-08-24T17:34:36  <Kepplar> a for data
2006-08-24T17:34:44  <Kepplar> metadata is always first
2006-08-24T20:00:35  * xorAxAx added a password box
2006-08-24T20:00:45  <xorAxAx> to the syncpages action
2006-08-24T20:13:23  <birkenfeld> storage.www.de RecentChanges still has the _User__filename problem
2006-08-24T20:13:41  <birkenfeld> and curiously, AktuelleƄnderungen some different traceback
2006-08-24T20:19:08  <xorAxAx> hmm, i wonder why it doesnt get into inf recursion in a normal moin :)
2006-08-24T20:19:30  <xorAxAx> hmm
2006-08-24T20:19:51  <xorAxAx> of course, the randomquote macro only picks a list item and doesnt render the whole page
2006-08-24T20:19:58  <xorAxAx> i wonder how you can break such stuff
2006-08-24T20:20:41  <xorAxAx> ah, set_raw_body is broken
2006-08-24T20:21:00  <xorAxAx> which is a function that is quite often used
2006-08-24T20:21:08  <xorAxAx> Kepplar: catchai? :)
2006-08-24T20:40:59  <xorAxAx> ThomasWaldmann: when is it planned to merge CHANGES files?
2006-08-24T20:42:39  <xorAxAx> fpletz: you had been in hannover and didnt contact me? PB isnt far from hannover :)
2006-08-24T20:44:12  <Kepplar> xorAxAx: set_raw_body is fixed. i have yet to push
2006-08-24T20:44:21  <xorAxAx> cool
2006-08-24T20:44:34  <birkenfeld> fixed or "fixed"?
2006-08-24T20:44:48  <Kepplar> storage module isnt hacked :)
2006-08-24T20:45:05  <Kepplar> all hacks are in place so that storage module isnt hacked
2006-08-24T20:45:37  <Kepplar> because its the only module I've written which is part of the grand architecture for the future :)
2006-08-24T20:45:40  <Kepplar> oh
2006-08-24T20:45:42  <Kepplar> and rubik
2006-08-24T20:45:59  <Kepplar> and storage_siapi but that needs updating alot
2006-08-24T20:46:26  <ThomasWaldmann> xorAxAx: after it's all over
2006-08-24T20:46:33  <xorAxAx> ThomasWaldmann: ok
2006-08-24T20:47:02  <Kepplar> i strongly suggest storage is put back to 1.7 so the other soc projects can be released when ready
2006-08-24T20:47:23  <Kepplar> infact after ive fixed these niggles making storage the 1.7 branch after merging
2006-08-24T20:50:10  <ThomasWaldmann> Kepplar: sure :)
2006-08-24T20:50:58  <ThomasWaldmann> i guess we make a 1.6 stable branch after some really-final 1.5.5 release
2006-08-24T20:51:20  <ThomasWaldmann> thus, unstable development will be in 1.7
2006-08-24T20:51:33  <xorAxAx> 1.7 should be working before i move to it :)
2006-08-24T20:51:34  <ThomasWaldmann> and 1.6 with sync, xapian, emailimport
2006-08-24T20:51:53  <Kepplar> xorAxAx: i thought you liked making this work and reverse engineering :P
2006-08-24T20:52:04  <Kepplar> email import?
2006-08-24T20:52:17  <xorAxAx> Kepplar: i like reverse engineering, yeah, but not your code %-)
2006-08-24T20:52:20  <ThomasWaldmann> Kepplar: mail/mailimport
2006-08-24T20:53:53  <xorAxAx> it is even documented
2006-08-24T20:54:35  <Kepplar> xorAxAx: theres plenty of code in Page/PageEditor/caching and what not that needs to be eventually redesigned and moved into storage item modules:P
2006-08-24T20:54:46  <fpletz> moin
2006-08-24T20:54:58  <Kepplar> moin
2006-08-24T20:55:00  <fpletz> finally.. home, sweet home ;)
2006-08-24T20:55:04  <Kepplar> :)
2006-08-24T20:55:10  <fpletz> xorAxAx: PB?
2006-08-24T20:55:13  <xorAxAx> Kepplar: first there is another task of mapping semantics, and thats yours
2006-08-24T20:55:16  <xorAxAx> fpletz: paderborn
2006-08-24T20:55:30  <Kepplar> xorAxAx: indeed
2006-08-24T20:55:31  <xorAxAx> (or "was yours")
2006-08-24T20:55:32  <fpletz> ah, why haven't you told me you live there? :D
2006-08-24T20:55:39  <Kepplar> xorAxAx: too complex
2006-08-24T20:55:42  <xorAxAx> fpletz: :-)
2006-08-24T20:55:45  <Kepplar> for soc AND design a storage engine
2006-08-24T20:55:58  <xorAxAx> yeah, often its difficult to look at the actual needs
2006-08-24T20:56:08  <xorAxAx> but thats what refactoring/redesign is about
2006-08-24T20:56:29  <xorAxAx> i somehow get reminded at A2LL, a very large software project here in germany
2006-08-24T20:56:58  <Kepplar> to be honest about 5-6 weeks ago I had some revelations of how to further improve the storage archtecture
2006-08-24T20:57:19  <Kepplar> I have some ideas how to change this when we bring possibly namespaces and engine groups into play in the future
2006-08-24T20:57:45  <Kepplar> which i have no doubt will give Moin the most advanced storage engine for any wiki/cms
2006-08-24T21:00:13  <xorAxAx> maybe i fall into a coding spree and rewrite 90% of your code before then
2006-08-24T21:00:15  <Kepplar> btw
2006-08-24T21:00:26  <Kepplar> whats wrong with my code?
2006-08-24T21:00:28  <xorAxAx> but i am not sure, doesnt happen often :)
2006-08-24T21:01:00  <xorAxAx> its doesnt seem to be easily integratable/usable, no idea :)
2006-08-24T21:01:23  <Kepplar> more of a prboblem with the old code imho ;)
2006-08-24T21:02:20  <Kepplar> and what i was saying was ive been asked by a twisted dev to help them document after i showed one of them some of my code :)
2006-08-24T21:02:27  <xorAxAx> you should know what to call in your code - so you have only to understand the old one and translate it
2006-08-24T21:02:37  <Kepplar> exactly
2006-08-24T21:02:39  <Kepplar> thats the problem
2006-08-24T21:02:43  <Kepplar> i dont understand the old one:P
2006-08-24T21:02:47  <Kepplar> because it makes no logical sense :P
2006-08-24T21:03:06  <xorAxAx> you dont have many questions regarding it in this channel, 90% of them are related to code written by you :)
2006-08-24T21:03:20  <Kepplar> er
2006-08-24T21:03:26  <Kepplar> 90% of my questions are page related
2006-08-24T21:03:27  <xorAxAx> "to help them document" - what?
2006-08-24T21:03:33  <Kepplar> thier src
2006-08-24T21:03:53  <Kepplar> and not my code :P
2006-08-24T21:03:55  <xorAxAx> i havent seen many questions like "what does method xyz do?", but frankly, i didnt listen to all (as i am not your mentor)
2006-08-24T21:04:03  <xorAxAx> oh, ok
2006-08-24T21:04:19  <Kepplar> ive asked many times could someone explain how the hell x module works
2006-08-24T21:04:32  <Kepplar> and i get some vague answer that i already knew
2006-08-24T21:04:43  <xorAxAx> then you have to ask differently again
2006-08-24T21:05:03  <xorAxAx> often i didnt see questions at all but short unconnected threads of thoughts
2006-08-24T21:05:22  <ThomasWaldmann> fpletz: you saw the bug list?
2006-08-24T21:05:35  <fpletz> ThomasWaldmann: and edited it ;)
2006-08-24T21:05:50  <fpletz> and already fixed some
2006-08-24T21:08:38  <ThomasWaldmann> ehrm, i didnt mean to just add [[..]] with "integrate" :)
2006-08-24T21:09:31  <fpletz> oh ;)
2006-08-24T21:14:40  <ThomasWaldmann> but also to remove redundancy first
2006-08-24T21:15:07  <ThomasWaldmann> and test it with both engines (the points above)
2006-08-24T21:18:02  <Kepplar> ?"!?!/!/!/!?!/!?!/!?!?!?!?!?
2006-08-24T21:18:05  <Kepplar> ojk
2006-08-24T21:18:07  <Kepplar> ok
2006-08-24T21:18:11  <Kepplar> So I've installed it on Debian
2006-08-24T21:18:20  <Kepplar> and the revision is saving and the current is not (which i expected)
2006-08-24T21:18:31  <Kepplar> yet i get the exact opposite effect on Cygwin/
2006-08-24T21:19:03  <xorAxAx> Kepplar: did you fix your relative paths?
2006-08-24T21:19:07  <xorAxAx> they are hard to debug
2006-08-24T21:19:18  <Kepplar> no it was working
2006-08-24T21:19:58  <xorAxAx> ?
2006-08-24T21:20:15  <Kepplar> Its still a reletive path as its the same path the old system used
2006-08-24T21:20:28  <Kepplar> based off request.cfg.data_dir
2006-08-24T21:20:32  <Kepplar> im not changing that
2006-08-24T21:20:33  <Kepplar> but
2006-08-24T21:20:38  <Kepplar> in Cywin it doesnt work
2006-08-24T21:21:27  <xorAxAx> data_dir should be absolute
2006-08-24T21:21:45  <Kepplar> abspath() was correct as birkenfeld suggested
2006-08-24T21:21:54  <Kepplar> i mentioned that this afternoon
2006-08-24T21:22:00  <Kepplar> so it had nothing to do with paths
2006-08-24T21:22:06  <Kepplar> (and thats true since its working now)
2006-08-24T21:22:10  <Kepplar> in Debian
2006-08-24T21:22:14  <Kepplar> but not Cygwin :/
2006-08-24T21:32:31  <Kepplar> yep ok i think i can get page savign done in a second
2006-08-24T21:32:50  <Kepplar> but i have a *cracking* idea on how to optimise storage
2006-08-24T21:33:44  <Kepplar> with a 4-5 fold effeciancy increase even if this was properly integrated
2006-08-24T21:34:09  * xorAxAx chuckles
2006-08-24T21:35:48  <xorAxAx> hmm, there are no productive wikis on 1.6 that i could test my sync code against :)
2006-08-24T21:35:57  <xorAxAx> so i should migrate my sites ...
2006-08-24T21:38:54  <Kepplar> if it stable?
2006-08-24T21:38:57  <Kepplar> is*
2006-08-24T21:39:05  <Kepplar> if so i dont mind upgrading mine
2006-08-24T21:39:12  <Kepplar> (my web one)
2006-08-24T21:39:35  <xorAxAx> as you dont dare merging, i think sp
2006-08-24T21:39:36  <xorAxAx> so
2006-08-24T21:39:39  <xorAxAx> ;-)
2006-08-24T21:39:46  <Kepplar> lol
2006-08-24T21:40:00  <xorAxAx> (merging is good, pushing would be bad :))
2006-08-24T21:40:29  <Kepplar> pushing to 1.6-storage-a isnt :p
2006-08-24T21:40:47  <xorAxAx> yeah, but to the main braunch ...
2006-08-24T21:46:29  <Kepplar> xorAxAx: dont have a heart attack
2006-08-24T21:46:33  <Kepplar> everyone ThomasWaldmann :)
2006-08-24T21:46:37  <Kepplar> pageis saving and loading :)
2006-08-24T21:46:49  <Kepplar> (i said tw for hilights)
2006-08-24T21:47:01  <Kepplar> one bug
2006-08-24T21:47:05  <Kepplar> metadata is showing up -_-
2006-08-24T21:47:44  <xorAxAx> you mean PIs?
2006-08-24T21:47:50  <Kepplar> Pis?
2006-08-24T21:49:00  <Kepplar> Right
2006-08-24T21:49:06  <Kepplar> ill push and that'll be it for now
2006-08-24T21:49:12  <Kepplar> i have to pack for the expedition =)
2006-08-24T21:49:20  <Kepplar> starts tomorrows thro monday :)
2006-08-24T21:49:28  <Kepplar> and im leading it :o
2006-08-24T21:49:53  <xorAxAx> PIs have to show up when editing the page
2006-08-24T21:49:59  <xorAxAx> how else do you want to edit them currently? :)
2006-08-24T21:50:00  <Kepplar> PIs???
2006-08-24T21:50:05  <xorAxAx> processing instructions
2006-08-24T21:50:13  <Kepplar> noo
2006-08-24T21:50:14  <Kepplar> on Page
2006-08-24T21:50:16  <Kepplar> not PageEditor
2006-08-24T21:50:22  <xorAxAx> sounds weird
2006-08-24T21:50:31  <Kepplar> maybe not
2006-08-24T21:50:45  <Kepplar> it seems like mimetype is adding itself every revision
2006-08-24T21:50:54  <Kepplar> it should just add itself its mimetype metadata doesnt exist
2006-08-24T21:51:02  <Kepplar> so at least i know where the problem is
2006-08-24T21:52:59  <Kepplar> I'll update my changes tomorrow morning
2006-08-24T21:53:05  <Kepplar> CHANGES i mean
2006-08-24T21:53:14  <Kepplar> but ive pushed what ive done
2006-08-24T21:53:22  <Kepplar> and everyone hae a fantastic weekend
2006-08-24T21:53:43  <Kepplar> I'll pop in on Monday (although I wont be back but I will have email/net access)
2006-08-24T21:53:52  <Kepplar> and so I'll really be back on tuesday
2006-08-24T21:55:34  <xorAxAx> have fun
2006-08-24T22:44:52  <xorAxAx> ThomasWaldmann: how can i disable those action/ urls?
2006-08-24T22:49:34  * xorAxAx sighs, no docs in sight
2006-08-24T22:52:27  <xorAxAx> hmm, i searched for bot but didnt find anything
2006-08-24T22:52:33  <xorAxAx> but you wrote half of a page about it :)
2006-08-24T22:53:11  <xorAxAx> and i still strongly suggest not to make this the default
2006-08-24T22:55:44  * xorAxAx changed it
2006-08-24T22:58:27  <xorAxAx> fpletz: what do you think about having a link in the titlesearch results that simply redirects to a normal fulltext search with the same query?
2006-08-24T22:58:57  <xorAxAx> fpletz: with the message "search for this query in the page contents"
2006-08-24T22:59:58  <xorAxAx> oh, the pagination numbers became larger, nice
2006-08-24T23:14:35  <ThomasWaldmann> xorAxAx: url_prefix_action = None
2006-08-24T23:14:50  <xorAxAx> ThomasWaldmann: yeah, committed it already :)
2006-08-24T23:15:59  <ThomasWaldmann> this will mean more traffic and load for internet wikis
2006-08-24T23:16:11  <xorAxAx> yeah, until they enable it again
2006-08-24T23:16:20  <xorAxAx> (and just if they had a robots file)
2006-08-24T23:17:17  <xorAxAx> my point is that most moin users dont have such problems and uglyfying the url in order to reduce the problems on loaded systems isnt worth it
2006-08-24T23:17:40  <ThomasWaldmann> (if they find it then :)
2006-08-24T23:18:16  <ThomasWaldmann> btw, mediawiki does it in a similar way. actions there are under /w/
2006-08-24T23:19:37  <xorAxAx> that doesnt mean that its better :)
2006-08-24T23:19:52  <xorAxAx> one obvious place would be to put a pointer into robots.txt
2006-08-24T23:20:24  * xorAxAx adds it
2006-08-24T23:22:13  * xorAxAx is currently migrating all non-1.2 productive systems to 1.6 :)
2006-08-24T23:24:31  * ThomasWaldmann migrated his company wiki a week ago
2006-08-24T23:25:15  <xorAxAx> heh, the endless-scroll ERP
2006-08-24T23:28:21  <ThomasWaldmann> we could make a buzztalk page about it
2006-08-24T23:31:01  <xorAxAx> on moinmoin:?
2006-08-24T23:35:55  <ThomasWaldmann> yes :)
2006-08-24T23:36:27  <ThomasWaldmann> we could check that buzzindex page to "optimize" it

MoinMoin: MoinMoinChat/Logs/moin-dev/2006-08-24 (last edited 2021-02-15 16:32:14 by Bind)