*** tomus has quit IRC | 00:02 | |
timte | works if I have zope.Public instead | 00:12 |
---|---|---|
srichter | have you set an authorization header in your testbrowser? | 00:13 |
timte | I don't have a testbrowser, I'm doing xmlrpc calls using xmlrpclib | 00:15 |
srichter | you still have to set the authentication header | 00:15 |
timte | I get this error when doing xmlconfig.string(...) before any xmlrpc calls though | 00:15 |
timte | and in that xml I have zope.View | 00:16 |
srichter | then you have to call more configuration files | 00:18 |
srichter | specifically the one defining zope.View | 00:18 |
srichter | btw, why don't you just use a functional test setup? | 00:18 |
timte | I think I do, doesn't FunctionalDocFileSuite fix that? | 00:19 |
*** natea is now known as natea|away | 00:19 | |
srichter | yes, you should not need to load anymore ZCML after that | 00:20 |
timte | I pass setUp=setUp to FunctionalDocFileSuite, but that shouldn't override the other setUp, should it? | 00:21 |
srichter | no | 00:21 |
*** b_52Centos has quit IRC | 00:21 | |
*** ignas has quit IRC | 00:22 | |
timte | I think removing zope.component.testing.setup() from my setUp fixed it | 00:25 |
srichter | of course! | 00:25 |
timte | that's easy for you to say :) | 00:26 |
srichter | setup() cleans out the component registry | 00:26 |
timte | oh | 00:26 |
timte | should I be able to make xml-rpc calls to localhost:8080 in a test? | 00:29 |
srichter | probably not, since the server does not come up | 00:29 |
srichter | I am pretty sure we have some XML-RPC support for functional testing though | 00:30 |
timte | in the xmlrpc testing code in the zope core they use print http("""...""") | 00:30 |
*** RaFromBRC is now known as RaFromBRC|lunch | 00:30 | |
srichter | right | 00:30 |
srichter | http() calls the publisher directly | 00:30 |
timte | aha | 00:31 |
srichter | however, you can do the same trick as testbrowser and register a fake HTTP handler with urllib2, and then xmlrpclib should work | 00:31 |
timte | hmm | 00:33 |
timte | but should I really be able to do server=xmlrpclib.Setver('http;//localhost:8080'); server.someMethod() ? | 00:37 |
srichter | yep :-) | 00:37 |
srichter | the server address will be simply ignored | 00:38 |
srichter | I knoew it existed already :-) | 00:38 |
srichter | see zope.app.testing.xmlrpc | 00:39 |
srichter | including turning error handling off in the publisher | 00:39 |
timte | there's no such package | 00:39 |
srichter | I doubt that | 00:40 |
srichter | it is deifnitely in the trunk | 00:40 |
*** b_52Centos has joined #zope3-dev | 00:40 | |
timte | ok, I have 3.3.0 | 00:40 |
srichter | yeah, it seems new :-) | 00:40 |
srichter | yeah, it is on the 3.4 new features list | 00:41 |
*** jkakar has joined #zope3-dev | 00:41 | |
*** d2m has quit IRC | 01:00 | |
timte | so I both need trunk and register a fake http handler? | 01:07 |
srichter | you need the trunk | 01:08 |
srichter | then simply use the zope.app.testing.xmlrpc.ServerProxy | 01:08 |
srichter | and you are all set | 01:08 |
srichter | this particular ServerProxy does already the trick for you | 01:08 |
* timte tries this | 01:09 | |
*** grahal has joined #zope3-dev | 01:12 | |
*** RaFromBRC|lunch is now known as RaFromBRC | 01:17 | |
*** natea|away is now known as natea | 01:22 | |
*** yota has quit IRC | 01:34 | |
*** harobed has quit IRC | 01:40 | |
*** J1m has quit IRC | 01:51 | |
*** natea has quit IRC | 01:59 | |
*** reco has joined #zope3-dev | 02:02 | |
*** jodok has quit IRC | 02:04 | |
*** philiKON has quit IRC | 02:29 | |
*** wrobel has quit IRC | 03:23 | |
timte | '\x00\x00\x00\x00\x00\x00\x00&' | 04:20 |
timte | isn't that a strange _p_oid ? | 04:20 |
*** redir has joined #zope3-dev | 04:21 | |
*** b_52Centos has quit IRC | 04:38 | |
*** alecm has quit IRC | 04:39 | |
*** b_52Centos has joined #zope3-dev | 04:39 | |
*** timte has quit IRC | 04:44 | |
*** stub has joined #zope3-dev | 04:45 | |
*** projekt01 has joined #zope3-dev | 05:27 | |
*** stu1 has joined #zope3-dev | 05:35 | |
*** Bhaskar has joined #zope3-dev | 05:50 | |
*** stu1 has quit IRC | 05:53 | |
*** stub has quit IRC | 05:54 | |
*** stub has joined #zope3-dev | 05:57 | |
Bhaskar | I want to install Zope 3.3.0 , while ./configure is done it shows python version 2.4.3 found at /usr/bin/python, then i run python 2.4 install.py -q build command then error: command 'gcc' failed with exit status 1, how can i install now | 06:03 |
*** jkakar has quit IRC | 06:31 | |
*** baijum has joined #zope3-dev | 06:31 | |
*** natea has joined #zope3-dev | 07:00 | |
*** philiKON has joined #zope3-dev | 07:00 | |
*** natea has quit IRC | 07:02 | |
*** natea has joined #zope3-dev | 07:02 | |
*** RaFromBRC has quit IRC | 07:30 | |
*** b_52Centos has quit IRC | 07:54 | |
*** b_52Centos has joined #zope3-dev | 07:55 | |
*** philiKON has quit IRC | 08:01 | |
*** eins has joined #zope3-dev | 08:05 | |
*** natea has quit IRC | 08:21 | |
*** alecm has joined #zope3-dev | 08:47 | |
*** Bhaskar has quit IRC | 08:49 | |
*** Bhaskar has joined #zope3-dev | 08:52 | |
*** Bhaskar has quit IRC | 08:56 | |
*** Bhaskar has joined #zope3-dev | 08:58 | |
*** Bhaskar has quit IRC | 09:09 | |
*** Bhaskar has joined #zope3-dev | 09:10 | |
*** jkakar has joined #zope3-dev | 09:16 | |
*** tgkuoZp has joined #zope3-dev | 09:16 | |
*** alecm has quit IRC | 09:21 | |
*** d2m has joined #zope3-dev | 09:34 | |
*** dobee has joined #zope3-dev | 09:35 | |
*** jodok has joined #zope3-dev | 09:38 | |
*** projekt01 has quit IRC | 09:45 | |
*** schwendinger has quit IRC | 09:48 | |
*** HakTom has joined #zope3-dev | 09:49 | |
*** schwendinger has joined #zope3-dev | 10:00 | |
*** jkakar has quit IRC | 10:04 | |
*** droogie has joined #Zope3-dev | 10:06 | |
*** tgkuoZp has left #zope3-dev | 10:07 | |
*** HakTom has quit IRC | 10:15 | |
*** henri_ has joined #zope3-dev | 10:34 | |
*** Bhaskar has quit IRC | 10:34 | |
*** yota has joined #zope3-dev | 10:36 | |
*** jfroche has joined #zope3-dev | 10:36 | |
*** harobed has joined #zope3-dev | 10:40 | |
*** wrobel has joined #zope3-dev | 10:44 | |
*** ofer has joined #zope3-dev | 11:02 | |
*** dunny has quit IRC | 11:06 | |
*** ofer has quit IRC | 11:09 | |
*** jinty has joined #zope3-dev | 11:28 | |
*** Bhaskar has joined #zope3-dev | 12:08 | |
*** jfroche has quit IRC | 12:31 | |
*** faassen has joined #zope3-dev | 12:53 | |
*** henri_ has quit IRC | 12:57 | |
*** henri_ has joined #zope3-dev | 13:03 | |
*** henri_ has quit IRC | 13:12 | |
*** waa has joined #zope3-dev | 13:13 | |
*** henri_ has joined #zope3-dev | 13:14 | |
*** Bhaskar has quit IRC | 13:24 | |
*** b_52Centos has quit IRC | 13:28 | |
*** b_52Centos has joined #zope3-dev | 13:29 | |
*** afd_ has joined #zope3-dev | 13:42 | |
*** mgedmin has joined #zope3-dev | 13:44 | |
*** jodok has quit IRC | 13:49 | |
*** rocky|away is now known as rocky | 13:54 | |
*** projekt01 has joined #zope3-dev | 13:58 | |
*** ignas has joined #zope3-dev | 14:03 | |
*** waa has quit IRC | 14:06 | |
*** schwendinger has quit IRC | 14:15 | |
*** rocky is now known as rocky|away | 14:16 | |
*** faassen has quit IRC | 14:16 | |
*** rocky|away is now known as rocky | 14:28 | |
*** oferw has joined #zope3-dev | 14:29 | |
*** alga has joined #zope3-dev | 14:50 | |
*** stub has quit IRC | 14:55 | |
*** _projekt01 has joined #zope3-dev | 15:01 | |
*** ignas has quit IRC | 15:17 | |
*** J1m has joined #zope3-dev | 15:17 | |
*** projekt01 has quit IRC | 15:19 | |
*** tomus has joined #zope3-dev | 15:21 | |
*** natea has joined #zope3-dev | 15:22 | |
*** natea has quit IRC | 15:25 | |
* mgedmin wishes zope.component had a trivial Adapter base class with just def __init__(self.context): self.context = context | 15:40 | |
*** natea has joined #zope3-dev | 15:43 | |
rocky | mgedmin: lol, why? i hate inheriting from useless base classes ;) | 15:44 |
*** schwendinger has joined #zope3-dev | 15:44 | |
mgedmin | stubs | 15:46 |
mgedmin | I tend to write many tiny stub adapters in unit tests | 15:47 |
mgedmin | sometimes the __init__ nearly doubles the size of the stub | 15:47 |
*** alga has quit IRC | 15:59 | |
* baijum planning to use Test layers for zope.* packages (see this patch: http://zissue.berlios.de/z3/zope-testbrowser-diff.txt ) | 16:01 | |
* baijum When running the tests the output will be like this : http://zope3.pastebin.com/851855 | 16:01 | |
* baijum If the patch is OK, I wan to use Test layers for other packages also. | 16:01 | |
*** alga has joined #zope3-dev | 16:02 | |
* baijum hmm.. may be I should send a mail to zope3-dev list | 16:03 | |
J1m | baijum, that's precisely the direction I want us to go. | 16:03 |
J1m | A message to the list would be a good idea. | 16:04 |
*** redir has quit IRC | 16:06 | |
baijum | J1m, ok | 16:06 |
*** j-w has joined #zope3-dev | 16:12 | |
*** Theuni is now known as Theuni|Martijn|W | 16:12 | |
*** Theuni|Martijn|W is now known as Theuni|groksprin | 16:12 | |
Theuni|groksprin | J1m: martijn is going to ask you a security question in a second. He told me not to tell you. | 16:12 |
*** faassen has joined #zope3-dev | 16:12 | |
faassen | hi there | 16:12 |
faassen | J1m: are you there? :) | 16:13 |
J1m | yes | 16:13 |
faassen | J1m: remember when we talked on skype about a way to globally disable security proxy generation in Zope 3 somehow? | 16:13 |
faassen | J1m: 'cuz I don't. :) | 16:13 |
J1m | yes | 16:13 |
J1m | It is pretty simple. | 16:14 |
faassen | J1m: could you point theuni in the right directions for me? :) | 16:14 |
faassen | sorry, we're at the sprint here so I'm playing this IRC for laughs a bit. | 16:14 |
faassen | but it's a serious question nonetheless. | 16:14 |
J1m | Leaving aside "untrusted code" ... | 16:14 |
faassen | right, only view-level security, everything's trusted. | 16:14 |
J1m | The publication object adds the security proxies. | 16:15 |
J1m | All you need to do is to replace the publication component with a different one that does something else. | 16:15 |
*** baijum has quit IRC | 16:15 | |
faassen | theuni says this is pretty easy. :) | 16:15 |
faassen | are there other bits that do proxy-wrapping? | 16:16 |
J1m | Other people have done it before to use RDBMSs rather than the ZODB, for example. | 16:16 |
Theuni|groksprin | i remember some page template code to do proxying | 16:16 |
J1m | That is untrusted code support. | 16:16 |
faassen | okay, so that's the stuff you were leaving aside. | 16:16 |
Theuni|groksprin | Ah right. We don't need that. | 16:16 |
*** Theuni|groksprin is now known as Theuni | 16:17 | |
J1m | if you don't use any untrusted code interpreters, then you shouldn't have a problem. | 16:17 |
Theuni | and we'll notice when we do anyway ;) | 16:17 |
faassen | um, are we using any of such interpreters? :) | 16:17 |
J1m | Other than maybe odd application code that bothers to add proxies, typically after removing them for some reason. | 16:17 |
*** j-w has left #zope3-dev | 16:17 | |
faassen | I recall the resources story messed about some with proxies. | 16:17 |
* J1m shrugs | 16:18 | |
Theuni | No, I think we only used checkers. | 16:18 |
faassen | we had some trouble getting it not to. | 16:18 |
faassen | okay. | 16:18 |
* Theuni checks. | 16:18 | |
faassen | we still haven't gotten it not to do so entirely, it breaks when you go beyond one directory level complaining about something being None again. | 16:18 |
faassen | we will figure this out ourselves. :) | 16:19 |
Theuni | No proxies are added by us, we just tried to make them work for us. | 16:19 |
*** eins has quit IRC | 16:23 | |
*** grahal is now known as grahalAFK | 16:24 | |
*** natea has quit IRC | 16:27 | |
*** J1m has quit IRC | 16:31 | |
*** J1m has joined #zope3-dev | 16:37 | |
*** ignas has joined #zope3-dev | 16:48 | |
ignas | hi, has anyone encountered/solved the warning problem with zope.* eggs installed in parallel with Zope3 checkout? | 16:49 |
ignas | i am getting warning when running tests or the application because of __init__.py files in the egg zope/ folder | 16:50 |
ignas | as Zope3 already has zope module (naturally) | 16:50 |
*** natea has joined #zope3-dev | 16:53 | |
*** henri_ has quit IRC | 16:54 | |
*** natea has joined #zope3-dev | 16:55 | |
*** reco has joined #zope3-dev | 16:57 | |
*** natea has quit IRC | 16:58 | |
*** natea has joined #zope3-dev | 17:00 | |
*** henri_ has joined #zope3-dev | 17:01 | |
*** oferw has quit IRC | 17:03 | |
ignas | J1m: you being the author (according to setup.py) of zope.ucol, maybe you could repackage it? It was packaged with a modified setup.py (different from the one in svn) that wants CHANGES.txt (which is absent in the egg). Or just download it from http://ignas.pov.lt/zope.ucol-1.0.2-py2.4-linux-i686.egg and upload it to http://download.zope.org/distribution/ (hope i have packaged the svn trunk version the right way) | 17:03 |
*** jodok has joined #zope3-dev | 17:04 | |
J1m | ignas, Have you tried the one in PyPI? | 17:05 |
ignas | hmm, no i haven't | 17:05 |
J1m | I did some work on that a while ago. I thought it did the right thing. | 17:05 |
J1m | I know we're using it. | 17:05 |
ignas | schooltool has http://download.zope.org/distribution/ set as the source, but i guess i can add the PyPI path to the setup i guess | 17:06 |
J1m | ignas, schooltool should start using buildout. :) | 17:06 |
J1m | I'll note that there is reason to believe that OSA's ICU wrapper has become a lot easier to deal with since they stopped using SWIG. | 17:07 |
ignas | maybe we should, don't have much time to try out new things though ... | 17:07 |
J1m | My hope would be that maybe someday zope.ucol could go away. | 17:07 |
ignas | OSA's ICU wrapper? | 17:07 |
J1m | I only wrote zope.ucol because PyICU was such a PITA to install. | 17:08 |
J1m | Yes, PyICU. | 17:08 |
ignas | i would hope zope.locales having collation information ;) | 17:08 |
* J1m double checks that, | 17:08 | |
ignas | it has none | 17:08 |
J1m | google://pyicu | 17:09 |
* ignas is looking if it's in edgy | 17:09 | |
J1m | Perhaps someday we can drop a lot of our own ICU support and use PyICU. | 17:09 |
ignas | because else we need egg or svn access | 17:10 |
J1m | OTOH, I haven't tried PyICU since I decided to write zope.ucol instead. :) | 17:10 |
J1m | I would hope they have a sane source distro now. | 17:10 |
J1m | If they do, then it should work with easy_install and buildout | 17:11 |
ignas | if we were using buildout ... | 17:11 |
ignas | J1m: any ideas about warnings the zope.* eggs? | 17:13 |
J1m | I don't know what you are asking. | 17:14 |
* ignas had to package zope.html, zope.file, zope.mimetype as eggs to make schooltool setup easier (no svn co's in Makefile ...) | 17:14 | |
ignas | and now i am getting warnings "/home/ignas/src/schooltool-lyceum/Zope3/src/zc.i18n-0.5.1-py2.4.egg/zc/__init__.py:3: UserWarning: Module zope was already imported from /home/ignas/src/schooltool-lyceum/Zope3/src/zope.ucol-1.0.2-py2.4-linux-i686.egg/zope/__init__.pyc, but /home/ignas/src/schooltool-lyceum/Zope3/src/zope.html-0.0.1-py2.4.egg is being added to sys.path" | 17:15 |
ignas | oops, sorry wrong warning | 17:15 |
ignas | oh, no, it's the rigt one | 17:15 |
ignas | zope.html has zope/html/ with an __init__.py in zope/, have i done something wrong while packaging them as eggs ? | 17:16 |
J1m | did you set up zope as a namespace package in each of your eggs. | 17:17 |
J1m | ? | 17:17 |
ignas | hmm, no, i think i didn't, not sure though, i have copy pasted most of the setup.py from zope.ucol egg | 17:18 |
J1m | Read the setuptools documentation. :) | 17:19 |
J1m | Or at least skim it. | 17:19 |
ignas | ok :) | 17:19 |
ignas | hmm, zope.ucol packaged with setup.py from zope.ucol svn is throwing the warning too ... | 17:20 |
*** jfroche has joined #zope3-dev | 17:24 | |
ignas | J1m: thank's, it worked, i am not getting warnings anymore | 17:27 |
J1m | cool | 17:27 |
ignas | i think namespace_packages=["zope"] should be added to ucol setup.py as well | 17:27 |
ignas | because the egg in PyPI doesn't have it | 17:27 |
J1m | that's a fairly serious bug. I'm surprised. | 17:28 |
J1m | dang | 17:28 |
*** jfroche has quit IRC | 17:30 | |
*** grahalAFK is now known as grahal | 17:34 | |
J1m | ignas, if you feel like fixing zope.ucol, I'd be happy to make it so youcan upload new distros to PiPy. | 17:35 |
J1m | sorry | 17:35 |
J1m | pyPI | 17:35 |
J1m | :) | 17:35 |
J1m | PyPI | 17:35 |
ignas | hmm, on one hand = i | 17:35 |
ignas | i could do it, bt i can | 17:35 |
ignas | sorry for typos | 17:35 |
ignas | can't tag them in the svn | 17:35 |
ignas | and i am not sure eggs packaged by me would really work :) | 17:36 |
J1m | :) | 17:36 |
ignas | i mean i have packaged my first egg today | 17:36 |
J1m | I don't know when I'll get back to zope.ucol. | 17:37 |
J1m | If you happen to find time to do it sooner than me, then let me know. | 17:37 |
J1m | If not, that's fine. | 17:37 |
*** philiKON has joined #zope3-dev | 17:38 | |
ignas | at the moment i am using ignas.pov.lt as the storage of schooltool specific "ugly packages without description because i am not the author" eggs | 17:38 |
J1m | That is your PyPI user id? | 17:39 |
ignas | no that is my web space on pov server | 17:39 |
ignas | i would gladly have zope.html, zope.file, zope.mimetype packaged properly, but i can't compose the description as I don't know what they do ... | 17:39 |
J1m | :) | 17:39 |
ignas | dependency_links=['http://ignas.pov.lt', 'http://download.zope.org/distribution/'] kind of works | 17:40 |
*** henri_ has left #zope3-dev | 17:42 | |
*** henri_ has joined #zope3-dev | 17:46 | |
*** afd_ has quit IRC | 17:56 | |
*** alecm has joined #zope3-dev | 18:06 | |
*** alecm has quit IRC | 18:07 | |
*** grahal has quit IRC | 18:10 | |
*** philiKON has quit IRC | 18:17 | |
*** jkakar has joined #zope3-dev | 18:18 | |
*** natea has quit IRC | 18:19 | |
*** grahal has joined #zope3-dev | 18:20 | |
*** natea has joined #zope3-dev | 18:21 | |
*** natea has quit IRC | 18:24 | |
*** philiKON has joined #zope3-dev | 18:34 | |
*** droogie has quit IRC | 18:39 | |
*** henri_ has quit IRC | 18:44 | |
*** natea has joined #zope3-dev | 18:49 | |
*** natea has quit IRC | 18:50 | |
*** droogie has joined #Zope3-dev | 18:56 | |
*** jfroche has joined #zope3-dev | 19:06 | |
*** dobee has quit IRC | 19:08 | |
*** schwendinger has quit IRC | 19:12 | |
*** alecm has joined #zope3-dev | 19:14 | |
*** faassen has quit IRC | 19:25 | |
*** harobed has quit IRC | 19:28 | |
*** natea has joined #zope3-dev | 19:33 | |
*** jodok has quit IRC | 19:33 | |
*** natea has quit IRC | 19:36 | |
*** srichter has quit IRC | 19:44 | |
*** dunny has joined #zope3-dev | 19:45 | |
*** srichter has joined #zope3-dev | 19:48 | |
*** ChanServ sets mode: +o srichter | 19:48 | |
*** jfroche has quit IRC | 19:53 | |
*** _projekt01 has left #zope3-dev | 20:04 | |
*** RaFromBRC has joined #zope3-dev | 20:22 | |
*** alecm has quit IRC | 20:28 | |
*** alecm has joined #zope3-dev | 20:29 | |
*** ignas has quit IRC | 20:40 | |
*** jfroche has joined #zope3-dev | 20:54 | |
*** natea has joined #zope3-dev | 21:06 | |
*** droogie has quit IRC | 21:06 | |
*** jodok has joined #zope3-dev | 21:08 | |
*** tomus has quit IRC | 21:21 | |
*** dobee has joined #zope3-dev | 21:41 | |
*** schwendinger has joined #zope3-dev | 21:42 | |
*** whit has quit IRC | 21:50 | |
*** whit has joined #zope3-dev | 21:50 | |
*** grahal has quit IRC | 21:56 | |
*** whit has joined #zope3-dev | 22:14 | |
*** whitmo has joined #zope3-dev | 22:17 | |
*** whit has quit IRC | 22:32 | |
*** rocky is now known as rocky|away | 22:40 | |
*** alga has quit IRC | 22:46 | |
*** oferw has joined #zope3-dev | 22:57 | |
*** schwendinger_ has joined #zope3-dev | 23:07 | |
*** hazmat has joined #zope3-dev | 23:11 | |
*** ChanServ sets mode: +o hazmat | 23:11 | |
*** schwendinger has quit IRC | 23:25 | |
*** whitmo has quit IRC | 23:31 | |
*** whit has joined #zope3-dev | 23:57 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!