IRC log of #zope3-dev for Monday, 2009-02-16

*** rocky1 has joined #zope3-dev00:01
*** rocky has quit IRC00:01
*** J1m has quit IRC00:01
*** pelle_ has quit IRC00:09
*** redir has joined #zope3-dev00:12
*** romanofski has joined #zope3-dev00:15
*** yota has quit IRC00:39
*** flox1 has left #zope3-dev00:41
*** pcardune has joined #zope3-dev00:48
*** sunew has quit IRC01:11
*** mcdonc has quit IRC01:16
*** MrTopf has quit IRC01:16
*** mcdonc has joined #zope3-dev01:26
*** regebro has quit IRC01:33
*** markusleist has quit IRC01:38
*** nyo has quit IRC01:59
*** tarek has quit IRC02:01
*** markusleist has joined #zope3-dev02:02
*** srichter has quit IRC02:20
*** quodt has quit IRC02:46
*** agile123 has joined #zope3-dev02:47
agile123hello adll02:48
agile123can anybody tell me where i can get help for zope problem?02:48
romanofskiprobably here02:49
mcdoncagile123: dont ask to ask just ask and someone may be able to help02:49
romanofskidon't ask to ask, just ask ;)02:49
agile123thx guys ..02:49
agile123alright so here goes02:50
agile123I changed and for 2.9 _log error from launchpad bug fix02:50
agile123website is back on but I can't connect to mysql02:50
agile123when i go back to connector it says that connection is closed02:50
agile123by website i mean plone* site02:51
*** troter has joined #zope3-dev03:02
mcdoncsorry agile123 i dont know03:14
mcdonchave you tried the connect button in the ui for the connector?03:14
agile123yeh it gives me this error if i click browse on connector Error Value: _v_database_connection03:23
agile123Error Value: _v_database_connection03:23
agile123Error Type: AttributeError03:23
mcdoncsorry, i have no clue03:26
agile123that is ok thx though03:27
agile123i'll just try to reinstall da and db and see if it works03:28
*** pcardune_ has joined #zope3-dev03:46
*** dbfrombrc_ has joined #zope3-dev03:55
*** dbfrombrc has quit IRC04:11
*** agile123 has quit IRC04:20
*** romanofski has quit IRC04:21
*** norro_ has quit IRC04:28
*** redir has quit IRC04:55
*** romanofski has joined #zope3-dev05:01
*** redir has joined #zope3-dev05:07
*** redir has quit IRC05:30
*** andycat has joined #zope3-dev05:45
*** andycat has quit IRC05:47
*** stub has joined #zope3-dev06:04
*** andycat has joined #zope3-dev06:08
*** alga has quit IRC06:22
*** greenman has quit IRC06:25
*** baijum has joined #zope3-dev06:49
*** binseer has joined #zope3-dev06:58
*** pcardune has quit IRC07:01
*** pcardune_ has quit IRC07:02
*** baijum has joined #zope3-dev07:15
*** afd___ has joined #zope3-dev07:17
*** fairwinds has quit IRC07:40
*** markusleist has quit IRC07:41
*** binseer has left #zope3-dev07:43
*** yota has joined #zope3-dev07:48
*** SteveA has quit IRC07:56
*** SteveA has joined #zope3-dev07:56
*** pcardune has joined #zope3-dev07:58
*** jukart has joined #zope3-dev08:02
*** jukart has quit IRC08:09
*** jukart has joined #zope3-dev08:34
*** agroszer_ has joined #zope3-dev08:42
*** pelle_ has joined #zope3-dev08:42
*** JaRoel|4D has quit IRC08:48
*** __mac__ has joined #zope3-dev08:52
*** basti__ has joined #zope3-dev08:54
*** malthe has joined #zope3-dev09:01
*** zagy has joined #zope3-dev09:09
*** markusleist has joined #zope3-dev09:21
*** agroszer_ is now known as agroszer09:28
*** romanofski has quit IRC09:34
*** JaRoel|4D has joined #zope3-dev09:39
*** JaRoel|4_ has joined #zope3-dev09:40
*** pcardune has quit IRC09:41
*** yotaff has joined #zope3-dev09:41
*** greenman has joined #zope3-dev09:42
*** mgedmin has joined #zope3-dev09:57
*** flox has joined #zope3-dev10:00
*** markusleist has quit IRC10:03
*** jpcw has joined #zope3-dev10:05
*** JaRoel|4D has quit IRC10:05
*** MJ has joined #zope3-dev10:09
*** MrTopf has joined #zope3-dev10:09
*** afd___ has quit IRC10:09
*** quodt has joined #zope3-dev10:11
*** regebro has joined #zope3-dev10:13
*** MJ has quit IRC10:14
*** MJ has joined #zope3-dev10:15
*** mkerrin has joined #zope3-dev10:16
*** Rolando has joined #zope3-dev10:34
*** olavgg has quit IRC10:39
*** pyqwer has joined #zope3-dev10:39
*** goschtl has joined #zope3-dev10:42
*** afd_ has joined #zope3-dev10:49
*** agroszer has quit IRC10:57
*** flox has left #zope3-dev11:01
*** flox has joined #zope3-dev11:02
*** olavgg has joined #zope3-dev11:06
*** zagy has quit IRC11:12
*** MrTopf has quit IRC11:19
*** __mac___ has joined #zope3-dev11:31
*** mgedmin has quit IRC11:33
*** mgedmin has joined #zope3-dev11:35
*** __mac__ has quit IRC11:40
*** jhauser has joined #zope3-dev11:40
*** MrTopf has joined #zope3-dev11:55
*** norro_ has joined #zope3-dev12:02
*** basti__ has quit IRC12:08
*** norro_ has quit IRC12:08
*** basti__ has joined #zope3-dev12:15
*** markusleist has joined #zope3-dev12:16
*** malthe has quit IRC12:22
*** malthe has joined #zope3-dev12:23
*** zagy has joined #zope3-dev12:49
*** thetet has joined #zope3-dev12:55
*** flox1 has joined #zope3-dev13:19
*** flox has quit IRC13:29
*** tarek has joined #zope3-dev13:35
*** Count-Duckula has joined #zope3-dev13:38
*** sunew has joined #zope3-dev13:38
Count-Duckulahow can I get to the context of a view from a pt, I used to be able to do restrictedTraverse('@@myView').myMethod()...but that obviously a no no in z313:47
*** __mac___ has quit IRC13:52
*** __gotcha has joined #zope3-dev13:53
*** __mac__ has joined #zope3-dev13:53
*** greenman has quit IRC13:54
*** __mac__ has quit IRC14:11
*** dunny has quit IRC14:27
*** fairwinds has joined #zope3-dev14:31
*** benji has joined #zope3-dev14:32
mgedminCount-Duckula: the context of *the* view is 'context' in pt14:32
mgedmindo you want the context of a different view?14:32
mgedminin which case, how are you getting the different view?14:33
*** __gotcha has quit IRC14:37
Count-Duckulamgedmin: The context of a different view14:40
mgedminbecause usually you get the other view by doing other_views_context/@@other_views_name14:40
mgedminin which case to get the context you just drop the /@@other_views_name14:40
*** sunew has quit IRC14:42
Count-Duckulamgedmin: In want the python class associated with a "view" which is not the current one.14:43
*** gc_basti has joined #zope3-dev14:44
*** projekt01 has joined #zope3-dev14:47
mgedminclass or instance?14:48
mgedminusually you want an instance14:48
mgedmintal:define="some_other_view nocall:object/@@viewname"14:48
mgedminnocall: is the tricky bit14:48
mgedminwithout it you'll get a string with the rendered html contents of that other view14:48
Count-DuckulaAll  I want is the text from a method call like @@myView/myMethod I can't seem to do this in Z314:50
*** stub has quit IRC14:52
mgedminstrange, since it should just work14:53
mgedminplease show me the full expression14:53
mgedminor, if that *is* the full expression, then you're relying on some magic that doesn't exist in z3:14:54
mgedmina path expression cannot start with @@14:54
mgedminyou need something in front of it14:54
mgedmine.g. context/@@myView14:54
Count-Duckulamgedmin: I don't have a context, it's a standalone view with a callable method14:57
mgedminstandalone means <page for="*", I take it14:57
mgedminin which case context/@@myView will work just fine14:57
mgedminand you even get overridability for free!14:57
Count-DuckulaIt's the method call on the @@myView I can't get to work, in Z2 it works, in Z3 is says...The page that you are trying to access is not available14:58
*** basti__ has quit IRC15:01
*** troter has quit IRC15:04
Count-Duckulamgedmin: hmm That's odd your code works :-) but not if I call it off the URL15:06
Count-Duckulamgedmin: Thanks tho' got it working either way15:06
*** flox has joined #zope3-dev15:07
afd_Count-Duckula: when you look at a view, it automatically execute its __call__ method. That's why you need to use the nocall: structure. Also, a string object (the result of calling the view) will not have your method available for it, of course15:07
afd_so you can't call a method from a view directly through the web, unless you do some other special things15:08
afd_the easiest would be to define a new view where you specify the attribute you want called as a result of the view15:08
*** flox1 has quit IRC15:10
Count-Duckulatal:replace="@@context/myView/myMethod" does work from within my PT in both Z3 and Z3.  But I can only call @@myView/myMethod directly from the URL in Z2.15:11
afd_correct is:15:12
afd_<div tal:define="myview nocall:context/@@myView" tal:replace="myview/myMethod" />15:12
afd_and you can't call it directly from url, read what I wrote above15:13
afd_z3 (and probably browser views in z2) don't magically publish methods and attributes from page classes15:13
afd_you need to do it explicitelly15:14
Count-Duckulawhy the is the define considered good form?15:14
afd_because context is probably a persistent object, and you can't do @@context15:14
afd_it makes no sense15:15
afd_and you need to do it with define because you first need to get the view class, "uncalled"15:15
afd_when you do tal:content="structure context/@@myview"15:15
afd_you will insert a string, right?15:15
afd_so context/@@myview actually calls the view, it executes it __call__ method15:16
Count-Duckulaah, I get ya, to ensure that the view isn't called and doing stuff, when you don't need it to.15:16
*** baijum has quit IRC15:23
*** sunoano has quit IRC15:44
*** Jell-O-Fishi has quit IRC15:46
*** sunoano has joined #zope3-dev15:48
*** goschtl has quit IRC15:48
*** norro_ has joined #zope3-dev15:55
*** afd_ has quit IRC16:03
*** malthe has quit IRC16:05
*** J1m has joined #zope3-dev16:05
*** jamur2 has joined #zope3-dev16:05
*** malthe has joined #zope3-dev16:10
*** tarek has quit IRC16:10
*** lurkymclurkleton has joined #zope3-dev16:11
* mgedmin suddenly got what count duckula meant by "calling something directly from a url"16:14
mgedminno, zope 3 doesn't expose the internals of views in that way16:14
mgedminyour view could choose to expose some things if it wanted to by providing IBrowserPublisher16:15
*** tarek has joined #zope3-dev16:15
mgedminor, better, you can use multiple <browser:page> directives with method="methodName"16:15
mgedmin... or is that attribute="methodName"16:15
*** sunoano has quit IRC16:16
*** pyqwer has quit IRC16:23
*** sunoano has joined #zope3-dev16:23
*** pyqwer has joined #zope3-dev16:24
*** fRiSi has joined #zope3-dev16:26
*** iham has quit IRC16:37
*** agroszer has joined #zope3-dev16:48
*** gc_basti has quit IRC17:00
*** goschtl has joined #zope3-dev17:14
*** goschtl has quit IRC17:16
*** sm has joined #zope3-dev17:18
*** goschtl has joined #zope3-dev17:44
*** MJ has quit IRC17:47
*** sm has quit IRC17:47
*** __mac__ has joined #zope3-dev18:02
*** thetet has quit IRC18:04
*** srichter has joined #zope3-dev18:06
*** thetet has joined #zope3-dev18:08
*** ChanServ sets mode: +o srichter18:18
*** projekt01 has quit IRC18:25
*** zagy has quit IRC18:26
*** shane_ has joined #zope3-dev18:34
*** thetet has left #zope3-dev18:36
*** jukart has quit IRC18:37
*** jukart has joined #zope3-dev18:38
*** srichter has quit IRC18:38
*** srichter has joined #zope3-dev18:38
*** sm has joined #zope3-dev18:39
*** fRiSi has quit IRC18:39
*** JaRoel|4_ has quit IRC18:40
*** Rolando has quit IRC18:40
*** nathany has joined #zope3-dev18:45
*** srichter has quit IRC18:46
*** srichter has joined #zope3-dev18:47
*** malthe has quit IRC18:48
*** jukart has quit IRC18:55
*** __mac__ has quit IRC18:57
*** tarek has quit IRC18:58
*** zagy has joined #zope3-dev19:00
*** ignas has joined #zope3-dev19:02
*** strichter has joined #zope3-dev19:12
*** pyqwer has quit IRC19:16
*** sunew has joined #zope3-dev19:23
*** pcardune has joined #zope3-dev19:26
*** srichter has quit IRC19:27
*** regebro has quit IRC19:29
*** rocky1 is now known as rocky19:31
*** strichter is now known as srichter19:41
*** ChanServ sets mode: +o srichter19:41
*** jukart has joined #zope3-dev19:42
*** quodt has quit IRC19:42
*** mkerrin has quit IRC19:48
*** JaRoel|4D has joined #zope3-dev19:51
*** goschtl has quit IRC19:51
*** rocky has quit IRC19:52
*** reco has quit IRC19:52
*** mkerrin has joined #zope3-dev19:53
*** mkerrin has quit IRC19:54
*** markusleist has quit IRC20:01
*** pcardune has quit IRC20:03
*** zagy has quit IRC20:08
*** Count-Duckula has left #zope3-dev20:11
*** mgedmin has quit IRC20:12
*** TresEquis has joined #zope3-dev20:13
*** reco has joined #zope3-dev20:13
*** dbfrombrc_ has quit IRC20:18
*** yotaff has quit IRC20:19
*** timte has joined #zope3-dev20:27
*** rocky has joined #zope3-dev20:37
*** aaronv has joined #zope3-dev20:44
*** TresEquis has quit IRC20:47
*** zagy has joined #zope3-dev20:53
*** nyo has joined #zope3-dev20:55
*** aaronv has quit IRC20:58
*** nyo has quit IRC21:01
*** jukart has quit IRC21:08
*** faassen has joined #zope3-dev21:10
*** gary_poster has joined #zope3-dev21:18
gary_posterTheuni: ping21:18
*** alecm has joined #zope3-dev21:19
Theunigary_poster: pong21:21
gary_posterHey Theuni.  I was going to do a bit of zope.testing hacking today but the tests fail on Py 2.4 and 2.5.  log implicates you :-)21:21
gary_posterTheuni: most of the failures are having to do with some import checking, which I think is a feature you added recently21:22
gary_posterTheuni: I was hoping you just had a missing file or something21:22
gary_posterTheuni: will be happy to pastebin failures somewhere if you like21:22
Theunihmm. no. unfortunately not. i got stuck with a "simple" change on the trunk. let me back out my changes and move them to a branch. that's where they belong.21:23
Theunimy mistake.21:23
gary_posterTheuni: ok thanks!21:23
Theuniretrospectively i should have created a branch right away21:23
* Theuni hopes svn merge not to fail on him21:25
Theunithere goes my lesson21:25
Theunii forgot that i had non-checked-in-changes locally21:26
gary_posterare they saveable?21:26
*** dunny has joined #zope3-dev21:26
Theuniit was work in mid-air on getting the tests run, but it wasn't at any reasonable point anyway21:27
*** MrTopf has quit IRC21:28
Theunii'm running the tests without my branch now, gimme about 1 minute or so and you have a clean trunk21:28
gary_postercool, np thanks21:28
TheuniThere's one error about post_morten and exc_info that fails on both 2.4 and 2.5 for me and one (known) that fails on python 2.421:29
TheuniI think that was the same as when I started21:29
TheuniDone. r96602 has what you need.21:29
gary_posterTheuni: failures:  ok.  that's a shame too, but that's not your prob. :-)  I'll take a glance at em.  r96602: thanks again21:30
*** iham has joined #zope3-dev21:31
Theuninp. mea culpa from my side.21:31
*** CSWookie has left #zope3-dev21:34
*** markusleist has joined #zope3-dev21:42
*** MJ has joined #zope3-dev21:43
*** afd_ has joined #zope3-dev21:48
*** danfairs has joined #zope3-dev21:53
*** Theuni has left #zope3-dev21:53
*** gary_poster has quit IRC21:54
*** aaronv has joined #zope3-dev21:59
*** greenman has joined #zope3-dev22:07
*** alecm has quit IRC22:18
*** alecm has joined #zope3-dev22:19
*** redir has joined #zope3-dev22:24
*** greenman has quit IRC22:38
*** afd_ has quit IRC22:40
*** sm has quit IRC22:44
*** tarek has joined #zope3-dev22:45
*** Theuni has joined #zope3-dev22:51
*** TresEquis has joined #zope3-dev22:52
*** norro_ is now known as norro22:57
*** faassen has quit IRC23:01
*** runyaga has joined #zope3-dev23:04
*** greenman has joined #zope3-dev23:16
*** pelle_ has quit IRC23:19
*** yota has quit IRC23:22
*** redir has quit IRC23:27
*** acsr has joined #zope3-dev23:41
*** dbfrombrc has joined #zope3-dev23:46
*** acsr_ has quit IRC23:58

Generated by 2.15.1 by Marius Gedminas - find it at!