IRC log of #schooltool for Thursday, 2005-02-17

mgedminbskahan, if you create that wiki page in your home folder, will other be able to edit it?00:04
mgedminwho does http://www.schooltool.org/using say that creating your own wiki page is "not really recommended"?00:05
mgedmins/who/why/00:05
tvonmaybe for your random member... though I still don't entirely agree00:05
mgedminI don't seem to be able to add wiki pages in my home folder, though00:06
tvoneh.. why does simple_edit.pt have a define-macro="body" right inside a fill-slot="body"?00:11
mgedmindoes it?00:14
* mgedmin looks00:14
mgedminI think someone copied bits from the standard form macros without really understanding what they were doing00:15
tvonah00:15
tvonI'll ditch the define-macro bit00:15
mgedminunless I am looking at code reuse00:16
tvonwhen you have <div metal:define-slot="foo"></div>.. and <div metal:fill-slot="foo">blah</div>... *both* div tags are thrown away in the end, correct?00:16
tvoneg, after that, all there will be is "blah" and not "<div>blah</div>"..00:17
mgedminno00:17
mgedminwhen you have <x metal:define-slot="foo">...</x>00:17
mgedminand <y metal:fill-slot="foo">z</y>00:17
mgedminyou get <y>z</y> in the output00:17
tvonah, okay00:17
mgedminsvn blame says I added those define-macro lines!00:18
tvonhehe00:18
mgedmin*outch*00:20
mgedminhttp://source.schooltool.org/viewcvs/trunk/schooltool/src/schoolbell/app/browser/templates/simple_edit.pt?rev=2657&r1=2640&r2=2657&diff_format=u00:20
mgedminviewcvs does not escape angle brackets in diffs!00:20
mgedmin(if I choose unified diff format)00:21
bskahanyeah, I've noticed that before00:21
tvonhah00:21
mgedminI see, I touched spacing00:22
* mgedmin shrugs00:23
mgedminI suggest getting rid of all macro and slot definitions in page templates, except for view_macros.pt00:24
tvonI see the formbody macro defined in simple_edit/add... is it used for anything that I'm not seeing?00:26
mgedminI don't think so00:28
* jinty looks around for a blank cd, dosen't find one. decides to go home.00:28
*** jinty has quit IRC00:30
mgedmingood night00:36
*** mgedmin has quit IRC00:36
bskahansome z3 traceback:01:05
bskahan    mod = __import__(mname, *_import_chickens)01:05
*** th1a has joined #schooltool02:54
*** d2m has quit IRC04:08
*** hazmat has quit IRC04:59
*** d2m has joined #schooltool11:25
*** hazmat has joined #schooltool11:46
*** hazmat has quit IRC14:18
*** Awayblia is now known as Workblia16:10
*** gintas has joined #schooltool16:15
*** tvon has quit IRC16:57
*** tvon has joined #schooltool17:35
*** tvon|x31 has joined #schooltool17:57
*** tvon has quit IRC17:57
*** mgedmin has joined #schooltool18:12
*** hazmat has joined #schooltool18:18
*** tvon|x31 is now known as tvon18:30
*** tvon has quit IRC18:39
*** tvon has joined #schooltool18:39
*** hazmat has quit IRC19:17
*** hazmat has joined #schooltool20:25
*** gintas has quit IRC20:45
*** hazmat has quit IRC20:52
*** tvon has quit IRC21:01
*** tvon has joined #schooltool21:10
*** gintas has joined #schooltool21:26
* tvon is confused22:43
tvonWhere would we use Annotations vs AttributeAnnotations?22:43
tvonthough... looking at relationship.annotatable the usage seems similar...  eg, "annot = AttributeAnnotations(obj)" vs "annot = IAnnotations(obj)".. and then get/set on annot22:44
mgedminwe should never use Annotations or AttributeAnnotations22:46
mgedminwe should use IAnnotations(obj)22:46
tvonah22:46
mgedminactually, I think we should define our own adapter ISomeSortOfExtraInfo(obj)22:47
mgedminand the code of the adapter should use IAnnotations(obj)['schoolbell.app.SomeSortOfExtraInfo']22:48
mgedminand catch KeyErrors22:48
*** bskahan has quit IRC22:48
mgedminand create the extra info object if it is not present in the annotations22:48
mgedminsee how IRelationshipLinks adapter is implemented22:48
*** bskahan has joined #schooltool22:49
*** gintas has quit IRC22:53
* tvon goes to lunch23:06
*** tvon has quit IRC23:06
*** mgedmin has quit IRC23:24

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