IRC log of #zope3-dev for Friday, 2008-06-20

*** benji has quit IRC00:00
*** gstratton has joined #zope3-dev00:03
*** srichter has quit IRC00:06
*** jsadjohnson has quit IRC00:21
*** regebro has quit IRC00:37
*** quodt has joined #zope3-dev00:42
*** gstratton has quit IRC00:58
*** gstratton has joined #zope3-dev00:59
*** quodt has quit IRC01:11
*** deo has quit IRC01:11
*** gstratton has quit IRC01:11
*** gstratton has joined #zope3-dev01:12
*** deo has joined #zope3-dev01:12
*** flox has quit IRC01:12
*** lucielejard has quit IRC01:14
*** whitmo is now known as whit|out01:17
*** jodok has quit IRC01:19
*** whit|out has quit IRC01:19
*** greenman has joined #zope3-dev01:20
*** jamur2 has quit IRC01:22
*** sp0cksbeard has quit IRC01:27
*** b52laptop has quit IRC01:42
*** norro has quit IRC01:46
*** rcrafton has quit IRC01:48
*** J1m has quit IRC01:51
*** lurkymclurkleton has quit IRC01:55
*** b52laptop has joined #zope3-dev01:57
*** whitmo has joined #zope3-dev02:06
*** rmarianski has quit IRC02:09
*** ARiKA-[lernu] has quit IRC02:22
*** ARiKA-[lernu] has joined #Zope3-Dev02:22
*** ARiKA-[lernu] has quit IRC02:34
*** zagy has quit IRC02:38
*** whitmo has quit IRC02:42
*** gstratton has quit IRC02:44
*** jsadjohnson has joined #zope3-dev02:50
*** dbfrombrc has quit IRC02:55
*** b52laptop has quit IRC03:05
*** gstratton has joined #zope3-dev03:12
*** tarek has quit IRC03:13
*** sm-afk has quit IRC03:18
*** sm has joined #zope3-dev03:19
*** sp0cksbeard has joined #zope3-dev03:21
*** nathany has quit IRC03:28
*** gstratton has quit IRC03:40
*** sp0cksbeard has left #zope3-dev03:44
*** aaronv has joined #zope3-dev03:52
*** gstratton has joined #zope3-dev04:07
*** malthe is now known as malthe|Zzz04:07
*** aaronv has quit IRC04:08
*** jsadjohnson has quit IRC04:17
*** vimes656 has joined #zope3-dev04:32
*** arika has joined #Zope3-Dev04:39
arikaGood night.04:39
*** vimes656 has joined #zope3-dev04:43
*** vimes656 has quit IRC04:49
*** gstratton has quit IRC05:00
*** whit has joined #zope3-dev05:12
*** povbot has joined #zope3-dev05:21
*** vimes656 has joined #zope3-dev05:29
*** RaFromBRC has quit IRC05:35
*** povbot` has quit IRC05:36
*** CSWookie has joined #zope3-dev05:42
CSWookieIs zcml order sensitive?  Like, if I say <exclude package="foo" /> and then later say <include package="bar" />, where bar includes foo, will the result be bar, but not foo?  Or do I need to put the exclude after?05:44
*** binseer has joined #zope3-dev05:58
*** vimes656_ has joined #zope3-dev06:01
*** whit has quit IRC06:05
*** greenman has quit IRC06:09
*** sm has quit IRC06:10
*** CSWookie has left #zope3-dev06:18
*** kursor has joined #zope3-dev06:19
*** vimes656 has quit IRC06:20
*** vimes656_ has quit IRC06:26
*** dbfrombrc has joined #zope3-dev06:40
*** vimes656 has joined #zope3-dev06:52
*** jukart has joined #zope3-dev07:25
*** Aiste_ has joined #zope3-dev07:36
*** fairwinds has quit IRC07:36
*** Aiste has quit IRC07:38
*** kursor has quit IRC07:50
*** romanofski has quit IRC08:14
*** afd__ has joined #zope3-dev08:22
*** jayaraj has joined #zope3-dev08:30
*** vimes656 has quit IRC08:38
*** afd__ has quit IRC08:43
*** timte has joined #zope3-dev08:48
*** vimes656 has joined #zope3-dev08:52
*** jodok has joined #zope3-dev08:56
*** jukart has quit IRC08:58
*** zagy has joined #zope3-dev09:01
*** jodok has quit IRC09:04
*** gstratton has joined #zope3-dev09:05
*** dunny has quit IRC09:06
*** jodok has joined #zope3-dev09:10
*** dunny has joined #zope3-dev09:11
*** hazmat has quit IRC09:12
*** gstratton has quit IRC09:18
*** hazmat has joined #zope3-dev09:19
*** ChanServ sets mode: +o hazmat09:19
*** sm has joined #zope3-dev09:20
*** jodok has quit IRC09:22
*** gstratton has joined #zope3-dev09:22
*** vimes656_ has joined #zope3-dev09:23
*** tarek has joined #zope3-dev09:25
*** dunny_ has joined #zope3-dev09:30
*** jodok has joined #zope3-dev09:32
*** quodt has joined #zope3-dev09:35
*** mustap has joined #zope3-dev09:35
*** dunny has quit IRC09:36
*** vimes656 has quit IRC09:41
*** charith_para has joined #zope3-dev09:49
*** jukart has joined #zope3-dev09:50
*** ktwilight_ has joined #zope3-dev09:53
*** ktwilight has quit IRC10:07
*** goschtl has joined #zope3-dev10:09
*** sm has quit IRC10:12
*** gstratton has quit IRC10:15
*** gstratton has joined #zope3-dev10:17
*** sorindregan has joined #zope3-dev10:21
*** sorindregan has quit IRC10:25
*** ktwilight_ has quit IRC10:35
*** ktwilight_ has joined #zope3-dev10:36
*** stub has joined #zope3-dev10:40
*** gstratton has quit IRC10:41
*** stu1 has joined #zope3-dev10:54
*** stub has quit IRC10:54
*** stu1 is now known as stub10:54
*** flox has joined #zope3-dev10:55
*** malthe|Zzz is now known as malthe10:57
*** dunny has joined #zope3-dev11:01
*** dunny_ has quit IRC11:08
*** charith_parana has joined #zope3-dev11:09
*** b52laptop has joined #zope3-dev11:10
*** charith_para has quit IRC11:11
*** charith_parana is now known as charith_para11:13
*** philiKON has quit IRC11:13
*** norro has joined #zope3-dev11:15
*** Jell-O-Fishi has quit IRC11:20
*** dunny_ has joined #zope3-dev11:21
*** dunny has quit IRC11:30
*** dunny has joined #zope3-dev11:35
*** malthe has quit IRC11:40
*** philiKON has joined #zope3-dev11:41
*** MJ has joined #zope3-dev11:43
*** tarek has quit IRC11:46
*** tarek has joined #zope3-dev11:48
*** dunny_ has quit IRC11:50
*** bigkevmcd has joined #zope3-dev11:52
*** dunny_ has joined #zope3-dev11:56
*** jhauser has joined #zope3-dev11:56
*** dunny has quit IRC12:03
*** dunny has joined #zope3-dev12:09
*** greenman has joined #zope3-dev12:20
*** dunny_ has quit IRC12:25
*** thruflo has joined #zope3-dev12:30
*** malthe has joined #zope3-dev12:32
*** dunny has quit IRC12:37
*** menesis has joined #zope3-dev12:47
*** sorindregan has joined #zope3-dev12:52
*** timte has quit IRC13:05
Pan_how can i turn on accesslog in zope?13:06
Pan_do i have to use zope3recipe?13:06
*** mkerrin has joined #zope3-dev13:07
*** alga has joined #zope3-dev13:07
*** romanofski has joined #zope3-dev13:08
*** aaronv has joined #zope3-dev13:12
*** menesis has left #zope3-dev13:14
*** salfield has joined #zope3-dev13:29
philiKONPan_: are you using zopeproject?13:33
*** MJ is now known as MJ|lunch13:38
*** vimes656 has joined #zope3-dev13:47
*** quodt has quit IRC13:47
*** charith_para has quit IRC13:51
*** jsadjohnson has joined #zope3-dev13:53
*** charith_para has joined #zope3-dev13:53
*** HammerToe has joined #zope3-dev13:55
HammerToeAnyone know what zcml incantation is needed to allow an instance of an object returned by a browser view to allow access to its attributes via __getitem__?13:56
HammerToeif I add __getitem__ into the inteface, and do an allow interface, then I can call the __getitem__ ok from a zpt, but the value return (a string) has no security context so fails validation13:57
zagyattributes via __getitem__?13:57
HammerToehiya zagy :)13:57
HammerToezagy: ok full story... I am implementing an external search which I want to use with Plone3's existing  That expects a list of zope2 zcatalog brains to iterate over13:58
philiKONso you're in zope2, not in zope313:59
HammerToeand attributes on a brain can be accessed as attributes or as mapping keys... eg brain.item or brain['item']13:59
* zagy shuts up13:59
HammerToephiliKON, yes I am... but I think this is a zcml security declaration issue hence asking in here :)13:59
philiKONyes, welcome to the wonderful ambiguity of the zope 2 apis13:59
philiKONthis isn't zcml related14:00
philiKONin zope 2, objects must have a proper acquisition chain if you want security to be evaluated properly14:00
*** greenman has quit IRC14:00
HammerToebut zope2 aside ;) ..... my browser view returns a list of these brain-like objects.  And these objects has a __getitem__ call so they can be accessed like a mapping14:00
philiKONthis has nothing to do with zcml14:00
HammerToethe problem being that it is returning a string, which of course has no security wrapper14:00
philiKONtehre are no security wrappers in zope 214:00
HammerToephiliKON, right... but then how does *any* attribute return a string then?14:00
philiKONthere's only Acquisition14:01
philiKONi'm not sure why this is even an issue14:01
philiKONwhat component actually expects a security context on this string?14:01
HammerToeok, let me try and illustrate my point: (in zpt) works and returns a string.  But myobject['foo'] which also returns a string fails14:02
HammerToeI have def __getitem__(self, item): return self.__dict__.get(item)14:02
philiKONwell, i have no idea why, and w/o the traceback it's hard to judge14:02
philiKONHammerToe: uh, self.__dict__?14:02
*** fairwinds has joined #zope3-dev14:02
philiKONHammerToe: why not getattr?14:02
philiKONHammerToe: i think your __getitem__ is a bit bogus that's why it's failing...14:03
* philiKON murmurs unittests14:03
HammerToethis has nothing to do with unittests ;)14:03
philiKONhmm, guarded_getitem14:04
HammerToeok, will try replacing __dict__ call with getattr14:04
HammerToepah, still fails :(14:05
philiKONguarded_getitem, line 71, wants to "validate" the object14:05
*** greenman has joined #zope3-dev14:05
*** vimes656_ has quit IRC14:05
philiKONso maybe what you want to do is set a default permission on the object14:05
philiKONsecurity = ClassSecurityInfo()14:06
* philiKON doesn't remember what it was in zope 214:06
philiKONi'm not sure there's a zcml syntax for this14:06
HammerToehrm... you can't do it in zcml?14:06
HammerToeahhh wait.. yeah I remember... allow acces unproceted subobjects or something14:06
philiKONah right14:07
philiKONthat's something you might be able to do as well14:07
philiKON__allow_access_to_unprotected_subobjects__ = True14:07
HammerToeaha.... yeah that seems to have worked :D cheers philikon14:08
* philiKON off for a bit14:08
*** philiKON has quit IRC14:08
*** HammerToe has left #zope3-dev14:11
*** mustap has left #zope3-dev14:14
*** MJ|lunch is now known as MJ14:16
*** yvl has quit IRC14:19
*** yvl has joined #zope3-dev14:19
*** charith_para has quit IRC14:22
*** aaronv has quit IRC14:23
*** mgedmin has joined #zope3-dev14:25
*** philiKON has joined #zope3-dev14:26
*** flox has quit IRC14:30
*** flox has joined #zope3-dev14:31
*** sorindregan has quit IRC14:40
*** jsadjohnson_ has joined #zope3-dev14:50
*** jsadjohnson has quit IRC14:50
*** jukart has quit IRC14:55
*** markusleist has quit IRC14:58
*** povbot` has joined #zope3-dev15:24
*** benji has joined #zope3-dev15:25
*** regebro has joined #zope3-dev15:26
*** alga has quit IRC15:30
*** povbot has quit IRC15:31
*** salfield has quit IRC15:34
*** jukart has joined #zope3-dev15:35
*** jodok has quit IRC15:37
*** ignas has joined #zope3-dev15:38
*** greenman has quit IRC15:40
*** gstratton has joined #zope3-dev15:41
*** gstratton has quit IRC15:44
*** salfield has joined #zope3-dev15:51
*** lurkymclurkleton has joined #zope3-dev15:55
*** nouri has joined #zope3-dev15:56
*** mgedmin has quit IRC16:00
*** jamur2 has joined #zope3-dev16:00
*** sp0cksbeard has joined #zope3-dev16:00
*** mgedmin has joined #zope3-dev16:03
*** salfield has quit IRC16:05
*** J1m has joined #zope3-dev16:07
*** aaronv has joined #zope3-dev16:08
*** aaronv has left #zope3-dev16:15
*** jhauser has quit IRC16:20
*** lucielejard has joined #zope3-dev16:22
*** kursor has joined #zope3-dev16:45
*** salfield has joined #zope3-dev16:58
*** jodok has joined #zope3-dev17:00
*** jsadjohnson_ has quit IRC17:06
*** kursor has quit IRC17:08
*** thruflo has joined #zope3-dev17:10
*** nouri has left #zope3-dev17:14
*** zagy has quit IRC17:16
*** __gotcha has joined #zope3-dev17:19
__gotchatest setup/teradown question17:19
__gotchaif I use configuration.xmlconfig.file to load zcml in the test setup,17:20
__gotchawhat should I do as tear down ?17:20
__gotchamgedmin: thanks17:21
philiKON__gotcha: or just use a layer :)17:22
*** jayaraj has quit IRC17:22
__gotchaphiliKON: I am still not able to understand how to use those layers17:22
philiKONplacelessTearDown()... hmm, 2001 called, it wants its Zope 3 back :)17:22
__gotchaany hint where to get good doc about them ?17:23
*** alecghica has quit IRC17:23
philiKON__gotcha: my trainings ;)17:23
__gotchaI'll confirm a flight in five minutes17:23
__gotchaoops, I have already a reservation for holidays with my wife ;-)17:23
*** binseer has quit IRC17:23
philiKONmy book does mention them, but doesn't cover them as much as i'd like it to17:23
philiKONbasically, a layer is something that has a setUp and a tearDown mehod17:24
__gotchaespecially when we are crazy enough to do those tests in Z2 :-S17:24
philiKONand you place a bunch of tests on a layer17:24
philiKONby saying17:24
philiKONsuite.layer = TheLayer17:24
* __gotcha listening17:25
philiKONsuite = DocFileSuite('foo.txt')17:25
philiKONsuite.layer = TheLayer17:25
*** whit has joined #zope3-dev17:25
__gotchajfroche and I will try right away17:25
philiKONTheLayer is something you'll have to define17:25
__gotchacan we use the xmlconfig stuff in layers as well17:25
philiKONit could be a class with 2 classmethods setUp and tearDown17:25
philiKONor, if all you want to do is just load ZCML, you can use ZCMLLayer17:25
philiKONyes, you could17:26
philiKONbut it's even easier to use ZCMLLayer17:26
philiKONmy_zcml = os.path.join(os.path.dirname(__file__), 'my.zcml')17:26
__gotchawhat is the way to configure ZCMLLayer ?17:26
philiKONTheLayer = ZCMLLayer(my_zcml, __name__, 'TheLayer')17:26
__gotchayou are quuicker for answers than my questions17:26
__gotchaas usual thanks !17:26
philiKONand my.zcml is a file next to your tests that includes everything you need for that layer17:27
philiKONthis is how we do integration and functional tests in zope317:27
__gotchawe'll try17:27
philiKONit also works in zope2, of course17:27
__gotchaseems fine17:27
mgedminphiliKON: please pleas please update your recommendation to ZCMLLAyer(my_zcml, __name__, 'TheLayer', allow_teardown=True)17:27
philiKONok :)17:27
philiKONbut why?17:27
mgedminthe default (allow_teardown=False) is for paranoid backwards-compatibility reasons only17:27
philiKONdoes it matter?17:27
philiKONso what if it has to launch a new python process?17:28
__gotchawhat is the second arg ?17:28
mgedminthe test runner will not need to use subprocesses if you say allow_teardown=True17:28
__gotchathen layer name ?17:28
philiKON__gotcha: the name of the current package17:28
philiKON__gotcha: in python that's __name__17:28
mgedminand if the test runner uses subprocesses, you can't pdb, or measure --coverage, or other nice things17:28
philiKONmgedmin: ah :(17:28
mgedminmaybe I should just set the default to True and damn the consequences :-)17:28
mgedminI doubt you'd find any real-life cases where CleanUp().cleanUp() doesn't reliably clean up everything the test setup set up17:29
philiKONzope.testing.cleanup.cleanUp() is my preferred way of cleaning up. placelessTearDown() sounds so Zope X3.0ish :)17:29
*** vimes656 has quit IRC17:29
__gotchaphiliKON: where to import ZCMLLayer from ?17:30
philiKONfrom import ZCMLLayer17:31
__gotchayou are a father for me17:31
philiKONwell, daddy has to home now :)17:32
*** philiKON has quit IRC17:32
mgedminoh?  inheriting your TestCase from PlacelessSetUp is Zope X3-ish, placelessTearDown is at least Zope 3.2-ish :-)17:33
mgedminwaaah, he's gone already :(17:34
__gotchamgedmin: I was very lucky ;-)17:34
*** MJ has quit IRC17:43
*** lurkymclurkleton has quit IRC17:45
*** rmarianski has joined #zope3-dev17:47
*** sp0cksbeard has quit IRC17:48
*** alga has joined #zope3-dev17:51
*** seletz_ has joined #zope3-dev17:54
*** seletz has quit IRC17:54
*** seletz_ has quit IRC17:55
*** philiKON has joined #zope3-dev17:57
*** sm has joined #zope3-dev18:00
__gotchaphiliKON: back ?18:00
__gotchajust in time ;-)18:00
__gotchawhat should I add to a ZCMLLayer to get traversal ?18:01
__gotchaTraversalError: ('No traversable adapter found', <TextWidget 'form.widgets.field_1'>)18:02
__gotchaI miss some setup I suppose18:02
philiKONincluding Products.Five doesn't hurt ;)18:02
*** sp0cksbeard has joined #zope3-dev18:02
__gotchaI am trying to convert existing test setup to layer18:02
*** srichter has joined #zope3-dev18:03
philiKONtry including Products.Five as the first thing in your layer's zcml file18:03
* __gotcha testing18:04
__gotchayeah, thanks18:04
*** goschtl has quit IRC18:04
*** __gotcha has left #zope3-dev18:07
*** stub has left #zope3-dev18:14
*** jodok has quit IRC18:14
*** alga has quit IRC18:16
*** flox has left #zope3-dev18:16
*** rcrafton has joined #zope3-dev18:28
*** dbfrombrc has quit IRC18:30
*** zagy has joined #zope3-dev18:35
*** Jell-O-Fishi has joined #zope3-dev18:36
*** zagy has quit IRC18:41
*** zagy has joined #zope3-dev18:41
*** charith_para has joined #zope3-dev18:44
*** kursor has joined #zope3-dev18:55
*** malthe has quit IRC18:57
*** faassen has joined #zope3-dev19:07
*** yotaff has quit IRC19:08
*** jukart has quit IRC19:23
*** jodok has joined #zope3-dev19:27
*** yvl has quit IRC19:28
*** zagy has quit IRC19:32
*** sm has quit IRC19:34
*** sm has joined #zope3-dev19:34
*** vimes656 has joined #zope3-dev19:48
*** nathany has joined #zope3-dev19:51
*** RaFromBRC has joined #zope3-dev19:55
*** vimes656 has quit IRC20:04
*** quodt has quit IRC20:05
*** thruflo has quit IRC20:09
*** mkerrin has quit IRC20:11
*** RaFromBRC has quit IRC20:11
*** vimes656 has joined #zope3-dev20:20
*** RaFromBRC has joined #zope3-dev20:23
*** ignas has quit IRC20:23
*** mgedmin has quit IRC20:24
*** zagy has joined #zope3-dev20:24
*** charith_para has joined #zope3-dev20:44
*** lucielejard has quit IRC20:46
*** bigkevmcd has quit IRC20:49
*** faassen has quit IRC20:51
*** salfield has quit IRC20:56
*** baijum has joined #zope3-dev21:01
*** charith_para has quit IRC21:04
*** rmarianski has quit IRC21:04
*** rmarianski has joined #zope3-dev21:04
*** baijum has quit IRC21:07
*** kursor has quit IRC21:14
*** kursor has joined #zope3-dev21:16
*** kursor has quit IRC21:17
*** sm has quit IRC21:42
*** jodok has quit IRC21:44
*** ksmith99 has joined #zope3-dev22:23
*** ksmith99 has left #zope3-dev22:23
*** vimes656 has quit IRC22:28
*** lurkymclurkleton has joined #zope3-dev22:41
*** dunny_ has joined #zope3-dev22:52
*** lurkymclurkleton has quit IRC22:54
*** rcrafton_ has joined #zope3-dev23:35
*** rcrafton has quit IRC23:38
*** rcrafton_ has quit IRC23:53
*** dunny has joined #zope3-dev23:56

Generated by 2.15.1 by Marius Gedminas - find it at!