IRC log of #zope3-dev for Tuesday, 2006-08-08

*** pcardune has quit IRC00:06
*** rocky|away is now known as rocky00:14
*** MJ has quit IRC00:19
*** pcardune has joined #zope3-dev00:21
*** timte has quit IRC00:31
*** xenru has joined #zope3-dev00:32
*** nathany has quit IRC00:37
*** stub has quit IRC00:38
*** ignas has joined #zope3-dev01:08
*** pcardune has quit IRC01:19
*** J1m has quit IRC01:45
*** niemeyer has quit IRC01:50
*** benji has joined #zope3-dev01:53
*** yota has quit IRC01:56
*** dobee has quit IRC01:58
*** alga has joined #zope3-dev02:21
*** rocky has quit IRC02:25
*** rocky has joined #zope3-dev02:28
*** rocky is now known as rocky|Zzz02:29
hazmatis there a standard way to introspect the interfaces of instances of a class from the class?02:43
hazmatthere doesn't seem to be a utility func for it in z.i .. and the alternative is mucking with the internals ala klass.__provides__._implements02:44
*** RaFromBRC has quit IRC02:55
*** alga has quit IRC03:04
*** hazmat has quit IRC03:05
*** projekt01 has quit IRC03:22
*** hazmat has joined #zope3-dev03:25
*** ChanServ sets mode: +o hazmat03:25
*** ignas has quit IRC03:30
*** febb has joined #zope3-dev04:07
*** tiredbones has quit IRC06:48
*** febb has quit IRC07:15
*** eins has joined #zope3-dev08:09
einshi08:09
*** timte has joined #zope3-dev08:10
*** timte has joined #zope3-dev08:11
*** jukart has joined #zope3-dev08:16
*** flox is now known as flox|away08:48
*** alecm has quit IRC09:02
*** alecm has joined #zope3-dev09:03
*** flox|away has quit IRC09:11
*** hdima has joined #zope3-dev09:14
*** romanofski has quit IRC09:17
*** romanofski has joined #zope3-dev09:18
romanofskimoin09:21
*** jukart has quit IRC09:26
*** jukart has joined #zope3-dev09:28
*** alecm has quit IRC09:30
*** scherand has joined #zope3-dev10:01
*** yota has joined #zope3-dev10:02
scherandgood morning10:05
scherandeins: you were so kind to help me starting to understand zalchemy (and sqlalchemy) yesterday, so i tried to "download" (checkout) zalchemy from svn using "svn co http://svn.zope.org/z3c.zalchemy/trunk" (and similar) commands. that did not work (301 Moved (http://svn.zope.org)). do you know where i can get zalchemy from?10:14
einsscherand the correct address is svn://svn.zope.org/repos/main/z3c.zalchemy/10:19
*** flox has joined #zope3-dev10:19
*** flox is now known as flox|away10:19
*** flox|away is now known as flox10:20
scherandeins: ups, thank you, this works just fine.10:22
*** jukart has quit IRC10:36
*** jukart has joined #zope3-dev10:38
*** volvox has joined #zope3-dev10:57
*** Mosasaur has joined #zope3-dev11:13
Mosasaurwhich zope 3 version on windows xp? 3.2.1 has no installer yet?11:14
*** stub has joined #zope3-dev11:15
*** Mosasaur has quit IRC11:22
*** niemeyer has joined #zope3-dev11:22
*** MJ has joined #zope3-dev11:26
*** dobee has joined #zope3-dev11:27
*** romanofski has quit IRC12:21
*** Bernulf has joined #zope3-dev12:22
*** mkerrin has joined #zope3-dev12:30
*** romanofski has joined #zope3-dev12:34
*** Aiste has quit IRC12:45
*** volvox has quit IRC12:52
*** hazmat has quit IRC12:52
*** volvox has joined #zope3-dev12:52
*** diefenbach has joined #zope3-dev13:00
diefenbachHi, is there a way to show/hide fields/widgets dependend on  certain conditions via zope.schema or something like that?13:01
*** romanofski has quit IRC13:03
*** romanofski has joined #zope3-dev13:04
*** ktwilight has quit IRC13:05
*** Aiste has joined #zope3-dev13:11
*** ktwilight has joined #zope3-dev13:17
*** ignas has joined #zope3-dev13:32
*** mgedmin has joined #zope3-dev13:58
*** dunny has quit IRC14:01
*** done_ has joined #zope3-dev14:10
*** diefenbach has quit IRC14:13
*** stub has quit IRC14:17
*** Bernulf has quit IRC14:18
*** stub has joined #zope3-dev14:22
*** tiredbones has joined #zope3-dev14:23
*** alga has joined #zope3-dev14:30
*** rocky|Zzz is now known as rocky14:39
*** nathany has joined #zope3-dev14:55
*** zbir has quit IRC15:16
*** zbir has joined #zope3-dev15:26
*** benji has quit IRC15:35
*** timte has quit IRC15:38
*** timte has joined #zope3-dev15:38
*** timte has quit IRC15:43
*** timte has joined #zope3-dev15:44
*** niemeyer has quit IRC15:52
*** stub has quit IRC15:54
*** benji has joined #zope3-dev15:57
*** pcardune has joined #zope3-dev16:00
*** Aiste has quit IRC16:06
*** bradb has quit IRC16:11
*** ktwilight has quit IRC16:12
*** ktwilight has joined #zope3-dev16:12
*** done_ has quit IRC16:18
*** ktwilight has quit IRC16:20
mgedmindoes anyone understand how the collector search works?16:30
mgedminI try to search for "'NoneType' object is not callable", I get back 79 results that have nothing to do with what I search for16:31
*** cursor has joined #zope3-dev16:35
*** J1m has joined #zope3-dev16:40
*** ktwilight has joined #zope3-dev16:41
benjimgedmin: for your collector search did you select all (or most) of the items in the "Status" list? (that's what I always forget to do)16:42
mgedminactually I was thinking about the goBack() truncation issue16:43
mgedminI do not think now this one was reported before16:43
benjiI followed up that I have seen that behavior before, but don't recall clearly where and why16:44
mgedminI'm trying to write a test case for it now16:44
*** gumpa has joined #zope3-dev16:44
*** srichter has quit IRC16:44
mgedminif I add browser.handleErrors = False before that getLink().click() line, then I get a ForbiddenAttribute error16:45
*** srichter has joined #zope3-dev16:47
*** ChanServ sets mode: +o srichter16:49
*** projekt01 has joined #zope3-dev16:50
benjimgedmin: once we have that test case, I think we can make the error a bit nicer16:51
mgedminthe test case is not cooperating :/16:51
*** stub has joined #zope3-dev16:56
*** eins has quit IRC17:03
*** J1m has quit IRC17:06
*** J1m has joined #zope3-dev17:06
mgedminI've got a breakpoint17:07
mgedmin(Pdb) p response17:07
mgedmin<response_seek_wrapper at -0x4aa4a954 whose wrapped object = <HTTPError at -1253582772 whose fp = <response_seek_wrapper at -0x4ab4bc74 whose wrapped object = <addinfourl at -1253965972 whose fp = <socket._fileobject object at 0xb58d8f44>>>>>17:07
mgedminmy head is swimming17:07
*** Aiste has joined #zope3-dev17:09
benjimgedmin: is that response object the one created by Zope or by Mechanize? (or are you working on something else?)17:14
mgedminhm, Browser.set_response is called twice by that statement, and the second time response is17:14
mgedmin(Pdb) p response17:14
mgedmin<response_seek_wrapper at -0x4a9b6d14 whose wrapped object = <HTTPError at -1253768308 whose fp = <response_seek_wrapper at -0x4ab76e34 whose wrapped object = <addinfourl at -1253225172 whose fp = None>>>>17:14
mgedminaddinfourl whose fp = None17:14
mgedminthat's the culprit17:14
*** flox_ has joined #zope3-dev17:14
benjiright, at some point it needs a file, but because an error occurred, there is no file17:15
*** flox has quit IRC17:15
benjiI wonder if we can identify that case and provide a better error message in testbrowser without having to change mechanize17:15
*** flox_ is now known as flox17:15
mgedminI do not understand what is going on17:16
mgedminit seems as if _mech_open called self.set_response successfully17:16
mgedminthen did 'raise error'17:17
mgedminand then, somehow, I'm back in _mech_open.set_response which now fails17:17
mgedminand pdb's stack trace indicates that I'm somewhere in the middle as opposed to being at the bottom17:17
benjihmm...17:18
benjiperhaps I can look at it, did you find a good way to reproduce the problem?17:19
mgedminthat's the problem, I didn't17:19
benjiperhaps just a view that raises an exception when called, then browser.open it?17:20
mgedminI tried that17:21
*** alecm has joined #zope3-dev17:26
*** cursor has quit IRC17:26
*** niemeyer has joined #zope3-dev17:40
benjiniemeyer: I saw your latest release of editmoin, and was wondering how it compares to external editor (i.e., do they work the same way/differently)17:46
niemeyerbenji: Greetings17:50
niemeyerbenji: editmoin works the most hackish way you can imagine..17:51
benjiheh :)17:51
niemeyerbenji: It was really a hack for myself that ended up being used by others in the company because it was cool and then released because more people liked it.17:51
niemeyerbenji: The code is doing HTML parsing using regular expressions.17:52
niemeyerbenji: External editor is hopefully using XMLRPC17:52
benjido you have a small client-side app associated with a MIME type that get's run which triggers the correct editor?17:53
niemeyerbenji: Even then, editmoin works since a few years now.. with every succeeding moin release, and don't expect anything from the running wiki besides what it has to offer in any case.17:53
*** hdima has quit IRC17:53
niemeyerbenji: Certainly not due to good design though, as I explained. It works just because I use it myself a lot and keep it working.17:53
benjilove is the only antidote to bit rot :)17:53
niemeyerbenji: It runs the system's $EDITOR17:54
benjihow do you get the editor to execute?17:54
niemeyeros.system17:55
benjiso there's a small client-side app that calls os.system?17:55
niemeyerbenji: Well, editmoin *is* the client app17:56
niemeyerbenji: It requires no server-side changes or plugins.17:56
benjiright...  so how does editmoin get invoked?  the user?17:57
niemeyerbenji: Well, when you want to see it running, you run it (!?)17:57
benjiand the user enters a URL into editmoin which launches their editor?17:58
niemeyerbenji: Have you seen http://labix.org/editmoin?17:58
benjinope, I'll take a look; thanks!17:58
benjithanks, niemeyer, that answers my questions!18:00
niemeyerbenji: Cool!18:00
niemeyerbenji: ExternalEdit requires server-side support, so that's a difference already.18:00
benjiright, I was wondering how they were the same/different, now I know :)18:01
*** nathany has quit IRC18:05
*** zagy has quit IRC18:09
*** jukart has quit IRC18:15
SmokeyDHi, how do I create a context and request for unittests?18:20
*** romanofski has quit IRC18:21
mgedminit depends on what you are testing18:21
SmokeyDI want to instantiate a self written edit form class, but it requires a context and a request. How do I simulate these?18:21
mgedminuse zope.publisher.browser.TestRequest18:21
SmokeyDI won't actually use the request and the context for the test.18:22
SmokeyDOk thanks18:22
mgedminthen just pass Nones18:22
*** romanofski has joined #zope3-dev18:22
SmokeyDIt wont choke on that?18:22
mgedminI do not know18:22
mgedmintry it18:22
mgedminif it does, then use TestRequest and whatever context is appropriate for your form18:23
*** scherand has left #zope3-dev18:26
*** volvox has quit IRC18:30
pcardunewhat's the equivalent of a siteroot for zope3?18:42
*** febb has joined #zope3-dev18:44
floxpcardune: i guess it is a Folder18:44
floxthen u have action "Make a site"18:45
pcardunedo site managers keep track of the base url then?18:45
floxwait18:46
*** febb has quit IRC18:47
floxAFAIK, yes, it keep track of site url18:52
floxpcardune: somewhere within zope.traverse18:52
pcardunethanks18:52
floxsomething like zope.traversing.api.getRoot18:53
floxpcardune: maybe i am worng18:59
floxwrong18:59
*** projekt01 has left #zope3-dev19:00
*** MJ has quit IRC19:01
*** hazmat has joined #zope3-dev19:07
*** ChanServ sets mode: +o hazmat19:07
*** hazmat has quit IRC19:07
*** romanofski has quit IRC19:13
*** flox has quit IRC19:23
*** peter_ has joined #zope3-dev19:24
*** ktwilight has quit IRC19:27
*** batlogg has quit IRC19:35
*** gumpa is now known as gumpa-away19:41
*** pcardune has quit IRC19:51
*** nathany has joined #zope3-dev19:52
*** RaFromBRC has joined #zope3-dev19:54
*** projekt01 has joined #zope3-dev19:59
*** philiKON has joined #zope3-dev20:00
*** peter_ has quit IRC20:14
*** MJ has joined #zope3-dev20:16
*** ktwilight has joined #zope3-dev20:18
*** srichter has quit IRC20:21
*** peter_ has joined #zope3-dev20:23
*** ignas has quit IRC20:24
*** srichter has joined #zope3-dev20:25
*** mcdonc has joined #zope3-dev20:29
*** zagy has joined #zope3-dev20:33
*** ChanServ sets mode: +o srichter20:34
* mgedmin wants frozendict... and a pony20:39
*** zagy has quit IRC20:41
*** flox_ has joined #zope3-dev20:57
*** flox_ is now known as flox20:58
*** zagy has joined #zope3-dev21:19
*** febb has joined #zope3-dev21:21
febbhi all !21:22
febbhi  philiKON     how are you today ?21:22
*** mkerrin has quit IRC21:23
MJHrm21:38
*** zagy has left #zope3-dev21:38
MJI have a non-persistent utility21:38
MJAnd during a request, that utility wants to access the root object21:38
MJIs there any way I can access that?21:38
MJI don't see an API to ask for the root object without access to a persistent object21:39
MJ(or anything that is ILocatable with the __parent__ chain ending at the root object)21:39
MJI basically need to store some persistent configuration21:39
MJAnd my utility wants to access that configuration21:39
mgedminone EVIL way would be getInteraction().participations[0].publication.getApplication(getInteraction().participations[0])21:40
MJEvil21:40
MJindeed21:40
mgedmindo you have the request object?21:41
mgedmin(passed as an argument to some utility method perhaps?)21:41
mgedminor you could play with getSite()21:41
TresEquisyou could grab the connection associated to your thread, which would be about as evil, but on a different axis21:42
mgedminor you could design a clean way for global non-persistent utilities to access the database, and then implement it21:42
mgedminmany people ask for that21:42
mgedminwell, two or three have asked for it21:42
TresEquisyup, getSite is the "clean" way to do mine21:42
MJNo request object21:42
MJTresEquis: That only works if there has been any traversal21:42
MJTresEquis: No traversal here: all views are on the ++etc++process space21:43
MJ(not really, my own version of the same setup)21:43
TresEquisThat does the root traversal21:43
MJNope21:43
MJgetSite fails21:43
MJahem21:43
MJI didn't actually test that...21:43
MJI used getSiteManager21:44
TresEquishaving the "control panel" munge persistent date is WAAAAY more evil than the hackery we're talking about21:44
MJThat fails...21:44
TresEquisjust write to the damn filesystem21:44
mgedminotoh there's /++etc++process/ZODBControl.html21:44
TresEquisor open a "private" filestorage21:44
mgedminit gets the database somehow21:44
MJTresEquis: I fear I'll have to go the private storage way...21:45
MJBummer21:45
MJThat'd be cleaner.21:45
MJmgedmin: the zodbcontrol has access to a request (it is a view)21:46
mgedminoh, right21:46
MJmgedmin: and the request has the publication, which has the database...21:46
* mgedmin is about to suggest the utility do an http request to localhost21:47
* mgedmin needs some rest21:47
* MJ sniggers. Yeah right.21:48
*** niemeyer has quit IRC21:49
*** stub has quit IRC21:51
MJWell I'll be damned21:52
MJgetSite returns *a* folder21:52
MJThe lookup still fails tho21:52
MJThat looks like my fault tho21:53
* MJ slaps head: context can't be positional21:55
MJAnyways: zope.components.hooks.getSite does the trick21:56
MJBecause the root object has always been traversed.21:56
*** zagy has joined #zope3-dev22:02
*** srichter has quit IRC22:12
*** dobee has quit IRC22:40
*** dobee has joined #zope3-dev22:42
*** zagy has quit IRC22:45
*** mgedmin has quit IRC22:51
*** alga has quit IRC23:01
*** romanofski has joined #zope3-dev23:04
*** alecm has quit IRC23:14
*** romanofski has quit IRC23:15
*** peter_ has quit IRC23:17
*** romanofski has joined #zope3-dev23:19
*** dunny has joined #zope3-dev23:40
*** batlogg has joined #zope3-dev23:48
*** nathany has quit IRC23:59

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