| *** RaFromBRC|away has quit IRC | 00:25 | |
| *** timte has quit IRC | 00:29 | |
| benji_york | srichter, I have a patch for a bug in 3.1, will it be OK to wait until Monday to apply it? | 00:45 |
|---|---|---|
| *** niemeyer has quit IRC | 00:48 | |
| *** benji_york has quit IRC | 01:15 | |
| *** bradb is now known as bradb-away | 01:26 | |
| *** bskahan has quit IRC | 01:31 | |
| *** RaFromBRC has joined #zope3-dev | 01:32 | |
| *** yota has quit IRC | 01:43 | |
| *** FarcePest has quit IRC | 02:13 | |
| *** SteveA has quit IRC | 02:15 | |
| *** projekt01 has joined #zope3-dev | 02:25 | |
| *** d2m has quit IRC | 02:38 | |
| *** projekt01 has quit IRC | 02:39 | |
| *** RaFromBRC has quit IRC | 02:41 | |
| *** projekt01 has joined #zope3-dev | 02:43 | |
| *** yotaff has quit IRC | 02:51 | |
| *** alienoid has quit IRC | 03:00 | |
| *** anguenot has quit IRC | 03:02 | |
| *** hazmat has left #zope3-dev | 03:14 | |
| *** RaFromBRC has joined #zope3-dev | 03:46 | |
| *** RaFromBRC has quit IRC | 04:21 | |
| *** projekt01 has quit IRC | 05:35 | |
| *** RaFromBRC has joined #zope3-dev | 05:55 | |
| *** RaFromBRC has quit IRC | 06:33 | |
| bob2 | hm | 07:55 |
| bob2 | I'm doing some principal annotations stuff, but they're not being stored anywhere | 07:55 |
| bob2 | (in the tests) | 07:55 |
| bob2 | which seems reasonable, except that setUpAnnotations does magic so the object annotations get stored | 07:55 |
| *** horizon5 has quit IRC | 08:36 | |
| *** jkocherhans has joined #zope3-dev | 09:38 | |
| *** timte has joined #zope3-dev | 11:24 | |
| *** jkocherhans has quit IRC | 11:30 | |
| *** jkocherhans has joined #zope3-dev | 11:59 | |
| *** d2m has joined #zope3-dev | 12:38 | |
| *** jkocherhans has quit IRC | 12:54 | |
| *** philiMAC is now known as philiKON | 13:19 | |
| *** yota has joined #zope3-dev | 13:23 | |
| *** projekt01 has joined #zope3-dev | 13:49 | |
| *** stub has quit IRC | 15:44 | |
| philiKON | srichter, ayt? | 16:14 |
| *** alga has quit IRC | 16:14 | |
| *** mp has quit IRC | 16:40 | |
| *** mp has joined #zope3-dev | 16:41 | |
| projekt01 | some xpdl experts here? | 16:44 |
| *** mexiKON has joined #zope3-dev | 17:03 | |
| *** benji_york has joined #zope3-dev | 17:17 | |
| *** philiKON has quit IRC | 17:23 | |
| *** projekt01 has quit IRC | 17:33 | |
| *** Theuni has quit IRC | 18:10 | |
| *** mexiKON is now known as philiKON | 18:30 | |
| *** elbixio has joined #zope3-dev | 18:37 | |
| MJ | Hmm, anyone want to give some data/metadata advise? | 19:05 |
| MJ | I have a simple object, a key, that will be heavily used in user interfaces | 19:05 |
| MJ | As such it has an id, a title and a description | 19:06 |
| MJ | There are different implementations, one of them manager-editable | 19:06 |
| MJ | But also an adapter-generated version, where the adapted objects (principals) already have the same information. | 19:07 |
| philiKON | by "id" you probably mean its name inside the container...? | 19:07 |
| MJ | philiKON: It so happens the id is also the name in the container | 19:08 |
| philiKON | ok. but that's just coincidence, then? | 19:08 |
| MJ | philiKON: Not really. | 19:08 |
| philiKON | (i'm asking because some people still use the crummy zope 2 vocabulary which isn't very clear) | 19:08 |
| MJ | But that is outside the scope here | 19:08 |
| philiKON | ok | 19:09 |
| philiKON | go on | 19:09 |
| MJ | I read your book :) | 19:09 |
| MJ | Now, the manager-editable implementation is also IAttributeAnnotable | 19:09 |
| MJ | So it has a DC metadata view | 19:09 |
| MJ | With it's own title and description | 19:10 |
| MJ | And that bugs me :) | 19:10 |
| MJ | Also, the container thus leaves the Title empty because the DC title is empty | 19:10 |
| philiKON | right | 19:10 |
| MJ | It may also cause user confusion | 19:10 |
| philiKON | well, here's what i do | 19:10 |
| MJ | So. | 19:10 |
| * MJ listens | 19:10 | |
| philiKON | when i need title and description, i always use the DC items | 19:11 |
| philiKON | makes it easier because it's a standard zope api for these things | 19:11 |
| philiKON | e.g. the zmi knows how to read it | 19:11 |
| MJ | But there are more implementations, some of which are *not* annotatable. | 19:11 |
| philiKON | etc. | 19:11 |
| philiKON | sure | 19:11 |
| philiKON | what you do is, you have a schema that represents all the data | 19:12 |
| philiKON | basically, all the data you want to enter about such an object through a form | 19:12 |
| MJ | yes | 19:12 |
| philiKON | id, title, description i presume | 19:12 |
| MJ | yes | 19:12 |
| philiKON | that is the interface you use in <browser:*form schema="" /> | 19:12 |
| MJ | yes | 19:12 |
| philiKON | now, those objects that will use the DC title/description *WON'T* implement this interface | 19:12 |
| philiKON | they will implement a duller interface | 19:13 |
| MJ | Aha | 19:13 |
| philiKON | and you adapt between this duller interface and the full schema | 19:13 |
| MJ | Ah! | 19:13 |
| philiKON | in that adapter, you map title, description to IZopeDublinCore(self.context).Title etc. | 19:13 |
| MJ | And that adapter takes the DC info instead | 19:13 |
| philiKON | exactly | 19:14 |
| MJ | Nice! | 19:14 |
| philiKON | the browser:editfrom will automatically notice that the schema you wanted to render the form with is not provided by the object in question and adapt | 19:14 |
| MJ | I was already contemplating making a custom DC adapter | 19:14 |
| MJ | But this is more elegant. | 19:14 |
| philiKON | yes | 19:14 |
| MJ | Thanks Philipp | 19:15 |
| philiKON | i actually wish it was even easier to have metadata included in regular edit forms | 19:15 |
| philiKON | i guess this is an optional enhancement one could think about for zope.formlib | 19:15 |
| MJ | So I leave <*form schema="" /> unchanged but do provide an adapter. | 19:15 |
| MJ | Yes | 19:16 |
| MJ | But for now I have a way forward. | 19:16 |
| MJ | Thanks Philipp | 19:16 |
| philiKON | you leave the schema="IFoo" unchanged, but you won't have your objects provide IFoo | 19:16 |
| philiKON | you will have them provide INotTotallyFoo | 19:16 |
| MJ | If you are curious: this is for Chronolog | 19:16 |
| philiKON | and adapt between INotTotallyFoo and IFoo | 19:16 |
| philiKON | what's Chronolog? | 19:17 |
| MJ | http://chronolog.zopatista.com | 19:17 |
| MJ | My Zope 3 project to build OSS timesheets | 19:17 |
| philiKON | ah, cool | 19:17 |
| MJ | Bingo | 19:17 |
| philiKON | MJ, i know the perl script you wrote for infrae :)) | 19:18 |
| * MJ goes off to provide dinner for the lil' ones | 19:18 | |
| MJ | Hehehe | 19:18 |
| MJ | :) | 19:18 |
| philiKON | used it myself | 19:18 |
| MJ | Everyone who visited Infrae does :) | 19:18 |
| MJ | LOL | 19:18 |
| MJ | gotta go | 19:18 |
| MJ | Thanks! | 19:18 |
| philiKON | np | 19:19 |
| philiKON | see you | 19:19 |
| *** roym` has joined #zope3-dev | 19:24 | |
| roym` | Folks, I find that I can nest a macro within another (ZPT) as follows: | 19:24 |
| roym` | define-macro M1 | 19:24 |
| roym` | define-slot S1 | 19:24 |
| roym` | define-macro M2 | 19:24 |
| roym` | define-slot S2 | 19:24 |
| roym` | 19:24 | |
| roym` | However, when I use the macro as follows: | 19:24 |
| roym` | use-macro M1 | 19:24 |
| roym` | fill-slot S1 | 19:24 |
| roym` | use-macro M2 | 19:24 |
| roym` | fill-slot S2 (with 'some text') | 19:24 |
| roym` | I find that slot S2 isn't filled with 'some text' | 19:24 |
| roym` | 19:24 | |
| roym` | I am not sure what I am doing wrong here... any suggestions? (note: I | 19:24 |
| roym` | find that the fill-slot directive doesn't care if the named slot "S2" | 19:24 |
| roym` | exists or not) | 19:24 |
| roym` | \w | 19:44 |
| roym` | \h | 19:45 |
| roym` | \? | 19:45 |
| *** roym` has left #zope3-dev | 19:48 | |
| philiKON | i hate zope.org, i hate zope.org, i hate zope.org | 20:19 |
| philiKON | phew, now it's out of my system | 20:19 |
| *** roym` has joined #zope3-dev | 20:25 | |
| roym` | sorry, lost my connection so I missed any replies; however, I found my answer... thanks. | 20:29 |
| roym` | I was using <div use-macro-"..."> instead of <div metal:use-macro-"..."> | 20:29 |
| *** elbixio has quit IRC | 20:42 | |
| *** zagy has quit IRC | 21:21 | |
| *** zagy has joined #zope3-dev | 21:23 | |
| *** zagy has quit IRC | 21:27 | |
| *** zagy has joined #zope3-dev | 21:30 | |
| *** tvon has quit IRC | 21:42 | |
| *** projekt01 has joined #zope3-dev | 21:49 | |
| *** tvon has joined #zope3-dev | 22:15 | |
| *** M1 has joined #zope3-dev | 22:16 | |
| *** MJ has quit IRC | 22:17 | |
| *** M1 is now known as MJ | 22:18 | |
| *** ruda_porto has joined #zope3-dev | 23:02 | |
| *** jhauser_ has joined #zope3-dev | 23:54 | |
Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!