2006-06-24T10:01:31 <Kepplar> moin
2006-06-24T11:38:28 <ThomasWaldmann> moin Kepplar
2006-06-24T11:43:24 <Kepplar> hey
2006-06-24T11:43:33 <Kepplar> im implimenting the mimetype cache at the moment :)
2006-06-24T11:45:31 <ThomasWaldmann> for what do we need that?
2006-06-24T11:45:54 <Kepplar> because its impossible to locate metadata without knowing the type
2006-06-24T11:46:26 <Kepplar> dont worry its really simple
2006-06-24T11:46:43 <Kepplar> basically theres a new type called a mimetypecache, which it accesses and pulls out the result and creates the object
2006-06-24T11:46:59 <Kepplar> the only difference is - when setting metadata if the mimetype changes the cache gets updated
2006-06-24T11:47:35 <Kepplar> also implimented a storage implementation object lock if the flatfile's close() is used
2006-06-24T11:47:52 <Kepplar> this means that if anything tries to access it instead of severely breaking it wont do anything
2006-06-24T11:48:07 <Kepplar> oh
2006-06-24T11:48:49 <ThomasWaldmann> i will try to follow you when i see the code
2006-06-24T11:49:07 <Kepplar> oh good point, i still havent pushed since i got my net connection
2006-06-24T11:49:14 <Kepplar> let me just finish this bit off - commit and i will push
2006-06-24T11:50:00 <ThomasWaldmann> i suggest you read through the diff to find trivial typos before you commit
2006-06-24T11:50:50 <Kepplar> is there a hg gui or something?
2006-06-24T11:50:55 <Kepplar> er atually i can just stout redirect
2006-06-24T11:51:22 <ThomasWaldmann> hg diff|less
2006-06-24T11:51:45 <ThomasWaldmann> and import your src using the python interpreter
2006-06-24T11:51:47 <Kepplar> just a pity theres no syntax hilightting :)
2006-06-24T11:51:53 <Kepplar> oh i have been
2006-06-24T11:52:01 <Kepplar> theres actually a strange bug
2006-06-24T11:52:18 <Kepplar> a set of if, elif is complaining about the level of indentation outside is not the same or something
2006-06-24T11:52:22 <Kepplar> however
2006-06-24T11:52:22 <Kepplar> it looks ok O_o
2006-06-24T11:52:40 <ThomasWaldmann> check for tabs vs spaces
2006-06-24T11:53:01 <ThomasWaldmann> missing :
2006-06-24T11:53:01 <Kepplar> i thought eric sorted that out?
2006-06-24T11:53:14 <Kepplar> btw, se.py parses without a problem :)
2006-06-24T11:53:33 <Kepplar> (im going to write testcases for it in an hour or two
2006-06-24T11:53:48 <Kepplar> ive already created storage/test folder
2006-06-24T11:53:53 <Kepplar> unless you want it in /test?
2006-06-24T11:53:59 <Kepplar> with those moin scripts?
2006-06-24T11:54:10 <ThomasWaldmann> all tests are in the tests folder
2006-06-24T11:54:17 <Kepplar> ok
2006-06-24T11:55:03 <ThomasWaldmann> brb
2006-06-24T11:57:15 <Kepplar> kk
2006-06-24T12:09:49 <Kepplar> hey ThomasWaldmann got a behavour question regarding the language when you're back :)
2006-06-24T12:16:42 <ThomasWaldmann> if you just ask...
2006-06-24T12:18:17 <Kepplar> oh, well the question is regarding properties
2006-06-24T12:19:05 <Kepplar> metadata is a dictionary property on an itemrevision, im just looking at ways to handle updating metadata on a per item basis rather than updating the entire dictionary
2006-06-24T12:19:20 <Kepplar> is that possible with the set method for a property?
2006-06-24T12:19:24 <Kepplar> or some other mechanism?
2006-06-24T12:20:36 <ThomasWaldmann> i guess you just have to store the original dict and when syncing then compare each key/value to the original
2006-06-24T12:21:03 <Kepplar> sounds expensive :/
2006-06-24T12:21:53 <Kepplar> it might be cheaper just to save the entire metadata dictionary?
2006-06-24T12:22:03 <Kepplar> will be interesting comparison actually
2006-06-24T12:24:19 <Kepplar> yay, flatfile now goes through the parser
2006-06-24T12:30:23 <ThomasWaldmann> that depends of the storage backend. for flatfile this is for sure not necessary, but for sql it might be nice.
2006-06-24T12:31:10 <ThomasWaldmann> ok, gtg. cu l8er.
2006-06-24T12:31:29 <Kepplar> ok
2006-06-24T12:31:36 <Kepplar> o/
2006-06-24T14:07:03 <Kepplar> header_re = r'(^#+.*(?:\n\s*)+)+'
2006-06-24T14:07:27 <Kepplar> is that the regex to find metadata?
2006-06-24T14:10:33 <Kepplar> Theres one thing about Page i really don't get
2006-06-24T14:10:36 <Kepplar> this request thing
2006-06-24T14:10:46 <Kepplar> it seems page doesnt do much, all the information is coming from request
2006-06-24T14:10:48 <Kepplar> what is request
2006-06-24T14:10:58 <Kepplar> i know its been answered before
2006-06-24T14:11:03 <Kepplar> but what file
2006-06-24T14:11:04 <Kepplar> what specs
2006-06-24T14:11:06 <Kepplar> what data
2006-06-24T14:11:08 <Kepplar> in detail
2006-06-24T15:38:21 <ThomasWaldmann> request.py
2006-06-24T15:38:44 <ThomasWaldmann> basically, it is the interface object to the different servers
2006-06-24T15:39:17 <ThomasWaldmann> one http request from the user -> 1 request object
2006-06-24T15:41:32 <ThomasWaldmann> as one moin server process can handle multiples wikis, the target url the request determines the wiki configuration (request.cfg)
2006-06-24T16:34:35 <Kepplar> `ok
2006-06-24T16:34:40 <Kepplar> hmm
2006-06-24T16:34:55 <Kepplar> i can't back out a directory to its parent with module imports can i, only drill down?
2006-06-24T17:12:20 <ThomasWaldmann> ever use from MoinMoin... import ...
2006-06-24T17:16:37 <Kepplar> how is MoinMoin in my path though
2006-06-24T17:16:45 <Kepplar> im in /test
2006-06-24T17:17:20 <ThomasWaldmann> see how the other test scripts do it
2006-06-24T17:21:28 * ThomasWaldmann completed the google sitemap action with lastmod, changefreq and priority stuff
2006-06-24T23:21:20 *** irc.freenode.net sets mode: +o ChanServ
2006-06-24T23:41:51 <ThomasWaldmann> Kepplar: "if something is (not) None:" and "if (not) truthvalue:"
2006-06-24T23:49:48 <mitsuhiko> ThomasWaldmann: don't think that's industrie standard code!
2006-06-24T23:49:52 <mitsuhiko> *industry?
2006-06-24T23:50:13 <ThomasWaldmann> Kepplar: "except:" is evil in most cases
2006-06-24T23:54:23 <ThomasWaldmann> Kepplar: tests are in MoinMoin/_tests/
MoinMoin: MoinMoinChat/Logs/moin-dev/2006-06-24 (last edited 2007-10-29 19:13:20 by localhost)