IRC log of #zope3-dev for Friday, 2006-05-19

*** RaFromBRC has quit IRC00:00
tristilWorking on it.00:00
*** RaFromBRC has joined #zope3-dev00:02
*** natea has quit IRC00:08
tristilShould it even be dealing with ITALNamespaceData? I didn't specify the interface.00:27
*** oferw has quit IRC00:31
srichtertristil: TitleSnippet is still not a new style class00:31
tristilSorry, it is in my code.00:32
tristilI changed the paste to reflect it.00:32
srichteralso, try not to make the adapter trusted00:33
srichterI think this is your problem00:33
srichterotherwise your class declaration must also state:00:33
srichter<require permission="zope.Public" attributes="__dict__"/>00:34
tristilsrichter, yes this fixed something. I had thought that the problem started before I added the trusted="True", but no.00:36
srichterno, this problem was definitely because of that00:36
*** natea_ has quit IRC00:37
*** natea has joined #zope3-dev00:38
tristilNow, I guess using a content provider like this is pretty boneheaded, huh? It should be a method on a view class? Do you have any general rule on when to use which?00:38
srichterno, this is good00:39
srichterI would have done it like that00:39
srichterthe point of content providers is that they are their own view00:40
srichterand it allows you to override this content provider for context objects that can provide the title in a different way00:41
tristilThanks, srichter. I just started looking at viewlets and content providers yesterday, but I find them so much easier to think about than macros.00:42
srichterme too :-)00:43
srichterthey are a little bit harder to use, since the registration is more involved00:43
tristilYeah, but that's just a ritual, versus having to think about acquisition and dependencies.00:45
*** dobee has joined #zope3-dev00:46
srichterright, one of the goals of content providers was to clearly define the API between view template and content provider00:46
srichterthe API of template to macro is very implicit00:47
*** gumpa is now known as gumpa-gone00:47
tristilI like it a lot. I feel much cleaner now.00:49
tristilWere content providers formerly pagelets? Or are pagelets what are now known as viewlets?00:50
srichtercontent providers is more fundamental than viewlets00:51
*** sashav has quit IRC00:51
srichterpagelets became viewlets00:51
tristilI'm trying to think of a content provider-ish way to get the body slot functionality that I now get through standardmacros out of Rotterdam.00:53
srichtertristil: check out the boston skin00:56
srichterit is fully viewletified00:57
tristilboston isn't in the 3.3beta tgz file, only in svn.01:00
*** dobee has quit IRC01:01
*** dokai has quit IRC01:01
*** wrobel has quit IRC01:01
*** dobee has joined #zope3-dev01:02
*** wrobel has joined #zope3-dev01:02
*** dokai has joined #zope3-dev01:02
*** dobee has quit IRC01:05
*** dokai has quit IRC01:05
*** wrobel has quit IRC01:05
*** dobee has joined #zope3-dev01:06
*** wrobel has joined #zope3-dev01:07
*** dokai has joined #zope3-dev01:07
*** dobee has quit IRC01:11
*** dokai_ has joined #zope3-dev01:56
*** RaFromBRC has quit IRC01:58
*** RaFromBRC has joined #zope3-dev01:59
*** j1m has quit IRC02:00
*** dokai has quit IRC02:01
*** wrobel has quit IRC02:05
*** rocky has joined #zope3-dev02:06
*** wrobel has joined #zope3-dev02:10
*** jinty has quit IRC02:16
*** yota has quit IRC02:20
*** natea is now known as natea|away02:24
*** RaFromBRC has quit IRC02:29
*** RaFromBRC has joined #zope3-dev02:29
*** RaFromBRC has quit IRC02:49
*** RaFromBRC has joined #zope3-dev02:50
*** volvox has joined #zope3-dev03:03
*** trevorp-office has joined #zope3-dev03:04
*** volvox has quit IRC03:05
*** rocky has quit IRC03:09
*** rocky has joined #zope3-dev03:26
*** tiredbones has quit IRC03:26
*** tiredbones has joined #zope3-dev03:27
*** nathany has quit IRC03:43
*** rock1 has joined #zope3-dev03:51
*** rocky has quit IRC03:52
*** rock1 is now known as rocky03:52
*** alga has quit IRC04:00
*** projekt01 has left #zope3-dev04:11
*** trevorp-office has quit IRC04:15
*** alecm has quit IRC04:19
*** BjornT has quit IRC04:24
*** BjornT has joined #zope3-dev04:29
*** BjornT has quit IRC04:40
*** whit has quit IRC04:42
*** BjornT has joined #zope3-dev04:44
*** rocky has quit IRC04:51
*** stub has joined #zope3-dev05:05
*** RaFromBRC has quit IRC05:26
*** BjornT has quit IRC05:31
*** BjornT has joined #zope3-dev05:35
*** BjornT has quit IRC05:36
*** niemeyer has quit IRC05:38
*** BjornT has joined #zope3-dev05:41
*** sashav has joined #zope3-dev06:28
*** BjornT has quit IRC06:29
*** BjornT has joined #zope3-dev06:31
*** sashav has quit IRC06:45
*** roym has quit IRC06:55
*** tristil has quit IRC07:20
*** tristil has joined #zope3-dev07:21
*** mexiKON has quit IRC07:40
*** dobee has joined #zope3-dev07:52
*** dobee has quit IRC08:02
*** dobee has joined #zope3-dev08:06
*** eins has joined #zope3-dev08:22
*** zopePloneConsult has joined #zope3-dev08:23
*** hdima has joined #zope3-dev09:06
*** dlk has joined #zope3-dev09:14
*** dlk has quit IRC09:16
*** dlk has joined #zope3-dev09:17
*** dullk has joined #zope3-dev09:17
*** jinty has joined #zope3-dev09:41
*** Aiste has quit IRC09:43
*** yota has joined #zope3-dev09:56
*** Theuni has joined #zope3-dev10:21
*** Mosasaur has joined #zope3-dev10:28
*** russf has joined #zope3-dev11:16
*** BjornT has quit IRC11:27
*** BjornT has joined #zope3-dev11:28
*** tiredbones has quit IRC11:43
Mosasaurhow can I make zope3 display a restructured text page?11:43
*** tiredbones has joined #zope3-dev11:44
*** tonico has quit IRC11:44
*** BjornT has quit IRC12:02
*** BjornT has joined #zope3-dev12:04
*** BjornT has quit IRC12:13
*** BjornT has joined #zope3-dev12:19
*** Mosasaur is now known as ruasasoM12:21
*** ruasasoM is now known as Mosasaur12:22
*** Mosasaur is now known as ruasasoM12:22
*** ruasasoM has left #zope3-dev12:22
*** Pupeno_ has joined #zope3-dev12:35
*** Pupeno_ is now known as Pupeno12:35
PupenoUsing zc.table, one of the fields I want to sort on is a date, but for some objects it is None and I get an error when comparing to None. How should I solve this ?12:37
*** mkerrin has joined #zope3-dev13:12
*** ignas has joined #zope3-dev13:20
*** dobee has quit IRC13:20
PupenoHow do I make my own methods be the getter and setter of a field in a scheme ?13:25
*** dobee has joined #zope3-dev13:26
*** J1m has joined #zope3-dev13:27
*** alga has joined #zope3-dev13:29
*** trevorp-office has joined #zope3-dev13:38
*** rocky has joined #zope3-dev14:08
*** BjornT has quit IRC14:15
*** BjornT has joined #zope3-dev14:20
Pupenois that even possible ?14:25
*** jukart has joined #zope3-dev14:25
*** J1m has quit IRC14:30
*** jukart has left #zope3-dev14:36
*** BjornT has quit IRC14:43
*** dlk has quit IRC14:45
*** povbot has joined #zope3-dev19:35
*** Pupeno has quit IRC19:42
*** mgedmin_ has quit IRC19:44
*** mkerrin has quit IRC19:45
whitwhat's the state of the zope3 help system these days?19:47
philiKONit's there :)19:49
philiKONand probably bitrotting19:49
srichteractually it is used in the API doc19:50
srichterso I am pretty suure it works well19:50
srichterI think we are planning to use it in our current project as well19:51
*** rocky has joined #zope3-dev19:57
*** zbir has quit IRC20:00
*** natea|away is now known as natea20:02
*** lrose has joined #zope3-dev20:02
*** lrose has quit IRC20:04
*** tarek has quit IRC20:06
*** tarek has joined #zope3-dev20:07
*** tiredbones has quit IRC20:15
*** tiredbones has joined #zope3-dev20:15
tristilI find the docfile Book to be very useful. My main complaint is that they don't show the corresponding zcml.20:18
*** benji_york has joined #zope3-dev20:20
*** sashav has joined #zope3-dev20:25
*** zbir has joined #zope3-dev20:30
*** projekt01 has joined #zope3-dev20:31
*** ChanServ sets mode: +o srichter20:33
*** benji_york is now known as benji20:40
*** zbir has quit IRC20:46
whitsrichter: trying to stave off a duplicate implementation in plone20:52
*** RaFromBRC has joined #zope3-dev20:52
*** zbir has joined #zope3-dev20:52
srichterwhit: of what?20:57
whitcontextual help20:57
srichterah, I see20:57
srichteryeah, I think our implementation is pretty ok20:58
srichterit could be updated a bit20:58
srichterto use more modern thoughts20:58
srichteralso, you would probably need a local implementation as well20:59
whityeah, they want to make it customizable TTW20:59
whitso portal managers could edit the docs like content20:59
srichterbut then they are just adapters21:04
srichteryou would just need to register a local adapter21:04
srichterwhich is a breeze with Jim's new work21:04
*** oferw has quit IRC21:04
srichterin fact, with the right interfaces attached, any content could become an online help screen21:04
*** stub has quit IRC21:06
*** gumpa is now known as gumpa-afk21:07
*** tristil has quit IRC21:14
*** rocky is now known as rocky|away21:17
*** roym has joined #zope3-dev21:22
whitsrichter: that's the direction I've sort of urging them in21:25
srichtergood! :-)21:25
*** Theuni has joined #zope3-dev21:32
*** tarek has quit IRC21:36
*** niemeyer has quit IRC21:38
*** RaFromBRC has quit IRC21:47
*** ignas has quit IRC21:47
*** whit is now known as whit|out21:59
srichterbenji: any progress on the javascript front?22:05
srichterJS with testbrowser that is22:06
benjiyes actually, I expect to have something working in the next couple of weeks22:06
srichterhow will it work?22:06
benjiit's more browser-backend-for-testbrowser than javascript-in-testbrowser22:06
benjiI'm currently using Selenium's new "remote control" system22:06
srichterah I see22:07
benjibut it's pretty crappy :)22:07
srichterI am really glad you did the work22:07
benji(and the server is written in Java)22:07
srichterI looked at doing this too, but I decided that it was too much work :-)22:07
benjiso, I'll either make it better, or abandon it22:07
benjiI have some prototype work that's pretty good, but it's time for "production" quality code22:08
srichtertalking to Selenium is not that hard; Zelenium does that22:08
*** dunny has joined #zope3-dev22:08
srichterbut getting testbrowser's API mapped to Selenium is very painful22:08
srichterbenji: projekt01 and I have talked about another approach22:09
benjithe Selenium Remote Control is an advancement of Selenium's driven mode22:09
benjiwhat's that?22:09
srichterimplement some sort of JS handler22:09
srichterbasically you say, if you encounter this JS call, here is a Python callable that does the work22:10
srichterand this Python callable could then do all the manipulation the JS would do22:10
benjiright, he sent me a message about it, I haven't had time to think about it and reply22:10
srichterah ok22:10
benjithat sounds like a reasonable "escape hatch", but perhaps too "heavy handed"22:10
srichterI think this is a very liable approach22:10
srichterI also really want some sort of wrapper around Browser isntances that can manipulate forms22:11
srichteri.e. add new fields22:11
srichtera lot of JS does just that, which I could do in the test my self22:11
srichtersoemthing like:22:12
srichterFormManipulator(browser).getForm(X).addControl('foo', ListControl(...))22:12
srichterA more general option would be a DOM manipulator22:13
srichterit would be cool, if I could say:22:13
srichterDOMManipulator(browser).find('div[class=foo]').insert('some text')22:14
srichterbut i think that since only forms are really important they would suffice for now22:15
benjisrichter, I wonder if just the ability to replace the current HTML would be enough, then you could use whatever HTML manipulation technology you liked (like ElementTree which is included in Python 2.5)22:28
srichterthough mechanize has already nice fcailities to add to forms that we could reuse22:29
srichterbut for DOM manipulation setting the HTML seems more optimal22:29
benjiexcept that any new testbrowser API will have to be supported by all backends (which might not have mechanize's particular abilities)22:30
srichterwell, if you make it a wrapper, it could be mechanize specific22:31
srichterof course, an adapter is what we really want :-)22:31
benjieeh, seems that ET or lxml or something else (who's sole purpose in life is to manipuleate HTML) would be better22:32
srichtertrue, I just hope that adding something like a form element would be easy enough22:33
srichterbut you are right the form manipulator could easily use that22:33
benjiactually, I'm arguing that a "testbrowser form manipulator" isn't needed, just have a "set HTML" method and then use whatever you wanted, if a "munge forms" module was handy, you ould use that (maybe that /is/ what you're saying :) )22:34
benji... I just wouldn't want this special purpose form munger in zc.testbrowser, it'd need it's own package22:35
srichteryes, that's what I am saying :-)22:40
srichterbenji: have you been able to match the entire testbrowser API onto Selenium already?22:45
* rocky|away svn ups zope3.3 branch22:46
*** niemeyer has joined #zope3-dev22:46
*** rocky|away is now known as rocky22:46
srichterbecause if you do that, then my little "tun tester browser files as demo" project almost finished itself ;-)22:46
rockyi still need to get into testbrowser22:46
rockysrichter: any "getting started" with testbrowser docs around anyplace ?22:47
benji:) srichter22:47
srichterrocky: in typical fashion style: README.txt :-)22:47
benjisome of it may require some "ingenious" use of Selenium, but I think it's possible22:47
rockyREADME.txt? always in the oddest of places...  :)22:47
*** gumpa-afk has quit IRC22:47
*** gumpa has joined #zope3-dev22:48
srichterbenji: one of the tough issues is actually getting the full HTML22:48
srichterbenji: when I played with it, I could never get the full HTML back22:48
benjiwith the selenium-r-c, you can, but only in a pretty hacky way22:48
benjiI'm pretty disappointed with selenium-rc, I may end up just writing my own server22:49
srichterlet me know if you do; I am interested in helping, if I can spare any time22:50
benjisure, thanks for the offer23:02
*** oferw has joined #zope3-dev23:05
srichterI think this would make a great sprint task too23:05
benjiwell, my wife and kids are going to be out of town for the next two weeks, so for all intents and purposes I'll be having a two week, nocturnal sprint :)23:06
srichterlet your geekness take its course!23:07
*** Aiste has joined #zope3-dev23:11
dobeehi, does anybody of you guys have a clue, why i get ForbiddenAttribte Errors when i wrap a ContainedProxy around an object upon traversal? Somehow a new checker gets wrapped around the proxied object after the traversal, hm23:14
srichterI dunno23:24
srichteryou probably hide the security proxy this way23:24
srichtersince the result of the traversal is proxied23:24
dobeehi stephan, i found out that if i remove the security proxy before i add the contained proxy, the security proxy gets applied again afterwords23:25
dobeesrichter: are you still in europe?23:28
*** alecm has joined #zope3-dev23:28
srichterdobee: no I am back in the US23:28
dobeeah, so you successfully finished your project with roger23:29
srichternot yet, I am stil working on it, but we work remotely23:29
srichterit turned out really good though23:30
dobeedo you go to europython?23:30
dobeesprinting or so23:30
srichterno, I am starting to teach this Wednesday23:31
dobeeah, ok maybe i'll make it there23:32
*** dokai_ is now known as dokai23:35
*** benji has quit IRC23:45

Generated by 2.15.1 by Marius Gedminas - find it at!