1 2013-09-02T07:47:28  <TheSheep> sharky93: what's with https://bitbucket.org/sharky93/moin-2.0-bootstrap/issue/43/write-documentation-on-bulding-the-theme ?
   2 2013-09-02T07:47:33  <TheSheep> sharky93: it's long overdue
   3 2013-09-02T08:22:47  <ananasova> moin
   4 2013-09-02T08:29:12  <ThomasWaldmann> moin
   5 2013-09-02T09:13:43  <ananasova> ThomasWaldmann: waldi: updated (see last 2 patches) https://codereview.appspot.com/12745048/
   6 2013-09-02T09:48:29  <ThomasWaldmann> ananasova: replied
   7 2013-09-02T12:10:23  *** ashutosh1461 has joined #moin-dev
   8 2013-09-02T12:16:30  <ashutosh1461> ThomasWaldmann, sorry could not attend the meeting yesterday, got busy Also this week i have exams so would be busy most of the times.
   9 2013-09-02T12:16:46  <ashutosh1461> but i will focus on completing the history view
  10 2013-09-02T12:42:06  <ashutosh1461> ThomasWaldmann, please review https://codereview.appspot.com/13440043
  11 2013-09-02T15:23:45  <ananasova> ThomasWaldmann: some updates here - https://codereview.appspot.com/12745048/
  12 2013-09-02T17:15:59  <ThomasWaldmann> ashutosh1461: ananasova: done
  13 2013-09-02T17:17:24  <ThomasWaldmann> waldi: about tuples vs. lists: looks like you focus on the immutability aspect of it while i focus on lists and tuples being different types in principle.
  14 2013-09-02T17:18:05  <ThomasWaldmann> for me, in such cases, a immutable list would be perfect, but there is no such type (at least not easily)
  15 2013-09-02T17:18:41  <ashutosh1461> ThomasWaldmann, is there any flaw in the method which i currently used for validation ?
  16 2013-09-02T17:19:07  <ThomasWaldmann> but i see lists as usually-same member-type sequence of things, with special list indexes having no more meaning than order
  17 2013-09-02T17:19:34  <waldi> both lists and tuples are sequences, aka ordered set of items
  18 2013-09-02T17:19:50  <ThomasWaldmann> while a tuple is often different member-type and give special meaning to elements at a specific index
  19 2013-09-02T17:20:38  <ThomasWaldmann> like (x, y, z) 3d coordinates or (firstname, lastname, street) being typical tuples
  20 2013-09-02T17:21:14  <ThomasWaldmann> and [dog1, dog2, dog3, ] being a typical list
  21 2013-09-02T17:21:46  <ThomasWaldmann> (also see usage of tuple in math)
  22 2013-09-02T17:23:08  <ThomasWaldmann> there is no hard requirement in python to only use it that way, but i think it is better style
  23 2013-09-02T17:23:38  <waldi> "Tuples are also used for cases where an immutable sequence of homogeneous data is needed (such as allowing storage in a set or dict instance)."
  24 2013-09-02T17:24:45  <waldi> i don't. you can modify the list and you'll get interresting behaviour. each call gets its own object, while immutable objects can be shared
  25 2013-09-02T17:25:19  <ThomasWaldmann> yes, one CAN do that. if you need hashability, you even must do it. but in other cases, you don't need.
  26 2013-09-02T17:25:34  <waldi> otherwise use a frozenset
  27 2013-09-02T17:26:23  <waldi> even seen "def bla(a=[])"?
  28 2013-09-02T17:26:28  <waldi> s,even,ever,
  29 2013-09-02T17:27:03  <ThomasWaldmann> that's a problem for itself, due to the way how that works in python.
  30 2013-09-02T17:29:06  <ThomasWaldmann> ashutosh1461: i don't know, that's why I said "ask jek".
  31 2013-09-02T17:31:09  <ThomasWaldmann> and as you don't reliably test (or even research) your stuff, I can't just rely on that...
  32 2013-09-02T17:38:46  <ThomasWaldmann> ashutosh1461: the question is, as you are using otherelement.valid in a validator, whether you can rely on that otherelement already having been validated at the time you use it..
  33 2013-09-02T18:12:51  <ashutosh1461> ThomasWaldmann, i dont know how flatland stores elements in forms, validation is done  in the same order as they are stored in the form.
  34 2013-09-02T18:14:18  <ashutosh1461> i printed out the modify form, extra_meta_text came before the meta_form so i was sure that the json data is validated first.
  35 2013-09-02T18:21:25  <ashutosh1461> maybe as we are also using a Dict here, the order may not be predictable as in case of a python dict.. but should be consistent.

MoinMoin: MoinMoinChat/Logs/moin-dev/2013-09-02 (last edited 2013-09-02 08:00:03 by IrcLogImporter)