| *** malthe_ has joined #zope3-dev | 00:00 | |
| *** jinty has quit IRC | 00:01 | |
| *** mrevoir has quit IRC | 00:02 | |
| *** nerdalert has quit IRC | 00:03 | |
| *** faassen has quit IRC | 00:03 | |
| *** benji has quit IRC | 00:06 | |
| *** eldar has joined #zope3-dev | 00:09 | |
| *** gumpa has quit IRC | 00:11 | |
| *** schwendinger has quit IRC | 00:12 | |
| *** jodok has left #zope3-dev | 00:13 | |
| *** jodok has joined #zope3-dev | 00:13 | |
| jodok | J1m: ayt? | 00:13 |
|---|---|---|
| J1m | yes | 00:13 |
| jodok | i've got a problem with zc.z3monitor (or was it ngi)? | 00:14 |
| jodok | warning: unhandled write event | 00:14 |
| jodok | warning: unhandled read event | 00:14 |
| jodok | it wrote about 24GB with these strings | 00:14 |
| J1m | yipes | 00:14 |
| jodok | i remember we had that issue a few month ago | 00:14 |
| *** Lumiere has quit IRC | 00:14 | |
| *** Lumiere has joined #zope3-dev | 00:14 | |
| J1m | yeah | 00:14 |
| jodok | but i can't remember what the problem was | 00:14 |
| J1m | me neither :( | 00:14 |
| jodok | o.k. :) | 00:15 |
| *** malthe has quit IRC | 00:20 | |
| *** malthe_ is now known as malthe | 00:20 | |
| *** pelle_ has joined #zope3-dev | 00:30 | |
| *** pbugni has joined #zope3-dev | 00:35 | |
| *** ignas_ has joined #zope3-dev | 00:41 | |
| *** ignas has quit IRC | 00:43 | |
| *** Ariel_Calzada has joined #zope3-dev | 00:49 | |
| *** RaFromBRC is now known as RaFromBRC|away | 00:49 | |
| wiggy | J1m: is there a way for a buildout recipe to store internal state somewhere? | 00:52 |
| J1m | sure | 00:52 |
| wiggy | an API to .isntalled.cfg or so? | 00:53 |
| J1m | I don't know what your use case is. | 00:55 |
| J1m | anything you stick in options will be stored in .installed.cfg. | 00:55 |
| wiggy | only recompiling something if a specific option has been changed | 00:55 |
| J1m | You can only read that data in an uninstall recipe. | 00:55 |
| wiggy | every change currently runs install which cleans & rebuilds stuff which isn't needed | 00:56 |
| wiggy | so if I copy say options["setting"] to options["old_setting"] it'll persist and I can compare when install is invoked again? | 00:56 |
| wiggy | that'ld be nice | 00:57 |
| J1m | But is options changes, then your part will be uninstalled. | 00:57 |
| J1m | You can simply write data into your parts directory and not tell buildout you created the parts directory. | 00:58 |
| *** xenru has joined #zope3-dev | 00:58 | |
| wiggy | hm, and since I stick the place where I compile stuff in options.clear() it's deleted automatically as well | 00:58 |
| wiggy | so I need to do that manually as well | 00:58 |
| J1m | Then it would be up to you to figure out when you had to redo something. | 00:58 |
| *** eldar has quit IRC | 01:00 | |
| *** hazmat has quit IRC | 01:03 | |
| *** pcardune has quit IRC | 01:08 | |
| *** ignas_ has quit IRC | 01:09 | |
| *** schwendinger_ has quit IRC | 01:14 | |
| *** natea_ has joined #zope3-dev | 01:19 | |
| *** Ariel_Calzada has quit IRC | 01:27 | |
| *** projekt01 has joined #zope3-dev | 01:27 | |
| *** hazmat has joined #zope3-dev | 01:40 | |
| *** ChanServ sets mode: +o hazmat | 01:40 | |
| *** RaFromBRC|away is now known as RaFromBRC | 01:42 | |
| *** dunny has joined #zope3-dev | 01:42 | |
| *** malthe has quit IRC | 01:46 | |
| *** hazmat has quit IRC | 01:49 | |
| *** jsadjohnson has quit IRC | 01:50 | |
| *** xenru has quit IRC | 01:51 | |
| *** nathany_ has joined #zope3-dev | 01:51 | |
| *** nathany has quit IRC | 01:52 | |
| *** jodok has quit IRC | 01:56 | |
| *** natea_ has quit IRC | 02:11 | |
| *** pcardune has joined #zope3-dev | 02:16 | |
| *** J1m has quit IRC | 02:19 | |
| *** ignas_ has joined #zope3-dev | 02:21 | |
| *** nathany_ has quit IRC | 02:41 | |
| *** natea_ has joined #zope3-dev | 02:49 | |
| *** rocky|away has quit IRC | 03:02 | |
| *** huajie has joined #zope3-dev | 03:03 | |
| *** pbugni has quit IRC | 03:04 | |
| *** mrevoir has joined #zope3-dev | 03:06 | |
| *** tarek_ has quit IRC | 03:08 | |
| *** natea_ has quit IRC | 03:13 | |
| *** niemeyer has quit IRC | 03:25 | |
| *** projekt01 has quit IRC | 03:52 | |
| *** whit has quit IRC | 04:02 | |
| *** natea_ has joined #zope3-dev | 04:05 | |
| *** mrevoir has quit IRC | 04:06 | |
| *** jsadjohnson has joined #zope3-dev | 04:06 | |
| *** pcardune has quit IRC | 04:10 | |
| *** alecm has quit IRC | 04:10 | |
| *** pcardune has joined #zope3-dev | 04:22 | |
| *** fcorrea has quit IRC | 04:31 | |
| *** ignas_ has quit IRC | 04:35 | |
| *** alecm has joined #zope3-dev | 04:51 | |
| *** ignas_ has joined #zope3-dev | 04:53 | |
| *** natea_ has quit IRC | 04:54 | |
| *** alecm_ has joined #zope3-dev | 04:55 | |
| *** RaFromBRC has quit IRC | 04:58 | |
| *** natea_ has joined #zope3-dev | 05:03 | |
| *** jsadjohnson has quit IRC | 05:04 | |
| edgordon | when i programmatically add a site manager, it doesn't show up in the zmi. i can navigate to it, but i can't see it. any tips on what the problem is? | 05:04 |
| *** huajie has quit IRC | 05:07 | |
| *** alecm has quit IRC | 05:11 | |
| *** alecm_ has quit IRC | 05:23 | |
| *** alecm has joined #zope3-dev | 05:41 | |
| *** ignas_ has quit IRC | 05:48 | |
| *** ignas has joined #zope3-dev | 05:55 | |
| *** sm has quit IRC | 05:56 | |
| *** alecm has quit IRC | 06:03 | |
| *** alecm has joined #zope3-dev | 06:05 | |
| *** alecm_ has joined #zope3-dev | 06:11 | |
| *** ignas has quit IRC | 06:11 | |
| *** alecm_ has quit IRC | 06:23 | |
| *** natea_ has quit IRC | 06:24 | |
| *** alecm has quit IRC | 06:28 | |
| *** natea_ has joined #zope3-dev | 06:29 | |
| *** philiKON has joined #zope3-dev | 06:32 | |
| *** b52lap has joined #zope3-dev | 06:39 | |
| *** philiKON_ has quit IRC | 06:41 | |
| *** alecm has joined #zope3-dev | 06:44 | |
| *** stub has joined #zope3-dev | 06:49 | |
| *** b52laptop has quit IRC | 06:56 | |
| *** cursor has joined #zope3-dev | 07:06 | |
| *** natea_ has quit IRC | 07:09 | |
| *** natea_ has joined #zope3-dev | 07:15 | |
| *** chacha_chaudhry has joined #zope3-dev | 07:20 | |
| *** hazmat has joined #zope3-dev | 07:21 | |
| *** ChanServ sets mode: +o hazmat | 07:21 | |
| *** hazmat has quit IRC | 07:21 | |
| *** dmpinheiro has joined #zope3-dev | 07:28 | |
| *** stub has quit IRC | 07:40 | |
| *** stu2 has joined #zope3-dev | 07:40 | |
| *** stu2 is now known as stub | 07:47 | |
| *** pcardune has quit IRC | 07:57 | |
| *** stub has quit IRC | 07:59 | |
| *** deo has quit IRC | 08:01 | |
| *** natea_ has quit IRC | 08:07 | |
| *** baijum has joined #zope3-dev | 08:12 | |
| *** natea_ has joined #zope3-dev | 08:28 | |
| *** romanofski has quit IRC | 08:41 | |
| *** alecm has quit IRC | 08:51 | |
| *** natea_ has quit IRC | 08:52 | |
| *** natea_ has joined #zope3-dev | 08:56 | |
| *** tjs has joined #zope3-dev | 08:56 | |
| *** sorin has joined #zope3-dev | 09:03 | |
| tjs | G'day | 09:03 |
| *** sorin is now known as sorindregan | 09:04 | |
| tjs | having a real issue with registering utilities that depend on looking up other utilities | 09:04 |
| tjs | if I have a utility that anywhere in its __init__ tries to use getUtility() I get ComponentLookupErrors | 09:05 |
| tjs | when I try to register my utility | 09:05 |
| tjs | is there some way around this? | 09:06 |
| tjs | perhaps a method I could define on my util that would get called after all utils are setup? | 09:06 |
| tjs | or something.. | 09:06 |
| *** jodok has joined #zope3-dev | 09:21 | |
| *** dunny has quit IRC | 09:27 | |
| *** natea_ has quit IRC | 09:32 | |
| *** schwendinger has joined #zope3-dev | 09:34 | |
| *** jfroche has joined #zope3-dev | 09:40 | |
| *** natea_ has joined #zope3-dev | 09:42 | |
| *** tjs has left #zope3-dev | 09:43 | |
| *** kleist has joined #zope3-dev | 09:44 | |
| *** malthe has joined #zope3-dev | 09:46 | |
| *** romanofski has joined #zope3-dev | 09:49 | |
| romanofski | moin :) | 09:50 |
| *** jodok has quit IRC | 09:51 | |
| *** naro has joined #zope3-dev | 09:55 | |
| *** jodok has joined #zope3-dev | 09:58 | |
| *** timte has joined #zope3-dev | 10:07 | |
| *** yvl has joined #zope3-dev | 10:08 | |
| *** cursor has quit IRC | 10:14 | |
| *** stub has joined #zope3-dev | 10:17 | |
| *** natea_ has quit IRC | 10:18 | |
| *** stub has quit IRC | 10:47 | |
| *** schwendinger has quit IRC | 11:06 | |
| *** jodok has quit IRC | 11:15 | |
| *** schwendinger has joined #zope3-dev | 11:15 | |
| *** malthe has quit IRC | 11:16 | |
| *** malthe has joined #zope3-dev | 11:16 | |
| *** jodok has joined #zope3-dev | 11:20 | |
| *** naro has quit IRC | 11:25 | |
| *** MJ has joined #zope3-dev | 11:27 | |
| *** ferrafox has joined #zope3-dev | 11:27 | |
| *** MJ has quit IRC | 11:29 | |
| *** norro has joined #zope3-dev | 11:31 | |
| *** goschtl has joined #zope3-dev | 11:32 | |
| *** junkafarian has joined #zope3-dev | 11:47 | |
| *** b52lap has quit IRC | 11:49 | |
| *** tarek has joined #zope3-dev | 11:50 | |
| *** norro_ has joined #zope3-dev | 11:51 | |
| *** norro has quit IRC | 11:54 | |
| *** MJ has joined #zope3-dev | 11:55 | |
| *** ccomb has quit IRC | 12:07 | |
| *** mgedmin has joined #zope3-dev | 12:09 | |
| *** richardkan has joined #zope3-dev | 12:14 | |
| *** norro_ has quit IRC | 12:18 | |
| *** b52laptop has joined #zope3-dev | 12:31 | |
| *** malthe has quit IRC | 12:43 | |
| *** markusleist has quit IRC | 12:58 | |
| *** bjdevlin has joined #zope3-dev | 13:23 | |
| *** projet01_ has joined #zope3-dev | 13:25 | |
| *** naro has joined #zope3-dev | 13:26 | |
| junkafarian | is there a way to reference a requests geographical position within the zope framework? | 13:30 |
| bigkevmcd | within the usual limits imposed by what you want to do, http://svn.zope.org/z3c.iplocation/ might help | 13:31 |
| *** jodok has quit IRC | 13:32 | |
| *** schwendinger has quit IRC | 13:33 | |
| *** mkerrin has joined #zope3-dev | 13:33 | |
| * junkafarian looks sheepish | 13:34 | |
| junkafarian | how do i include that in my local install? | 13:34 |
| bigkevmcd | you need to put it on your python path | 13:35 |
| bigkevmcd | probably in your $INSTANCE_HOME/lib/python | 13:35 |
| bigkevmcd | remember that it's a package, so...you'll want z3c to be in lib/python | 13:35 |
| bigkevmcd | that does look like you need to licence some service to use it | 13:36 |
| bigkevmcd | IP location isn't very accurate using simple means, I'd presume that they provide a better way | 13:36 |
| junkafarian | 'they'? | 13:37 |
| bigkevmcd | have you looked inside the package? | 13:38 |
| bigkevmcd | it seems to use something called "ipligence-basic-demo.txt" | 13:38 |
| bigkevmcd | ipligence would appear to be a company? | 13:38 |
| bigkevmcd | indeed...ipligence.com | 13:38 |
| junkafarian | hmz | 13:39 |
| bigkevmcd | alternatively, you could wrap GeoIP | 13:39 |
| junkafarian | looking at the README | 13:39 |
| bigkevmcd | http://www.maxmind.com/app/python | 13:39 |
| junkafarian | ah | 13:39 |
| junkafarian | ^ looks very nice | 13:39 |
| junkafarian | it doesnt need to be accurate | 13:40 |
| junkafarian | it is for content distribution | 13:40 |
| junkafarian | eg where to duplicate files to | 13:40 |
| *** dunny has joined #zope3-dev | 13:55 | |
| *** niemeyer has joined #zope3-dev | 14:05 | |
| *** Newfie2007 has joined #zope3-dev | 14:06 | |
| *** rocky has joined #zope3-dev | 14:11 | |
| *** cursor has joined #zope3-dev | 14:16 | |
| *** projet01_ has quit IRC | 14:22 | |
| *** faassen has joined #zope3-dev | 14:24 | |
| goschtl | philiKON: i have some questions about zope.paste. Do you have a minute? | 14:24 |
| junkafarian | bigkevmcd: worked a treat! | 14:26 |
| junkafarian | thanks | 14:26 |
| *** dunny has quit IRC | 14:27 | |
| *** cursor has quit IRC | 14:36 | |
| philiKON | goschtl: just a minute | 14:38 |
| philiKON | goschtl: btw, zope.paste is obsolete, sorta | 14:38 |
| philiKON | at least IMO | 14:38 |
| bigkevmcd | junkafarian: which one? | 14:38 |
| junkafarian | the GeoIP one | 14:38 |
| philiKON | goschtl: zopeproject is sort of its successor | 14:38 |
| bigkevmcd | junkafarian: cool | 14:38 |
| bigkevmcd | junkafarian: I've used it, just not in a Zope3 environment :-) | 14:38 |
| junkafarian | nice streamlined API | 14:38 |
| *** Ariel_Calzada has joined #zope3-dev | 14:40 | |
| lisppaste6 | goschtl pasted "SOAP" at http://paste.lisp.org/display/45745 | 14:41 |
| goschtl | i have configured a section in my paste a soap section via urlmap. i have made a factory for optio soaplib. and this works fine. Now my question: Is it possible to access zope in the soap method? | 14:41 |
| goschtl | philiKON: i have pasted the code of the factory to http://paste.lisp.org/display/45745 | 14:42 |
| philiKON | define "access" | 14:43 |
| philiKON | you're in the same python process | 14:43 |
| philiKON | so you can do adapter lookups etc. | 14:43 |
| goschtl | i want to return the content of a folder for example | 14:43 |
| philiKON | you can also invoke the zope.publisher publishing process, perhaps | 14:43 |
| philiKON | then you need to open the database and get to the object (that folder) | 14:44 |
| goschtl | but there is no chance to use this as a kind of a view? | 14:44 |
| philiKON | eh? | 14:44 |
| goschtl | which i have a context | 14:44 |
| philiKON | no, you've written a wsgi app | 14:44 |
| philiKON | if you want views, why don't you write a view that can talk soap | 14:45 |
| philiKON | i'm sure ther eare python libraries that can talk soap | 14:45 |
| goschtl | sure it´s just a try to do that in the wsgi way | 14:46 |
| *** schwendinger has joined #zope3-dev | 14:46 | |
| philiKON | well, wsgi only knows apps | 14:46 |
| philiKON | and apps communicate using the CGI environment and streams | 14:46 |
| philiKON | they typically don't communicate using objects | 14:47 |
| goschtl | philiKON: ok thx for explaining | 14:47 |
| * philiKON afk | 14:47 | |
| *** jodok has joined #zope3-dev | 14:49 | |
| *** jsadjohnson has joined #zope3-dev | 14:54 | |
| *** jukart has joined #zope3-dev | 14:59 | |
| *** benji has joined #zope3-dev | 15:00 | |
| *** bjdevlin has quit IRC | 15:03 | |
| *** wobarcbot has quit IRC | 15:05 | |
| *** rcrafton has joined #zope3-dev | 15:24 | |
| *** afd has joined #zope3-dev | 15:24 | |
| *** johnlr2 has joined #zope3-dev | 15:25 | |
| *** johnlr1 has quit IRC | 15:25 | |
| *** afd has quit IRC | 15:28 | |
| *** afd has joined #zope3-dev | 15:28 | |
| *** Aiste_ is now known as Aiste | 15:43 | |
| *** ccomb has joined #zope3-dev | 15:44 | |
| *** pcardune has joined #zope3-dev | 15:46 | |
| *** MJ is now known as MJ|out | 15:51 | |
| *** ignas has joined #zope3-dev | 15:52 | |
| *** chacha_chaudhry has quit IRC | 15:56 | |
| *** rcrafton has quit IRC | 15:57 | |
| *** mrevoir has joined #zope3-dev | 15:58 | |
| *** mrevoir_ has joined #zope3-dev | 15:59 | |
| *** ignas has quit IRC | 16:00 | |
| *** rcrafton has joined #zope3-dev | 16:05 | |
| *** kleist has quit IRC | 16:05 | |
| *** J1m has joined #zope3-dev | 16:07 | |
| J1m | jodok, ayt? | 16:07 |
| wiggy | can someone remind me the ppix url? | 16:09 |
| benji | wiggy: http://download.zope.org/ppix | 16:09 |
| J1m | download.zope.org/ppix | 16:09 |
| wiggy | thanks | 16:09 |
| *** mrevoir has quit IRC | 16:15 | |
| *** pcardune has quit IRC | 16:16 | |
| *** baijum has quit IRC | 16:23 | |
| *** kleist has joined #zope3-dev | 16:24 | |
| *** natea_ has joined #zope3-dev | 16:24 | |
| *** stub has joined #zope3-dev | 16:26 | |
| Theuni | hmm | 16:26 |
| Theuni | Why does the Zope publication call `transaction.begin` after authenticating against the global authentication utility? | 16:26 |
| Theuni | Why not before? | 16:27 |
| Theuni | I have the use case that I have an alternate global authentication utility that talks to a database (relational via sqlalchemy) and that has a principal object that holds a reference to the database object that is the user. after transaction.begin() this reference becomes stale. | 16:28 |
| *** b52laptop has quit IRC | 16:42 | |
| *** greenman_ has quit IRC | 16:42 | |
| *** MJ|out is now known as MJ | 16:42 | |
| *** b52laptop has joined #zope3-dev | 16:43 | |
| *** edgordon has quit IRC | 16:44 | |
| mgedmin | Theuni: doesn't Zope publication pass the authenticated user's name to the transaction? | 16:49 |
| wiggy | why would it? | 16:50 |
| wiggy | you could run as multiple users within the same transaction | 16:51 |
| *** rcrafton has quit IRC | 16:56 | |
| *** jodok has quit IRC | 16:56 | |
| *** natea_ has quit IRC | 16:56 | |
| *** jukart has quit IRC | 16:58 | |
| *** pcardune has joined #zope3-dev | 16:58 | |
| Theuni | right. and the transaction annotation is done afterwardsa nyway | 16:59 |
| *** rcrafton has joined #zope3-dev | 17:01 | |
| *** ferrafox has quit IRC | 17:01 | |
| *** ferrafox has joined #zope3-dev | 17:01 | |
| *** stub has quit IRC | 17:06 | |
| *** ignas has joined #zope3-dev | 17:06 | |
| *** MJ has quit IRC | 17:09 | |
| *** jodok has joined #zope3-dev | 17:14 | |
| *** sorindregan has quit IRC | 17:15 | |
| timte | benji: I see you're working on lovely.remotetask, there's something that puzzles me about it, do you have a minute? | 17:20 |
| benji | sure; we can both be puzzled | 17:21 |
| timte | :) | 17:21 |
| afd | timte, apropos lovely.remotetask, I think there's a bug when editing a cron task | 17:21 |
| afd | there should be a "self.context.input = inputData" in the editing class | 17:22 |
| timte | benji: in the doctest README.txt there's a line that does service.add(u'echo', {'foo':'bar'}) | 17:22 |
| afd | or else the input data is not saved in the job | 17:22 |
| timte | afd: actually that's not what puzzling me :) | 17:22 |
| afd | I meant timte, benji and maybe jodok :) | 17:22 |
| timte | benji: that will add a new Job with job.input being set to {'foo':'bar'} | 17:22 |
| timte | benji: but IJob schema says that input must be of type Interface | 17:23 |
| timte | benji: tests pass, but I can't understand why | 17:23 |
| *** jodok has left #zope3-dev | 17:24 | |
| *** jodok has joined #zope3-dev | 17:24 | |
| jodok | sorry, my colloquy has a bug... i couldn't see a message above. only that someone mentioned me | 17:25 |
| afd | jodok: I think there's a bug when editing a cron task | 17:25 |
| afd | there should be a "self.context.input = inputData" in the editing class | 17:25 |
| benji | two things: nothing enforces interfaces, so IJob can say anything it wants and if the code works, it'll still work; second, zope.interface.Interface.providedBy(x) works for any value of x | 17:25 |
| afd | I mentioned your nickname when timte said that's not what's puzling him | 17:25 |
| jodok | afd: that's possible :) in case you provide a failing test and a patch, i'm happy to apply it... | 17:26 |
| benji | where "works" means "returns True" | 17:26 |
| afd | jodok: ok | 17:26 |
| *** norro has joined #zope3-dev | 17:26 | |
| timte | benji: oh ok, but when doing this in the prompt I get False, I'll check it again | 17:27 |
| benji | hmm, I don't: | 17:28 |
| benji | >>> zope.interface.Interface.providedBy({}) | 17:28 |
| benji | True | 17:28 |
| *** whit has joined #zope3-dev | 17:30 | |
| timte | >>> zope.interface.Interface.providedBy({}) | 17:30 |
| timte | False | 17:30 |
| timte | this is zope 2.9 though :) | 17:30 |
| timte | this must have changed | 17:31 |
| *** sm has joined #zope3-dev | 17:33 | |
| *** nathany_ has joined #zope3-dev | 17:33 | |
| J1m | yes, it changes | 17:33 |
| J1m | changed | 17:34 |
| timte | between 3.2 and 3.3 then I guess | 17:35 |
| J1m | yes, as part of a major component architecture refactoring and by popular demand. | 17:35 |
| timte | great, thanks | 17:37 |
| *** torkel_ has quit IRC | 17:38 | |
| *** xbeanx has quit IRC | 17:47 | |
| *** Cripps has quit IRC | 17:47 | |
| *** xbeanx has joined #zope3-dev | 17:51 | |
| *** norro has quit IRC | 17:52 | |
| *** rcrafton has quit IRC | 17:52 | |
| *** projekt01 has joined #zope3-dev | 17:54 | |
| *** rcrafton has joined #zope3-dev | 17:59 | |
| *** natea|intransit has joined #zope3-dev | 18:10 | |
| *** natea|intransit is now known as natea | 18:11 | |
| *** natea_ has joined #zope3-dev | 18:15 | |
| *** xbeanx has quit IRC | 18:15 | |
| *** natea has quit IRC | 18:16 | |
| *** natea_ has quit IRC | 18:18 | |
| *** goschtl has quit IRC | 18:22 | |
| *** xbeanx has joined #zope3-dev | 18:23 | |
| *** pbugni has joined #zope3-dev | 18:30 | |
| *** afd has quit IRC | 18:30 | |
| *** Aiste has quit IRC | 18:38 | |
| *** Aiste has joined #zope3-dev | 18:38 | |
| *** xbeanx has quit IRC | 18:45 | |
| *** whit has quit IRC | 18:50 | |
| *** projekt01 has quit IRC | 18:53 | |
| *** xbeanx has joined #zope3-dev | 18:55 | |
| *** afd_ has joined #zope3-dev | 18:55 | |
| *** timte has quit IRC | 18:56 | |
| *** nathany_ has quit IRC | 18:56 | |
| *** nathany has joined #zope3-dev | 18:56 | |
| *** Jell-O-Fishi has joined #zope3-dev | 19:03 | |
| *** whit has joined #zope3-dev | 19:05 | |
| *** whit is now known as whit|pspt | 19:06 | |
| *** afd has joined #zope3-dev | 19:12 | |
| *** reco has joined #zope3-dev | 19:18 | |
| *** RaFromBRC has joined #zope3-dev | 19:26 | |
| *** afd has quit IRC | 19:26 | |
| *** alecm has joined #zope3-dev | 19:31 | |
| *** MJ has joined #zope3-dev | 19:34 | |
| *** Jell-O-Fishi has quit IRC | 19:38 | |
| *** whit|pspt has quit IRC | 19:41 | |
| *** jodok has quit IRC | 19:41 | |
| *** whit|pspt has joined #zope3-dev | 19:42 | |
| *** jodok has joined #zope3-dev | 19:42 | |
| *** romanofski has quit IRC | 19:44 | |
| *** yvl has quit IRC | 19:50 | |
| *** natea_ has joined #zope3-dev | 19:50 | |
| *** yvl has joined #zope3-dev | 19:51 | |
| *** jorge` has joined #zope3-dev | 19:57 | |
| *** jorge` has left #zope3-dev | 19:58 | |
| *** yvl has quit IRC | 20:08 | |
| *** kleist has quit IRC | 20:10 | |
| *** ferrafox has quit IRC | 20:19 | |
| *** whit|pspt has quit IRC | 20:28 | |
| *** richardkan has quit IRC | 20:28 | |
| *** schwendinger_ has joined #zope3-dev | 20:29 | |
| *** schwendinger has quit IRC | 20:30 | |
| *** schwendinger has joined #zope3-dev | 20:30 | |
| *** sm has quit IRC | 20:35 | |
| *** xxbeanxx has joined #zope3-dev | 20:36 | |
| *** xbeanx has quit IRC | 20:37 | |
| *** marianom has joined #zope3-dev | 20:38 | |
| *** junkafarian has quit IRC | 20:44 | |
| *** xxbeanxx is now known as xbeanx | 20:46 | |
| *** b52laptop has quit IRC | 20:48 | |
| *** reco has quit IRC | 20:48 | |
| *** schwendinger_ has quit IRC | 20:48 | |
| *** reco has joined #zope3-dev | 20:52 | |
| *** whit|pspt has joined #zope3-dev | 20:56 | |
| *** sm has joined #zope3-dev | 20:57 | |
| *** projekt01 has joined #zope3-dev | 20:58 | |
| *** reco has quit IRC | 21:04 | |
| *** edgordon has joined #zope3-dev | 21:05 | |
| *** hazmat has joined #zope3-dev | 21:05 | |
| *** ChanServ sets mode: +o hazmat | 21:05 | |
| *** yvl has joined #zope3-dev | 21:06 | |
| *** schwendinger has quit IRC | 21:14 | |
| *** whit|pspt has quit IRC | 21:15 | |
| *** markusleist has joined #zope3-dev | 21:15 | |
| *** hazmat has quit IRC | 21:19 | |
| *** norro has joined #zope3-dev | 21:21 | |
| *** whit|pspt has joined #zope3-dev | 21:24 | |
| *** tarek has left #zope3-dev | 21:27 | |
| *** naro has quit IRC | 21:29 | |
| *** edgordon has quit IRC | 21:32 | |
| *** naro has joined #zope3-dev | 21:33 | |
| *** xbeanx has quit IRC | 21:36 | |
| *** markusleist has quit IRC | 21:42 | |
| *** xbeanx has joined #zope3-dev | 21:43 | |
| *** markusleist has joined #zope3-dev | 21:43 | |
| *** natea_ has quit IRC | 21:50 | |
| *** whit|pspt has quit IRC | 21:51 | |
| *** naro has quit IRC | 21:52 | |
| *** whit|pspt has joined #zope3-dev | 21:53 | |
| *** jodok has quit IRC | 21:58 | |
| *** benji has quit IRC | 22:01 | |
| *** yvl has quit IRC | 22:03 | |
| *** jodok has joined #zope3-dev | 22:04 | |
| *** mgedmin has quit IRC | 22:08 | |
| *** timte has joined #zope3-dev | 22:17 | |
| *** afd_ has quit IRC | 22:17 | |
| *** Newfie2007 has quit IRC | 22:18 | |
| *** afd_ has joined #zope3-dev | 22:18 | |
| *** regebro has joined #zope3-dev | 22:20 | |
| *** regebro has left #zope3-dev | 22:21 | |
| *** afd_ has quit IRC | 22:25 | |
| *** deo has joined #zope3-dev | 22:26 | |
| *** nathany has quit IRC | 22:28 | |
| *** whit|pspt has quit IRC | 22:28 | |
| *** b52laptop has joined #zope3-dev | 22:29 | |
| *** pbugni has quit IRC | 22:33 | |
| *** dunny has joined #zope3-dev | 22:35 | |
| *** nathany has joined #zope3-dev | 22:37 | |
| *** whit has joined #zope3-dev | 22:46 | |
| *** jfroche has quit IRC | 22:51 | |
| *** jfroche has joined #zope3-dev | 22:51 | |
| *** encompass has joined #zope3-dev | 22:53 | |
| encompass | hi guys, I am a GSoC student working with a nifty program called pystart, a program to teach people that basics of python... | 22:54 |
| *** RaFromBRC is now known as RaFromBRC|lunch | 22:54 | |
| encompass | I am using the restricted python module which has been a lifesave for me but I have one issue... | 22:54 |
| encompass | I need to know how to propery get the output of the ta | 22:54 |
| encompass | I need to know how to propery get the output of the stack trace from the restricted code that was executed and place it into a string. How would you best do that? | 22:55 |
| encompass | Sounds off subject, but the guys in python don't use restricted python everyday... zope uses it. So I am hoping to get a solution through this angle. | 22:57 |
| philiKON | hmmm | 22:57 |
| philiKON | how is the stack trace of the restricted code different from any other stack trace? | 22:58 |
| philiKON | can't you simply get it from sys.exc_info? | 22:58 |
| encompass | well I have it printing to the screen... let me pastebin a snippet | 22:58 |
| philiKON | i don't think RestrictedPython is any different from regular code when it comes to tracebacks | 22:59 |
| philiKON | i might be wrong | 22:59 |
| encompass | http://paste.ubuntu-nl.org/32965/ | 22:59 |
| philiKON | but all the restricted compiler does is insert more statements | 22:59 |
| philiKON | the execution is the standard python interpreter | 22:59 |
| philiKON | via exec | 23:00 |
| encompass | line 11 | 23:00 |
| philiKON | so the traceback should be avalable from the standard location | 23:00 |
| philiKON | right | 23:00 |
| encompass | how would you do it? | 23:00 |
| encompass | this is something I have never had to do... | 23:00 |
| philiKON | well, this looks good | 23:01 |
| philiKON | i would probably do it the same way :) | 23:01 |
| encompass | but it isn't in a variable | 23:01 |
| encompass | that is the catch in all this | 23:01 |
| philiKON | ah, wait | 23:01 |
| philiKON | that "testing" thing? | 23:01 |
| encompass | just a sec | 23:02 |
| philiKON | you're probably using traceback.print_exc wrong | 23:02 |
| philiKON | you're most definitely misunderstanding how keyword parameters work | 23:02 |
| encompass | it should say file | 23:02 |
| encompass | I was jsut messing and hadn't changed it back sorry | 23:02 |
| philiKON | print_exc(limit[, file]]) is the signature | 23:03 |
| philiKON | see http://docs.python.org/lib/module-traceback.html | 23:03 |
| philiKON | anyway, just to be clear: i don't know what makes you think this is RestrictedPython-specific. This is standard python stuff (not everyday python stuff, but still not particular to RestrictedPython) | 23:04 |
| encompass | http://paste.ubuntu-nl.org/32966/ is the updated | 23:04 |
| encompass | well, yeah, I still can't put it into a variable | 23:04 |
| philiKON | because you're using the wrong function | 23:05 |
| philiKON | you should use format_exc | 23:05 |
| encompass | oh?! | 23:05 |
| philiKON | it's right below print_exc in http://docs.python.org/lib/module-traceback.html | 23:05 |
| philiKON | naturally you *can* use print_exc if you passed it a file object | 23:05 |
| philiKON | e.g. a StringIO | 23:05 |
| philiKON | but that's just backwards | 23:06 |
| encompass | yeah that is where I think I was going | 23:06 |
| philiKON | ... RTFM, dude :) | 23:06 |
| encompass | hehe | 23:06 |
| encompass | I did | 23:06 |
| encompass | have had it in front of my all day | 23:06 |
| encompass | hehe | 23:06 |
| philiKON | anyway, still OT here... | 23:06 |
| philiKON | glad to help though | 23:06 |
| encompass | thanks, I will look at it | 23:06 |
| *** benji has joined #zope3-dev | 23:07 | |
| *** tarek has joined #zope3-dev | 23:07 | |
| *** greenman has joined #zope3-dev | 23:07 | |
| *** faassen has quit IRC | 23:08 | |
| *** ignas has quit IRC | 23:09 | |
| *** ksmith99 has left #zope3-dev | 23:10 | |
| * encompass give philiKON a freaking huge hug... my mentor didn't even know how to fix it! | 23:12 | |
| encompass | that did it... | 23:12 |
| encompass | thanks, now I get to go to bed... :D | 23:13 |
| philiKON | g'night | 23:13 |
| *** jodok has quit IRC | 23:21 | |
| *** RaFromBRC|lunch is now known as RaFromBRC | 23:22 | |
| *** mkerrin has quit IRC | 23:24 | |
| *** ktwilight_ has joined #zope3-dev | 23:25 | |
| *** sm has quit IRC | 23:30 | |
| *** ignas has joined #zope3-dev | 23:32 | |
| *** edgordon has joined #zope3-dev | 23:33 | |
| *** redir has joined #zope3-dev | 23:34 | |
| *** dunny has quit IRC | 23:37 | |
| *** jodok has joined #zope3-dev | 23:37 | |
| *** ktwilight has quit IRC | 23:40 | |
| *** nathany has quit IRC | 23:52 | |
Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!