2006-07-20T00:17:00  <xorAxAx> .oO(providing the changeset number is not sensible)
2006-07-20T00:23:10  <xorAxAx> "elif pagename in ['BadContent', 'LocalBadContent', ]:" -- this can be optimised using a tuple :)
2006-07-20T00:26:25  <xorAxAx> Kepplar: please add a name to your hgrc!
2006-07-20T00:26:36  <xorAxAx> "kepplar@localhost" looks a bit ... unskilled :)
2006-07-20T00:35:46  <xorAxAx> hmm, i am thinking about how to solve the "colliding interwiki name or None interwiki name" problem
2006-07-20T00:36:09  <xorAxAx> how do you think about generating an UUID based on the interwikiname that is stored in the instance directory?
2006-07-20T00:41:10  <xorAxAx> ThomasWaldmann: i somehow find it amusing how you come up with a differently named "help" page every year :)
2006-07-20T00:41:17  <xorAxAx> there is e.g. http://moinmoin.wikiwikiweb.de/HelpNeeded
2006-07-20T01:29:52  <xorAxAx> ThomasWaldmann: any thoughts about the UUID?=
2006-07-20T10:07:06  <Kepplar> xorAxAx: i had
2006-07-20T10:07:12  <Kepplar> for some reason for the merge it didnt use it
2006-07-20T10:07:13  <Kepplar> *shrugs*
2006-07-20T10:07:24  <Kepplar> look at every other change ive done
2006-07-20T11:41:41  <ThomasWaldmann> hmm, headers still aren't correct I guess
2006-07-20T11:42:14  <ThomasWaldmann> if you are logged in 1.5 emits Vary Expires Cache-Control headers
2006-07-20T11:42:30  <ThomasWaldmann> if you are not logged in, none of them
2006-07-20T11:43:19  <ThomasWaldmann> so if you are not logged in, look at some pages, then log in, browser could still show cached pages from not-logged in state
2006-07-20T12:02:17  <Kepplar> hey
2006-07-20T12:02:19  <Kepplar> whats up?
2006-07-20T12:33:35  <xorAxAx> ThomasWaldmann: ping
2006-07-20T12:33:47  <xorAxAx> 01:29:52 < xorAxAx> ThomasWaldmann: any thoughts about the UUID?=
2006-07-20T12:33:52  <xorAxAx> ffesti: hi
2006-07-20T12:36:49  <ThomasWaldmann> i dont like UUIDs, why not use interwikiname? I guess we can demand that a valid interwikiname is set when syncing.
2006-07-20T12:37:38  <xorAxAx> ThomasWaldmann: but you want to be able to sync against wikis that havent set the name
2006-07-20T12:37:51  <xorAxAx> because you cannot wait for the admin if you want to pull a few pages only
2006-07-20T12:38:18  <xorAxAx> the UUID would be hidden
2006-07-20T12:38:32  <xorAxAx> in the GUI, there would just be the interwiki name
2006-07-20T12:40:53  <ThomasWaldmann> where do you get the interwiki name for the GUI from if there isnt any set?
2006-07-20T12:45:49  <xorAxAx> it would show the URL i guess
2006-07-20T12:47:16  <ThomasWaldmann> isnt the url also a UUID for the site?
2006-07-20T12:50:22  <xorAxAx> not necessarily
2006-07-20T12:50:34  <xorAxAx> think about wikis being accessed as localhost:8080
2006-07-20T12:50:49  <xorAxAx> or other local names
2006-07-20T12:50:54  <xorAxAx> in a LAN
2006-07-20T12:54:56  <ThomasWaldmann> you could save the UUID in the data_dir/meta file
2006-07-20T13:04:56  <xorAxAx> yes
2006-07-20T13:18:48  <Kepplar> ThomasWaldmann: any thoughts on the __Setitem__ problem?
2006-07-20T13:33:02  <ThomasWaldmann> Kepplar: ?
2006-07-20T13:36:55  <Kepplar> my changes sorta explain it
2006-07-20T13:37:07  <Kepplar> tests are failing because it says item cannot have item set to it
2006-07-20T13:37:09  <Kepplar> which is crap
2006-07-20T13:37:19  <Kepplar> since ive implimented __setitem__ and its a newstyle class
2006-07-20T13:39:17  <ThomasWaldmann> dont use "import *"
2006-07-20T13:43:43  <Kepplar> i know
2006-07-20T13:43:49  <Kepplar> i was doing it for intermediate testing
2006-07-20T13:44:30  <ThomasWaldmann> Kepplar: comment in MoinMoin/storage/__init__.py is incorrect
2006-07-20T13:44:38  <Kepplar> yea
2006-07-20T13:44:42  <Kepplar> i just put anything there atm
2006-07-20T13:44:47  <Kepplar> (copied header)
2006-07-20T13:46:10  <ThomasWaldmann> and we don't want blanks like here: +    def __new__ (cls, uni_name):
2006-07-20T13:46:57  <Kepplar> blank lines?
2006-07-20T13:47:14  <xorAxAx> no, bigger fonts help
2006-07-20T13:47:18  <xorAxAx> ;-)
2006-07-20T13:49:05  <ThomasWaldmann>     94        if config == None:
2006-07-20T13:49:13  <ThomasWaldmann> SIGH
2006-07-20T13:52:39  <Kepplar> yea yea
2006-07-20T13:52:49  <Kepplar> ive been skipping though things to get intergrating working
2006-07-20T13:52:56  <Kepplar> ill tidy it after it works
2006-07-20T13:53:01  <Kepplar> as i thought you wanted me to ?
2006-07-20T13:56:41  <ThomasWaldmann> maybe you could at least avoid adding such code. and searching and fixing that stuff shouldnt take too long.
2006-07-20T13:56:52  <Kepplar> ok
2006-07-20T13:56:53  <ThomasWaldmann>    327        if self.lock is False:
2006-07-20T13:57:03  <Kepplar> ok
2006-07-20T13:57:04  <Kepplar> ill do that
2006-07-20T13:57:05  <Kepplar> but
2006-07-20T13:57:09  <Kepplar> what about the non-setting issue?
2006-07-20T13:57:12  <Kepplar> any ideas?
2006-07-20T13:59:05  <ThomasWaldmann> no
2006-07-20T14:01:37  <ThomasWaldmann> maybe don't define __new__ until you really have code for it. The return value of __new__() should be the new object instance (usually an instance of cls).
2006-07-20T14:06:15  <ThomasWaldmann> btw, pep8 recommends 1 blank line between function defs and 2 blank lines before a class def starts
2006-07-20T14:07:39  <xorAxAx> nope
2006-07-20T14:07:48  <xorAxAx> 2 lines between functions and 1 between methods
2006-07-20T14:08:31  * ThomasWaldmann meant methods
2006-07-20T14:08:41  <ThomasWaldmann>  138 if self.str_location != None:
2006-07-20T14:08:41  <ThomasWaldmann> 139 if str_location is None:
2006-07-20T14:08:41  <ThomasWaldmann> 140 str_location = self.generate_rev_location(item_name, item_revision_type, revision_number)
2006-07-20T14:08:53  <ThomasWaldmann> 138 ...
2006-07-20T14:09:03  <ThomasWaldmann> 140 indented wrong (storage.py)
2006-07-20T14:09:28  <ThomasWaldmann> maybe it would really help if you would configure your editor right
2006-07-20T14:09:43  <ThomasWaldmann> if you use vim, I can point you to useful settings
2006-07-20T14:10:38  <Kepplar> im using eric
2006-07-20T14:12:04  <ThomasWaldmann>    291        except IOError (error_number, error_string):
2006-07-20T14:12:53  <ThomasWaldmann> does this work?
2006-07-20T14:13:04  <xorAxAx> no
2006-07-20T14:14:20  <Kepplar> it should
2006-07-20T14:15:22  <ThomasWaldmann> the usual syntax is:  except (ErrorClass1, ErrorClass2), err:
2006-07-20T14:15:44  <Kepplar> not that i read
2006-07-20T14:15:48  <Kepplar> IOError can take two arguments
2006-07-20T14:15:51  <ThomasWaldmann> or    except ErrorClass, err:
2006-07-20T14:15:52  <Kepplar> one with the string
2006-07-20T14:15:54  <Kepplar> yes
2006-07-20T14:15:58  <Kepplar> its a breakdown of err
2006-07-20T14:16:42  <Kepplar> The base class for exceptions that can occur outside the Python system: IOError, OSError. When exceptions of this type are created with a 2-tuple, the first item is available on the instance's errno attribute (it is assumed to be an error number), and the second item is available on the strerror attribute (it is usually the associated error message).
2006-07-20T14:17:08  <ThomasWaldmann> you don't want to MAKE a IOError, you want to handle one :)
2006-07-20T14:17:25  <Kepplar> try:
2006-07-20T14:17:25  <Kepplar>     f = open('myfile.txt') s = f.readline() i = int(s.strip())
2006-07-20T14:17:26  <Kepplar> except IOError, (errno, strerror): print "I/O error(%s): %s" % (errno, strerror)
2006-07-20T14:17:37  <Kepplar> thats from docs.python.org
2006-07-20T14:17:45  <ThomasWaldmann> yes and there is a comma
2006-07-20T14:17:56  <xorAxAx> Kepplar: you dont want to compare the error string, just the err no
2006-07-20T14:18:08  <xorAxAx> Kepplar: so instantiating the exception is pointless for a comparison
2006-07-20T14:18:20  <Kepplar> ok i missed the comma :)
2006-07-20T14:18:52  <Kepplar> xorAxAx: ? its a tuple and i dont fancy using head (or whatever it python equiv is)
2006-07-20T14:19:04  <Kepplar> so i just pulled it out
2006-07-20T14:19:04  <xorAxAx> head?
2006-07-20T14:19:10  <Kepplar> takes first var in a tuple
2006-07-20T14:19:12  <xorAxAx> with the comma, its unpacking the sequence
2006-07-20T14:19:18  <xorAxAx> which makes sense
2006-07-20T14:19:20  <Kepplar> my alterative?
2006-07-20T14:19:23  <ThomasWaldmann> and btw, you will need the tuple instead of a single exception class if you want to catch multiple exception classes
2006-07-20T14:19:39  <Kepplar> hmm?
2006-07-20T14:19:54  <Kepplar> http://docs.python.org/tut/node10.html < this example shows multiple exception classes
2006-07-20T14:21:14  <ThomasWaldmann> except (e1, e2), err:
2006-07-20T14:21:28  <ThomasWaldmann> NOT: except e1, e2:
2006-07-20T14:21:50  <ThomasWaldmann> (this is a often made error)
2006-07-20T14:22:21  <Kepplar> im completly confused over what your talking about
2006-07-20T14:22:44  <Kepplar> except IOError (int, str):
2006-07-20T14:22:47  <Kepplar> catching an IO error
2006-07-20T14:22:53  <Kepplar> and sets int to the error num
2006-07-20T14:22:57  <Kepplar> and the error message to str
2006-07-20T14:23:02  <ThomasWaldmann> no
2006-07-20T14:23:06  <Kepplar> if i want something else, ill catch another error
2006-07-20T14:23:17  <xorAxAx> no, it does NOT work like that
2006-07-20T14:23:26  <Kepplar> then explain please!
2006-07-20T14:23:39  <Kepplar> in regards to the example on the page
2006-07-20T14:23:59  <ThomasWaldmann> just read the page and do it EXACTLY like that, including commas
2006-07-20T14:24:29  * Kepplar is lost
2006-07-20T14:24:34  <Kepplar> , multiple multiple catch?
2006-07-20T14:24:40  <Kepplar> er
2006-07-20T14:24:41  <Kepplar> safjksdaf[ksd
2006-07-20T14:24:53  <Kepplar> comma implies catching of two exceptions by the same except block?
2006-07-20T14:25:12  <Kepplar> (if so thats a) retarded and b) making little sense to whats happening in the example))
2006-07-20T14:25:54  <ThomasWaldmann> is it so hard just doing it like shown in the docs, in the moin source, etc?
2006-07-20T14:26:10  <Kepplar> docs, moin source?
2006-07-20T14:26:17  <Kepplar> i dont see anything similar to what im doing
2006-07-20T14:26:29  <ThomasWaldmann> the left part is either a exception class or a tuple of exception classes
2006-07-20T14:26:34  <ThomasWaldmann> then there is a COMMA
2006-07-20T14:26:39  <Kepplar> yes
2006-07-20T14:26:53  <xorAxAx> ThomasWaldmann: it can be an instance as well
2006-07-20T14:26:57  <xorAxAx> or a string, deprecatedly
2006-07-20T14:27:04  <ThomasWaldmann> and then there is a variable name. that variable will contain the exception
2006-07-20T14:27:14  <Kepplar> yes...
2006-07-20T14:27:23  <xorAxAx> and Kepplar tried to catch instances
2006-07-20T14:27:29  <xorAxAx> in his code
2006-07-20T14:27:33  <xorAxAx> which will never work
2006-07-20T14:27:38  <Kepplar> sorry@
2006-07-20T14:27:42  <Kepplar> ?
2006-07-20T14:28:16  <xorAxAx> IOError (int, str) is an instance
2006-07-20T14:28:20  <xorAxAx> of an IOError
2006-07-20T14:28:23  <Kepplar> i meant
2006-07-20T14:28:27  <Kepplar> to put a comma
2006-07-20T14:28:31  <Kepplar> thats been established
2006-07-20T14:28:34  <xorAxAx> nope
2006-07-20T14:28:41  <Kepplar> ?
2006-07-20T14:28:42  <xorAxAx> you quoted that broken line multiple times
2006-07-20T14:28:57  <Kepplar> i hadnt read the example properly
2006-07-20T14:31:26  <Kepplar> so.. ive yet to see a problem?
2006-07-20T14:31:39  <Kepplar> except for the missing comma
2006-07-20T14:32:00  <xorAxAx> please paste your corrected line
2006-07-20T14:32:23  <Kepplar> except IOError, (int, str):
2006-07-20T14:32:32  <xorAxAx> now look at these lines:
2006-07-20T14:32:39  <xorAxAx> 14:26:29 < ThomasWaldmann> the left part is either a exception class or a tuple of exception classes
2006-07-20T14:32:43  <xorAxAx> 14:26:34 < ThomasWaldmann> then there is a COMMA
2006-07-20T14:32:45  <xorAxAx> 14:27:04 < ThomasWaldmann> and then there is a variable name. that variable will contain the exception
2006-07-20T14:32:50  <Kepplar> yes
2006-07-20T14:32:51  <xorAxAx> and check why it still does NOT MAKE ANY SENSE
2006-07-20T14:32:52  <Kepplar> but
2006-07-20T14:33:02  <Kepplar> you even READ MY LINK
2006-07-20T14:33:10  <Kepplar> AS IT CLEARLY HAS AFTER THE COMMA A TUPLE
2006-07-20T14:33:13  <xorAxAx> i have my chm ile :)
2006-07-20T14:33:21  <xorAxAx> 14:27:04 < ThomasWaldmann> and then there is a variable name. that variable will contain the exception
2006-07-20T14:33:24  <xorAxAx> file
2006-07-20T14:33:25  <Kepplar> EnvironmentExeption can take a tuple
2006-07-20T14:33:30  <xorAxAx> oops
2006-07-20T14:33:47  <Kepplar> chm ile?
2006-07-20T14:33:54  <xorAxAx> ah, right, its unpacked, as i said above
2006-07-20T14:34:03  <Kepplar> yes yes
2006-07-20T14:34:07  <xorAxAx> which is merely unrelated to the constructor
2006-07-20T14:34:10  <xorAxAx> Kepplar: chm file
2006-07-20T14:34:22  <Kepplar> ah
2006-07-20T14:34:24  <xorAxAx> its all about python in one file
2006-07-20T14:34:33  <Kepplar> so whats wrong with unpacking it like that?
2006-07-20T14:34:36  <xorAxAx> very efficient
2006-07-20T14:34:39  <xorAxAx> Kepplar: perfectly ok
2006-07-20T14:34:41  <Kepplar> especially since i need the int
2006-07-20T14:34:49  <Kepplar> unless i can grab it via
2006-07-20T14:34:52  <Kepplar> e.erornos
2006-07-20T14:34:54  <Kepplar> or something?
2006-07-20T14:35:02  <Kepplar> error*
2006-07-20T14:35:32  <xorAxAx> yes, e.errno works
2006-07-20T14:35:40  <Kepplar> ok
2006-07-20T14:35:43  <Kepplar> ill do that then :)
2006-07-20T14:38:47  <Kepplar> right
2006-07-20T14:38:48  <Kepplar> to work
2006-07-20T14:40:45  <Kepplar> apologies for any outburst today - im rather stressed and its so hot i cant be bothered to put any effort into cohesive communication
2006-07-20T14:41:17  <Kepplar> (aka my brains melted)
2006-07-20T14:42:21  <xorAxAx> Kepplar: 31° C here
2006-07-20T14:42:26  <xorAxAx> oops, 32
2006-07-20T14:42:27  <Kepplar> aircon?
2006-07-20T14:42:36  <Kepplar> dude, we broke our record yesterday
2006-07-20T14:42:40  <Kepplar> we were hotter than bangkok
2006-07-20T14:42:43  <Kepplar> 38
2006-07-20T14:43:04  <xorAxAx> no aircon
2006-07-20T14:43:06  <xorAxAx> 32 inside
2006-07-20T14:43:52  <Kepplar> no idea what it is in my room :/
2006-07-20T14:44:07  <Kepplar> no window so probably very hot
2006-07-20T16:37:31  <Kepplar> so how was the mentor survey structured?
2006-07-20T16:43:08  <ThomasWaldmann> Kepplar: they basically wanted to know how well you are making progress, communicating, quantity and qualtity of work and finally, whether you deserve $2000
2006-07-20T16:44:19  <ThomasWaldmann> also, which reasons we had for SOC and what we learned new. and what mentor's fav. colour is.
2006-07-20T16:44:46  * ThomasWaldmann .oO(yet another google t-shirt :)
2006-07-20T16:50:29  <Kepplar> ah
2006-07-20T16:50:32  <Kepplar> so a tickey box job?
2006-07-20T16:51:07  <Kepplar> I can see them going to OR's conference with the colour as a random fact to make the audience laugh or something just as crude.
2006-07-20T16:51:30  <ThomasWaldmann> ticks and comment fields
2006-07-20T16:51:34  <Kepplar> ah
2006-07-20T16:51:46  <Kepplar> you didnt mention H.Notation did you? :P
2006-07-20T16:52:33  <xorAxAx> hehe
2006-07-20T16:52:53  <xorAxAx> Does the student use Hungarian Notation?   [ ] Yes   [ ] No
2006-07-20T16:53:18  <Kepplar> Quality of Code? Comments: "He used hungarian notation. nuff said"
2006-07-20T16:53:29  <Kepplar> not that i've changed my stance on using hungarian notation in code
2006-07-20T16:53:29  <ThomasWaldmann> i did :)
2006-07-20T16:55:24  * Kepplar notices fpletz hasn't pushed for 44 hours
2006-07-20T16:56:25  <xorAxAx> oh oh!
2006-07-20T17:29:58  <ThomasWaldmann> now it has a push :)
2006-07-20T17:48:26  <Kepplar> /win 13
2006-07-20T17:49:55  <xorAxAx> meta+e :)

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