IRC log of #zope3-dev for Tuesday, 2008-08-26

*** danielblackburn_ has quit IRC00:07
*** malthe has quit IRC00:09
*** malthe has joined #zope3-dev00:09
*** __mac__ has quit IRC00:14
*** mcdonc has quit IRC00:18
*** jodok_ has joined #zope3-dev00:18
*** jodok__ has joined #zope3-dev00:21
*** jodok has quit IRC00:24
*** jodok___ has joined #zope3-dev00:25
*** jodok has joined #zope3-dev00:27
*** jodok___ has quit IRC00:28
*** greenman has quit IRC00:28
*** timte has quit IRC00:30
*** vipod has quit IRC00:34
*** alga has joined #zope3-dev00:35
*** jodok_ has quit IRC00:38
*** jodok__ has quit IRC00:43
*** sp0cksbeard has quit IRC00:44
*** hazmat has joined #zope3-dev00:46
*** ChanServ sets mode: +o hazmat00:46
*** fcorrea has joined #zope3-dev00:48
*** malthe is now known as malthe|Zzz00:52
*** fcorrea_ has quit IRC00:56
*** benji has quit IRC01:02
*** ktwilight has joined #zope3-dev01:03
*** hazmat has quit IRC01:04
*** hazmat has joined #zope3-dev01:06
*** ChanServ sets mode: +o hazmat01:06
*** lucielejard has quit IRC01:14
*** lurkymclurkleton has quit IRC01:27
*** tarek has quit IRC01:32
*** greenman has joined #zope3-dev01:36
*** yota has quit IRC01:37
*** jhauser has quit IRC01:48
*** harobed has quit IRC01:53
*** mgedmin has quit IRC02:02
*** flox has quit IRC02:05
*** mgedmin has joined #zope3-dev02:07
*** aaronv has quit IRC02:19
*** srichter has quit IRC02:22
*** mgedmin has quit IRC02:22
*** flox has joined #zope3-dev02:35
*** flox has left #zope3-dev02:35
*** quodt has quit IRC02:48
*** nathany has quit IRC02:55
*** alga has quit IRC03:43
*** fcorrea has quit IRC03:44
*** fcorrea has joined #zope3-dev03:44
*** aaronv has joined #zope3-dev03:58
*** rocky has joined #zope3-dev04:00
*** b52laptop has quit IRC04:08
*** rcrafton has left #zope3-dev04:20
*** malthe|Zzz has quit IRC04:27
*** aaronv has quit IRC04:32
*** natea_ has joined #zope3-dev04:33
*** rocky1 has joined #zope3-dev04:35
*** rocky has quit IRC04:35
*** rocky1 is now known as rocky04:35
*** natea_ has quit IRC04:36
*** aaronv has joined #zope3-dev04:39
*** jodok has quit IRC04:40
*** fcorrea has quit IRC04:47
*** natea_ has joined #zope3-dev04:50
*** fcorrea has joined #zope3-dev04:54
*** rmarianski has joined #zope3-dev04:54
*** deo has joined #zope3-dev04:56
*** fcorrea has quit IRC05:04
*** rocky has quit IRC05:18
*** srichter has joined #zope3-dev05:22
*** redir has joined #zope3-dev05:25
*** ChanServ sets mode: +o srichter05:35
*** mcdonc has joined #zope3-dev05:49
*** fairwinds has quit IRC06:01
*** aclark is now known as aclark|away06:01
*** redir has quit IRC06:52
*** mcdonc has quit IRC06:53
*** binseer has joined #zope3-dev07:01
*** brandon_rhodes has quit IRC07:07
*** philiKON has quit IRC07:11
*** stub has joined #zope3-dev07:38
*** __mac__ has joined #zope3-dev07:38
*** stub has quit IRC07:43
*** __mac___ has joined #zope3-dev08:02
*** stub has joined #zope3-dev08:03
*** __mac__ has quit IRC08:18
*** kursor has joined #zope3-dev08:27
*** __mac___ has quit IRC08:38
*** dobee has joined #zope3-dev08:45
*** basti_ has joined #zope3-dev08:46
*** jukart has joined #zope3-dev08:48
*** timte has joined #zope3-dev08:50
*** zagy has joined #zope3-dev08:52
*** greenman has quit IRC09:23
*** romanofski has joined #zope3-dev09:28
*** mustap has joined #zope3-dev09:29
*** afd_ has joined #zope3-dev09:41
*** quodt has joined #zope3-dev09:59
*** jhauser has joined #zope3-dev10:00
*** J1m has joined #zope3-dev10:03
*** __mac__ has joined #zope3-dev10:04
*** jodok has joined #zope3-dev10:07
*** bigkevmcd has quit IRC10:18
*** jodok has quit IRC10:19
*** bigkevmcd has joined #zope3-dev10:19
*** agroszer has joined #zope3-dev10:25
*** jayaraj has joined #zope3-dev10:28
*** tarek has joined #zope3-dev10:33
*** projekt01 has joined #zope3-dev10:34
*** goschtl has joined #zope3-dev10:34
*** jodok has joined #zope3-dev10:39
*** maurits_ has joined #zope3-dev10:41
*** maurits_ is now known as maurits10:42
*** maurits has left #zope3-dev10:42
*** harobed has joined #zope3-dev10:45
*** yvl has joined #zope3-dev11:03
*** __mac__ has quit IRC11:03
*** pyqwer has joined #zope3-dev11:09
*** malthe has joined #zope3-dev11:37
*** charith_para has joined #zope3-dev11:51
*** __mac__ has joined #zope3-dev11:53
*** charith_para has quit IRC12:10
*** baijum has joined #zope3-dev12:12
*** aclark|away is now known as aclark12:13
*** andres has joined #zope3-dev12:23
*** basti_ has quit IRC12:24
*** junkafarian_ has joined #zope3-dev12:25
*** junkafarian_ is now known as junkafarian12:26
*** ccomb_ has joined #zope3-dev12:37
*** basti_ has joined #zope3-dev13:04
*** b52laptop has joined #zope3-dev13:10
*** aaronv has quit IRC13:11
*** aaronv has joined #zope3-dev13:11
*** tarek is now known as tarek|away13:16
*** mintsauce has joined #zope3-dev13:17
*** timte has quit IRC13:19
*** timte has joined #zope3-dev13:20
*** __mac__ has quit IRC13:37
mintsauceHi all, im trying to get my page template to output xml, rather than html .... how would I go about this?13:40
*** ccomb_ has quit IRC13:45
*** fairwinds has joined #zope3-dev13:46
mintsaucelxml?13:47
afd_mintsauce: I've used lxml... but i think if you're not very picky, the default page templates can output xml just fine13:47
mintsauceafd_: without any changes? The template seems to be writing out the xml (to be precise, FOAF RDF), if i view source it's all there, but the browser is formatting it as html. - I'm assuming Zope is inserting a header i cant see?13:50
afd_mintsauce: set the Content-Type to application/rdf+xml13:52
afd_in the view13:52
afd_Content-Type header13:53
mintsauceafd_: how do that in the view?13:53
afd_self.request.response.setHeader('Content-Type', 'application/rdf+xml')13:54
afd_in __call__, or maybe update(), if you're using something like z3c.template or z3c.viewtemplate13:54
mintsauceahh ... interesting: ValueError: Unicode results must have a text content type.13:56
mintsauceim parsing a file to produce the rdf ....... can zope manage it as xml?13:58
afd_parsing how? which part of zope? the publishing machinery or the page templates?13:58
*** projekt01 has quit IRC13:59
mintsauceusing pyRdfa: self.parsedFOAF = processURI(uri,format)14:00
*** __mac__ has joined #zope3-dev14:01
afd_mintsauce: from zope's point of view, it doesn't matter what you do inside the view14:01
afd_as long as you're writing a browser view, the only requirement is to output something that can be published through a web server14:02
afd_usually, this is a string or unicode object14:03
afd_acompanied, eventually, by some instructions on what headers to output14:03
*** tdoggette has quit IRC14:04
mintsaucehmmm .... self.parsedFOAF includes its own headers14:06
afd_I'm not familiar with parsedFOAF... where is it coming from?14:07
*** tdoggette has joined #zope3-dev14:10
mintsaucethe pyRDFa parser14:20
*** aaronv has quit IRC14:20
mintsauceoutputs something that looks like this: http://www.w3.org/2007/08/pyRdfa/extract?uri=http%3A%2F%2Fwww.ivan-herman.net%2Ffoaf.html&format=pretty-xml&warnings=false&parser=lax&space-preserve=true&submit=Go!14:20
afd_mintsauce: self.parsedFOAF... is it a string? an xml container? what is it?14:21
*** deo has quit IRC14:22
mintsauceafd_: good question (and I think the root of my problem), it's the results of the parsing - if i write it out directly it looks like the url i just pasted.14:23
mintsauceI havent come across xml containers before ....14:23
afd_when I said an xml container I mean something like an ElementTree object...14:23
*** projekt01 has joined #zope3-dev14:24
afd_they typically have "toxml" methods14:24
afd_mintsauce: try to do "return unicode(self.parsedFOAF)" in the view __call__14:25
*** dunny has quit IRC14:25
*** alga has joined #zope3-dev14:26
mintsauceno luck - from speaking to someone else im getting the impression that application/rdf+xml isn't a valid content type ..... it expecting unicode text ...14:35
afd_mintsauce: get back to the situation where you output just the stupid xml / html to the browser, and just add the setHeaders line... see if that works14:36
mintsauceafd_: that's what raises the unicode error14:37
afd_I see14:37
mintsaucein zope.publisher source it literally says if not content_type.startswith('text/ - raise error14:38
* mintsauce is now well out of his depth14:38
*** timte has quit IRC14:38
*** charith_para has joined #zope3-dev14:40
afd_mintsauce: try str() instead of unicode()...14:40
*** timte has joined #zope3-dev14:44
mintsauceafd_: same error - removing content header and leaving str removes error ....14:45
*** danfairs has joined #zope3-dev14:51
*** redir has joined #zope3-dev14:52
* mintsauce waves to danfairs 14:59
danfairsheh15:00
*** aclark is now known as aclark|away15:03
*** redir has quit IRC15:08
*** sunew has joined #zope3-dev15:11
*** charith_para has quit IRC15:11
*** rocky has joined #zope3-dev15:16
*** Jero has joined #zope3-dev15:17
Jerohi15:17
Jeroi am programming a concept in which i store information i got from a physical device attached to the computer. I need to collect the info comming from that device in ZODB15:19
Jeroi have created a event that should tell me when new data comes from the device and it should store it in ZODB, afterwards that info should be available in zope view15:20
Jeromy question is how do i make the event handler to access the DB?15:21
Jeroshould i specify the data file in /var?? is there a way in which the data collection only works when a my zope instance is running?15:22
*** afd_ has quit IRC15:32
goschtlJero: you can try to do this with an xmlrpc-call to zope.15:36
goschtlyour event just calls a xml-rpc method on zope. these xml-rpc view stores things in zodb or does some other stuff...15:37
Jerothanks! aren't xml-rpc views used to display objects?15:44
*** ignas has joined #zope3-dev15:46
goschtlJero: no you can do all kinds of stuff with it. there is z3c.rest which provides another alternative for this.15:46
goschtlJero: do you already have the application on zope-side?15:47
Jerogoschtl: yes, i have it already. I populate some data manually. The views and all stuff are working already. The data collection part is the only missing15:48
goschtlJero: http://blogs.nuxeo.com/sections/blogs/tarek_ziade/2005_11_04_xml-rpc-over-zope-3 this could help you15:49
*** brandon_rhodes has joined #zope3-dev15:52
Jerothanks goschtl! i will try to understand it15:53
Jeroand later i will try it15:53
*** hazmat has quit IRC15:53
goschtlJero: ok have fun :)15:54
*** afd_ has joined #zope3-dev16:01
*** lurkymclurkleton has joined #zope3-dev16:01
*** benji has joined #zope3-dev16:01
*** aaronv has joined #zope3-dev16:05
*** aaronv has quit IRC16:07
*** J1m has quit IRC16:07
*** aaronv has joined #zope3-dev16:08
*** J1m has joined #zope3-dev16:08
*** redir has joined #zope3-dev16:13
*** sp0cksbeard has joined #zope3-dev16:14
*** J1m has quit IRC16:15
*** J1m has joined #zope3-dev16:18
*** zagy has quit IRC16:21
*** fcorrea has joined #zope3-dev16:22
tarek|awaygoschtl, Jero I am around in case...16:26
*** afd__ has joined #zope3-dev16:27
*** afd_ has quit IRC16:27
*** kursor has quit IRC16:27
*** baijum has quit IRC16:30
pyqwerHi, I did my first Zope checkin and received some mail from "checkins-bounces" - does anyone know why and what to do about it?16:35
goschtlpyqwer: I think some of the moderators of the checkinlist have to give you access for this maillinglist. I think nothing to worry about.?16:38
pyqwergoschtl: Ok, fine, I thought, maybe I have to somehow subscribe to some list, or configure something on zope.org.16:39
goschtlpyqwer: i think this is not needed. But i am not 100% sure..16:40
pyqwerOk, so I'll ignore that for now...16:40
*** bigkevmcd has quit IRC16:40
*** andres has quit IRC16:41
*** bigkevmcd has joined #zope3-dev16:41
*** andres has joined #zope3-dev16:41
agroszerpyqwer: I remember vaguely that you need to subscribe to that list16:43
agroszervia http://mail.zope.org/mailman/listinfo/checkins16:43
*** Theuni has joined #zope3-dev16:44
pyqwerAh, got it, thanks!16:44
pyqwersrichter: ping16:45
*** baijum has joined #zope3-dev16:47
*** Jero has quit IRC16:52
*** lucielejard has joined #zope3-dev16:56
*** aclark|away is now known as aclark17:06
*** baijum has quit IRC17:15
*** natea_ is now known as natea17:24
*** basti_ has quit IRC17:25
*** mgedmin has joined #zope3-dev17:26
mintsauceafd__: still here?17:30
*** srichter has quit IRC17:30
*** Jell-O-Fishi has quit IRC17:34
afd__mintsauce: yeap17:36
lisppaste6mintsauce pasted "xml-rdf" at http://paste.lisp.org/display/6588017:38
afd__mintsauce: so basically you passed a string instead of a unicode object17:38
mintsaucefixed with danfairs help - your idea was similar, but he approached it from the other 'end'17:39
afd__I see17:39
mintsauceafd__: thanks for help getting there :)17:39
afd__I didn't do much... I'm glad it works for you though17:39
mintsauceafd__: you gave me more of an idea where to look, so thanks.17:40
*** nathany has joined #zope3-dev17:40
danfairsThe publisher explicitly does an isinstance(body, unicode) and throws an exception if the content type doesn't start with 'text/'.17:41
danfairsWhether this is the correct fix or just a workaround, I'm not 100% sure ;)17:41
*** fcorrea_ has joined #zope3-dev17:43
*** tarek|away is now known as tarek17:43
*** mustap has left #zope3-dev17:44
mintsauceNext challenge: The uri im using is protected by zope permissions, as it should be - how do i allow the parser the same permissions as the logged in user who's viewing the uri?17:47
*** fcorrea has quit IRC17:48
afd__mintsauce: your view code is restricted by the permissions of the current user, unless you specifically do getProxiedObject or removeSecurityProxy17:49
*** nathany has quit IRC17:49
*** nathany has joined #zope3-dev17:49
mintsauceok - not only is the view protected, but the file im processing is dependent on the user logged in i.e:17:50
mintsauceloggedinprofile.html -> foaf_parser.py -> foaf.rdf17:50
mintsauceso not only does it need permissions, but the foaf_parser.py needs to see the same data the user does - if you see what i mean17:51
afd__and what is that data?17:51
*** mustap has joined #zope3-dev17:52
*** mustap has left #zope3-dev17:52
mintsauceBasically, im trying to replicate this in zope: http://www.ivan-herman.net/foaf.html is a xhtml+rdfa document, when run through a parser it produces a foaf.rdf file (see link at the bottom).17:53
mintsauceHowever, in my case the xhtml is dynamic depending on the user.17:53
afd__mintsauce: feed the parser the data that you get about the current user :)17:55
*** binseer has quit IRC17:55
afd__it all depends on how you store this data17:56
*** srichter has joined #zope3-dev17:56
*** jamur2 has quit IRC17:57
mintsaucehmmm - i suppose i can also feed it xhtml-rdf directly, rather than sending an url ...17:57
*** lurkymclurkleton has quit IRC17:57
*** jamur2 has joined #zope3-dev17:58
mintsaucethe parser expects xhtml17:58
*** jamur2 has quit IRC17:58
*** afd__ has quit IRC18:00
*** afd__ has joined #zope3-dev18:00
*** sunew_ has joined #zope3-dev18:04
*** stub has quit IRC18:05
*** rmarianski has joined #zope3-dev18:08
mintsauceafd__: Thinking im missing the point here. I cant feed the data to the parser, as it only parses xhtml. I cant send it a file, because it's dynamic. To send it the url it must 'appear' as the user to return the correct data - is this where getProxiedObject comes in?18:10
*** benji has quit IRC18:14
*** afd__ has quit IRC18:14
*** sunew has quit IRC18:15
*** sp0cksbeard has quit IRC18:15
*** faassen has joined #zope3-dev18:19
*** jamur2 has joined #zope3-dev18:19
*** benji has joined #zope3-dev18:25
*** kursor has joined #zope3-dev18:27
*** zagy has joined #zope3-dev18:28
*** afd__ has joined #zope3-dev18:32
*** dobee has quit IRC18:34
*** goschtl has quit IRC18:34
*** sp0cksbeard has joined #zope3-dev18:39
*** jukart has quit IRC18:40
*** natea has quit IRC18:42
*** lurkymclurkleton has joined #zope3-dev18:44
*** norro has joined #zope3-dev18:49
*** lurkymclurkleton has quit IRC18:52
*** lurkymclurkleton has joined #zope3-dev18:53
*** pyqwer has quit IRC18:54
*** jodok has quit IRC18:56
*** malthe has quit IRC18:59
redirjoin #unix19:02
redirgah19:02
*** Jero has joined #zope3-dev19:04
*** mintsauce has quit IRC19:12
*** J1m has quit IRC19:13
*** __mac__ has quit IRC19:14
*** afd__ has quit IRC19:16
*** projekt01 has quit IRC19:16
*** yvl has quit IRC19:16
*** yvl has joined #zope3-dev19:20
*** tarek is now known as tarek|away19:20
*** jayaraj has quit IRC19:29
*** reco has joined #zope3-dev19:33
*** quodt has quit IRC19:33
*** agroszer has quit IRC19:34
*** Theuni has quit IRC19:37
*** rocky has quit IRC19:42
mgedminhmm19:49
mgedminI'm looking at ccomb's fix for lp#9844019:49
mgedmini.e. http://zope3.pov.lt/trac/changeset/8976519:49
mgedminbut is that the correct fix?19:50
mgedminif I apply a skin in the middle of traversal, say, from a IBeforeTraversal event handler19:50
mgedminthen when I retry the request, I shouldn't see that skin in the first traversal steps19:50
mgedminit should get applied again in the middle19:50
*** harobed has quit IRC20:09
*** ccomb_ has joined #zope3-dev20:14
*** ChanServ sets mode: +o srichter20:28
*** yotaff has quit IRC20:31
*** Jero has quit IRC20:35
*** aaronv has quit IRC20:40
*** junkafarian has quit IRC20:43
*** basti_ has joined #zope3-dev20:47
*** jodok has joined #zope3-dev20:59
*** sunew_ has quit IRC21:07
*** quodt has joined #zope3-dev21:13
*** sunew_ has joined #zope3-dev21:15
*** kursor has quit IRC21:23
*** Jero has joined #zope3-dev21:26
*** ccomb_ has quit IRC21:30
*** ignas has quit IRC21:35
*** basti_ has quit IRC21:41
*** theskrill has joined #zope3-dev21:42
*** aaronv has joined #zope3-dev21:46
*** theskrill has quit IRC21:52
*** yotaff has joined #zope3-dev21:56
*** Jero has quit IRC21:58
*** dobee has joined #zope3-dev22:16
*** faassen has quit IRC22:20
*** afd__ has joined #zope3-dev22:22
mgedminhey, the apidoc convention of having a factory attribute of adapters?22:23
mgedminis there a decorator for that?22:23
mgedmin@adapter(IFoo), @implementer(IBar), @factory(FooFactory) ?22:23
*** romanofs1i has joined #zope3-dev22:28
*** romanofski has quit IRC22:31
*** tarek|away has quit IRC22:33
*** yotaff has quit IRC22:36
*** afd__ has quit IRC22:48
*** basti_ has joined #zope3-dev22:51
*** norro_ has joined #zope3-dev23:00
*** aclark is now known as aclark|away23:06
*** tarek has joined #zope3-dev23:07
*** dunny has joined #zope3-dev23:10
*** norro has quit IRC23:14
*** greenman has joined #zope3-dev23:33
*** reco has quit IRC23:35
*** reco has joined #zope3-dev23:43
*** basti_ has quit IRC23:45
*** yota has joined #zope3-dev23:47
*** aaronv has quit IRC23:54
*** aaronv has joined #zope3-dev23:55
*** alga has quit IRC23:56

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!