*** replaceafill has quit IRC | 00:39 | |
*** menesis has quit IRC | 01:47 | |
*** th1a has quit IRC | 02:35 | |
*** yvl has joined #schooltool | 07:21 | |
*** menesis has joined #schooltool | 13:01 | |
*** menesis has quit IRC | 14:20 | |
*** menesis has joined #schooltool | 15:31 | |
*** th1a has joined #schooltool | 15:34 | |
*** replaceafill has joined #schooltool | 16:00 | |
yvl | hey replaceafill | 16:17 |
---|---|---|
yvl | pushed a fix to addTeacher, etc. | 16:17 |
yvl | we'll have to add relationships in .add method I'm afraid | 16:18 |
replaceafill | yvl, ah ok | 16:24 |
replaceafill | weird bug? | 16:24 |
yvl | no | 16:33 |
yvl | relationships are now cataloged | 16:33 |
yvl | that means they need to have key references | 16:33 |
replaceafill | ah | 16:33 |
yvl | that means they need _p_oid | 16:33 |
replaceafill | so the objects need to be attached to the db before | 16:33 |
yvl | yes | 16:34 |
replaceafill | got it | 16:34 |
yvl | we can attach them manually | 16:34 |
replaceafill | good to know :D | 16:34 |
yvl | from ZODB.interfaces import IConnection | 16:34 |
yvl | from zope.component.hooks import getSite | 16:34 |
yvl | IConnection(getSite()).add(obj) | 16:34 |
yvl | it's not strictly correct | 16:34 |
yvl | and if you don't assign __parent__ to the obj later | 16:35 |
yvl | it will just sit in the db | 16:35 |
yvl | all alone | 16:35 |
replaceafill | "old" relationships are also cataloged? i mean, the non-temporal ones? | 16:35 |
replaceafill | or there's no non-temporal anymore? | 16:35 |
yvl | yes | 16:35 |
replaceafill | ah ok | 16:36 |
yvl | all relationships are cataloged | 16:36 |
yvl | but they can be simple or temporal | 16:36 |
replaceafill | right | 16:36 |
yvl | or something else even | 16:36 |
replaceafill | courses to sections is still simple | 16:36 |
yvl | see TemporalURI... | 16:36 |
replaceafill | yesterday, i forgot to comment on my "discovery" of request helpers :D | 16:37 |
replaceafill | i noticed you used self.request.util.today somewhere | 16:37 |
replaceafill | and i was like ?!?!?! | 16:37 |
replaceafill | then i found about the helpers | 16:38 |
yvl | :D | 16:38 |
yvl | sorry, forgot to tell about them :S | 16:38 |
replaceafill | 3 years now and i still find nice pieces of functionality, unknown for me :P | 16:38 |
yvl | using date util just annoyed me too much | 16:38 |
replaceafill | definitely | 16:38 |
yvl | that one was added some weeks ago | 16:39 |
yvl | could have done that years ago :| | 16:39 |
th1a | replaceafill: I asked Steven to resend his feature spec to make sure we're all talking about the same thing. | 17:15 |
th1a | Then we'll go over it. | 17:15 |
replaceafill | th1a, kk | 17:15 |
replaceafill | sure | 17:15 |
*** th1a has quit IRC | 19:38 | |
*** menesis has quit IRC | 21:20 | |
*** menesis has joined #schooltool | 23:13 | |
*** yvl has quit IRC | 23:17 | |
*** replaceafill has quit IRC | 23:52 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!