*** JaRoel|4D has joined #zope | 00:03 | |
*** JaRoel|4D has quit IRC | 00:10 | |
*** marcellobs has quit IRC | 00:13 | |
*** menesis has quit IRC | 00:14 | |
*** menesis has joined #zope | 00:18 | |
*** Charlie_X has quit IRC | 00:19 | |
*** benji has quit IRC | 00:32 | |
*** ccomb has joined #zope | 00:33 | |
*** timte has quit IRC | 00:35 | |
*** jim_SFU has quit IRC | 00:40 | |
*** moo---_ has quit IRC | 00:44 | |
*** dunny has joined #zope | 00:47 | |
*** mfinney has joined #zope | 00:47 | |
*** moo--- has joined #zope | 00:48 | |
*** RaFromBRC has quit IRC | 00:50 | |
*** JaRoel|4D has joined #zope | 00:51 | |
*** Theuni1 has joined #zope | 00:53 | |
*** mfinney has quit IRC | 00:54 | |
*** Theuni1 has quit IRC | 00:57 | |
*** tarek has quit IRC | 00:57 | |
*** TresEquis has quit IRC | 01:00 | |
*** davetoo has joined #zope | 01:00 | |
*** neo|4D has joined #zope | 01:01 | |
*** mcdonc has quit IRC | 01:04 | |
*** MrTango has quit IRC | 01:06 | |
*** sashav has quit IRC | 01:12 | |
*** RaFromBRC has joined #zope | 01:13 | |
*** neo|4D has quit IRC | 01:13 | |
*** regebro has quit IRC | 01:13 | |
*** RaFromBRC has quit IRC | 01:28 | |
*** pepeu has joined #zope | 01:31 | |
*** alecm has quit IRC | 01:35 | |
*** tiwula has quit IRC | 01:39 | |
*** dvschramm has quit IRC | 01:47 | |
*** mcdonc has joined #zope | 02:10 | |
*** RaFromBRC has joined #zope | 02:21 | |
*** pepeu has quit IRC | 02:27 | |
*** alecm has joined #zope | 02:32 | |
*** benji has joined #zope | 02:50 | |
*** dayne has quit IRC | 02:53 | |
*** aaronv has quit IRC | 04:08 | |
*** redir has joined #zope | 04:08 | |
*** mr_jolly has left #zope | 04:27 | |
*** redir has left #zope | 04:31 | |
*** astoon has joined #zope | 04:37 | |
*** ccomb has quit IRC | 04:58 | |
*** davisagli has quit IRC | 05:01 | |
*** RaFromBRC has quit IRC | 05:01 | |
*** tiwula has joined #zope | 05:18 | |
*** r0ver has left #zope | 05:28 | |
*** astoon has quit IRC | 05:35 | |
*** huajie has joined #zope | 06:21 | |
*** shinygiftson has joined #zope | 06:28 | |
*** magcius has joined #zope | 06:32 | |
magcius | can someone help me here? http://paste.pocoo.org/show/201623/ | 06:32 |
---|---|---|
magcius | Adaption isn't working right for me for some reason. | 06:33 |
kosh | sorry I have no idea on that one | 06:45 |
*** thetet has quit IRC | 06:46 | |
magcius | :( | 06:48 |
magcius | Is it a bug? | 06:49 |
magcius | kosh: anything else I can try? I still have the Pdb console open | 06:49 |
*** allisterb has joined #zope | 06:50 | |
*** davetoo has left #zope | 06:59 | |
*** skt has joined #zope | 07:00 | |
kosh | not a clue | 07:03 |
kosh | I have never used the adaptor stuff | 07:03 |
*** astoon has joined #zope | 07:30 | |
*** shastry has quit IRC | 07:34 | |
*** RiverRat has joined #zope | 07:47 | |
*** davisagli has joined #zope | 08:23 | |
*** MrTango has joined #zope | 08:27 | |
*** timte has joined #zope | 08:29 | |
*** JaRoel|4D has quit IRC | 08:57 | |
*** sashav has joined #zope | 08:58 | |
*** wosc has joined #zope | 08:59 | |
*** wosc has left #zope | 09:00 | |
*** wosc has joined #zope | 09:00 | |
*** morphex has quit IRC | 09:02 | |
*** tiwula has quit IRC | 09:07 | |
*** phimic has joined #zope | 09:10 | |
*** pingviini has quit IRC | 09:13 | |
*** pingviini has joined #zope | 09:18 | |
*** Kabz|4D has joined #zope | 09:38 | |
*** purserj has quit IRC | 09:46 | |
*** purserj has joined #zope | 09:46 | |
*** agroszer has joined #zope | 09:57 | |
*** davisagli has quit IRC | 10:04 | |
*** JaRoel|4D has joined #zope | 10:04 | |
*** smita has quit IRC | 10:12 | |
*** astoon has quit IRC | 10:16 | |
*** smita has joined #zope | 10:17 | |
*** regebro has joined #zope | 10:17 | |
*** sim_sim has joined #zope | 10:23 | |
*** smita has quit IRC | 10:27 | |
*** phimic has quit IRC | 10:29 | |
*** phimic has joined #zope | 10:29 | |
*** smita has joined #zope | 10:30 | |
*** planetzopebot has quit IRC | 10:33 | |
*** planetzopebot has joined #zope | 10:34 | |
*** tarek has joined #zope | 10:34 | |
*** mr_jolly has joined #zope | 10:37 | |
*** agroszer has quit IRC | 10:38 | |
*** agroszer_ has joined #zope | 10:38 | |
*** agroszer_ is now known as agroszer | 10:41 | |
*** jdbrowne has joined #zope | 10:52 | |
*** opsec has quit IRC | 11:03 | |
*** opsec has joined #zope | 11:16 | |
*** hever_ has quit IRC | 11:22 | |
*** allisterb has quit IRC | 11:26 | |
*** MJ has joined #zope | 11:30 | |
*** hever_ has joined #zope | 11:33 | |
*** ccomb has joined #zope | 11:33 | |
*** evilbungle has joined #zope | 11:54 | |
*** sim_sim has quit IRC | 12:00 | |
*** sim_sim has joined #zope | 12:00 | |
*** giampaolo_ has quit IRC | 12:02 | |
*** fredvd|away is now known as fredvd | 12:03 | |
*** zagy has quit IRC | 12:05 | |
*** agroszer has quit IRC | 12:05 | |
*** tarek has quit IRC | 12:06 | |
*** tarek has joined #zope | 12:06 | |
*** TomBlockley has joined #zope | 12:07 | |
*** teix has joined #zope | 12:11 | |
*** neo|4D has joined #zope | 12:14 | |
*** zagy has joined #zope | 12:16 | |
*** fredvd has quit IRC | 12:18 | |
*** TomBlockley has quit IRC | 12:30 | |
*** TomBlockley has joined #zope | 12:36 | |
*** skt has quit IRC | 12:57 | |
*** skt has joined #zope | 13:04 | |
*** fredvd has joined #zope | 13:23 | |
*** huajie has quit IRC | 13:24 | |
*** menesis has quit IRC | 13:24 | |
*** giampaolo has joined #zope | 13:32 | |
*** aaronv has joined #zope | 13:34 | |
*** agroszer has joined #zope | 13:34 | |
*** tisto has joined #zope | 13:41 | |
*** Reaver1 has joined #zope | 14:01 | |
*** benji has quit IRC | 14:08 | |
*** ccomb has quit IRC | 14:08 | |
*** mr_jolly has quit IRC | 14:13 | |
*** hever_ has quit IRC | 14:21 | |
*** menesis has joined #zope | 14:29 | |
*** flox has joined #zope | 14:32 | |
*** grahal_ has joined #zope | 14:35 | |
*** grahal has quit IRC | 14:35 | |
*** sunew has joined #zope | 14:40 | |
*** neo|4D has quit IRC | 14:40 | |
*** shinygiftson has quit IRC | 14:48 | |
*** sunew has quit IRC | 14:51 | |
*** tarek has quit IRC | 14:56 | |
*** benji has joined #zope | 14:56 | |
*** Charlie_X has joined #zope | 15:04 | |
*** River_Rat has joined #zope | 15:19 | |
*** RiverRat has quit IRC | 15:20 | |
*** wosc has quit IRC | 15:39 | |
*** sunew has joined #zope | 15:44 | |
*** skt has quit IRC | 15:50 | |
*** timte has quit IRC | 15:51 | |
*** ccomb has joined #zope | 15:56 | |
*** kleist has joined #zope | 16:02 | |
*** River-Rat has joined #zope | 16:05 | |
*** fredvd|meeting has joined #zope | 16:06 | |
*** fruitwerks has joined #zope | 16:07 | |
fruitwerks | hmm.. tryint o create an instance.. OSError: [Errno 2] No such file or directory | 16:07 |
*** River_Rat has quit IRC | 16:07 | |
*** fredvd has quit IRC | 16:09 | |
*** dunny has quit IRC | 16:09 | |
*** fruitwerks has left #zope | 16:09 | |
bigkevmcd | without knowing more it's impossible to advise | 16:12 |
Charlie_X | He's already left. | 16:13 |
Charlie_X | I'm having trouble with bin/test | 16:13 |
betabug | IRCError: [Errno 13] No such user any more | 16:13 |
Charlie_X | bin/test -s src/Products.CMFCore doesn't work | 16:13 |
Charlie_X | hehe | 16:13 |
betabug | Charlie_X: there is a page on wiki.zope.org about the different test running setups | 16:14 |
betabug | with some hints | 16:14 |
Charlie_X | cheers | 16:14 |
betabug | for further help, please define "doesn't work" further :-) | 16:14 |
betabug | e.g. "whenever I type it, my wife suspects I'm on an indecent website and beats me" | 16:15 |
Charlie_X | ImportError: No module named src.Products.CMFCore | 16:15 |
betabug | could be on that wiki.zope.org/zope2 page | 16:15 |
Charlie_X | http://wiki.zope.org/zope2/Testing isn't much help | 16:16 |
Charlie_X | I'm seem to remember it being related to full paths but even those aren't helping here. | 16:16 |
betabug | it *is* helpful, it contains a link to "http://wiki.zope.org/zope2/HowToRunZopeUnitTests" | 16:16 |
Charlie_X | I read that but it's out of date | 16:17 |
betabug | no it isn't, it just covers a lot of historical reasons :-) | 16:17 |
betabug | is your Products directory really in a directory called "src"? | 16:18 |
Charlie_X | Yes, it's the CMF Buildout checkout | 16:18 |
Charlie_X | -m has been replaced by -s | 16:18 |
betabug | and what exactly is the use/syntax for -s? | 16:18 |
betabug | maybe the tests don't run with that particular buildout? (just guessing, in my limited experience buildouts throw things around) | 16:19 |
Charlie_X | Most often you will name the section `test` and can run tests via: bin/test -s <my.package> | 16:20 |
*** tarek has joined #zope | 16:20 | |
betabug | what if you leave the src/ away? | 16:20 |
betabug | or even the src/Products. | 16:21 |
betabug | since with zopectl test and -m we'd just use the product name | 16:21 |
Charlie_X | No better - lots of junk about not finding Zope.Undo | 16:21 |
betabug | "lots of junk" can be better if it means it found your product :-) | 16:21 |
Charlie_X | True but it still shouldn't be happening | 16:24 |
betabug | well, it's not happening in my code :-) | 16:25 |
Charlie_X | And the error is true: from ZopeUndo.Prefix import Prefix | 16:25 |
* Charlie_X throws betabug a dog biscuit | 16:25 | |
*** fredvd|meeting has quit IRC | 16:25 | |
*** sashav has quit IRC | 16:31 | |
*** lisppaste6 has quit IRC | 16:31 | |
*** lisppaste6 has joined #zope | 16:31 | |
*** TomBlockley_ has joined #zope | 16:32 | |
*** Charlie_X has left #zope | 16:32 | |
*** Charlie_X has quit IRC | 16:32 | |
*** TomBlockley_ has quit IRC | 16:32 | |
*** TomBlockley_ has joined #zope | 16:32 | |
*** TomBlockley has quit IRC | 16:33 | |
*** TomBlockley_ is now known as TomBlockley | 16:33 | |
*** thetet has joined #zope | 16:33 | |
*** Charlie_X has joined #zope | 16:34 | |
*** fredvd has joined #zope | 16:44 | |
*** neo|4D has joined #zope | 16:49 | |
*** alvaro_ has joined #zope | 16:51 | |
*** goschtl has joined #zope | 16:53 | |
*** TomBlockley has quit IRC | 17:00 | |
*** TomBlockley has joined #zope | 17:01 | |
*** TomBlockley has quit IRC | 17:02 | |
*** TomBlockley has joined #zope | 17:02 | |
*** Theuni1 has joined #zope | 17:03 | |
*** TresEquis has joined #zope | 17:13 | |
*** huajie has joined #zope | 17:15 | |
*** sunew has quit IRC | 17:17 | |
*** mr_jolly has joined #zope | 17:17 | |
*** goschtl has quit IRC | 17:17 | |
*** sunew has joined #zope | 17:19 | |
*** Charlie_X has left #zope | 17:24 | |
*** Charlie_X has joined #zope | 17:25 | |
*** phimic has quit IRC | 17:31 | |
*** webmaven has joined #zope | 17:40 | |
*** redir has joined #zope | 17:41 | |
*** redir has left #zope | 17:41 | |
*** fredvd has quit IRC | 17:52 | |
*** teratorn has quit IRC | 17:54 | |
*** TresEquis has quit IRC | 17:56 | |
magcius | can someone help me here? http://paste.pocoo.org/show/201623/ | 17:58 |
magcius | Adaption isn't working right for me for some reason. | 17:58 |
*** BGaddie has quit IRC | 17:58 | |
Charlie_X | what's not working? | 17:59 |
magcius | Charlie_X: did you look at the paste? | 17:59 |
Charlie_X | Yes | 17:59 |
shen-long | Charlie_X, ! :) | 18:00 |
Charlie_X | ah, the lookup error | 18:00 |
Charlie_X | Hiya shen-long | 18:00 |
shen-long | wanted to say thanks again for the other day (you helped me with catalog index query to vocabulary of a zope.schema.list value_type = zope.schema.choice) | 18:00 |
*** TresEquis has joined #zope | 18:01 | |
magcius | Charlie_X: it works if I use provideAdapter(VariableLoadable, [flowmodel.Variable], ILoadable) | 18:01 |
Charlie_X | magcius: so it's not the adaption that's the problem but using the register to get the right adapter. | 18:02 |
magcius | Charlie_X: this is my setup that doesn't work: http://paste.pocoo.org/show/201796/ | 18:02 |
*** sim_sim has quit IRC | 18:03 | |
*** sim_sim has joined #zope | 18:03 | |
*** TomBlockley has quit IRC | 18:03 | |
*** daMaestro has joined #zope | 18:04 | |
magcius | Charlie_X: is that not supposed to work or something? | 18:06 |
Charlie_X | I'm confused by getAdapter(type(v), interface) | 18:07 |
Charlie_X | shen-long: glad you got things working | 18:07 |
magcius | Charlie_X: why are you confused by it? | 18:08 |
shen-long | Sure did, even whipped together N way relations for objects (that was a bit..... tougher) but your example helped me understand the catalog better, so thank you for a real world example instead of a pasted url to a doctest somewhere | 18:08 |
Charlie_X | magcius: because I thought you had to give the registry a concrete object. | 18:10 |
magcius | Charlie_X: what isn't a concrete object? | 18:11 |
Charlie_X | But I'm not that au fait with the internals of adaption. | 18:11 |
Charlie_X | type(v) | 18:11 |
*** wosc has joined #zope | 18:11 | |
magcius | type(v) is the same exact thing as flowmodel.Variable | 18:12 |
Charlie_X | Yes, but not an instance of the class. | 18:12 |
*** morphex has joined #zope | 18:14 | |
magcius | well | 18:14 |
magcius | Charlie_X: even if I do something like this: http://paste.pocoo.org/show/201797/ | 18:15 |
Charlie_X | classes *implement* interfaces, instances *provide* them if I've got this stuff right. | 18:15 |
magcius | getAdapter('3', ILoadable) => *** ComponentLookupError: ('3', <InterfaceClass mech.fusion.avm2.interfaces.ILoadable>, u'') | 18:15 |
*** ccomb1 has joined #zope | 18:15 | |
*** TomBlockley has joined #zope | 18:15 | |
*** ccomb has quit IRC | 18:16 | |
*** tisto has quit IRC | 18:17 | |
Charlie_X | magcius: I agree, it should work. You have registered all the components? | 18:19 |
magcius | Charlie_X: hmm? | 18:19 |
Charlie_X | You won't get anything back from the registry if it doesn't know anything | 18:20 |
magcius | Charlie_X: note that provideAdapter(BaseStringLoadable, [basestring], ILoadable) works | 18:20 |
*** ccomb1 has quit IRC | 18:20 | |
magcius | I'm not using Zope, just interfaces and adaption. | 18:20 |
Charlie_X | getAdapter makes use of the registry | 18:20 |
Charlie_X | If you don't need it then you don't need to worry about using it. Just instantiate your adapter with the target directly. Or have a thread local registry like BFG does. | 18:22 |
*** teratorn has joined #zope | 18:22 | |
*** tisto has joined #zope | 18:29 | |
*** BGaddie has joined #zope | 18:33 | |
*** redir has joined #zope | 18:34 | |
*** redir has left #zope | 18:37 | |
*** fredvd has joined #zope | 18:45 | |
*** MJ has quit IRC | 18:48 | |
*** hever_ has joined #zope | 18:49 | |
*** River_Rat has joined #zope | 18:53 | |
*** River-Rat has quit IRC | 18:53 | |
*** giampaolo has quit IRC | 18:54 | |
*** tarek has quit IRC | 19:01 | |
magcius | Charlie_X: do you know why the decorator isn't working? | 19:04 |
planetzopebot | grok 1.1rc1 + python2.6 == A OK (my-zope) http://myzope.kedai.com.my/blogs/kedai/249 | 19:04 |
*** daMaestro has quit IRC | 19:11 | |
*** wosc has left #zope | 19:12 | |
*** SpankyFromBRC has joined #zope | 19:12 | |
*** neo|4D has quit IRC | 19:24 | |
*** huajie has quit IRC | 19:33 | |
*** zagy has quit IRC | 19:34 | |
*** sunew has quit IRC | 19:36 | |
*** fredvd has quit IRC | 19:44 | |
*** hillsy has joined #zope | 19:44 | |
*** davisagli has joined #zope | 19:52 | |
*** tarek has joined #zope | 19:55 | |
*** fredvd has joined #zope | 19:55 | |
*** Theuni1 has quit IRC | 19:55 | |
*** JaRoel|4D has quit IRC | 19:59 | |
*** fredvd has quit IRC | 20:00 | |
*** Kabz|4D has quit IRC | 20:01 | |
*** agroszer has quit IRC | 20:03 | |
*** thetet has quit IRC | 20:07 | |
*** agroszer has joined #zope | 20:07 | |
*** sm has quit IRC | 20:13 | |
*** Reaver1 has left #zope | 20:19 | |
*** mcdonc has quit IRC | 20:24 | |
*** menesis has quit IRC | 20:25 | |
Charlie_X | magcius: I think the decorator also requires a registry. | 20:30 |
magcius | Charlie_X: what do you mean? | 20:30 |
magcius | Charlie_X: it works when I do provideAdapter, just not the decorator | 20:31 |
*** RaFromBRC has joined #zope | 20:31 | |
*** RaFromBRC has quit IRC | 20:33 | |
*** mcdonc has joined #zope | 20:34 | |
*** RaFromBRC has joined #zope | 20:35 | |
Charlie_X | provideAdapter registers the adapter | 20:36 |
Charlie_X | The decorator just sets an attribute - this is all in the source. | 20:36 |
*** dayne has joined #zope | 20:37 | |
*** sim_sim has quit IRC | 20:37 | |
*** River-Rat has joined #zope | 20:37 | |
*** RichardBarrell has joined #zope | 20:38 | |
*** River_Rat has quit IRC | 20:39 | |
*** hever_ is now known as hever | 20:40 | |
*** tarek has quit IRC | 20:43 | |
*** evilbungle has quit IRC | 20:51 | |
magcius | Charlie_X: hmm, alright | 20:52 |
*** jfroche has quit IRC | 20:53 | |
*** jfroche has joined #zope | 20:54 | |
magcius | Charlie_X: is there a way to use the @adapter decorator to decorate multiple classes at once? (Not a multiAdapter) | 20:55 |
Charlie_X | I wouldn't worry about whether you're using the decorator or not. | 20:55 |
Charlie_X | But no, you cannot use it on several classes it at once. | 20:56 |
magcius | I mean | 20:57 |
*** webmaven has quit IRC | 20:57 | |
magcius | the equivalent of provideAdapter(FooAdapter, [MyOtherClass], IFoo) then provideAdapter(FooAdapter, [MyOtherOtherClass], IFoo) | 20:57 |
*** jfroche has quit IRC | 21:02 | |
*** kleist has quit IRC | 21:03 | |
Charlie_X | No. Apart from the fact that isn't how adapters are supposed to work, the second use will overwrite the first or raise an error. This is not to say an adapter cannot be registered for more than one interface but that has to be at registration. I think you need to reconsider your use case. Zope's adapters are only a pattern, really. If the pattern doesn't suit your use there is no point in trying to force it. | 21:03 |
*** tarek has joined #zope | 21:08 | |
TresEquis | Charlie_X: I've hacked on your bugchecker script a bit | 21:11 |
TresEquis | it now easy_installs and creates a console script | 21:12 |
TresEquis | I also added command line options for projects, number of days, states, etc. | 21:12 |
TresEquis | and a --project-group option, to allow querying all the ZTK projects | 21:13 |
Charlie_X | Hi TresEquis. IOTW you got it to do what it should have in the first place! ;-) Sounds great. | 21:17 |
Charlie_X | Most of my work was on sussing out how to use the Launchpad API. | 21:17 |
TresEquis | I only had to learn it a bit (for the project_group part) | 21:18 |
*** teix has left #zope | 21:21 | |
Charlie_X | I hope my stuff was at least useful for that. In any case we should soon start getting nagged about bugs. | 21:21 |
*** Theuni1 has joined #zope | 21:22 | |
*** sidnei has quit IRC | 21:26 | |
*** sidnei has joined #zope | 21:26 | |
*** sunew has joined #zope | 21:26 | |
*** Hypergraphe has joined #zope | 21:26 | |
*** jdbrowne has quit IRC | 21:29 | |
*** menesis has joined #zope | 21:35 | |
*** RaFromBRC is now known as RaFromBRC|afk | 21:36 | |
TresEquis | the approach was fine -- I was able to use it to see languishing bugs for all the ZTK, for instance | 21:41 |
Charlie_X | Cool. | 21:43 |
Charlie_X | I've just committed my mini-CookieCrumbler change. | 21:43 |
*** tisto has quit IRC | 21:50 | |
*** Theuni1 has quit IRC | 21:51 | |
*** RaFromBRC|afk is now known as RaFromBRC | 21:51 | |
*** maiky has joined #zope | 21:55 | |
*** redir has joined #zope | 21:57 | |
*** jdbrowne has joined #zope | 21:57 | |
*** redir has quit IRC | 21:58 | |
*** maiky has quit IRC | 21:58 | |
*** redir has joined #zope | 21:59 | |
*** tarek has quit IRC | 22:05 | |
*** tarek has joined #zope | 22:05 | |
*** allisterb has joined #zope | 22:09 | |
*** tr4ck3ur has joined #zope | 22:10 | |
*** RichardBarrell has quit IRC | 22:13 | |
*** TomBlockley has quit IRC | 22:14 | |
*** BeeBob has joined #zope | 22:15 | |
*** tr4ck3ur has left #zope | 22:15 | |
*** hever has quit IRC | 22:20 | |
*** Charlie_X has quit IRC | 22:21 | |
*** daMaestro has joined #zope | 22:27 | |
*** grahal_ is now known as grahal | 22:29 | |
*** agroszer has quit IRC | 22:34 | |
*** sm has joined #zope | 22:35 | |
shen-long | ok | 22:36 |
shen-long | I'm trying to in TAL | 22:36 |
shen-long | get a list of objects, tal:repeat"Object_type" view/object_types" | 22:37 |
shen-long | then, later on, I want to do another repeat | 22:37 |
shen-long | with the title of each of those object types | 22:37 |
shen-long | so like, tal:repeat="myviewed_name view/${Object_type}/attr" | 22:39 |
shen-long | does this make sense? | 22:39 |
*** RaFromBRC has quit IRC | 22:41 | |
*** RaFromBRC has joined #zope | 22:44 | |
*** hillsy has quit IRC | 22:44 | |
*** neo|4D has joined #zope | 22:55 | |
*** neo|4D has quit IRC | 23:05 | |
*** RaFromBRC has quit IRC | 23:13 | |
TresEquis | shen-long: if you want to repeat over the same list, maybe save it as a named value using 'tal:define' | 23:15 |
TresEquis | e.g., first (at outer scope) do: '<div tal:define="types view/boject_types"> | 23:15 |
digilord | TresEquis: It's not the same list. It's a dict that has a key for the outer list | 23:15 |
TresEquis | then, in inner scopes, you can repeat: <p tal:repeat="otype types"> | 23:16 |
*** RaFromBRC has joined #zope | 23:16 | |
TresEquis | shen-long: pastebin a sample | 23:17 |
shen-long | http://pastie.org/919996 | 23:18 |
TresEquis | shen-long: why the inner repeats? | 23:18 |
TresEquis | does a DID have multiple titles? | 23:19 |
shen-long | TresEquis, you know, we're already mushing the objects and their relations together | 23:19 |
*** Hypergraphe has quit IRC | 23:20 | |
shen-long | we essentially are looking for a way to display, the key, and then attrs of each of it's objwects in the items list | 23:20 |
TresEquis | you want to iterate over all the DIDs in the view, right | 23:20 |
TresEquis | and for each DID, you want to look up the corresponding DID_Object? | 23:20 |
digilord | YES! | 23:21 |
TresEquis | in that paste, the "middle" repeat is wrong, then | 23:21 |
TresEquis | you aren't iterating over multiple titles | 23:21 |
* shen-long starts nodding | 23:22 | |
TresEquis | maybe you just want to use <div tal:content="DID/title">? | 23:22 |
TresEquis | then, the "innermost" repeat is a peer of that div | 23:22 |
TresEquis | not contained in it | 23:22 |
*** toutpt has joined #zope | 23:23 | |
digilord | For each DID, we want to look up the corresponding DID_Object? How? | 23:24 |
shen-long | see, we pretty much need 'DID/title' to be iterated for each of the objects in DIDs, in a later repeat as like view/Dids_Objects/item/ourattr | 23:24 |
TresEquis | in a path expression, if you want to substitute the value of a name, you need to prefix it with '?' | 23:24 |
shen-long | ahah! | 23:24 |
shen-long | how does that look then? | 23:25 |
shen-long | just like | 23:25 |
TresEquis | DID/title is a string, right? | 23:25 |
shen-long | yes | 23:25 |
TresEquis | you don't "iterate" that -- you would get individual characters | 23:25 |
shen-long | like we just did | 23:25 |
shen-long | lol | 23:25 |
*** Hypergraphe has joined #zope | 23:27 | |
TresEquis | I think you want something like: http://pastie.org/920036 | 23:27 |
TresEquis | except the 'did_items' name should probably be 'did_item' (in the inner loop) | 23:28 |
TresEquis | likely clearer to use Python expressions | 23:28 |
shen-long | TresEquis, you're one helpful guy | 23:28 |
shen-long | thank you | 23:28 |
TresEquis | like so: http://pastie.org/920037 | 23:29 |
TresEquis | you're welcome | 23:29 |
shen-long | no, I mean | 23:29 |
shen-long | seriously | 23:29 |
shen-long | thank you! ;p | 23:30 |
shen-long | reading the TAL docs, and the philikon book, and the grok book, and TAL tutorial, and the mailing lists, and asking in channels, and etc | 23:30 |
shen-long | we were missing that concept | 23:31 |
shen-long | well, I was | 23:31 |
shen-long | not going to speak for digi :) | 23:31 |
TresEquis | glad to help | 23:31 |
shen-long | hmm | 23:32 |
shen-long | getting there ;p | 23:32 |
*** Hypergraphe has quit IRC | 23:33 | |
digilord | TresEquis: Thanks mate! That helped a lot. We knew it was something simple. Just not WHAT it was. | 23:33 |
*** Hypergraphe has joined #zope | 23:42 | |
*** sunew has quit IRC | 23:48 | |
*** toutpt has quit IRC | 23:56 | |
*** JaRoel|4D has joined #zope | 23:58 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!