IRC log of #zope3-dev for Monday, 2007-05-14

*** ktwilight has joined #zope3-dev00:01
*** goschtl has quit IRC00:05
*** mkerrin has quit IRC00:05
*** timte has quit IRC00:10
*** jukart has quit IRC00:11
*** faassen has joined #zope3-dev00:15
*** faassen has left #zope3-dev00:15
*** harobed has quit IRC00:23
*** lurker has quit IRC00:57
*** jodok has quit IRC01:07
*** bigkevmcd has quit IRC01:12
*** yota has quit IRC01:33
*** natea has quit IRC01:42
*** PP has quit IRC02:11
*** jkakar has quit IRC02:48
*** philiKON has joined #zope3-dev02:53
*** philiKON_ has quit IRC03:01
*** b52laptop has quit IRC03:10
*** jfroche has quit IRC03:10
*** foxmjay has joined #zope3-dev03:55
*** foxmjay has quit IRC03:56
*** wrobel has quit IRC03:58
*** greenman has joined #zope3-dev05:16
*** Aiste has quit IRC06:47
*** harobed has joined #zope3-dev06:49
*** hazmat has quit IRC06:53
*** hazmat has joined #zope3-dev06:54
*** ChanServ sets mode: +o hazmat06:54
*** alecm has joined #zope3-dev07:15
*** jodok has joined #zope3-dev07:15
*** alecm has quit IRC07:23
*** alecm has joined #zope3-dev07:25
*** hazmat has quit IRC07:37
*** hazmat has joined #zope3-dev07:38
*** ChanServ sets mode: +o hazmat07:38
*** ka-jod has joined #zope3-dev07:52
*** lisppaste6 has quit IRC08:12
*** afd_ has joined #zope3-dev08:13
*** zagy has quit IRC08:19
*** sorin has joined #zope3-dev08:24
*** sorin is now known as sorindregan08:25
*** lisppaste6 has joined #zope3-dev08:26
*** greenman has quit IRC08:28
*** pghoratiu has joined #zope3-dev08:39
*** jukart has joined #zope3-dev08:42
*** zagy has joined #zope3-dev08:43
*** jodok has quit IRC08:48
*** zagy has quit IRC08:48
*** zagy has joined #zope3-dev08:48
*** harobed has quit IRC09:03
*** stub has joined #zope3-dev09:04
*** harobed has joined #zope3-dev09:12
*** stu1 has joined #zope3-dev09:17
*** dobee has joined #zope3-dev09:18
*** Aiste has joined #zope3-dev09:21
*** harobed has quit IRC09:24
*** harobed has joined #zope3-dev09:26
*** harobed has quit IRC09:33
*** stub has quit IRC09:34
*** harobed has joined #zope3-dev09:38
*** goschtl has joined #zope3-dev09:44
*** wrobel has joined #zope3-dev09:47
*** dunny has quit IRC09:49
*** yvl has joined #zope3-dev09:53
*** naro has joined #zope3-dev09:55
*** dobee has quit IRC09:57
*** alecm has quit IRC10:01
*** alecm has joined #zope3-dev10:01
*** dobee has joined #zope3-dev10:12
*** timte has joined #zope3-dev10:13
*** alecm has quit IRC10:16
*** bigkevmcd has joined #zope3-dev10:28
*** dunny has joined #zope3-dev10:29
*** dobee has quit IRC10:31
*** ghendi has joined #zope3-dev10:32
*** lurker has joined #zope3-dev10:32
*** jodok has joined #zope3-dev10:33
*** ChrisW has joined #zope3-dev10:36
ChrisWhey 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-dev10:37
philiKONChrisW: you defined it?10:37
philiKONtemplate = ViewPageTemplateFile('')10:37
philiKONon the class level10:37
ChrisWoh, hey philiKON :-)10:37
ChrisWno, I defined it with a browser:page directive10:38
philiKONok. then you can access it as self.index10:38
*** projekt01 has joined #zope3-dev10:38
philiKONthough that's not an official api10:38
ChrisWwhat is the official api?10:38
philiKONthere's none10:38
ChrisWnice ;-)10:38
philiKONbrowser:page simply sets the "index" attribute of your class to the template10:38
philiKONthat's why i prefer declaring the template in the class10:39
ChrisW...but you know how much I love the BrowserPage magic anyway ;-)10:39
philiKONit's bad10:39
philiKONi absolutely agree10:39
philiKONso, use ViewPageTemplateFile in the class and you're not using magic :)10:39
ChrisWk, will do ;-)10:39
philiKONchapter 7 of my new book :)10:40
*** jfroche has joined #zope3-dev10:40
*** pelle_ has joined #zope3-dev10: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-dev10:53
*** harobed has quit IRC11:04
*** harobed has joined #zope3-dev11:04
*** jodok has quit IRC11:13
*** pelle_ has quit IRC11:22
*** tarek has joined #zope3-dev11:23
*** pelle_ has joined #zope3-dev11:24
*** yota has joined #zope3-dev11:41
*** lzdych has joined #zope3-dev11:44
*** greenman has joined #zope3-dev11:46
*** jinty has joined #zope3-dev11:47
*** b52laptop has joined #zope3-dev12:05
*** mkerrin has joined #zope3-dev12:43
*** afd_ has quit IRC12:49
*** deo has joined #zope3-dev12:59
goschtlhi 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 = CaptchaWidget13:06
*** J1m has joined #zope3-dev13:32
*** greenman has quit IRC13:41
*** rocky has joined #zope3-dev13:48
*** dunny has quit IRC13:51
*** J1m has quit IRC14:03
*** tarek has quit IRC14:05
*** ignas has joined #zope3-dev14:20
*** benji has quit IRC14:27
timtegoschtl: I would guess an adapter14:34
goschtltimte: thanks for your suggestion but i have found the trick. you can configure it with zcml. works nice14:35
*** tarek has joined #zope3-dev14:47
*** goschtl has quit IRC14:47
*** emP[1] has joined #zope3-dev14:55
*** goschtl has joined #zope3-dev15:05
*** jfroche_ has joined #zope3-dev15:06
*** benji has joined #zope3-dev15:14
*** grahal has joined #zope3-dev15:17
*** niemeyer has joined #zope3-dev15:21
*** jfroche has quit IRC15:22
*** redir has joined #zope3-dev15:29
*** jinty_ has joined #zope3-dev15:32
*** jinty has quit IRC15:37
*** xxbeanxx has joined #zope3-dev15:40
*** ChanServ sets mode: +o srichter15:41
*** jinty_ has quit IRC15:44
*** jinty__ has joined #zope3-dev15:44
*** redir has quit IRC15:51
*** CrippsFX has quit IRC15:51
*** acripps__ has joined #zope3-dev15:51
*** CrippsFX has joined #zope3-dev15:52
*** icecrash has joined #zope3-dev15:57
*** redir has joined #zope3-dev16:03
*** acripps__ has quit IRC16:06
*** J1m has joined #zope3-dev16:10
*** J1m has quit IRC16:11
*** J1m has joined #zope3-dev16:11
benjiphiliKON: are you aware the rwproperty homepage is dead?16:21
*** __cbcunc__ is now known as cbcunc16:21
*** lurker is now known as lurker|brb16:54
*** jodok has joined #zope3-dev16:54
*** CrippsFX has quit IRC16:56
*** acripps__ has joined #zope3-dev16:56
*** acripps__ is now known as CrippsFX16:56
*** acripps__ has joined #zope3-dev16:56
*** deo has quit IRC16:57
*** pghoratiu has left #zope3-dev17:01
*** sorindregan has quit IRC17:10
*** ghendi has quit IRC17:13
*** goschtl has quit IRC17:14
*** yvl has quit IRC17:25
*** jodok has quit IRC17:25
*** alecm has joined #zope3-dev17:32
*** dobee has quit IRC17:33
philiKONbenji: yes :(17:36
Theunican you remove the link from the cheeseshop ;)17:37
benjiphiliKON: 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-dev17:39
J1mphiliKON, aren't you an owner or maintainer of that PYPI project?17:42
*** jkakar has joined #zope3-dev17:47
TheuniJ1m: do you mind if I clean up your a little bit?17:57
*** CrippsFX has quit IRC17:58
*** jukart has quit IRC18:00
*** projekt01 has quit IRC18:00
*** CrippsFX has joined #zope3-dev18:03
*** CrippsFX has quit IRC18:04
*** CrippsFX has joined #zope3-dev18:05
*** CrippsFX has quit IRC18:06
*** CrippsFX has joined #zope3-dev18:08
*** rocky is now known as rocky|away18:08
*** xxbeanxx has quit IRC18:14
*** rlo has joined #zope3-dev18:16
*** RaFromBRC has joined #zope3-dev18:19
*** alga has joined #zope3-dev18:21
*** redir has quit IRC18:26
*** CrippsFX has quit IRC18:31
*** CrippsFX has joined #zope3-dev18:31
*** jfroche_ has quit IRC18:37
*** jbb666 has joined #zope3-dev18:38
*** whit has joined #zope3-dev18:41
*** timte has quit IRC18:49
*** tarek has quit IRC18:50
*** rocky|away is now known as rocky18:55
*** stu1 has quit IRC19:01
*** rlo has quit IRC19:03
*** hazmat has quit IRC19:14
*** alecm has quit IRC19:15
*** tarek has joined #zope3-dev19:20
*** harobed has quit IRC19:21
*** ka-jod has quit IRC19:29
*** mgedmin has joined #zope3-dev19:31
*** timte has joined #zope3-dev19:40
*** pbugni has joined #zope3-dev19:45
*** lurker|brb has quit IRC19: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 WebMaven19:54
mgedminnot providing enough information to answer your question?19:56
WebMavenmgedmin: fair enough.19:58
WebMavenI 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 sid19:58
*** alecm has joined #zope3-dev19:59
WebMaventhe 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-dev19:59
WebMavenI get this error:20:00
WebMavenForbiddenAttribute: ('request', < object at 0xb68e548c>)20:00
WebMavenchanging self.context.request to self.context gives me this error:20:01
WebMavenTypeError: ('Could not adapt', < object at 0xb6904ccc>, <InterfaceClass>)20:01
*** emP[1] has quit IRC20:02
WebMavenmgedmin: is that enough info?20:02
mgedminI think so, yes20:04
mgedminis that zope 3?20:04
mgedminbecause it doesn't look like zope 3 to me...ah yes, it's clear now20:04
mgedminin zope 3 request is an attribute of the view, not the context20:04
mgedminso sid = IClientId(self.request) might work better20:04
WebMavenHmm. OK, one moment.20:04
*** harobed has joined #zope3-dev20:05
WebMavenmgedmin: Thanks, that was it!20:05
*** lurker has joined #zope3-dev20:16
*** redir has joined #zope3-dev20:19
*** redir has quit IRC20:21
*** redir has joined #zope3-dev20:21
*** redir has quit IRC20:23
*** redir has joined #zope3-dev20:24
*** redir has joined #zope3-dev20:24
*** mgedmin has quit IRC20:24
*** redir has quit IRC20:26
*** meatballhat has joined #zope3-dev20:28
*** redir has joined #zope3-dev20:31
*** redir has joined #zope3-dev20:33
*** redir has quit IRC20:33
*** redir has joined #zope3-dev20:41
*** redir has left #zope3-dev20:42
*** b52laptop has quit IRC20:42
*** redir has joined #zope3-dev20:42
*** lurker has quit IRC20:43
*** redir has quit IRC20:44
*** redir has joined #zope3-dev20:45
*** pelle_ has quit IRC20:45
*** redir has left #zope3-dev20:45
*** ignas has quit IRC20:47
*** lzdych has quit IRC20:48
*** nerdalert_ has joined #zope3-dev20:51
*** jfroche has joined #zope3-dev20:54
*** cbcunc has quit IRC21:04
*** nerdalert has quit IRC21:05
*** hazmat has joined #zope3-dev21:11
*** ChanServ sets mode: +o hazmat21:11
*** henri_ has joined #zope3-dev21:11
*** henri_ has left #zope3-dev21:17
*** nerdalert_ is now known as nerdalert21:26
*** tarek has quit IRC21:29
*** dunny has joined #zope3-dev21:33
*** meatballhat has left #zope3-dev21:44
smgood day all21:47
smover in #python, I learned sys.getdefaultencoding() is hardcoded to ascii, assuming you don't explicitly set it21:47
smyet I see things in zope apparently trying to use it to encode/decode non-ascii - catalog lexicons and TAL, for example21:47
smthe TAL example, at least, applies to zope 321:48
smie 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 back21:52
smI'm confused, please let me know21:53
smif - *if* I'm confused :/21:53
smfor I may not be!21:54
pbugnism - i *believe* z3 is all unicode21:55
pbugniat least, by default21:56
smtal will sometimes convert strings to unicode, using the default encoding21:57
smperhaps that's all it can do. I assumed it was sensitive to the local system's configuration21:57
*** ktwilight has quit IRC21:58
*** ktwilight has joined #zope3-dev21:58
*** jfroche has quit IRC21:58
smafk a bit21:59
*** avoine has joined #zope3-dev22:01
*** pbugni is now known as pbugni[afk]22:01
edgordon_i am trying to get some tests working on a Five project22:02
*** ktwilight_ has joined #zope3-dev22: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.projectname22:03
edgordon_any ideas as to what could be wrong?22:03
*** ktwilight has quit IRC22:04
*** faassen has joined #zope3-dev22:08
faassenbenji: 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 include22:09
pbugni[afk]i.e. import projectname22:09
benjifaassen: nope; I suggest the "old" HTTP funcitonal testing system for that22:09
faassenbenji: 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 path22:12
faassenbenji: 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 instance22:12
benjifaassen: I tend to think it's not a testbrowser thing; after all, browsers can't PUT or DELETE22:13
faassenbenji: yes, that's true. I'm writing tests for a REST service.22:13
faassenbenji: 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
faassenbenji: (by the way, couldn't browsers at least construct these from Javascript using XMLHTTPRequest? not sure)22:14
*** lurker has joined #zope3-dev22:15
benjifaassen: I don't think JS can do that; it might though22:15
faassenbenji: googling results in this from the yahoo UI library: (PUT and DELETE may not be supported by all A-Grade browsers)22:16
faassenbenji: whatever that means :)22:16
WebMavenfaassen: is your REST service based on APP?22:18
faassenWebMaven: no, I will now google APP22:18
WebMavenAtom Publishing Protocol22:18
faassenWebMaven: ah, no, should it be? I'm not doing a weblog or anything.22:18
WebMavenAPP is fairly generic for content-ish use-cases. Google's GData APIs are extended versions of APP.22:19
WebMavena weblog is simply the canonical use-case it is built around.22:20
faassenWebMaven: okay, I'll take a look at it.22:20
WebMavenI keep meaning to finish my Z3 APP implementation.22:20
faassenWebMaven: my application isn't exactly contentish, but then again any REST application is contentish in some sense. :)22:20
WebMavenAlso, Joe Gregorio has an APP test suite that might be handy:
*** tarek has joined #zope3-dev22:23
WebMavenother APP stuff:
faassenWebMaven: I think implementing this is biting off more than I can chew for this application. :)22:23
*** jbb666 has quit IRC22:23
WebMavenfaassen: OK. Hopefully, I'll eventually finish and release my reusable implementation.22:24
WebMavenin any case, httplib2 may comein handy for your own testing22:25
faassenWebMaven: that looks useful, I'll take a look at that, thanks.22:25
WebMavenfaassen: you're very welcome.22:26
WebMavenfaassen: is your project anything that is going to be released?22:26
faassenWebMaven: not any time soon if so.22:26
faassenWebMaven: it's rather specific as well. a rest service for manipulating images on a surface, things like that.22:27
faassenWebMaven: or at least for moving them around. :)22:27
WebMavenon a surface? you mean around a 3D surface?22:27
faassenWebMaven: no, a 2d surface. :)22:31
faassenWebMaven: it's simpler than you think!22:31
faassenbenji: by the 'old' HTTP function testing system you mean the stuff in, right?22:35
*** tarek has quit IRC22:48
*** tonico has quit IRC22:53
*** hazmat has quit IRC22:57
*** naro has quit IRC22:58
*** pelle_ has joined #zope3-dev23:00
*** pelle_ has quit IRC23:02
benjifaassen: I've block those functions out of my memory :)23:17
benjifaassen: IIRC, zope/app/testing/ has something to do with it23:21
*** alga has quit IRC23:25
faassenbenji: yeah, there's something called HTTPCaller23:25
faassenbenji: I'm trying to figure out how to construct a PUT request with that that Zope will eat.23:26
*** mkerrin has quit IRC23:35
*** harobed has quit IRC23:52
*** lurker has quit IRC23:53
*** rocky is now known as rocky|away23:57

Generated by 2.15.1 by Marius Gedminas - find it at!