mgedmin | bskahan, if you create that wiki page in your home folder, will other be able to edit it? | 00:04 |
---|---|---|
mgedmin | who does http://www.schooltool.org/using say that creating your own wiki page is "not really recommended"? | 00:05 |
mgedmin | s/who/why/ | 00:05 |
tvon | maybe for your random member... though I still don't entirely agree | 00:05 |
mgedmin | I don't seem to be able to add wiki pages in my home folder, though | 00:06 |
tvon | eh.. why does simple_edit.pt have a define-macro="body" right inside a fill-slot="body"? | 00:11 |
mgedmin | does it? | 00:14 |
* mgedmin looks | 00:14 | |
mgedmin | I think someone copied bits from the standard form macros without really understanding what they were doing | 00:15 |
tvon | ah | 00:15 |
tvon | I'll ditch the define-macro bit | 00:15 |
mgedmin | unless I am looking at code reuse | 00:16 |
tvon | when 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 |
tvon | eg, after that, all there will be is "blah" and not "<div>blah</div>".. | 00:17 |
mgedmin | no | 00:17 |
mgedmin | when you have <x metal:define-slot="foo">...</x> | 00:17 |
mgedmin | and <y metal:fill-slot="foo">z</y> | 00:17 |
mgedmin | you get <y>z</y> in the output | 00:17 |
tvon | ah, okay | 00:17 |
mgedmin | svn blame says I added those define-macro lines! | 00:18 |
tvon | hehe | 00:18 |
mgedmin | *outch* | 00:20 |
mgedmin | http://source.schooltool.org/viewcvs/trunk/schooltool/src/schoolbell/app/browser/templates/simple_edit.pt?rev=2657&r1=2640&r2=2657&diff_format=u | 00:20 |
mgedmin | viewcvs does not escape angle brackets in diffs! | 00:20 |
mgedmin | (if I choose unified diff format) | 00:21 |
bskahan | yeah, I've noticed that before | 00:21 |
tvon | hah | 00:21 |
mgedmin | I see, I touched spacing | 00:22 |
* mgedmin shrugs | 00:23 | |
mgedmin | I suggest getting rid of all macro and slot definitions in page templates, except for view_macros.pt | 00:24 |
tvon | I see the formbody macro defined in simple_edit/add... is it used for anything that I'm not seeing? | 00:26 |
mgedmin | I don't think so | 00:28 |
* jinty looks around for a blank cd, dosen't find one. decides to go home. | 00:28 | |
*** jinty has quit IRC | 00:30 | |
mgedmin | good night | 00:36 |
*** mgedmin has quit IRC | 00:36 | |
bskahan | some z3 traceback: | 01:05 |
bskahan | mod = __import__(mname, *_import_chickens) | 01:05 |
*** th1a has joined #schooltool | 02:54 | |
*** d2m has quit IRC | 04:08 | |
*** hazmat has quit IRC | 04:59 | |
*** d2m has joined #schooltool | 11:25 | |
*** hazmat has joined #schooltool | 11:46 | |
*** hazmat has quit IRC | 14:18 | |
*** Awayblia is now known as Workblia | 16:10 | |
*** gintas has joined #schooltool | 16:15 | |
*** tvon has quit IRC | 16:57 | |
*** tvon has joined #schooltool | 17:35 | |
*** tvon|x31 has joined #schooltool | 17:57 | |
*** tvon has quit IRC | 17:57 | |
*** mgedmin has joined #schooltool | 18:12 | |
*** hazmat has joined #schooltool | 18:18 | |
*** tvon|x31 is now known as tvon | 18:30 | |
*** tvon has quit IRC | 18:39 | |
*** tvon has joined #schooltool | 18:39 | |
*** hazmat has quit IRC | 19:17 | |
*** hazmat has joined #schooltool | 20:25 | |
*** gintas has quit IRC | 20:45 | |
*** hazmat has quit IRC | 20:52 | |
*** tvon has quit IRC | 21:01 | |
*** tvon has joined #schooltool | 21:10 | |
*** gintas has joined #schooltool | 21:26 | |
* tvon is confused | 22:43 | |
tvon | Where would we use Annotations vs AttributeAnnotations? | 22:43 |
tvon | though... looking at relationship.annotatable the usage seems similar... eg, "annot = AttributeAnnotations(obj)" vs "annot = IAnnotations(obj)".. and then get/set on annot | 22:44 |
mgedmin | we should never use Annotations or AttributeAnnotations | 22:46 |
mgedmin | we should use IAnnotations(obj) | 22:46 |
tvon | ah | 22:46 |
mgedmin | actually, I think we should define our own adapter ISomeSortOfExtraInfo(obj) | 22:47 |
mgedmin | and the code of the adapter should use IAnnotations(obj)['schoolbell.app.SomeSortOfExtraInfo'] | 22:48 |
mgedmin | and catch KeyErrors | 22:48 |
*** bskahan has quit IRC | 22:48 | |
mgedmin | and create the extra info object if it is not present in the annotations | 22:48 |
mgedmin | see how IRelationshipLinks adapter is implemented | 22:48 |
*** bskahan has joined #schooltool | 22:49 | |
*** gintas has quit IRC | 22:53 | |
* tvon goes to lunch | 23:06 | |
*** tvon has quit IRC | 23:06 | |
*** mgedmin has quit IRC | 23:24 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!