IRC log of #schooltool for Tuesday, 2005-07-12

*** povbot has joined #schooltool14:15
*** ignas__ has joined #schooltool14:48
*** ignas has quit IRC14:59
pcarduneI am having a problem getting these RelationshipProperty's to work15:12
pcardunewhen I add something, a link is only made for one of the objects involved and not both15:13
*** pcardune has left #schooltool15:16
mgedminoh?15:45
*** erchache has joined #schooltool15:55
*** matiasV has joined #schooltool15:57
erchachehi16:00
povbot/svn/commits: * gintas committed revision 4153:16:15
povbot/svn/commits: Made the daily calendar PDF report a table, added unicode support.16:15
*** jinty has joined #schooltool16:37
*** ignas__ is now known as ignas16:39
*** gpaci has joined #schooltool18:18
*** gpaci has left #schooltool18:20
*** eldar has joined #schooltool18:29
eldargood morning18:29
mgedmingood evening, eldar18:30
gintashi18:30
povbot/svn/commits: * gintas committed revision 4154:18:32
povbot/svn/commits: Made font path configurable, removed some unnecessary code.  The code is not in a very good state yet, I want to make the dependency on ReportLab a soft one eventually.18:32
povbot/svn/commits: * gintas committed revision 4155:18:43
povbot/svn/commits: Put SchoolBell logo on the report.18:43
eldarquestion18:49
mgedminrequest for clarification18:49
eldarwhen you relate 2 objects, the relationship schema takes care of everything itself right?18:49
eldarmeaning, it'll just add some properties to the objects18:49
mgedminmore or less, yes18:50
mgedmin(the schema itself doesn't do much; everything happens within the relate method and the IRelationshipLinks adapter)18:50
mgedminhowever no properties on the objects are touched18:51
eldarthen how are they virtually related?18:51
mgedminif you use RelationshipProperty, then yes, that property will know about the relationship you just established18:51
eldarsomething has to be recorded somewhere, right?18:51
mgedminyes18:51
mgedminthe IRelationshipLinks adapter is responsible for storing relationship data18:51
mgedminthe default one uses Zope 3 annotations18:51
mgedmin99% of annotatable objects in Zope 3 store the annotations in a dict in the __annotations__ attribute, IIRC18:52
eldarso just making the objects annotable and relating them is all i have to do..?18:52
mgedminwhich is an implementation detail that you normally are not interested in18:52
mgedminyes, you just have to make objects annotatable18:52
eldarcool18:52
eldarthanks18:52
mgedmin(and make sure the IAnnotatable -> IRelationshipLinks adapter is registered)18:52
eldarhuH?18:52
mgedmin(which happens at runtime if you include schoolbell.relationships configure.zcml)18:53
eldarok18:53
mgedmin(but you must do that yourself in unit test setup code if you want to use relationships in a test)18:53
*** erchache has left #schooltool19:06
eldarok, to register the adapter, i just add <package include="schoolbell.relationships" /> in candotoo configuration file, right?19:06
povbot/svn/commits: * gintas committed revision 4156:19:07
povbot/svn/commits: Added event description and list of booked resources to the report.19:07
*** matiasV has quit IRC19:12
*** matiasV has joined #schooltool19:12
mgedmineldar, yes19:38
*** gintas has quit IRC19:47
*** jinty has quit IRC20:05
*** eldar has quit IRC20:12
*** jinty has joined #schooltool21:23
*** ignas has quit IRC22:26
*** replicant is now known as hazmat23:44
*** mgedmin_ has joined #schooltool23:49
*** mgedmin has quit IRC23:49
*** strichter is now known as srichter23:57

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!