*** tpb has joined #melange | 00:00 | |
*** madrazr has joined #melange | 02:26 | |
*** ChanServ sets mode: +v madrazr | 02:26 | |
*** madrazr has quit IRC | 02:47 | |
*** madrazr has joined #melange | 03:02 | |
*** ChanServ sets mode: +v madrazr | 03:02 | |
*** madrazr has quit IRC | 03:18 | |
*** dr__house has joined #melange | 04:41 | |
*** dr__house has quit IRC | 04:44 | |
*** dr__house has joined #melange | 04:45 | |
*** dr__house has quit IRC | 06:38 | |
*** madrazr has joined #melange | 07:10 | |
*** ChanServ sets mode: +v madrazr | 07:10 | |
*** madrazr1 has joined #melange | 07:41 | |
*** madrazr has quit IRC | 07:42 | |
*** dr__house has joined #melange | 08:29 | |
*** saviet has quit IRC | 09:41 | |
*** saviet has joined #melange | 09:47 | |
*** mithro has joined #melange | 09:49 | |
*** ChanServ sets mode: +v mithro | 09:49 | |
*** madrazr1 has quit IRC | 11:04 | |
*** madrazr has joined #melange | 13:51 | |
*** ChanServ sets mode: +v madrazr | 13:51 | |
sttwister | madrazr: ping | 15:17 |
---|---|---|
madrazr | sttwister: pong | 15:17 |
sttwister | madrazr: got some quick question, do you perhaps have some time ? | 15:17 |
madrazr | sttwister: go ahead! | 15:18 |
sttwister | so, I want to define a view that is not tied to any specific model | 15:18 |
sttwister | I created a view that inherited base.View | 15:18 |
sttwister | and defined a logic class as well | 15:18 |
sttwister | but the Logic class needs a model reference | 15:19 |
sttwister | so how should I go about this ? | 15:19 |
sttwister | btw, the view I'm talking about must simply return a list of all models and all data providers if that changes anything | 15:19 |
madrazr | sttwister: Oh interesting | 15:20 |
madrazr | sttwister: give me some time to think about it a bit | 15:20 |
madrazr | sttwister: we haven't done anything like that till now AFAIK | 15:20 |
sttwister | madrazr: ok sure, thanks :) | 15:20 |
sttwister | madrazr: yep, I looked around a bit and haven't found anything like this situation | 15:21 |
sttwister | madrazr: well, the data seeder will contain some models in the near future, so I might as well just create a dummy model now if there's no easy workaround | 15:22 |
madrazr | sttwister: it will surely contain or may contain? | 15:23 |
sttwister | madrazr: surely, it will keep track of the task progress (i.e. what model to seed next etc) | 15:24 |
madrazr | sttwister: then you should create stubs for those models and use them | 15:24 |
madrazr | sttwister: it is lot easier than to find a workaround now and then throw away that work around later | 15:24 |
madrazr | :) | 15:24 |
madrazr | sttwister: if I am making sense? | 15:24 |
madrazr | sttwister: saves lots and lots of time | 15:25 |
sttwister | madrazr: yes I get it | 15:25 |
sttwister | madrazr: I was just thinking that this view doesn't really "belong" to a model | 15:25 |
madrazr | sttwister: Oh OK | 15:26 |
madrazr | sttwister: one min | 15:26 |
madrazr | I am missing something here | 15:26 |
madrazr | sttwister: if it really doesn't belong to a model why do you want logic? | 15:26 |
madrazr | logic is the interface between the Data layer and the View Layer | 15:26 |
sttwister | madrazr: because base.View requires Logic | 15:27 |
madrazr | sttwister: let me look at that code | 15:28 |
madrazr | sttwister: you must do a workaround here | 15:28 |
sttwister | I tried leaving out params['logic'] or setting to None, it throws exceptions | 15:28 |
madrazr | sttwister: it uses it elsewhere | 15:28 |
madrazr | sttwister: but this makes me think one more thing | 15:29 |
sttwister | madrazr: I think base.View access params['logic'] directly | 15:29 |
madrazr | sttwister: this is definitely not the type of View that is typical of anything in Melange till now | 15:29 |
madrazr | sttwister: so should you really want to inherit from base.View? | 15:29 |
sttwister | madrazr: indeed | 15:29 |
madrazr | sttwister: why do you want to inherit? | 15:29 |
sttwister | madrazr: nope, but there's nothing else... | 15:29 |
sttwister | madrazr: sooo, this means creating a new class of views ? | 15:30 |
madrazr | sttwister: thats what I think at least | 15:30 |
madrazr | sttwister: if you see how all the base modules are constructed | 15:30 |
sttwister | madrazr: ok then, I think this should be dev mailing list material | 15:30 |
madrazr | base.View depends on base.Logic | 15:30 |
madrazr | which inturn depends on base.Model (which is not the case here) | 15:30 |
madrazr | definitely | 15:30 |
madrazr | shoot a mail | 15:31 |
madrazr | I will +1 on it :P | 15:31 |
madrazr | or ask for suggestions | 15:31 |
sttwister | ok, right away... | 15:31 |
madrazr | I will give what I said here :) | 15:31 |
madrazr | whatever | 15:31 |
madrazr | sure thanks | 15:31 |
sttwister | madrazr: posted | 15:36 |
madrazr | sttwister: Ok | 15:38 |
madrazr | will reply | 15:38 |
sttwister | madrazr: I forgot about the solution involving dummy model, will update now | 15:38 |
madrazr | sttwister: Ok | 15:38 |
madrazr | I will reply after that then | 15:38 |
sttwister | madrazr: updated ;) | 15:39 |
madrazr | sttwister: great! will reply | 15:40 |
*** madrazr has quit IRC | 15:54 | |
*** lresende has joined #melange | 16:17 | |
*** MatthewWilkes has joined #melange | 16:23 | |
*** madrazr has joined #melange | 16:34 | |
*** ChanServ sets mode: +v madrazr | 16:34 | |
*** MatthewWilkes has quit IRC | 16:56 | |
*** lresende has quit IRC | 18:06 | |
*** dhaun has joined #melange | 19:28 | |
*** MatthewWilkes has joined #melange | 20:59 | |
MatthewWilkes | evening all | 21:08 |
MatthewWilkes | How's it going? | 21:08 |
madrazr | MatthewWilkes: Hi | 21:15 |
madrazr | evening | 21:16 |
madrazr | MatthewWilkes: going good! | 21:16 |
MatthewWilkes | madrazr: Glad to hear it! You mentoring SoC this year? | 21:17 |
madrazr | MatthewWilkes: yeah | 21:17 |
madrazr | Social Features project | 21:17 |
MatthewWilkes | Nice | 21:18 |
madrazr | MatthewWilkes: how are things going there? | 21:18 |
MatthewWilkes | Good, thanks, doing a bit of housekeeping around Plone as I've been too busy to do much recently, so earning some brownie points ;) | 21:19 |
*** madrazr has quit IRC | 21:38 | |
*** dhaun has quit IRC | 23:07 | |
*** sttwister has quit IRC | 23:44 | |
*** sttwister has joined #melange | 23:45 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!