*** ktwilight has joined #zope3-dev | 00:01 | |
*** goschtl has quit IRC | 00:05 | |
*** mkerrin has quit IRC | 00:05 | |
*** timte has quit IRC | 00:10 | |
*** jukart has quit IRC | 00:11 | |
*** faassen has joined #zope3-dev | 00:15 | |
*** faassen has left #zope3-dev | 00:15 | |
*** harobed has quit IRC | 00:23 | |
*** lurker has quit IRC | 00:57 | |
*** jodok has quit IRC | 01:07 | |
*** bigkevmcd has quit IRC | 01:12 | |
*** yota has quit IRC | 01:33 | |
*** natea has quit IRC | 01:42 | |
*** PP has quit IRC | 02:11 | |
*** jkakar has quit IRC | 02:48 | |
*** philiKON has joined #zope3-dev | 02:53 | |
*** philiKON_ has quit IRC | 03:01 | |
*** b52laptop has quit IRC | 03:10 | |
*** jfroche has quit IRC | 03:10 | |
*** foxmjay has joined #zope3-dev | 03:55 | |
*** foxmjay has quit IRC | 03:56 | |
*** wrobel has quit IRC | 03:58 | |
*** greenman has joined #zope3-dev | 05:16 | |
*** Aiste has quit IRC | 06:47 | |
*** harobed has joined #zope3-dev | 06:49 | |
*** hazmat has quit IRC | 06:53 | |
*** hazmat has joined #zope3-dev | 06:54 | |
*** ChanServ sets mode: +o hazmat | 06:54 | |
*** alecm has joined #zope3-dev | 07:15 | |
*** jodok has joined #zope3-dev | 07:15 | |
*** alecm has quit IRC | 07:23 | |
*** alecm has joined #zope3-dev | 07:25 | |
*** hazmat has quit IRC | 07:37 | |
*** hazmat has joined #zope3-dev | 07:38 | |
*** ChanServ sets mode: +o hazmat | 07:38 | |
*** ka-jod has joined #zope3-dev | 07:52 | |
*** lisppaste6 has quit IRC | 08:12 | |
*** afd_ has joined #zope3-dev | 08:13 | |
*** zagy has quit IRC | 08:19 | |
*** sorin has joined #zope3-dev | 08:24 | |
*** sorin is now known as sorindregan | 08:25 | |
*** lisppaste6 has joined #zope3-dev | 08:26 | |
*** greenman has quit IRC | 08:28 | |
*** pghoratiu has joined #zope3-dev | 08:39 | |
*** jukart has joined #zope3-dev | 08:42 | |
*** zagy has joined #zope3-dev | 08:43 | |
*** jodok has quit IRC | 08:48 | |
*** zagy has quit IRC | 08:48 | |
*** zagy has joined #zope3-dev | 08:48 | |
*** harobed has quit IRC | 09:03 | |
*** stub has joined #zope3-dev | 09:04 | |
*** harobed has joined #zope3-dev | 09:12 | |
*** stu1 has joined #zope3-dev | 09:17 | |
*** dobee has joined #zope3-dev | 09:18 | |
*** Aiste has joined #zope3-dev | 09:21 | |
*** harobed has quit IRC | 09:24 | |
*** harobed has joined #zope3-dev | 09:26 | |
*** harobed has quit IRC | 09:33 | |
*** stub has quit IRC | 09:34 | |
*** harobed has joined #zope3-dev | 09:38 | |
*** goschtl has joined #zope3-dev | 09:44 | |
*** wrobel has joined #zope3-dev | 09:47 | |
*** dunny has quit IRC | 09:49 | |
*** yvl has joined #zope3-dev | 09:53 | |
*** naro has joined #zope3-dev | 09:55 | |
*** dobee has quit IRC | 09:57 | |
*** alecm has quit IRC | 10:01 | |
*** alecm has joined #zope3-dev | 10:01 | |
*** dobee has joined #zope3-dev | 10:12 | |
*** timte has joined #zope3-dev | 10:13 | |
*** alecm has quit IRC | 10:16 | |
*** bigkevmcd has joined #zope3-dev | 10:28 | |
*** dunny has joined #zope3-dev | 10:29 | |
*** dobee has quit IRC | 10:31 | |
*** ghendi has joined #zope3-dev | 10:32 | |
*** lurker has joined #zope3-dev | 10:32 | |
*** jodok has joined #zope3-dev | 10:33 | |
*** ChrisW has joined #zope3-dev | 10:36 | |
ChrisW | hey all, in a BrowserView's __call__ method, how do I get hold of the template to call and return it? | 10:37 |
---|---|---|
*** dobee has joined #zope3-dev | 10:37 | |
philiKON | ChrisW: you defined it? | 10:37 |
philiKON | template = ViewPageTemplateFile('foo.pt') | 10:37 |
philiKON | on the class level | 10:37 |
ChrisW | oh, hey philiKON :-) | 10:37 |
philiKON | hey | 10:38 |
ChrisW | no, I defined it with a browser:page directive | 10:38 |
philiKON | ok. then you can access it as self.index | 10:38 |
*** projekt01 has joined #zope3-dev | 10:38 | |
philiKON | though that's not an official api | 10:38 |
ChrisW | !? | 10:38 |
ChrisW | what is the official api? | 10:38 |
philiKON | there's none | 10:38 |
ChrisW | nice ;-) | 10:38 |
philiKON | browser:page simply sets the "index" attribute of your class to the template | 10:38 |
philiKON | that's why i prefer declaring the template in the class | 10:39 |
ChrisW | ...but you know how much I love the BrowserPage magic anyway ;-) | 10:39 |
philiKON | right | 10:39 |
philiKON | it's bad | 10:39 |
philiKON | i absolutely agree | 10:39 |
philiKON | so, use ViewPageTemplateFile in the class and you're not using magic :) | 10:39 |
ChrisW | k, will do ;-) | 10:39 |
philiKON | chapter 7 of my new book :) | 10:40 |
*** jfroche has joined #zope3-dev | 10:40 | |
*** pelle_ has joined #zope3-dev | 10:46 | |
* ka-jod is reading philiKONs new book now... it's long since i enjoyed a geek book so much! buy it at once! | 10:53 | |
*** ChrisW has left #zope3-dev | 10:53 | |
*** harobed has quit IRC | 11:04 | |
*** harobed has joined #zope3-dev | 11:04 | |
*** jodok has quit IRC | 11:13 | |
*** pelle_ has quit IRC | 11:22 | |
*** tarek has joined #zope3-dev | 11:23 | |
*** pelle_ has joined #zope3-dev | 11:24 | |
*** yota has joined #zope3-dev | 11:41 | |
*** lzdych has joined #zope3-dev | 11:44 | |
*** greenman has joined #zope3-dev | 11:46 | |
*** jinty has joined #zope3-dev | 11:47 | |
*** b52laptop has joined #zope3-dev | 12:05 | |
*** mkerrin has joined #zope3-dev | 12:43 | |
*** afd_ has quit IRC | 12:49 | |
*** deo has joined #zope3-dev | 12:59 | |
goschtl | hi i´ve a custom_field and a custom widget, how can i say if i use this field take this widget. instead of form_fields['captcha'].custom_widget = CaptchaWidget | 13:06 |
*** J1m has joined #zope3-dev | 13:32 | |
*** greenman has quit IRC | 13:41 | |
*** rocky has joined #zope3-dev | 13:48 | |
*** dunny has quit IRC | 13:51 | |
*** J1m has quit IRC | 14:03 | |
*** tarek has quit IRC | 14:05 | |
*** ignas has joined #zope3-dev | 14:20 | |
*** benji has quit IRC | 14:27 | |
timte | goschtl: I would guess an adapter | 14:34 |
goschtl | timte: thanks for your suggestion but i have found the trick. you can configure it with zcml. works nice | 14:35 |
*** tarek has joined #zope3-dev | 14:47 | |
*** goschtl has quit IRC | 14:47 | |
*** emP[1] has joined #zope3-dev | 14:55 | |
*** goschtl has joined #zope3-dev | 15:05 | |
*** jfroche_ has joined #zope3-dev | 15:06 | |
*** benji has joined #zope3-dev | 15:14 | |
*** grahal has joined #zope3-dev | 15:17 | |
*** niemeyer has joined #zope3-dev | 15:21 | |
*** jfroche has quit IRC | 15:22 | |
*** redir has joined #zope3-dev | 15:29 | |
*** jinty_ has joined #zope3-dev | 15:32 | |
*** jinty has quit IRC | 15:37 | |
*** xxbeanxx has joined #zope3-dev | 15:40 | |
*** ChanServ sets mode: +o srichter | 15:41 | |
*** jinty_ has quit IRC | 15:44 | |
*** jinty__ has joined #zope3-dev | 15:44 | |
*** redir has quit IRC | 15:51 | |
*** CrippsFX has quit IRC | 15:51 | |
*** acripps__ has joined #zope3-dev | 15:51 | |
*** CrippsFX has joined #zope3-dev | 15:52 | |
*** icecrash has joined #zope3-dev | 15:57 | |
icecrash | moin | 15:57 |
*** redir has joined #zope3-dev | 16:03 | |
*** acripps__ has quit IRC | 16:06 | |
*** J1m has joined #zope3-dev | 16:10 | |
*** J1m has quit IRC | 16:11 | |
*** J1m has joined #zope3-dev | 16:11 | |
benji | philiKON: are you aware the rwproperty homepage is dead? | 16:21 |
*** __cbcunc__ is now known as cbcunc | 16:21 | |
*** lurker is now known as lurker|brb | 16:54 | |
*** jodok has joined #zope3-dev | 16:54 | |
*** CrippsFX has quit IRC | 16:56 | |
*** acripps__ has joined #zope3-dev | 16:56 | |
*** acripps__ is now known as CrippsFX | 16:56 | |
*** acripps__ has joined #zope3-dev | 16:56 | |
*** deo has quit IRC | 16:57 | |
*** pghoratiu has left #zope3-dev | 17:01 | |
*** sorindregan has quit IRC | 17:10 | |
*** ghendi has quit IRC | 17:13 | |
*** goschtl has quit IRC | 17:14 | |
*** yvl has quit IRC | 17:25 | |
*** jodok has quit IRC | 17:25 | |
*** alecm has joined #zope3-dev | 17:32 | |
*** dobee has quit IRC | 17:33 | |
philiKON | benji: yes :( | 17:36 |
Theuni | can you remove the link from the cheeseshop ;) | 17:37 |
benji | philiKON: unfortunately, that means that it's also not installable with setup tools (setup tools is broken with respect to non-working URLs) | 17:38 |
*** nerdalert has joined #zope3-dev | 17:39 | |
J1m | philiKON, aren't you an owner or maintainer of that PYPI project? | 17:42 |
*** jkakar has joined #zope3-dev | 17:47 | |
Theuni | J1m: do you mind if I clean up your zope.app-template a little bit? | 17:57 |
*** CrippsFX has quit IRC | 17:58 | |
*** jukart has quit IRC | 18:00 | |
*** projekt01 has quit IRC | 18:00 | |
J1m | Nope | 18:02 |
*** CrippsFX has joined #zope3-dev | 18:03 | |
Theuni | k | 18:03 |
*** CrippsFX has quit IRC | 18:04 | |
*** CrippsFX has joined #zope3-dev | 18:05 | |
*** CrippsFX has quit IRC | 18:06 | |
*** CrippsFX has joined #zope3-dev | 18:08 | |
*** rocky is now known as rocky|away | 18:08 | |
*** xxbeanxx has quit IRC | 18:14 | |
*** rlo has joined #zope3-dev | 18:16 | |
*** RaFromBRC has joined #zope3-dev | 18:19 | |
*** alga has joined #zope3-dev | 18:21 | |
*** redir has quit IRC | 18:26 | |
*** CrippsFX has quit IRC | 18:31 | |
*** CrippsFX has joined #zope3-dev | 18:31 | |
*** jfroche_ has quit IRC | 18:37 | |
*** jbb666 has joined #zope3-dev | 18:38 | |
*** whit has joined #zope3-dev | 18:41 | |
*** timte has quit IRC | 18:49 | |
*** tarek has quit IRC | 18:50 | |
*** rocky|away is now known as rocky | 18:55 | |
*** stu1 has quit IRC | 19:01 | |
*** rlo has quit IRC | 19:03 | |
*** hazmat has quit IRC | 19:14 | |
*** alecm has quit IRC | 19:15 | |
*** tarek has joined #zope3-dev | 19:20 | |
*** harobed has quit IRC | 19:21 | |
*** ka-jod has quit IRC | 19:29 | |
*** mgedmin has joined #zope3-dev | 19:31 | |
*** timte has joined #zope3-dev | 19:40 | |
*** pbugni has joined #zope3-dev | 19:45 | |
*** lurker|brb has quit IRC | 19:45 | |
WebMaven_ | I'm trying to display the current ClientId in a view. The context cannot be adapted to IClientId, and request is a forbidden attribute of the context. What am I doing wrong? | 19:52 |
*** WebMaven_ is now known as WebMaven | 19:54 | |
mgedmin | not providing enough information to answer your question? | 19:56 |
WebMaven | mgedmin: fair enough. | 19:58 |
WebMaven | I have a content object. the object has a view class. the class has this method: | 19:58 |
WebMaven | def showSession(self): | 19:58 |
WebMaven | sid = IClientId(self.context.request) | 19:58 |
WebMaven | return sid | 19:58 |
*** alecm has joined #zope3-dev | 19:59 | |
WebMaven | the corresponding page template calls the method like this: | 19:59 |
WebMaven | <p tal:content="view/showSession">Session ID</p> | 19:59 |
*** tonico has joined #zope3-dev | 19:59 | |
WebMaven | I get this error: | 20:00 |
WebMaven | ForbiddenAttribute: ('request', <rogue.courses.course.Course object at 0xb68e548c>) | 20:00 |
WebMaven | changing self.context.request to self.context gives me this error: | 20:01 |
WebMaven | TypeError: ('Could not adapt', <rogue.courses.course.Course object at 0xb6904ccc>, <InterfaceClass zope.app.session.interfaces.IClientId>) | 20:01 |
*** emP[1] has quit IRC | 20:02 | |
WebMaven | mgedmin: is that enough info? | 20:02 |
mgedmin | I think so, yes | 20:04 |
mgedmin | is that zope 3? | 20:04 |
WebMaven | yes | 20:04 |
mgedmin | because it doesn't look like zope 3 to me...ah yes, it's clear now | 20:04 |
mgedmin | in zope 3 request is an attribute of the view, not the context | 20:04 |
mgedmin | so sid = IClientId(self.request) might work better | 20:04 |
WebMaven | Hmm. OK, one moment. | 20:04 |
*** harobed has joined #zope3-dev | 20:05 | |
WebMaven | mgedmin: Thanks, that was it! | 20:05 |
mgedmin | good! | 20:05 |
*** lurker has joined #zope3-dev | 20:16 | |
*** redir has joined #zope3-dev | 20:19 | |
*** redir has quit IRC | 20:21 | |
*** redir has joined #zope3-dev | 20:21 | |
*** redir has quit IRC | 20:23 | |
*** redir has joined #zope3-dev | 20:24 | |
*** redir has joined #zope3-dev | 20:24 | |
*** mgedmin has quit IRC | 20:24 | |
*** redir has quit IRC | 20:26 | |
*** meatballhat has joined #zope3-dev | 20:28 | |
*** redir has joined #zope3-dev | 20:31 | |
*** redir has joined #zope3-dev | 20:33 | |
*** redir has quit IRC | 20:33 | |
*** redir has joined #zope3-dev | 20:41 | |
*** redir has left #zope3-dev | 20:42 | |
*** b52laptop has quit IRC | 20:42 | |
*** redir has joined #zope3-dev | 20:42 | |
*** lurker has quit IRC | 20:43 | |
*** redir has quit IRC | 20:44 | |
*** redir has joined #zope3-dev | 20:45 | |
*** pelle_ has quit IRC | 20:45 | |
*** redir has left #zope3-dev | 20:45 | |
*** ignas has quit IRC | 20:47 | |
*** lzdych has quit IRC | 20:48 | |
*** nerdalert_ has joined #zope3-dev | 20:51 | |
*** jfroche has joined #zope3-dev | 20:54 | |
*** cbcunc has quit IRC | 21:04 | |
*** nerdalert has quit IRC | 21:05 | |
*** hazmat has joined #zope3-dev | 21:11 | |
*** ChanServ sets mode: +o hazmat | 21:11 | |
*** henri_ has joined #zope3-dev | 21:11 | |
*** henri_ has left #zope3-dev | 21:17 | |
*** nerdalert_ is now known as nerdalert | 21:26 | |
*** tarek has quit IRC | 21:29 | |
*** dunny has joined #zope3-dev | 21:33 | |
*** meatballhat has left #zope3-dev | 21:44 | |
sm | good day all | 21:47 |
sm | over in #python, I learned sys.getdefaultencoding() is hardcoded to ascii, assuming you don't explicitly set it | 21:47 |
sm | yet I see things in zope apparently trying to use it to encode/decode non-ascii - catalog lexicons and TAL, for example | 21:47 |
sm | the TAL example, at least, applies to zope 3 | 21:48 |
sm | ie some parts of zope seem to assume that the default encoding can and will be configured to something other than ascii - which was apparently true for a few minutes some years back | 21:52 |
sm | I'm confused, please let me know | 21:53 |
sm | if - *if* I'm confused :/ | 21:53 |
sm | for I may not be! | 21:54 |
pbugni | sm - i *believe* z3 is all unicode | 21:55 |
pbugni | at least, by default | 21:56 |
sm | tal will sometimes convert strings to unicode, using the default encoding | 21:57 |
sm | perhaps that's all it can do. I assumed it was sensitive to the local system's configuration | 21:57 |
*** ktwilight has quit IRC | 21:58 | |
*** ktwilight has joined #zope3-dev | 21:58 | |
*** jfroche has quit IRC | 21:58 | |
sm | afk a bit | 21:59 |
*** avoine has joined #zope3-dev | 22:01 | |
*** pbugni is now known as pbugni[afk] | 22:01 | |
edgordon_ | i am trying to get some tests working on a Five project | 22:02 |
*** ktwilight_ has joined #zope3-dev | 22:02 | |
edgordon_ | and I can't seem to import from the Products package via the python shell. I can import Products itself, but I can't import Products.projectname | 22:03 |
edgordon_ | any ideas as to what could be wrong? | 22:03 |
*** ktwilight has quit IRC | 22:04 | |
*** faassen has joined #zope3-dev | 22:08 | |
faassen | benji: is there some way to issue PUT and DELETE requests using zope.testbrowser? | 22:09 |
pbugni[afk] | edgordon_: you shouldn't need 'Products' in your include | 22:09 |
pbugni[afk] | i.e. import projectname | 22:09 |
benji | faassen: nope; I suggest the "old" HTTP funcitonal testing system for that | 22:09 |
faassen | benji: hm, which package is that? | 22:11 |
edgordon_ | pbugni[afk]: i can't remember why I ended up leaving it in Products, but a lot of the example products i have looked at do use 'import Products.projectname' | 22:11 |
edgordon_ | but, i am guessing the problem is a Products directory appearing twice in the path | 22:12 |
faassen | benji: and would this potentially have a place in zope.testbrowser or do you think it really belongs somewhere else? | 22:12 |
edgordon_ | one in zope, one in the instance | 22:12 |
benji | faassen: I tend to think it's not a testbrowser thing; after all, browsers can't PUT or DELETE | 22:13 |
faassen | benji: yes, that's true. I'm writing tests for a REST service. | 22:13 |
faassen | benji: I just like the way dialogs one gets when using zope.testbrowser, but I imagine the old way would be powerful enough for REST. | 22:14 |
faassen | benji: (by the way, couldn't browsers at least construct these from Javascript using XMLHTTPRequest? not sure) | 22:14 |
*** lurker has joined #zope3-dev | 22:15 | |
benji | faassen: I don't think JS can do that; it might though | 22:15 |
faassen | benji: googling results in this from the yahoo UI library: (PUT and DELETE may not be supported by all A-Grade browsers) | 22:16 |
faassen | benji: whatever that means :) | 22:16 |
WebMaven | faassen: is your REST service based on APP? | 22:18 |
faassen | WebMaven: no, I will now google APP | 22:18 |
WebMaven | Atom Publishing Protocol | 22:18 |
faassen | WebMaven: ah, no, should it be? I'm not doing a weblog or anything. | 22:18 |
WebMaven | APP is fairly generic for content-ish use-cases. Google's GData APIs are extended versions of APP. | 22:19 |
WebMaven | a weblog is simply the canonical use-case it is built around. | 22:20 |
faassen | WebMaven: okay, I'll take a look at it. | 22:20 |
WebMaven | I keep meaning to finish my Z3 APP implementation. | 22:20 |
faassen | WebMaven: my application isn't exactly contentish, but then again any REST application is contentish in some sense. :) | 22:20 |
WebMaven | exactly. | 22:20 |
WebMaven | Also, Joe Gregorio has an APP test suite that might be handy: http://bitworking.org/news/Atom_Publishing_Protocol_Test_Suite | 22:23 |
*** tarek has joined #zope3-dev | 22:23 | |
WebMaven | other APP stuff: http://bitworking.org/projects/ | 22:23 |
faassen | WebMaven: I think implementing this is biting off more than I can chew for this application. :) | 22:23 |
*** jbb666 has quit IRC | 22:23 | |
WebMaven | faassen: OK. Hopefully, I'll eventually finish and release my reusable implementation. | 22:24 |
WebMaven | in any case, httplib2 may comein handy for your own testing | 22:25 |
faassen | WebMaven: that looks useful, I'll take a look at that, thanks. | 22:25 |
WebMaven | faassen: you're very welcome. | 22:26 |
WebMaven | faassen: is your project anything that is going to be released? | 22:26 |
faassen | WebMaven: not any time soon if so. | 22:26 |
WebMaven | gotcha. | 22:27 |
faassen | WebMaven: it's rather specific as well. a rest service for manipulating images on a surface, things like that. | 22:27 |
faassen | WebMaven: or at least for moving them around. :) | 22:27 |
WebMaven | on a surface? you mean around a 3D surface? | 22:27 |
faassen | WebMaven: no, a 2d surface. :) | 22:31 |
faassen | WebMaven: it's simpler than you think! | 22:31 |
WebMaven | OK. | 22:34 |
faassen | benji: by the 'old' HTTP function testing system you mean the stuff in zope.app.testing.functional, right? | 22:35 |
*** tarek has quit IRC | 22:48 | |
*** tonico has quit IRC | 22:53 | |
*** hazmat has quit IRC | 22:57 | |
*** naro has quit IRC | 22:58 | |
*** pelle_ has joined #zope3-dev | 23:00 | |
*** pelle_ has quit IRC | 23:02 | |
benji | faassen: I've block those functions out of my memory :) | 23:17 |
benji | faassen: IIRC, zope/app/testing/functional.py:caller has something to do with it | 23:21 |
*** alga has quit IRC | 23:25 | |
faassen | benji: yeah, there's something called HTTPCaller | 23:25 |
faassen | benji: I'm trying to figure out how to construct a PUT request with that that Zope will eat. | 23:26 |
*** mkerrin has quit IRC | 23:35 | |
*** harobed has quit IRC | 23:52 | |
*** lurker has quit IRC | 23:53 | |
*** rocky is now known as rocky|away | 23:57 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!