IRC log of #zope for Wednesday, 2010-04-14

*** JaRoel|4D has joined #zope00:03
*** JaRoel|4D has quit IRC00:10
*** marcellobs has quit IRC00:13
*** menesis has quit IRC00:14
*** menesis has joined #zope00:18
*** Charlie_X has quit IRC00:19
*** benji has quit IRC00:32
*** ccomb has joined #zope00:33
*** timte has quit IRC00:35
*** jim_SFU has quit IRC00:40
*** moo---_ has quit IRC00:44
*** dunny has joined #zope00:47
*** mfinney has joined #zope00:47
*** moo--- has joined #zope00:48
*** RaFromBRC has quit IRC00:50
*** JaRoel|4D has joined #zope00:51
*** Theuni1 has joined #zope00:53
*** mfinney has quit IRC00:54
*** Theuni1 has quit IRC00:57
*** tarek has quit IRC00:57
*** TresEquis has quit IRC01:00
*** davetoo has joined #zope01:00
*** neo|4D has joined #zope01:01
*** mcdonc has quit IRC01:04
*** MrTango has quit IRC01:06
*** sashav has quit IRC01:12
*** RaFromBRC has joined #zope01:13
*** neo|4D has quit IRC01:13
*** regebro has quit IRC01:13
*** RaFromBRC has quit IRC01:28
*** pepeu has joined #zope01:31
*** alecm has quit IRC01:35
*** tiwula has quit IRC01:39
*** dvschramm has quit IRC01:47
*** mcdonc has joined #zope02:10
*** RaFromBRC has joined #zope02:21
*** pepeu has quit IRC02:27
*** alecm has joined #zope02:32
*** benji has joined #zope02:50
*** dayne has quit IRC02:53
*** aaronv has quit IRC04:08
*** redir has joined #zope04:08
*** mr_jolly has left #zope04:27
*** redir has left #zope04:31
*** astoon has joined #zope04:37
*** ccomb has quit IRC04:58
*** davisagli has quit IRC05:01
*** RaFromBRC has quit IRC05:01
*** tiwula has joined #zope05:18
*** r0ver has left #zope05:28
*** astoon has quit IRC05:35
*** huajie has joined #zope06:21
*** shinygiftson has joined #zope06:28
*** magcius has joined #zope06:32
magciuscan someone help me here? http://paste.pocoo.org/show/201623/06:32
magciusAdaption isn't working right for me for some reason.06:33
koshsorry I have no idea on that one06:45
*** thetet has quit IRC06:46
magcius:(06:48
magciusIs it a bug?06:49
magciuskosh: anything else I can try? I still have the Pdb console open06:49
*** allisterb has joined #zope06:50
*** davetoo has left #zope06:59
*** skt has joined #zope07:00
koshnot a clue07:03
koshI have never used the adaptor stuff07:03
*** astoon has joined #zope07:30
*** shastry has quit IRC07:34
*** RiverRat has joined #zope07:47
*** davisagli has joined #zope08:23
*** MrTango has joined #zope08:27
*** timte has joined #zope08:29
*** JaRoel|4D has quit IRC08:57
*** sashav has joined #zope08:58
*** wosc has joined #zope08:59
*** wosc has left #zope09:00
*** wosc has joined #zope09:00
*** morphex has quit IRC09:02
*** tiwula has quit IRC09:07
*** phimic has joined #zope09:10
*** pingviini has quit IRC09:13
*** pingviini has joined #zope09:18
*** Kabz|4D has joined #zope09:38
*** purserj has quit IRC09:46
*** purserj has joined #zope09:46
*** agroszer has joined #zope09:57
*** davisagli has quit IRC10:04
*** JaRoel|4D has joined #zope10:04
*** smita has quit IRC10:12
*** astoon has quit IRC10:16
*** smita has joined #zope10:17
*** regebro has joined #zope10:17
*** sim_sim has joined #zope10:23
*** smita has quit IRC10:27
*** phimic has quit IRC10:29
*** phimic has joined #zope10:29
*** smita has joined #zope10:30
*** planetzopebot has quit IRC10:33
*** planetzopebot has joined #zope10:34
*** tarek has joined #zope10:34
*** mr_jolly has joined #zope10:37
*** agroszer has quit IRC10:38
*** agroszer_ has joined #zope10:38
*** agroszer_ is now known as agroszer10:41
*** jdbrowne has joined #zope10:52
*** opsec has quit IRC11:03
*** opsec has joined #zope11:16
*** hever_ has quit IRC11:22
*** allisterb has quit IRC11:26
*** MJ has joined #zope11:30
*** hever_ has joined #zope11:33
*** ccomb has joined #zope11:33
*** evilbungle has joined #zope11:54
*** sim_sim has quit IRC12:00
*** sim_sim has joined #zope12:00
*** giampaolo_ has quit IRC12:02
*** fredvd|away is now known as fredvd12:03
*** zagy has quit IRC12:05
*** agroszer has quit IRC12:05
*** tarek has quit IRC12:06
*** tarek has joined #zope12:06
*** TomBlockley has joined #zope12:07
*** teix has joined #zope12:11
*** neo|4D has joined #zope12:14
*** zagy has joined #zope12:16
*** fredvd has quit IRC12:18
*** TomBlockley has quit IRC12:30
*** TomBlockley has joined #zope12:36
*** skt has quit IRC12:57
*** skt has joined #zope13:04
*** fredvd has joined #zope13:23
*** huajie has quit IRC13:24
*** menesis has quit IRC13:24
*** giampaolo has joined #zope13:32
*** aaronv has joined #zope13:34
*** agroszer has joined #zope13:34
*** tisto has joined #zope13:41
*** Reaver1 has joined #zope14:01
*** benji has quit IRC14:08
*** ccomb has quit IRC14:08
*** mr_jolly has quit IRC14:13
*** hever_ has quit IRC14:21
*** menesis has joined #zope14:29
*** flox has joined #zope14:32
*** grahal_ has joined #zope14:35
*** grahal has quit IRC14:35
*** sunew has joined #zope14:40
*** neo|4D has quit IRC14:40
*** shinygiftson has quit IRC14:48
*** sunew has quit IRC14:51
*** tarek has quit IRC14:56
*** benji has joined #zope14:56
*** Charlie_X has joined #zope15:04
*** River_Rat has joined #zope15:19
*** RiverRat has quit IRC15:20
*** wosc has quit IRC15:39
*** sunew has joined #zope15:44
*** skt has quit IRC15:50
*** timte has quit IRC15:51
*** ccomb has joined #zope15:56
*** kleist has joined #zope16:02
*** River-Rat has joined #zope16:05
*** fredvd|meeting has joined #zope16:06
*** fruitwerks has joined #zope16:07
fruitwerkshmm.. tryint o create an instance.. OSError: [Errno 2] No such file or directory16:07
*** River_Rat has quit IRC16:07
*** fredvd has quit IRC16:09
*** dunny has quit IRC16:09
*** fruitwerks has left #zope16:09
bigkevmcdwithout knowing more it's impossible to advise16:12
Charlie_XHe's already left.16:13
Charlie_XI'm having trouble with bin/test16:13
betabugIRCError: [Errno 13] No such user any more16:13
Charlie_Xbin/test -s src/Products.CMFCore doesn't work16:13
Charlie_Xhehe16:13
betabugCharlie_X: there is a page on wiki.zope.org about the different test running setups16:14
betabugwith some hints16:14
Charlie_Xcheers16:14
betabugfor further help, please define "doesn't work" further :-)16:14
betabuge.g. "whenever I type it, my wife suspects I'm on an indecent website and beats me"16:15
Charlie_XImportError: No module named src.Products.CMFCore16:15
betabugcould be on that wiki.zope.org/zope2 page16:15
Charlie_Xhttp://wiki.zope.org/zope2/Testing isn't much help16:16
Charlie_XI'm seem to remember it being related to full paths but even those aren't helping here.16:16
betabugit *is* helpful, it contains a link to "http://wiki.zope.org/zope2/HowToRunZopeUnitTests"16:16
Charlie_XI read that but it's out of date16:17
betabugno it isn't, it just covers a lot of historical reasons :-)16:17
betabugis your Products directory really in a directory called "src"?16:18
Charlie_XYes, it's the CMF Buildout checkout16:18
Charlie_X-m has been replaced by -s16:18
betabugand what exactly is the use/syntax for -s?16:18
betabugmaybe the tests don't run with that particular buildout? (just guessing, in my limited experience buildouts throw things around)16:19
Charlie_XMost often you will name the section `test` and can run tests via: bin/test -s <my.package>16:20
*** tarek has joined #zope16:20
betabugwhat if you leave the src/ away?16:20
betabugor even the src/Products.16:21
betabugsince with zopectl test and -m we'd just use the product name16:21
Charlie_XNo better - lots of junk about not finding Zope.Undo16:21
betabug"lots of junk" can be better if it means it found your product :-)16:21
Charlie_XTrue but it still shouldn't be happening16:24
betabugwell, it's not happening in my code :-)16:25
Charlie_XAnd the error is true: from ZopeUndo.Prefix import Prefix16:25
* Charlie_X throws betabug a dog biscuit16:25
*** fredvd|meeting has quit IRC16:25
*** sashav has quit IRC16:31
*** lisppaste6 has quit IRC16:31
*** lisppaste6 has joined #zope16:31
*** TomBlockley_ has joined #zope16:32
*** Charlie_X has left #zope16:32
*** Charlie_X has quit IRC16:32
*** TomBlockley_ has quit IRC16:32
*** TomBlockley_ has joined #zope16:32
*** TomBlockley has quit IRC16:33
*** TomBlockley_ is now known as TomBlockley16:33
*** thetet has joined #zope16:33
*** Charlie_X has joined #zope16:34
*** fredvd has joined #zope16:44
*** neo|4D has joined #zope16:49
*** alvaro_ has joined #zope16:51
*** goschtl has joined #zope16:53
*** TomBlockley has quit IRC17:00
*** TomBlockley has joined #zope17:01
*** TomBlockley has quit IRC17:02
*** TomBlockley has joined #zope17:02
*** Theuni1 has joined #zope17:03
*** TresEquis has joined #zope17:13
*** huajie has joined #zope17:15
*** sunew has quit IRC17:17
*** mr_jolly has joined #zope17:17
*** goschtl has quit IRC17:17
*** sunew has joined #zope17:19
*** Charlie_X has left #zope17:24
*** Charlie_X has joined #zope17:25
*** phimic has quit IRC17:31
*** webmaven has joined #zope17:40
*** redir has joined #zope17:41
*** redir has left #zope17:41
*** fredvd has quit IRC17:52
*** teratorn has quit IRC17:54
*** TresEquis has quit IRC17:56
magciuscan someone help me here? http://paste.pocoo.org/show/201623/17:58
magciusAdaption isn't working right for me for some reason.17:58
*** BGaddie has quit IRC17:58
Charlie_Xwhat's not working?17:59
magciusCharlie_X: did you look at the paste?17:59
Charlie_XYes17:59
shen-longCharlie_X, ! :)18:00
Charlie_Xah, the lookup error18:00
Charlie_XHiya shen-long18:00
shen-longwanted 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 #zope18:01
magciusCharlie_X: it works if I use provideAdapter(VariableLoadable, [flowmodel.Variable], ILoadable)18:01
Charlie_Xmagcius: so it's not the adaption that's the problem but using the register to get the right adapter.18:02
magciusCharlie_X: this is my setup that doesn't work: http://paste.pocoo.org/show/201796/18:02
*** sim_sim has quit IRC18:03
*** sim_sim has joined #zope18:03
*** TomBlockley has quit IRC18:03
*** daMaestro has joined #zope18:04
magciusCharlie_X: is that not supposed to work or something?18:06
Charlie_XI'm confused by getAdapter(type(v), interface)18:07
Charlie_Xshen-long: glad you got things working18:07
magciusCharlie_X: why are you confused by it?18:08
shen-longSure 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 somewhere18:08
Charlie_Xmagcius: because I thought you had to give the registry a concrete object.18:10
magciusCharlie_X: what isn't a concrete object?18:11
Charlie_XBut I'm not that au fait with the internals of adaption.18:11
Charlie_Xtype(v)18:11
*** wosc has joined #zope18:11
magciustype(v) is the same exact thing as flowmodel.Variable18:12
Charlie_XYes, but not an instance of the class.18:12
*** morphex has joined #zope18:14
magciuswell18:14
magciusCharlie_X: even if I do something like this: http://paste.pocoo.org/show/201797/18:15
Charlie_Xclasses *implement* interfaces, instances *provide* them if I've got this stuff right.18:15
magciusgetAdapter('3', ILoadable) => *** ComponentLookupError: ('3', <InterfaceClass mech.fusion.avm2.interfaces.ILoadable>, u'')18:15
*** ccomb1 has joined #zope18:15
*** TomBlockley has joined #zope18:15
*** ccomb has quit IRC18:16
*** tisto has quit IRC18:17
Charlie_Xmagcius: I agree, it should work. You have registered all the components?18:19
magciusCharlie_X: hmm?18:19
Charlie_XYou won't get anything back from the registry if it doesn't know anything18:20
magciusCharlie_X: note that provideAdapter(BaseStringLoadable, [basestring], ILoadable) works18:20
*** ccomb1 has quit IRC18:20
magciusI'm not using Zope, just interfaces and adaption.18:20
Charlie_XgetAdapter makes use of the registry18:20
Charlie_XIf 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 #zope18:22
*** tisto has joined #zope18:29
*** BGaddie has joined #zope18:33
*** redir has joined #zope18:34
*** redir has left #zope18:37
*** fredvd has joined #zope18:45
*** MJ has quit IRC18:48
*** hever_ has joined #zope18:49
*** River_Rat has joined #zope18:53
*** River-Rat has quit IRC18:53
*** giampaolo has quit IRC18:54
*** tarek has quit IRC19:01
magciusCharlie_X: do you know why the decorator isn't working?19:04
planetzopebotgrok 1.1rc1 + python2.6 == A OK (my-zope)  http://myzope.kedai.com.my/blogs/kedai/24919:04
*** daMaestro has quit IRC19:11
*** wosc has left #zope19:12
*** SpankyFromBRC has joined #zope19:12
*** neo|4D has quit IRC19:24
*** huajie has quit IRC19:33
*** zagy has quit IRC19:34
*** sunew has quit IRC19:36
*** fredvd has quit IRC19:44
*** hillsy has joined #zope19:44
*** davisagli has joined #zope19:52
*** tarek has joined #zope19:55
*** fredvd has joined #zope19:55
*** Theuni1 has quit IRC19:55
*** JaRoel|4D has quit IRC19:59
*** fredvd has quit IRC20:00
*** Kabz|4D has quit IRC20:01
*** agroszer has quit IRC20:03
*** thetet has quit IRC20:07
*** agroszer has joined #zope20:07
*** sm has quit IRC20:13
*** Reaver1 has left #zope20:19
*** mcdonc has quit IRC20:24
*** menesis has quit IRC20:25
Charlie_Xmagcius: I think the decorator also requires a registry.20:30
magciusCharlie_X: what do you mean?20:30
magciusCharlie_X: it works when I do provideAdapter, just not the decorator20:31
*** RaFromBRC has joined #zope20:31
*** RaFromBRC has quit IRC20:33
*** mcdonc has joined #zope20:34
*** RaFromBRC has joined #zope20:35
Charlie_XprovideAdapter registers the adapter20:36
Charlie_XThe decorator just sets an attribute - this is all in the source.20:36
*** dayne has joined #zope20:37
*** sim_sim has quit IRC20:37
*** River-Rat has joined #zope20:37
*** RichardBarrell has joined #zope20:38
*** River_Rat has quit IRC20:39
*** hever_ is now known as hever20:40
*** tarek has quit IRC20:43
*** evilbungle has quit IRC20:51
magciusCharlie_X: hmm, alright20:52
*** jfroche has quit IRC20:53
*** jfroche has joined #zope20:54
magciusCharlie_X: is there a way to use the @adapter decorator to decorate multiple classes at once? (Not a multiAdapter)20:55
Charlie_XI wouldn't worry about whether you're using the decorator or not.20:55
Charlie_XBut no, you cannot use it on several classes it at once.20:56
magciusI mean20:57
*** webmaven has quit IRC20:57
magciusthe equivalent of provideAdapter(FooAdapter, [MyOtherClass], IFoo) then provideAdapter(FooAdapter, [MyOtherOtherClass], IFoo)20:57
*** jfroche has quit IRC21:02
*** kleist has quit IRC21:03
Charlie_XNo. 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 #zope21:08
TresEquisCharlie_X: I've hacked on your bugchecker script a bit21:11
TresEquisit now easy_installs and creates a console script21:12
TresEquisI also added command line options for projects, number of days, states, etc.21:12
TresEquisand a --project-group option, to allow querying all the ZTK projects21:13
Charlie_XHi TresEquis. IOTW you got it to do what it should have in the first place! ;-) Sounds great.21:17
Charlie_XMost of my work was on sussing out how to use the Launchpad API.21:17
TresEquisI only had to learn it a bit (for the project_group part)21:18
*** teix has left #zope21:21
Charlie_XI 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 #zope21:22
*** sidnei has quit IRC21:26
*** sidnei has joined #zope21:26
*** sunew has joined #zope21:26
*** Hypergraphe has joined #zope21:26
*** jdbrowne has quit IRC21:29
*** menesis has joined #zope21:35
*** RaFromBRC is now known as RaFromBRC|afk21:36
TresEquisthe approach was fine -- I was able to use it to see languishing bugs for all the ZTK, for instance21:41
Charlie_XCool.21:43
Charlie_XI've just committed my mini-CookieCrumbler change.21:43
*** tisto has quit IRC21:50
*** Theuni1 has quit IRC21:51
*** RaFromBRC|afk is now known as RaFromBRC21:51
*** maiky has joined #zope21:55
*** redir has joined #zope21:57
*** jdbrowne has joined #zope21:57
*** redir has quit IRC21:58
*** maiky has quit IRC21:58
*** redir has joined #zope21:59
*** tarek has quit IRC22:05
*** tarek has joined #zope22:05
*** allisterb has joined #zope22:09
*** tr4ck3ur has joined #zope22:10
*** RichardBarrell has quit IRC22:13
*** TomBlockley has quit IRC22:14
*** BeeBob has joined #zope22:15
*** tr4ck3ur has left #zope22:15
*** hever has quit IRC22:20
*** Charlie_X has quit IRC22:21
*** daMaestro has joined #zope22:27
*** grahal_ is now known as grahal22:29
*** agroszer has quit IRC22:34
*** sm has joined #zope22:35
shen-longok22:36
shen-longI'm trying to in TAL22:36
shen-longget a list of objects, tal:repeat"Object_type" view/object_types"22:37
shen-longthen, later on, I want to do another repeat22:37
shen-longwith the title of each of those object types22:37
shen-longso like, tal:repeat="myviewed_name view/${Object_type}/attr"22:39
shen-longdoes this make sense?22:39
*** RaFromBRC has quit IRC22:41
*** RaFromBRC has joined #zope22:44
*** hillsy has quit IRC22:44
*** neo|4D has joined #zope22:55
*** neo|4D has quit IRC23:05
*** RaFromBRC has quit IRC23:13
TresEquisshen-long: if you want to repeat over the same list, maybe save it as a named value using 'tal:define'23:15
TresEquise.g., first (at outer scope) do:  '<div tal:define="types view/boject_types">23:15
digilordTresEquis: It's not the same list.  It's a dict that has a key for the outer list23:15
TresEquisthen, in inner scopes, you can repeat:  <p tal:repeat="otype types">23:16
*** RaFromBRC has joined #zope23:16
TresEquisshen-long: pastebin a sample23:17
shen-longhttp://pastie.org/91999623:18
TresEquisshen-long: why the inner repeats?23:18
TresEquisdoes a DID have multiple titles?23:19
shen-longTresEquis, you know, we're already mushing the objects and their relations together23:19
*** Hypergraphe has quit IRC23:20
shen-longwe essentially are looking for a way to display, the key, and then attrs of each of it's objwects in the items list23:20
TresEquisyou want to iterate over all the DIDs in the view, right23:20
TresEquisand for each DID, you want to look up the corresponding DID_Object?23:20
digilordYES!23:21
TresEquisin that paste, the "middle" repeat is wrong, then23:21
TresEquisyou aren't iterating over multiple titles23:21
* shen-long starts nodding23:22
TresEquismaybe you just want to use <div tal:content="DID/title">?23:22
TresEquisthen, the "innermost" repeat is a peer of that div23:22
TresEquisnot contained in it23:22
*** toutpt has joined #zope23:23
digilordFor each DID, we want to look up the corresponding DID_Object?  How?23:24
shen-longsee, 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/ourattr23:24
TresEquisin a path expression, if you want to substitute the value of a name, you need to prefix it with '?'23:24
shen-longahah!23:24
shen-longhow does that look then?23:25
shen-longjust like23:25
TresEquisDID/title is a string, right?23:25
shen-longyes23:25
TresEquisyou don't "iterate" that -- you would get individual characters23:25
shen-longlike we just did23:25
shen-longlol23:25
*** Hypergraphe has joined #zope23:27
TresEquisI think you want something like: http://pastie.org/92003623:27
TresEquisexcept the 'did_items' name should probably be 'did_item' (in the inner loop)23:28
TresEquislikely clearer to use Python expressions23:28
shen-longTresEquis, you're one helpful guy23:28
shen-longthank you23:28
TresEquislike so: http://pastie.org/92003723:29
TresEquisyou're welcome23:29
shen-longno, I mean23:29
shen-longseriously23:29
shen-longthank you! ;p23:30
shen-longreading the TAL docs, and the philikon book, and the grok book, and TAL tutorial, and the mailing lists, and asking in channels, and etc23:30
shen-longwe were missing that concept23:31
shen-longwell, I was23:31
shen-longnot going to speak for digi :)23:31
TresEquisglad to help23:31
shen-longhmm23:32
shen-longgetting there ;p23:32
*** Hypergraphe has quit IRC23:33
digilordTresEquis: Thanks mate!  That helped a lot.  We knew it was something simple.  Just not WHAT it was.23:33
*** Hypergraphe has joined #zope23:42
*** sunew has quit IRC23:48
*** toutpt has quit IRC23:56
*** JaRoel|4D has joined #zope23:58

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