*** RaFromBRC has quit IRC | 00:00 | |
tristil | Working on it. | 00:00 |
---|---|---|
*** RaFromBRC has joined #zope3-dev | 00:02 | |
*** natea has quit IRC | 00:08 | |
tristil | projekt01, http://zope3.pastebin.com/725404 | 00:16 |
tristil | Should it even be dealing with ITALNamespaceData? I didn't specify the interface. | 00:27 |
*** oferw has quit IRC | 00:31 | |
srichter | tristil: TitleSnippet is still not a new style class | 00:31 |
srichter | TitleSnippet(object) | 00:31 |
tristil | Sorry, it is in my code. | 00:32 |
tristil | I changed the paste to reflect it. | 00:32 |
srichter | also, try not to make the adapter trusted | 00:33 |
srichter | I think this is your problem | 00:33 |
srichter | otherwise your class declaration must also state: | 00:33 |
srichter | <require permission="zope.Public" attributes="__dict__"/> | 00:34 |
tristil | srichter, yes this fixed something. I had thought that the problem started before I added the trusted="True", but no. | 00:36 |
srichter | no, this problem was definitely because of that | 00:36 |
*** natea_ has quit IRC | 00:37 | |
*** natea has joined #zope3-dev | 00:38 | |
tristil | Now, 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 |
srichter | no, this is good | 00:39 |
srichter | I would have done it like that | 00:39 |
tristil | Great! | 00:40 |
srichter | the point of content providers is that they are their own view | 00:40 |
srichter | and it allows you to override this content provider for context objects that can provide the title in a different way | 00:41 |
tristil | Thanks, 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 |
srichter | me too :-) | 00:43 |
srichter | they are a little bit harder to use, since the registration is more involved | 00:43 |
tristil | Yeah, but that's just a ritual, versus having to think about acquisition and dependencies. | 00:45 |
*** dobee has joined #zope3-dev | 00:46 | |
srichter | right, one of the goals of content providers was to clearly define the API between view template and content provider | 00:46 |
srichter | the API of template to macro is very implicit | 00:47 |
*** gumpa is now known as gumpa-gone | 00:47 | |
tristil | I like it a lot. I feel much cleaner now. | 00:49 |
tristil | Were content providers formerly pagelets? Or are pagelets what are now known as viewlets? | 00:50 |
srichter | content providers is more fundamental than viewlets | 00:51 |
*** sashav has quit IRC | 00:51 | |
srichter | pagelets became viewlets | 00:51 |
tristil | I'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 |
srichter | tristil: check out the boston skin | 00:56 |
srichter | it is fully viewletified | 00:57 |
tristil | boston isn't in the 3.3beta tgz file, only in svn. | 01:00 |
srichter | right | 01:00 |
*** dobee has quit IRC | 01:01 | |
*** dokai has quit IRC | 01:01 | |
*** wrobel has quit IRC | 01:01 | |
*** dobee has joined #zope3-dev | 01:02 | |
*** wrobel has joined #zope3-dev | 01:02 | |
*** dokai has joined #zope3-dev | 01:02 | |
*** dobee has quit IRC | 01:05 | |
*** dokai has quit IRC | 01:05 | |
*** wrobel has quit IRC | 01:05 | |
*** dobee has joined #zope3-dev | 01:06 | |
*** wrobel has joined #zope3-dev | 01:07 | |
*** dokai has joined #zope3-dev | 01:07 | |
*** dobee has quit IRC | 01:11 | |
*** dokai_ has joined #zope3-dev | 01:56 | |
*** RaFromBRC has quit IRC | 01:58 | |
*** RaFromBRC has joined #zope3-dev | 01:59 | |
*** j1m has quit IRC | 02:00 | |
*** dokai has quit IRC | 02:01 | |
*** wrobel has quit IRC | 02:05 | |
*** rocky has joined #zope3-dev | 02:06 | |
*** wrobel has joined #zope3-dev | 02:10 | |
*** jinty has quit IRC | 02:16 | |
*** yota has quit IRC | 02:20 | |
*** natea is now known as natea|away | 02:24 | |
*** RaFromBRC has quit IRC | 02:29 | |
*** RaFromBRC has joined #zope3-dev | 02:29 | |
*** RaFromBRC has quit IRC | 02:49 | |
*** RaFromBRC has joined #zope3-dev | 02:50 | |
*** volvox has joined #zope3-dev | 03:03 | |
*** trevorp-office has joined #zope3-dev | 03:04 | |
*** volvox has quit IRC | 03:05 | |
*** rocky has quit IRC | 03:09 | |
*** rocky has joined #zope3-dev | 03:26 | |
*** tiredbones has quit IRC | 03:26 | |
*** tiredbones has joined #zope3-dev | 03:27 | |
*** nathany has quit IRC | 03:43 | |
*** rock1 has joined #zope3-dev | 03:51 | |
*** rocky has quit IRC | 03:52 | |
*** rock1 is now known as rocky | 03:52 | |
*** alga has quit IRC | 04:00 | |
*** projekt01 has left #zope3-dev | 04:11 | |
*** trevorp-office has quit IRC | 04:15 | |
*** alecm has quit IRC | 04:19 | |
*** BjornT has quit IRC | 04:24 | |
*** BjornT has joined #zope3-dev | 04:29 | |
*** BjornT has quit IRC | 04:40 | |
*** whit has quit IRC | 04:42 | |
*** BjornT has joined #zope3-dev | 04:44 | |
*** rocky has quit IRC | 04:51 | |
*** stub has joined #zope3-dev | 05:05 | |
*** RaFromBRC has quit IRC | 05:26 | |
*** BjornT has quit IRC | 05:31 | |
*** BjornT has joined #zope3-dev | 05:35 | |
*** BjornT has quit IRC | 05:36 | |
*** niemeyer has quit IRC | 05:38 | |
*** BjornT has joined #zope3-dev | 05:41 | |
*** sashav has joined #zope3-dev | 06:28 | |
*** BjornT has quit IRC | 06:29 | |
*** BjornT has joined #zope3-dev | 06:31 | |
*** sashav has quit IRC | 06:45 | |
*** roym has quit IRC | 06:55 | |
*** tristil has quit IRC | 07:20 | |
*** tristil has joined #zope3-dev | 07:21 | |
*** mexiKON has quit IRC | 07:40 | |
*** dobee has joined #zope3-dev | 07:52 | |
*** dobee has quit IRC | 08:02 | |
*** dobee has joined #zope3-dev | 08:06 | |
*** eins has joined #zope3-dev | 08:22 | |
*** zopePloneConsult has joined #zope3-dev | 08:23 | |
*** hdima has joined #zope3-dev | 09:06 | |
*** dlk has joined #zope3-dev | 09:14 | |
*** dlk has quit IRC | 09:16 | |
*** dlk has joined #zope3-dev | 09:17 | |
*** dullk has joined #zope3-dev | 09:17 | |
*** jinty has joined #zope3-dev | 09:41 | |
*** Aiste has quit IRC | 09:43 | |
*** yota has joined #zope3-dev | 09:56 | |
*** Theuni has joined #zope3-dev | 10:21 | |
*** Mosasaur has joined #zope3-dev | 10:28 | |
*** russf has joined #zope3-dev | 11:16 | |
*** BjornT has quit IRC | 11:27 | |
*** BjornT has joined #zope3-dev | 11:28 | |
*** tiredbones has quit IRC | 11:43 | |
Mosasaur | how can I make zope3 display a restructured text page? | 11:43 |
*** tiredbones has joined #zope3-dev | 11:44 | |
*** tonico has quit IRC | 11:44 | |
*** BjornT has quit IRC | 12:02 | |
*** BjornT has joined #zope3-dev | 12:04 | |
*** BjornT has quit IRC | 12:13 | |
*** BjornT has joined #zope3-dev | 12:19 | |
*** Mosasaur is now known as ruasasoM | 12:21 | |
*** ruasasoM is now known as Mosasaur | 12:22 | |
*** Mosasaur is now known as ruasasoM | 12:22 | |
*** ruasasoM has left #zope3-dev | 12:22 | |
*** Pupeno_ has joined #zope3-dev | 12:35 | |
*** Pupeno_ is now known as Pupeno | 12:35 | |
Pupeno | Hello. | 12:36 |
Pupeno | Using 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-dev | 13:12 | |
*** ignas has joined #zope3-dev | 13:20 | |
*** dobee has quit IRC | 13:20 | |
Pupeno | How do I make my own methods be the getter and setter of a field in a scheme ? | 13:25 |
*** dobee has joined #zope3-dev | 13:26 | |
*** J1m has joined #zope3-dev | 13:27 | |
*** alga has joined #zope3-dev | 13:29 | |
*** trevorp-office has joined #zope3-dev | 13:38 | |
Pupeno | s/scheme/schema/ | 13:49 |
*** rocky has joined #zope3-dev | 14:08 | |
*** BjornT has quit IRC | 14:15 | |
*** BjornT has joined #zope3-dev | 14:20 | |
Pupeno | is that even possible ? | 14:25 |
*** jukart has joined #zope3-dev | 14:25 | |
*** J1m has quit IRC | 14:30 | |
*** jukart has left #zope3-dev | 14:36 | |
*** BjornT has quit IRC | 14:43 | |
*** dlk has quit IRC | 14:45 | |
*** povbot has joined #zope3-dev | 19:35 | |
*** Pupeno has quit IRC | 19:42 | |
*** mgedmin_ has quit IRC | 19:44 | |
*** mkerrin has quit IRC | 19:45 | |
whit | what's the state of the zope3 help system these days? | 19:47 |
philiKON | it's there :) | 19:49 |
philiKON | and probably bitrotting | 19:49 |
srichter | actually it is used in the API doc | 19:50 |
srichter | so I am pretty suure it works well | 19:50 |
srichter | I think we are planning to use it in our current project as well | 19:51 |
*** rocky has joined #zope3-dev | 19:57 | |
*** zbir has quit IRC | 20:00 | |
*** natea|away is now known as natea | 20:02 | |
*** lrose has joined #zope3-dev | 20:02 | |
*** lrose has quit IRC | 20:04 | |
*** tarek has quit IRC | 20:06 | |
*** tarek has joined #zope3-dev | 20:07 | |
*** tiredbones has quit IRC | 20:15 | |
*** tiredbones has joined #zope3-dev | 20:15 | |
tristil | I 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-dev | 20:20 | |
*** sashav has joined #zope3-dev | 20:25 | |
*** zbir has joined #zope3-dev | 20:30 | |
*** projekt01 has joined #zope3-dev | 20:31 | |
*** ChanServ sets mode: +o srichter | 20:33 | |
*** benji_york is now known as benji | 20:40 | |
*** zbir has quit IRC | 20:46 | |
whit | srichter: trying to stave off a duplicate implementation in plone | 20:52 |
*** RaFromBRC has joined #zope3-dev | 20:52 | |
*** zbir has joined #zope3-dev | 20:52 | |
srichter | whit: of what? | 20:57 |
whit | contextual help | 20:57 |
srichter | ah, I see | 20:57 |
srichter | yeah, I think our implementation is pretty ok | 20:58 |
srichter | it could be updated a bit | 20:58 |
srichter | to use more modern thoughts | 20:58 |
srichter | also, you would probably need a local implementation as well | 20:59 |
whit | yeah, they want to make it customizable TTW | 20:59 |
whit | so portal managers could edit the docs like content | 20:59 |
srichter | right | 21:03 |
srichter | but then they are just adapters | 21:04 |
srichter | you would just need to register a local adapter | 21:04 |
srichter | which is a breeze with Jim's new work | 21:04 |
*** oferw has quit IRC | 21:04 | |
srichter | in fact, with the right interfaces attached, any content could become an online help screen | 21:04 |
*** stub has quit IRC | 21:06 | |
*** gumpa is now known as gumpa-afk | 21:07 | |
*** tristil has quit IRC | 21:14 | |
*** rocky is now known as rocky|away | 21:17 | |
*** roym has joined #zope3-dev | 21:22 | |
whit | srichter: that's the direction I've sort of urging them in | 21:25 |
srichter | good! :-) | 21:25 |
*** Theuni has joined #zope3-dev | 21:32 | |
*** tarek has quit IRC | 21:36 | |
*** niemeyer has quit IRC | 21:38 | |
*** RaFromBRC has quit IRC | 21:47 | |
*** ignas has quit IRC | 21:47 | |
*** whit is now known as whit|out | 21:59 | |
srichter | benji: any progress on the javascript front? | 22:05 |
srichter | JS with testbrowser that is | 22:06 |
benji | yes actually, I expect to have something working in the next couple of weeks | 22:06 |
srichter | AWESOME!!! | 22:06 |
srichter | how will it work? | 22:06 |
benji | it's more browser-backend-for-testbrowser than javascript-in-testbrowser | 22:06 |
srichter | ok | 22:06 |
benji | I'm currently using Selenium's new "remote control" system | 22:06 |
srichter | ah I see | 22:07 |
benji | but it's pretty crappy :) | 22:07 |
srichter | I am really glad you did the work | 22:07 |
benji | (and the server is written in Java) | 22:07 |
srichter | I looked at doing this too, but I decided that it was too much work :-) | 22:07 |
benji | so, I'll either make it better, or abandon it | 22:07 |
benji | I have some prototype work that's pretty good, but it's time for "production" quality code | 22:08 |
srichter | talking to Selenium is not that hard; Zelenium does that | 22:08 |
*** dunny has joined #zope3-dev | 22:08 | |
srichter | but getting testbrowser's API mapped to Selenium is very painful | 22:08 |
srichter | benji: projekt01 and I have talked about another approach | 22:09 |
benji | the Selenium Remote Control is an advancement of Selenium's driven mode | 22:09 |
benji | what's that? | 22:09 |
srichter | implement some sort of JS handler | 22:09 |
srichter | basically you say, if you encounter this JS call, here is a Python callable that does the work | 22:10 |
srichter | and this Python callable could then do all the manipulation the JS would do | 22:10 |
benji | right, he sent me a message about it, I haven't had time to think about it and reply | 22:10 |
srichter | ah ok | 22:10 |
benji | that sounds like a reasonable "escape hatch", but perhaps too "heavy handed" | 22:10 |
srichter | I think this is a very liable approach | 22:10 |
srichter | I also really want some sort of wrapper around Browser isntances that can manipulate forms | 22:11 |
srichter | i.e. add new fields | 22:11 |
srichter | a lot of JS does just that, which I could do in the test my self | 22:11 |
srichter | soemthing like: | 22:12 |
srichter | FormManipulator(browser).getForm(X).addControl('foo', ListControl(...)) | 22:12 |
srichter | A more general option would be a DOM manipulator | 22:13 |
srichter | it would be cool, if I could say: | 22:13 |
srichter | DOMManipulator(browser).find('div[class=foo]').insert('some text') | 22:14 |
srichter | but i think that since only forms are really important they would suffice for now | 22:15 |
benji | srichter, 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 |
srichter | yep | 22:28 |
srichter | though mechanize has already nice fcailities to add to forms that we could reuse | 22:29 |
srichter | but for DOM manipulation setting the HTML seems more optimal | 22:29 |
benji | except that any new testbrowser API will have to be supported by all backends (which might not have mechanize's particular abilities) | 22:30 |
srichter | well, if you make it a wrapper, it could be mechanize specific | 22:31 |
srichter | MechanizeFormManipulator | 22:31 |
srichter | of course, an adapter is what we really want :-) | 22:31 |
benji | eeh, seems that ET or lxml or something else (who's sole purpose in life is to manipuleate HTML) would be better | 22:32 |
srichter | true, I just hope that adding something like a form element would be easy enough | 22:33 |
srichter | but you are right the form manipulator could easily use that | 22:33 |
benji | actually, 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 package | 22:35 |
srichter | yes, that's what I am saying :-) | 22:40 |
srichter | benji: have you been able to match the entire testbrowser API onto Selenium already? | 22:45 |
* rocky|away svn ups zope3.3 branch | 22:46 | |
*** niemeyer has joined #zope3-dev | 22:46 | |
*** rocky|away is now known as rocky | 22:46 | |
srichter | because if you do that, then my little "tun tester browser files as demo" project almost finished itself ;-) | 22:46 |
rocky | i still need to get into testbrowser | 22:46 |
rocky | srichter: any "getting started" with testbrowser docs around anyplace ? | 22:47 |
benji | :) srichter | 22:47 |
srichter | rocky: in typical fashion style: README.txt :-) | 22:47 |
benji | some of it may require some "ingenious" use of Selenium, but I think it's possible | 22:47 |
rocky | README.txt? always in the oddest of places... :) | 22:47 |
*** gumpa-afk has quit IRC | 22:47 | |
*** gumpa has joined #zope3-dev | 22:48 | |
srichter | benji: one of the tough issues is actually getting the full HTML | 22:48 |
benji | yep | 22:48 |
srichter | benji: when I played with it, I could never get the full HTML back | 22:48 |
benji | with the selenium-r-c, you can, but only in a pretty hacky way | 22:48 |
benji | I'm pretty disappointed with selenium-rc, I may end up just writing my own server | 22:49 |
srichter | let me know if you do; I am interested in helping, if I can spare any time | 22:50 |
benji | sure, thanks for the offer | 23:02 |
*** oferw has joined #zope3-dev | 23:05 | |
srichter | I think this would make a great sprint task too | 23:05 |
benji | well, 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 |
srichter | LOL | 23:07 |
srichter | let your geekness take its course! | 23:07 |
benji | :) | 23:08 |
*** Aiste has joined #zope3-dev | 23:11 | |
dobee | hi, 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, hm | 23:14 |
srichter | I dunno | 23:24 |
srichter | you probably hide the security proxy this way | 23:24 |
srichter | since the result of the traversal is proxied | 23:24 |
dobee | hi stephan, i found out that if i remove the security proxy before i add the contained proxy, the security proxy gets applied again afterwords | 23:25 |
dobee | srichter: are you still in europe? | 23:28 |
*** alecm has joined #zope3-dev | 23:28 | |
srichter | dobee: no I am back in the US | 23:28 |
dobee | ah, so you successfully finished your project with roger | 23:29 |
srichter | not yet, I am stil working on it, but we work remotely | 23:29 |
srichter | it turned out really good though | 23:30 |
dobee | do you go to europython? | 23:30 |
dobee | sprinting or so | 23:30 |
srichter | no, I am starting to teach this Wednesday | 23:31 |
dobee | ah, ok maybe i'll make it there | 23:32 |
srichter | cool | 23:32 |
*** dokai_ is now known as dokai | 23:35 | |
*** benji has quit IRC | 23:45 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!