IRC log of #zope for Wednesday, 2010-07-07

*** d2m has left #zope00:01
*** JaRoel|4D has joined #zope00:03
*** jim_SFU has joined #zope00:05
*** vipod has quit IRC00:08
*** jim_SFU has quit IRC00:10
*** MatthewWilkes has joined #zope00:11
*** Theuni1 has quit IRC00:19
*** povbot has joined #zope00:27
*** TresEquis has joined #zope00:31
*** redir has quit IRC00:31
*** webmaven has quit IRC00:53
*** TresEquis has quit IRC00:56
*** TomBlockley has joined #zope01:04
*** aaronv has joined #zope01:07
*** aaronv has quit IRC01:08
*** jim_SFU has joined #zope01:12
*** alecm has quit IRC01:13
*** alecm has joined #zope01:14
CIA-94jim * r114272 zc.ngi/src/zc/ngi/old.test: Fixed up some references to older interfaces.01:16
*** r0ver has quit IRC01:27
*** jim_SFU has quit IRC01:30
*** allisterb has quit IRC01:36
*** allisterb has joined #zope01:36
*** TomBlockley has quit IRC01:43
*** Arfrever has quit IRC01:49
*** Arfrever has joined #zope01:52
*** alecm has left #zope01:53
*** alvaro has joined #zope02:08
*** davisagli|away is now known as davisagli02:15
*** alvaro has quit IRC02:16
*** alvaro has joined #zope02:16
CIA-94jim * r114273 zc.ngi/buildout.cfg: Reenable deprecation warnings in Python 2.7 and later. :(02:18
*** davisagli is now known as davisagli|away02:23
*** MatthewWilkes has quit IRC02:35
*** AnneGilles has quit IRC02:42
*** MrTango has quit IRC02:52
*** daMaestro has quit IRC02:54
*** alecm has joined #zope03:00
*** daMaestro has joined #zope03:07
CIA-94rogerineichen * r114274 (3 files in 2 dirs): added support for environment in script recipe03:14
*** davisagli|away is now known as davisagli03:18
*** davisagli is now known as davisagli|away03:20
*** alvaro has quit IRC03:23
*** alvaro has joined #zope03:23
*** jan_s has joined #zope03:24
*** r0ver has joined #zope03:28
*** alvaro has quit IRC03:29
*** alvaro has joined #zope03:29
*** alvaro has quit IRC03:34
*** alvaro has joined #zope03:34
*** daMaestro has quit IRC03:36
*** tiwula has quit IRC03:38
*** zkc has joined #zope03:52
*** touff has quit IRC04:02
*** alvaro has quit IRC05:34
*** benji has quit IRC05:37
*** lafille has joined #zope06:37
*** lafille has quit IRC06:38
*** betabug has quit IRC06:47
*** betabug has joined #zope06:47
*** jennyf has joined #zope07:17
*** jennyf has quit IRC07:20
*** mahiti_skt has joined #zope07:27
*** vipod has joined #zope07:50
*** redir has joined #zope08:05
*** baijum has joined #zope08:12
*** agroszer has joined #zope08:14
*** sashav has quit IRC08:33
*** __mac__ has joined #zope08:41
*** mcdonc has joined #zope08:54
*** JaRoel|4D has quit IRC08:55
CIA-94adamg * r114275 (src/zope/app/applicationcontrol/ CHANGES.txt):09:01
CIA-94- Bugfix: Launching ``svn`` replaced the whole environment instead of just09:01
CIA-94appending ``LANG``.09:01
CIA-94adamg * r114276 (CHANGES.txt Preparing release 3.5.609:01
CIA-94adamg * r114277 / Tagging 3.5.609:01
CIA-94adamg * r114278 (CHANGES.txt Back to development: 3.5.709:01
CIA-94andreasjung * r114279 zopyx.smartprintng.server/ ( buildout.cfg): buildout configuration09:01
CIA-94adamg * r114280 zopetoolkit/zopeapp-versions.cfg: fix the missing ``svn`` problem on win09:01
*** wosc has joined #zope09:03
*** hever has joined #zope09:03
*** digitalmortician has quit IRC09:19
*** smita has joined #zope09:29
*** MrTango has joined #zope09:34
*** Theuni1 has joined #zope09:50
*** digitalmortician has joined #zope09:56
*** Theuni1 has quit IRC10:00 3.5.6 (PyPI recent updates)
*** pingviin2 has joined #zope10:10
*** JaRoel|4D has joined #zope10:12
*** bigkevmcd_ has joined #zope10:15
*** bigkevmcd has quit IRC10:16
*** bigkevmcd_ is now known as bigkevmcd10:16
*** sashav has joined #zope10:17
*** Theuni1 has joined #zope10:25
*** AnneGilles has joined #zope10:26
*** planetzopebot has quit IRC10:33
*** planetzopebot has joined #zope10:34
*** Theuni1 has quit IRC10:40
*** Theuni1 has joined #zope10:47
*** danfairs has joined #zope10:49
*** sim_sim has joined #zope10:52
*** d2m has joined #zope10:55
*** pingviin2 has quit IRC11:11
*** TomBlockley has joined #zope11:31
*** MJ has joined #zope11:34
CIA-94hannosch * r114281 /Sandbox/adamg/zope.wineggbuilder/trunk/rackspace.ini: Adam says this might work :)11:46
*** evilbungle has joined #zope11:59
*** mahiti_skt has quit IRC12:00
*** Wu has quit IRC12:01
*** cna__ has joined #zope12:01
*** Wu has joined #zope12:02
*** Wu has quit IRC12:02
*** mahiti_skt has joined #zope12:03
*** tisto has joined #zope12:03
sim_simHi all. I was wondering, is there a way to know that im in an environment where some ZCML has been loaded ? I have some tests that load a zcml, and some that do not, so i can not rely on calling some getUtility function as it may fail for some of my tests that do not load any zcml. Btw, I would be delighted if someone give me some method/hint/opinion on how to make great tests using zcml (like provide an override.zcml and so on.). thanks a lot.12:07
*** regebro is now known as regebro|afk12:07
sim_sim(and if this is a good idea!)12:07
sim_sim(i inject stub on the zcml, but i guess the overhead can be important)12:08
*** Wu has joined #zope12:10
vipodsim_sim: in tests I usually setup/load all zope3 components in test setup, so that I can be sure what I do have and what I don't, the only case when you're not sure about some component registration is a test on that registration, but if you still not sure if you have this or another utility then just use queryUtility instead of getUtility and check if it doesn't return None12:12
sim_simvipod, right i looked to queryUtility and I was providing some default value for it. But that's redundant with my zcml configuration (default parameter provided == default component provided in the zcml).  And I check for the zcml for each function call. Well, i guess my problem won't find be solve looking for zope because the problem is not here, i just have to refactor my stuff. :b12:18
sim_simvipod, any opinion on the zcml lookup overhead ?12:18
vipodsim_sim: are you checking your own components or some 3rdparty ones?12:20
sim_simvipod, my own12:20
sim_simwe are using zope down here, and i was refactoring some code to use it as a dependency injection framework12:20
vipodsim_sim: in case you load zcml in your test why should you worry about if it's registered or not, after you loaded that zcml piece you're sure it's there, no need for queryUtility ;-)12:21
sim_sim(some zope component i mean)12:21
vipodsim_sim: just make sure to load_zcml in your test setup12:21
sim_simvipod, yep but that imply adding some load_zcml stuff in all tests code and i will have to fight for that12:22
vipodsim_sim: use testing layers concept and make load_zcml only once for all your tests inside that layer12:23
sim_simwe may get to that point, but i would rather make an intermediate transition12:23
vipodsim_sim: or instead of loading zcml, you can also register component from python code12:23
sim_simvipod, yep. registering component from python code is what i head to do to inject stubs12:24
sim_simI guess the loading of zcml in test layer once on for all is not a bad idea. I thought about this, but I was trying to find a work around. But i guess it's useless12:25
sim_simThanks for all your advice12:26
vipodsim_sim: no problems, good luck12:26
CIA-94gotcha * r114282 zope.proxy/src/zope/proxy/tests/ typo12:31
*** regebro|afk has quit IRC12:43
sim_simvipod, sorry to bother, but is there a python function to load a zcml ?13:05
*** emrojo has joined #zope13:07
vipodsim_sim: I'm using Products.Five.zcml.load_config function in my tests for this13:08
*** zkc has quit IRC13:26
*** giampaolo has joined #zope13:41
*** touff has joined #zope13:47
*** touff has quit IRC13:52
*** bigkevmcd has quit IRC13:54
*** bigkevmcd has joined #zope13:55
*** touff has joined #zope13:56
*** thetet has joined #zope13:58
*** digitalmortician has quit IRC13:58
planetzopebotstxnext.staticdeployment 0.7.0 (PyPI recent updates)
*** touff has quit IRC14:06
*** tisto has quit IRC14:06
*** mcdonc has quit IRC14:06
*** betabug has quit IRC14:06
*** jham has quit IRC14:06
*** _mup_ has quit IRC14:06
*** teratorn has quit IRC14:06
CIA-94jim * r114283 zc.ngi/src/zc/ngi/ Avoid blocking-module deprecation warning while running tests.14:07
*** touff has joined #zope14:09
*** tisto has joined #zope14:09
*** mcdonc has joined #zope14:09
*** betabug has joined #zope14:09
*** jham has joined #zope14:09
*** _mup_ has joined #zope14:09
*** teratorn has joined #zope14:09
*** hever has quit IRC14:15
*** cwarner_ has joined #zope14:27
*** danfairs has quit IRC14:37
*** danfairs has joined #zope14:42
*** danfairs has quit IRC14:42
*** ccomb has joined #zope14:49
*** sashav has quit IRC14:52
*** aaronv has joined #zope14:56
*** digitalmortician has joined #zope15:02
planetzopebotplonetheme.sunburst 1.0 (PyPI recent updates)
planetzopebotcollective.permalink 0.1.0 (PyPI recent updates)
*** bhagat has joined #zope15:12
*** dataflake has joined #zope15:22
*** dataflake has left #zope15:22
*** TresEquis has joined #zope15:25
bhagatchannel# any link to share using ajax with zope215:26
*** bhagat has quit IRC15:33
*** benji___ has joined #zope15:43
*** MatthewWilkes has joined #zope15:51
*** cna__ has quit IRC15:58
*** mahiti_skt has quit IRC15:59
*** mahiti_skt has joined #zope16:03
*** tisto is now known as tisto|away16:04
*** wosc has quit IRC16:09
*** r0ver has left #zope16:10
*** cna_ has joined #zope16:11
*** hartym has joined #zope16:12
*** pingviin1 has quit IRC16:15
*** mitchell`off has quit IRC16:15
*** pingviini has joined #zope16:18
*** mitchell`off has joined #zope16:22
*** cna_ has quit IRC16:25
*** benji___ is now known as benji16:30
*** aaronv has quit IRC16:31
CIA-94trollfot * r114284 grok/ (src/grok/configure.zcml src/grok/meta.zcml Removed useless dependencies.16:32
CIA-94trollfot * r114285 grok/src/grok/ (6 files): Cosmetics on the file, added white spaces (as recommanded in pep8), for readability.16:32
*** agroszer_ has joined #zope16:35
*** fredvd has joined #zope16:35
*** digitalmortician has quit IRC16:37
*** agroszer has quit IRC16:37
*** agroszer_ is now known as agroszer16:37
CIA-94trollfot * r114286 grok/ (src/grok/meta.zcml Reverted the removal of "z3c.autoinclude". Mea Culpa.16:48
*** aaronv has joined #zope16:51
*** River_Rat has joined #zope16:52
*** menesis has joined #zope16:52
*** RiverRat has quit IRC16:54
*** webmaven has joined #zope16:54
*** ignas has joined #zope16:54
ignasis there a way to make a Python Script created through the web "private"16:57
*** AnneGilles has quit IRC16:57
ignasas in - if I have script A(public) and it calls script B (private)16:58
ignasit works16:58
ignasbut if I call script B directly16:58
ignasi would get a permission error16:58
ignassql queries seem to be working that way already16:58
ignasI can't call them through their url16:58
MatthewWilkesignas: Change the permissions on B (View should be enough) so only managers can use it17:00
MatthewWilkesignas: Then change Proxy Roles on A so it runs as a manager17:00
ignasProxy Roles?17:01
MatthewWilkesignas: Yes, there's a proxy roles tab that lets you override the computed role a script runs as17:01
MatthewWilkesIt usually runs with all the roles common to both the creator of the script and the user accessing it17:01
*** mahiti_skt has quit IRC17:03
ignasas in - if script is owned by "admin"17:03
ignasbut is executed by "anonymous"17:04
ignaswill it have roles of admin + anonymous or only anonymous as anonymous is probably a subset of admin17:04
ignasalso - how do I set Proxy on a template?17:04
ignas(i can see the Proxy tab on all python scripts)17:05
MatthewWilkesignas: I don't know if anonymous is handled specially17:05
MatthewWilkesyou can't set proxies on anything but python scripts17:05
ignasso if I have a function17:06
ignasand I want to use it's data in a view17:06
CIA-94gotcha lazyvalues * r114287 z3c.table/src/z3c/table/ (README.txt miscellaneous.txt move miscellaneous17:06
*** _mup_ has quit IRC17:06
ignasI have no way to be sure that the function will not be called directly17:06
*** _mup_ has joined #zope17:07
MatthewWilkesignas: No, if you want control over this sort of thing you can use filesystem code to have private methods17:07
*** baijum has quit IRC17:07
ignasthat would be possible17:07
ignasif it was not a legacy system17:07
ignaswith too much code to handle in one go17:07
MatthewWilkesignas: You can add new things on the FS, I was working on a project last month that qualifies as 'legacy'17:10
ignasI can17:10
ignasbut I have security problems with the existing codebase17:10
MatthewWilkesAt least 10 years old, but it was running on Zope 2.10 and we were adding new things as FS code17:10
ignasand I even have the workflow for moving code into FS17:10
ignasproblem - 100k loc17:10
ignasin Data.fs17:10
ignaswith a bunch of security problems17:10
MatthewWilkesignas: Irrelevant.  This doesn't stop you creating new functions in filesystem code17:11
ignasthat will not help me make the existing code secure17:11
ignasI would just "mark all the code" set it to "only manager can run it" and then "go through all the public views and make them public + manager proxy" so I would have a "public layer" on top of "private layer"17:12
ignasproblem is with templates I need "template layer" built on "public layer of python scripts" calling out to "private layer of python scripts/ sql queries"17:13
ignasas I don't have a well defined separation of python scripts that I could make a "secure public layer" out of, and I can't call out to "private layer" from templates17:13
*** TomBlockley has quit IRC17:13
ignasI am stuck, unless i write 100-200 new scripts in FS17:13
ignasor in Data.fs17:14
*** davisagli|away is now known as davisagli17:14
*** AnneGilles has joined #zope17:15
d2mignas: did you try FSDump already - not sure if it does save the script proxy roles to a .metadata file too17:15
ignasnot sure how dumping it all into file system helps me17:17
ignasin readme they mention that dumping it back is a feature that is not implemented yet17:17
*** TomBlockley has joined #zope17:18
*** aaronv has quit IRC17:19
*** dayne has joined #zope17:20
*** davisagli is now known as davisagli|away17:21
*** smita has quit IRC17:22
CIA-94gotcha lazyvalues * r114288 z3c.table/
CIA-94remove ids17:24
CIA-94include chopped doctests in description17:24
*** smita has joined #zope17:24
*** webmaven has quit IRC17:31
*** teix has joined #zope17:32
*** webmaven has joined #zope17:34
d2mignas: as for the 'private' script: AccessControl has a method calledByExecutable() to check if the object is called TTW or from insode17:37
*** MrWu has joined #zope17:38
*** MrWu has joined #zope17:39
ignasd2m, hmm, seems like what I need, how do I acquire the AccessControl thing in a python script?17:40
*** touff has quit IRC17:45
CIA-94fdrake * r114289 z3c.recipe.staticlxml/src/z3c/recipe/staticlxml/ fix typo17:47
ignasd2m, hmm, interesting, according to docs - it should be "just what I needed all along"17:49
ignasbut when I call it inside a script17:49
ignasand then run the script as a "view" by typing it's url17:49
ignasI am getting "1" instead of "0"17:49
*** touff has joined #zope17:53
*** tisto|away is now known as tisto17:55
*** hever has joined #zope17:57
*** aaronv has joined #zope17:58
*** sm has quit IRC18:00
*** davisagli|away is now known as davisagli18:00
planetzopebotplonetheme.sunburst 1.0.1 (PyPI recent updates)
*** davisagli is now known as davisagli|away18:05
*** aaronv has quit IRC18:06
*** aaronv has joined #zope18:07
*** baijum has joined #zope18:08
*** touff has quit IRC18:09
*** davisagli|away is now known as davisagli18:20
*** daMaestro has joined #zope18:22
ignasok, calledByExecutable is not going to work18:24
ignasif my TTW script is called directly by typing in URL and parameters18:24
ignasit returns "1"18:24
ignasif my TTW script is called by code in an FS product directly - it returns "1"18:24
*** sunew has joined #zope18:25
*** thetet has quit IRC18:26
*** __mac__ has quit IRC18:33
*** MatthewWilkes has quit IRC18:34
*** sunew has quit IRC18:35
*** AnneGilles has quit IRC18:37
*** hever has quit IRC18:41
*** MrJones has joined #zope18:43
MrJonesis this also the right place for buildout questions?18:43
MrJoneshoping it is I'd like to ask how I can, after installing all the eggs and parts, run a python script that is e.g. now inside the buildout bin directory or somewhere that does some final things to complete the installation18:44
*** cbcunc has joined #zope18:46
*** cwarner__ has joined #zope18:50
*** sm has joined #zope18:51
*** cwarner__ has quit IRC18:52
*** cwarner__ has joined #zope18:52
teixMrJones: take a look at z3c.recipe.runscript egg18:52
MrJonesI tried that one already18:53
MrJonesit seems to call a specific's init instead of the script name I submit to it o.O18:53
MrJonesprobably I'm also just using it wrong. but I wasn't able to make it simply call the script I wanted it to18:53
*** cwarner_ has quit IRC18:55
*** Theuni1 has quit IRC18:56
teixMrJones: hmm what about cp.recipe.cmd?18:58
sim_simIs there a way to access to the `layer' you set in a testcase, from this testcase ?18:59
MrJonesteix: might work. the parts get run before the installation of the eggs though I guess?19:02
MrJonesit's just that I want to run it after everything else is in place..19:02
*** giampaolo has quit IRC19:02
teixMrJones: hmm not sure. but try it anyway ;)19:03
*** ignas has quit IRC19:04
*** MJ has quit IRC19:05
*** JaRoel|4D has quit IRC19:06
*** baijum has quit IRC19:13
*** davisagli is now known as davisagli|away19:16
*** davisagli|away is now known as davisagli19:17
*** touff has joined #zope19:18
*** aaronv has quit IRC19:22
*** menesis has quit IRC19:23
TresEquisMrJones: parts get run in order19:24
TresEquisso you can add a part which runs after all the others19:24
MrJonesTresEquis: I know. but BEFORE the eggs get installed19:24
TresEquiseggs are installed via one or more parts19:25
MrJonesdoes this also apply to the eggs setting in the [buildout] section?19:25
TresEquisMrJones: I don't recall offhand19:26
MrJoneswill have to try that from a fresh install...19:27
*** SpankyFromBRC has joined #zope19:29
*** menesis has joined #zope19:32
*** tisto is now known as tisto|away19:33
TresEquisMrJones: if I had to guess, I would say that eggs in the [buildout] section don't get installed at all unless they are mentioned (via '$(buildout:eggs}') in a part19:35
MrJonesoh. that might be interesting to know, yes. the buildout.cfg is not written by me, so that might be the case *ctrl+f's for eggs*19:36
MrJonesindeed, that reference exists. then I can safely have my script executed as the last one of parts, that's good :)19:37
MrJonesTresEquis: thanks :)19:37
MrJonesteix: also thanks for helping. prompting the script works fine now19:37
*** TomBlockley has quit IRC19:38
*** dayne has quit IRC19:41
*** ignas has joined #zope19:44
CIA-94adamg * r114290 (CHANGES.txt src/zope/app/interface/tests/ Fixed tests and test tearDown to actually close the DB.19:49
CIA-94adamg * r114291 (CHANGES.txt Preparing release 3.5.119:49
CIA-94adamg * r114292 / Tagging 3.5.119:49
CIA-94adamg * r114293 (CHANGES.txt Back to development: 3.5.219:49
*** dayne has joined #zope19:51
*** TomBlockley has joined #zope19:53
*** TomBlockley has quit IRC19:55
*** davisagli is now known as davisagli|away19:57
*** tiwula has joined #zope19:58
*** davisagli|away is now known as davisagli19:59
*** __mac__ has joined #zope20:02
CIA-94adamg * r114294 zopetoolkit/zopeapp-versions.cfg: fix tests in
*** emrojo has quit IRC20:04
*** MrWu has quit IRC20:16
*** MrJones has quit IRC20:26
*** aaronv has joined #zope20:26
*** aaronv has quit IRC20:34
*** ccomb has quit IRC20:35
*** adzuci has quit IRC20:35
*** aaronv has joined #zope20:36
*** mcdonc has quit IRC20:38
*** mcdonc has joined #zope20:38
*** mcdonc has quit IRC20:38
*** mcdonc has joined #zope20:39
*** adzuci has joined #zope20:40
*** giampaolo has joined #zope20:41
*** JaRoel|4D has joined #zope20:45
*** adzuci has quit IRC20:49
*** adzuci has joined #zope20:49
*** r0ver has joined #zope20:50
*** tisto|away has quit IRC21:00
*** webmaven has quit IRC21:05
*** menesis has quit IRC21:07
*** sim_sim has quit IRC21:11
*** teix has left #zope21:11
*** webmaven has joined #zope21:21
*** alvaro has joined #zope21:23
*** alvaro has quit IRC21:31
*** alvaro_ has joined #zope21:31
*** agroszer has quit IRC21:33
*** agroszer has joined #zope21:33
*** alvaro_ has quit IRC21:35
*** alvaro_ has joined #zope21:35
*** alecm has quit IRC21:37
*** evilbungle has quit IRC21:43
*** jim_SFU has joined #zope21:46
*** alvaro_ has quit IRC22:00
*** agroszer has quit IRC22:27
*** daMaestro has quit IRC22:36
*** daMaestro has joined #zope22:48
*** smita has quit IRC23:14
*** smita has joined #zope23:17
*** __mac__ has quit IRC23:25
*** d2m has left #zope23:27
*** webmaven has quit IRC23:29
*** grahal has quit IRC23:31
*** vipod has quit IRC23:39
*** AnneGilles has joined #zope23:43
*** grahal has joined #zope23:45
*** ccomb has joined #zope23:48
*** mcdonc has quit IRC23:52
*** TresEquis has quit IRC23:52
*** alecm has joined #zope23:55
*** mcdonc has joined #zope23:55
*** mcdonc_ has joined #zope23:57
*** mcdonc has quit IRC23:58

Generated by 2.15.1 by Marius Gedminas - find it at!