| *** RaFromBRC|lunch is now known as RaFromBRC | 00:06 | |
| *** ruda_porto has quit IRC | 00:09 | |
| *** febb has quit IRC | 00:10 | |
| *** Ariel_Calzada has quit IRC | 00:20 | |
| *** brandon_rhodes has joined #zope3-dev | 00:20 | |
| brandon_rhodes | How can i check out Zope 3 from SVN in such a way as I can run its test? | 00:21 |
|---|---|---|
| brandon_rhodes | er, "tests"? | 00:21 |
| *** Ariel_Calzada has joined #zope3-dev | 00:21 | |
| *** bigkevmcd has quit IRC | 00:22 | |
| wiggy | does anyone know what the status of z3c.widget is? | 00:26 |
| *** RaFromBRC has quit IRC | 00:27 | |
| *** RaFromBRC has joined #zope3-dev | 00:28 | |
| *** pbugni has quit IRC | 00:31 | |
| *** malthe has quit IRC | 00:32 | |
| *** sureshvv has left #zope3-dev | 00:33 | |
| *** timte has quit IRC | 00:37 | |
| ignas | J1m: is it possible to bootstrap buildout without internet connection? | 00:37 |
| ignas | by setting up an egg-cache or something like that | 00:38 |
| J1m | ignas, you can use an existing buildout to bootstrap a buildout. | 00:38 |
| ignas | and it will not try to download any eggs? | 00:39 |
| J1m | path_to_any_buildout/bin/buildout bootstrap | 00:39 |
| J1m | no | 00:39 |
| J1m | My home directory is a buildout and I have buildout23, buildout24, and buildout25 scripts in ~/bin that I use to boostrap. | 00:40 |
| J1m | I never use bootstrap.py. :) | 00:40 |
| J1m | It uses the eggs from the existing buildout. | 00:40 |
| *** gstratton_ has joined #zope3-dev | 00:41 | |
| ignas | J1m: i see, thanks for the info | 00:42 |
| J1m | yw | 00:42 |
| *** philiKON has joined #zope3-dev | 00:46 | |
| *** jsadjohnson has joined #zope3-dev | 00:46 | |
| *** Ariel_Calzada has quit IRC | 00:46 | |
| *** jsadjohnson_ has joined #zope3-dev | 00:47 | |
| *** benji has quit IRC | 00:56 | |
| *** dunny has joined #zope3-dev | 01:01 | |
| *** Ariel_Calzada has joined #zope3-dev | 01:05 | |
| *** malthe has joined #zope3-dev | 01:05 | |
| *** gstratton has quit IRC | 01:08 | |
| *** philiKON has quit IRC | 01:12 | |
| *** philiKON has joined #zope3-dev | 01:12 | |
| *** edgordon has quit IRC | 01:40 | |
| *** jodok has quit IRC | 01:53 | |
| *** edgordon has joined #zope3-dev | 01:55 | |
| *** pbugni has joined #zope3-dev | 01:56 | |
| *** gstratton_ has quit IRC | 01:59 | |
| *** jsadjohnson_ has quit IRC | 02:19 | |
| *** jsadjohnson_ has joined #zope3-dev | 02:20 | |
| *** b52laptop has quit IRC | 02:23 | |
| *** b52laptop has joined #zope3-dev | 02:24 | |
| *** ignas has quit IRC | 02:26 | |
| *** aclark is now known as aclark|affinity | 02:30 | |
| *** nathany has quit IRC | 02:34 | |
| *** edgordon has quit IRC | 02:49 | |
| *** malthe has quit IRC | 02:54 | |
| *** J1m has quit IRC | 03:07 | |
| *** BjornT has quit IRC | 03:10 | |
| *** rcrafton has quit IRC | 03:53 | |
| *** dunny has quit IRC | 03:57 | |
| *** rcrafton has joined #zope3-dev | 04:01 | |
| *** dunny has joined #zope3-dev | 04:06 | |
| *** RaFromBRC has quit IRC | 04:08 | |
| *** b52laptop has quit IRC | 04:14 | |
| *** stub has joined #zope3-dev | 04:31 | |
| *** jsadjohnson_ has quit IRC | 04:31 | |
| *** fcorrea has left #zope3-dev | 04:55 | |
| *** aclark|affinity is now known as aclark | 04:57 | |
| *** BjornT has joined #zope3-dev | 05:12 | |
| *** ousado_ has quit IRC | 05:24 | |
| *** alecm has quit IRC | 05:44 | |
| *** niemeyer has quit IRC | 06:30 | |
| *** aclark is now known as aclark|away | 06:34 | |
| *** rcrafton has quit IRC | 06:39 | |
| *** deo has quit IRC | 06:47 | |
| *** cursor has joined #zope3-dev | 06:51 | |
| *** huajie has joined #zope3-dev | 06:58 | |
| *** chacha_chaudhry has joined #zope3-dev | 07:05 | |
| *** febb has joined #zope3-dev | 07:10 | |
| *** cursor has quit IRC | 07:11 | |
| *** baijum has joined #zope3-dev | 07:32 | |
| *** dobee has joined #zope3-dev | 07:47 | |
| *** cursor has joined #zope3-dev | 08:14 | |
| *** cursor has quit IRC | 08:16 | |
| *** jukart has joined #zope3-dev | 08:27 | |
| *** jodok has joined #zope3-dev | 08:34 | |
| *** jodok has joined #zope3-dev | 08:36 | |
| *** romanofs1i has joined #zope3-dev | 08:46 | |
| *** romanofski has quit IRC | 08:51 | |
| *** brandon_rhodes has quit IRC | 08:58 | |
| *** afd__ has joined #zope3-dev | 09:02 | |
| *** timte has joined #zope3-dev | 09:19 | |
| *** dunny has quit IRC | 09:22 | |
| *** hdima has joined #zope3-dev | 09:27 | |
| *** philiKON has quit IRC | 09:31 | |
| romanofs1i | moin | 09:36 |
| *** markusleist has quit IRC | 09:50 | |
| *** febb has quit IRC | 09:50 | |
| *** jsadjohnson_ has joined #zope3-dev | 10:03 | |
| *** jsadjohnson has quit IRC | 10:04 | |
| *** jsadjohnson_ has quit IRC | 10:05 | |
| *** ghendi has joined #zope3-dev | 10:12 | |
| *** pelle_ has joined #zope3-dev | 10:13 | |
| *** romanofs1i is now known as romanofski | 10:14 | |
| *** philiKON has joined #zope3-dev | 10:29 | |
| *** philiKON has quit IRC | 10:30 | |
| *** bigkevmcd has joined #zope3-dev | 10:31 | |
| *** tarek has quit IRC | 10:39 | |
| *** tarek has joined #zope3-dev | 10:39 | |
| *** regebro has joined #zope3-dev | 10:50 | |
| *** greenman has quit IRC | 10:52 | |
| *** MJ has joined #zope3-dev | 11:07 | |
| *** agroszer has joined #zope3-dev | 11:07 | |
| *** ousado_ has joined #zope3-dev | 11:12 | |
| *** gstratton has joined #zope3-dev | 11:26 | |
| *** philiKON has joined #zope3-dev | 11:38 | |
| *** philiKON has left #zope3-dev | 11:38 | |
| *** dunny has joined #zope3-dev | 11:40 | |
| *** ghendi has quit IRC | 11:52 | |
| *** Ariel_Calzada has quit IRC | 12:03 | |
| *** mgedmin has joined #zope3-dev | 12:09 | |
| *** salfield has quit IRC | 12:10 | |
| *** elro has joined #zope3-dev | 12:17 | |
| elro | Is there a Decimal widget around? In 3.3 it seems to use the float widget, so formlib thinks there are changes even when there are not | 12:17 |
| *** malthe has joined #zope3-dev | 12:20 | |
| mgedmin | there were once at least two implementations, but I don't know if any of them got merged to core | 12:21 |
| *** MrTopf has joined #zope3-dev | 12:30 | |
| *** MrTopf_ has joined #zope3-dev | 12:31 | |
| *** MrTopf has quit IRC | 12:31 | |
| *** ghendi has joined #zope3-dev | 12:37 | |
| *** b52laptop has joined #zope3-dev | 12:44 | |
| *** salfield has joined #zope3-dev | 12:53 | |
| *** malthe has quit IRC | 12:54 | |
| *** mkerrin has joined #zope3-dev | 13:10 | |
| *** edgordon_ has joined #zope3-dev | 13:18 | |
| *** philiKON has joined #zope3-dev | 13:18 | |
| *** philiKON has quit IRC | 13:22 | |
| *** ghendi has quit IRC | 13:24 | |
| *** ghendi has joined #zope3-dev | 13:24 | |
| *** malthe has joined #zope3-dev | 13:49 | |
| *** rocky|away has quit IRC | 13:52 | |
| *** rocky has joined #zope3-dev | 13:56 | |
| *** jinty has joined #zope3-dev | 13:57 | |
| *** afd__ has quit IRC | 14:00 | |
| *** instantf1o has quit IRC | 14:01 | |
| *** instantfoo has joined #zope3-dev | 14:04 | |
| *** ignas has joined #zope3-dev | 14:23 | |
| *** b52lap has joined #zope3-dev | 14:27 | |
| *** philiKON has joined #zope3-dev | 14:30 | |
| baijum | philiKON, I have updated my screencast : http://www.baijum.info/z3/screencasts/zopeproject.html | 14:33 |
| baijum | but still no sound, but some narration added | 14:34 |
| baijum | This time I have reduced screen size ... | 14:36 |
| timte | did you add anything meaningful so I should watch it again? :) | 14:39 |
| *** b52laptop has quit IRC | 14:40 | |
| *** philiKON has left #zope3-dev | 14:46 | |
| *** rcrafton has joined #zope3-dev | 14:46 | |
| *** b52lap has quit IRC | 14:47 | |
| *** b52lap has joined #zope3-dev | 14:48 | |
| *** dunny has quit IRC | 14:53 | |
| baijum | timte, nothing new ;) | 14:55 |
| edgordon_ | is there a method to generate an initial password for principals? I want to do the whole 'create user then email them the password' thing | 15:04 |
| agroszer | edgordon_: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/410076 | 15:15 |
| edgordon_ | thanks. i saw that, just wanted to see if there was anything already there in zope | 15:16 |
| *** rcrafton has quit IRC | 15:16 | |
| *** benji has joined #zope3-dev | 15:17 | |
| *** huajie has quit IRC | 15:17 | |
| *** pyqwer has joined #zope3-dev | 15:18 | |
| *** elro has quit IRC | 15:19 | |
| *** elro has joined #zope3-dev | 15:22 | |
| *** jsadjohnson has joined #zope3-dev | 15:22 | |
| baijum | agroszer,edgordon_: Beware the GPL virus in that recipe ;) | 15:22 |
| *** niemeyer has joined #zope3-dev | 15:29 | |
| *** faassen has joined #zope3-dev | 15:30 | |
| *** MJ is now known as MJ|lunch | 15:50 | |
| *** CrippsFX has joined #zope3-dev | 15:54 | |
| CrippsFX | good morning | 15:56 |
| jpfarias | good morning | 15:56 |
| *** J1m has joined #zope3-dev | 15:56 | |
| faassen | J1m: hey :) | 15:58 |
| J1m | Hi | 15:58 |
| *** aclark|away is now known as aclark | 16:06 | |
| *** ktwilight_ has quit IRC | 16:09 | |
| *** rcrafton has joined #zope3-dev | 16:10 | |
| *** ktwilight_ has joined #zope3-dev | 16:10 | |
| *** rocky has quit IRC | 16:25 | |
| *** tarek has quit IRC | 16:28 | |
| *** CrippsFX has quit IRC | 16:30 | |
| *** cursor has joined #zope3-dev | 16:35 | |
| *** brandon_rhodes has joined #zope3-dev | 16:35 | |
| *** cursor has quit IRC | 16:38 | |
| baijum | faassen, that was my mistake, I should have bumped the version to 3.4.1 ( http://mail.zope.org/pipermail/zope3-dev/2007-September/023499.html ) | 16:40 |
| * baijum talking about the mail in grok-dev list | 16:40 | |
| timte | more than half of the checkin mails are bumps, lots of bumping | 16:41 |
| baijum | timte, in the world of eggs always bump.. bump.. bump :) otherwise a simple mistakes cannot be corrected as in my case. | 16:43 |
| * baijum feel sorry about all these problems... | 16:44 | |
| * baijum leaving | 16:46 | |
| *** baijum has quit IRC | 16:46 | |
| *** Cripps has joined #zope3-dev | 16:47 | |
| benji | I'm starting to think we should remove versions on the trunk, and only change them in tags, and make releases from there | 16:49 |
| brandon_rhodes | I'm writing a test that needs to register an adapter and then see if it works. | 16:56 |
| brandon_rhodes | How, in a test, is one supposed to have Zope run some ZCML so that the adapter becomes live? | 16:56 |
| faassen | brandon_rhodes: typically people use the zope.component APIs directly. | 16:57 |
| benji | brandon_rhodes: you can do that if you really want to test the ZCML handling itself, but normally you just register the adapter via Python | 16:57 |
| brandon_rhodes | Ah! | 16:57 |
| brandon_rhodes | Great. | 16:57 |
| brandon_rhodes | How do I register an adapter in Python? | 16:57 |
| brandon_rhodes | Beyond having implements() and adapts() in the class already, of coures. | 16:58 |
| brandon_rhodes | er "course" | 16:58 |
| benji | also, if you're going to be doing the adaptation in the test, you probably just want to instantiate the adaptor directly, no need to register it | 16:59 |
| faassen | brandon_rhodes: you can use zope.component.provideAdapter, and yeah, what benji says, if you don't need the dynamic lookup you can just instantiate one by hand. | 16:59 |
| brandon_rhodes | This is my change to have AbsoluteURL try adapting its context to ILocation before trying to access the __parent__ | 17:00 |
| brandon_rhodes | Because otherwise I can't provide an ILocation adapter for objects coming from other libraries. | 17:00 |
| *** chacha_chaudhry has quit IRC | 17:01 | |
| *** tarek has joined #zope3-dev | 17:01 | |
| brandon_rhodes | Well, I mean, I *can*, but they don't do any good currently :-) | 17:01 |
| *** chacha_chaudhry has joined #zope3-dev | 17:01 | |
| brandon_rhodes | So: in zope/traversing/browser/tests.py, I have added a new test, and created a FooContext which doesn't provide ILocation and a FooLocation which adapts FooContext to ILocation. | 17:02 |
| brandon_rhodes | And now I need to "wake up" the adapter so it starts working. | 17:02 |
| brandon_rhodes | So I'll try provideAdapter | 17:02 |
| *** ruda_porto has joined #zope3-dev | 17:03 | |
| * Cripps kicks pdb in the testicles | 17:10 | |
| benji | Cripps: you don't want to make pdb angry, you wouldn't like him when he's angry. | 17:13 |
| brandon_rhodes | In absoluteurl.py, I see a "_getContextName" function that is used only one place in Zope - in the function right above it! And it looks like, to be symmetrical with the code for getting __parent__, it should be factored back in. | 17:14 |
| *** jsadjohnson has quit IRC | 17:14 | |
| brandon_rhodes | Am I missing something? | 17:14 |
| *** MJ|lunch is now known as MJ | 17:15 | |
| *** rocky has joined #zope3-dev | 17:17 | |
| *** fcorrea has joined #zope3-dev | 17:21 | |
| benji | don't know; but if it starts with a leading underscore, it's not part of the API, so you should be able to refactor it away | 17:22 |
| brandon_rhodes | I'll try and see what the gods think. :-) | 17:22 |
| brandon_rhodes | Oh, and thanks, benji and faassen! | 17:23 |
| brandon_rhodes | My test cases run now. | 17:23 |
| *** jsadjohnson has joined #zope3-dev | 17:31 | |
| Cripps | benji: :P | 17:36 |
| Cripps | benji: I don't like him when he's *not* angry ... | 17:36 |
| Cripps | ;) | 17:36 |
| *** hdima has quit IRC | 17:44 | |
| *** timte has quit IRC | 17:45 | |
| *** rcrafton has quit IRC | 17:46 | |
| *** ghendi has quit IRC | 17:47 | |
| *** markusleist has joined #zope3-dev | 17:47 | |
| *** pelle_ has quit IRC | 17:53 | |
| mgedmin | what's the url for the commiter agreement? | 17:55 |
| mgedmin | yvl should sign it, seeing how he's going to the foliage sprint with me | 17:56 |
| mgedmin | is this the latest version: http://www.zope.org/DevHome/CVS/ContributorFAQ ? | 17:56 |
| mgedmin | given the "CVS" in the URL | 17:56 |
| * mgedmin was googling for "zope 3 commit access" | 17:57 | |
| mgedmin | J1m, srichter, anyone? | 17:59 |
| *** rcrafton has joined #zope3-dev | 18:02 | |
| Cripps | benji would know!!! | 18:02 |
| srichter | mgedmin: here | 18:09 |
| srichter | let me find it | 18:09 |
| mgedmin | if http://www.zope.org/DevHome/CVS/ContributorFAQ is not up to date, it would be good to change it to point to the relevant version? | 18:10 |
| mgedmin | because it's got Google juice | 18:10 |
| srichter | http://www.zope.org/DevHome/CVS/Contributor.pdf | 18:12 |
| brandon_rhodes | mgedmin: sounds like a great idea | 18:13 |
| brandon_rhodes | I wish all out-of-date info on the web had pointers. :-) | 18:13 |
| mgedmin | ah, so http://www.zope.org/DevHome/CVS/ContributorFAQ had the right link after all | 18:13 |
| mgedmin | the letters "CVS" confused me | 18:13 |
| mgedmin | and this quote: "Zope Corporation (ZC) is opening the Zope CVS repository to allow checkins from external contributors." | 18:14 |
| srichter | yeah, it does not contain the CVS in the text | 18:14 |
| srichter | version 1.1 is the correct one for now | 18:14 |
| agroszer | hi srichter | 18:14 |
| srichter | mgedmin: there were some issues changing to the Zope foundation agreement | 18:14 |
| srichter | agroszer: hi | 18:14 |
| *** stub has quit IRC | 18:15 | |
| agroszer | srichter: did you receive the proposal? | 18:15 |
| mgedmin | would anyone mind if I went through that wiki page and changed CVS to Subversion? | 18:15 |
| Cripps | hey srichter. Paid any thought to my suggestion about VNC/ekiga? | 18:15 |
| Cripps | mgedmin: I think it's a good idea ... | 18:15 |
| Cripps | wait ... is there a CVS repo too? | 18:16 |
| mgedmin | Cripps: not any more | 18:16 |
| srichter | mgedmin: I don't think so, but we should probably leave a backlink to CVS, just because it is referenced at so many places | 18:16 |
| mgedmin | I wasn't planning to change links, just the text | 18:16 |
| Cripps | ah ... then yeah, switching the text is a good idea. | 18:17 |
| srichter | agroszer: I studied your proposal for the last days; I read some of the references too | 18:17 |
| mgedmin | oh dear, there are many pages mentioning CVS at http://www.zope.org/DevHome/CVS/folder_contents | 18:18 |
| agroszer | srichter: thanks | 18:18 |
| J1m | mgedmin, http://www.zope.org/DevHome/Subversion/Contributor.pdf | 18:18 |
| mgedmin | thanks | 18:18 |
| J1m | btw, please tell any new committers to give references. :) | 18:19 |
| mgedmin | I can vouch for yvl | 18:19 |
| mgedmin | it's funny | 18:20 |
| mgedmin | http://www.zope.org/DevHome/Subversion/ContributorFAQ talks about CVS | 18:21 |
| mgedmin | http://www.zope.org/DevHome/CVS/ContributorFAQ talks about Subversion, because I've just changed it | 18:21 |
| * mgedmin changes the text back and adds a link to the newer page | 18:24 | |
| yvl | J1m, should I fax the signed agreement to somebody? | 18:28 |
| *** alga has joined #zope3-dev | 18:29 | |
| J1m | yvl, yes. or you can send me a signed scanned copy. | 18:38 |
| *** jukart has quit IRC | 18:39 | |
| J1m | s/send/email | 18:39 |
| *** jukart has joined #zope3-dev | 18:40 | |
| *** jfroche has quit IRC | 18:44 | |
| *** salfield has quit IRC | 18:45 | |
| *** pbugni has quit IRC | 18:46 | |
| *** salfield has joined #zope3-dev | 18:48 | |
| *** ruda_porto has quit IRC | 18:51 | |
| *** b52lap has quit IRC | 18:55 | |
| *** mgedmin has quit IRC | 18:55 | |
| *** mgedmin has joined #zope3-dev | 19:00 | |
| mgedmin | I'm surprised to see that unicode strings placed into an OrderedContainer become security-proxied | 19:07 |
| mgedmin | ah, that's probably because the container claps a ContainedProxy around them | 19:07 |
| *** malthe has quit IRC | 19:16 | |
| *** pbugni has joined #zope3-dev | 19:17 | |
| Cripps | is there a check to see if a utility already exists? I have a piece of code on site instantiation that adds and then registers a Utility to/for the site manager, and then when it reaches another block of code later goes back and re-runs this code ... because of that I get a "Duplication Error," so I want to run a check and skip over the registration if it's already registered. | 19:18 |
| agroszer | Cripps: from zope.app.appsetup.bootstrap import ensureUtility | 19:19 |
| agroszer | that returns with none if the utility is already there | 19:20 |
| Cripps | agroszer: sounds good. I'll look into that ... since I'm restructuring the app, bootstrap might be a good way to go anyways :) | 19:20 |
| Cripps | alright ... off to class for now. | 19:20 |
| *** yvl has quit IRC | 19:29 | |
| *** whit has quit IRC | 19:31 | |
| *** jukart has quit IRC | 19:34 | |
| *** pelle_ has joined #zope3-dev | 19:36 | |
| *** pelle_ has quit IRC | 19:37 | |
| *** dobee has quit IRC | 19:38 | |
| *** jodok has quit IRC | 19:38 | |
| ignas | srichter: ayt? | 19:38 |
| *** pelle_ has joined #zope3-dev | 19:39 | |
| srichter | ignas: here | 19:39 |
| ignas | srichter: do you have any notes from your term/gradebook work left? | 19:39 |
| *** philiKON has joined #zope3-dev | 19:39 | |
| ignas | i am trying to merge it to trunk/ finish it up | 19:39 |
| ignas | and i am just not sure about whether some parts are unfinished, or just not deleted from the repository yet | 19:40 |
| *** jinty has quit IRC | 19:40 | |
| *** RaFromBRC has joined #zope3-dev | 19:42 | |
| *** whit has joined #zope3-dev | 19:52 | |
| *** hazmat has quit IRC | 19:58 | |
| *** pelle_ has quit IRC | 19:58 | |
| *** hazmat has joined #zope3-dev | 20:04 | |
| *** ChanServ sets mode: +o hazmat | 20:04 | |
| *** markusleist has quit IRC | 20:04 | |
| *** jukart has joined #zope3-dev | 20:07 | |
| *** MrTopf_ has quit IRC | 20:09 | |
| *** MrTopf has joined #zope3-dev | 20:10 | |
| *** jodok has joined #zope3-dev | 20:19 | |
| *** jodok has quit IRC | 20:23 | |
| *** jukart has quit IRC | 20:24 | |
| *** MrTopf has quit IRC | 20:26 | |
| *** markusleist has joined #zope3-dev | 20:29 | |
| *** ignas has quit IRC | 20:30 | |
| *** b52laptop has joined #zope3-dev | 20:34 | |
| *** bigkevmcd has quit IRC | 20:42 | |
| *** nathany has joined #zope3-dev | 20:43 | |
| *** bigkevmcd has joined #zope3-dev | 20:43 | |
| Cripps | agroszer: in zope.app.appsetup.bootstrap.ensureUtility(), it adds the utility to the TOP site manager ... I want to add the utility to the site manager for the site I'm creating ... specifically what I'm having trouble with at this point is creating some catalogs | 20:46 |
| *** pbugni has quit IRC | 20:46 | |
| agroszer | also piece of cake | 20:46 |
| agroszer | from zope.app.component import hooks | 20:46 |
| agroszer | old_site = hooks.getSite() | 20:47 |
| agroszer | hooks.setSite(yourSiteRoot) | 20:47 |
| agroszer | then ensureUtility | 20:47 |
| Cripps | ahhh. That's really nifty ... so that would make my site the top site root. | 20:47 |
| Cripps | ... unless I want to set the top site back to old_site | 20:47 |
| Cripps | agroszer: thanks. | 20:47 |
| agroszer | set it back at the end | 20:47 |
| mgedmin | "top site" is a bit inaccurate, I'd say "the current site" | 20:48 |
| agroszer | use a try/finally | 20:48 |
| agroszer | finally: | 20:48 |
| agroszer | hooks.setSite(old_site) | 20:48 |
| agroszer | welcome | 20:48 |
| Cripps | agroszer: makes sense, I'll give that a shot then. | 20:48 |
| Cripps | mgedmin: maybe that should be changed in the in code doc ... it can probably be changed around Zope 3.5 when the deprecation warning is removed from that function. | 20:49 |
| mgedmin | what code doc? | 20:49 |
| Cripps | mgedmin: zope.app.appsetup.bootstrap.ensureUtility() has in-code documentation that says "top site" as aopposed to "current site" | 20:50 |
| mgedmin | ah, I thought you were referring to the documentation of setSite | 20:51 |
| mgedmin | I'm looking at the code now, and it appears to me setSite() won't change what ensureUtility does | 20:52 |
| Cripps | oh. | 20:52 |
| mgedmin | you need to provide a different folder as the first argument | 20:52 |
| Cripps | damnit. | 20:52 |
| agroszer | It's working here... | 20:52 |
| mgedmin | I wonder why | 20:53 |
| agroszer | catalog = ensureUtility(yourSiteRoot, ICatalog, catalogName, | 20:53 |
| mgedmin | does SomeFolder.getSiteManager() use getSite()? | 20:53 |
| nathany | is there a concise way to register a view for multiple names? | 20:53 |
| nathany | ie, for any view named "deed.??" serve the same view? | 20:54 |
| mgedmin | nathany: you can override the traversal and do anything you like | 20:54 |
| mgedmin | http://mg.pov.lt/blog/zope3-custom-traversal.html | 20:54 |
| nathany | mgedmin: thanks | 20:54 |
| *** WebMaven has joined #zope3-dev | 20:55 | |
| agroszer | Cripps, mgedmin: I was wrong, it's working also without setSite | 21:02 |
| *** ksmith99 has left #zope3-dev | 21:02 | |
| agroszer | puts the utility to the right place | 21:02 |
| mgedmin | yes, it extracts the site management folder directly from the site, which you pass as the first argument | 21:02 |
| agroszer | I had a zapi.getUtility without context after... that failed without setSite | 21:03 |
| mgedmin | it would be nice if that argument was renamed to 'site' instead of being 'root_folder' | 21:03 |
| agroszer | added context=siteRoot, voila it's working | 21:03 |
| *** pbugni has joined #zope3-dev | 21:03 | |
| Cripps | so then, based on what I've read here, the statement in this paste *should* be true: http://www.pastebin.ca/703582 ... agroszer would you verify that for me, please? | 21:04 |
| mgedmin | Cripps: no | 21:05 |
| agroszer | naah | 21:05 |
| agroszer | mgedmin, I need to go.. can you please explain him? | 21:05 |
| Cripps | okay. Then I am missing a concept here. Which one is it? | 21:05 |
| mgedmin | "zope 3 is hard" | 21:05 |
| Cripps | mgedmin: hehehe. You can say that again ... and I'm still only getting paid minimum wage :( | 21:06 |
| mgedmin | you need something like what I appended to http://www.pastebin.ca/703586 | 21:06 |
| Cripps | mgedmin: alright, I'll read it. | 21:07 |
| mgedmin | ensureUtility will create and register the utility for you | 21:07 |
| mgedmin | IIRC | 21:07 |
| mgedmin | disclaimer: I don't recall ever using it | 21:07 |
| mgedmin | oh, actually I have | 21:07 |
| Cripps | ahh. cool. Okay. I see. | 21:07 |
| mgedmin | ensureUtility(site, IAuthentication, '', PluggableAuthentication) | 21:08 |
| Cripps | ooh. | 21:08 |
| mgedmin | it's catalogs I've never used :) | 21:08 |
| * mgedmin probably shouldn't advertise that if he wants to be taken seriously | 21:08 | |
| Cripps | I should start making *heavy* use of the bootstrap code. | 21:08 |
| Cripps | hahaha | 21:08 |
| *** pelle_ has joined #zope3-dev | 21:11 | |
| *** dunny has joined #zope3-dev | 21:11 | |
| *** alecm has joined #zope3-dev | 21:12 | |
| *** pelle_ has quit IRC | 21:12 | |
| J1m | ensureUtility is a classic example of a "helper" function that makes things harder. | 21:15 |
| J1m | setting up a utility is conceptually much simpler without it. | 21:15 |
| J1m | It is a holdober from when setting up utilities was much harder, | 21:16 |
| *** ignas has joined #zope3-dev | 21:19 | |
| Cripps | J1m: yeah ... if there's a better way to check for the existence of a utility registered to a *newly instantiated* site, could you let me know? :) | 21:23 |
| benji | Cripps: if you store the utility some where, you can look there and see if it's there yet | 21:26 |
| J1m | Cripps, why would a newly instantiated site have *any* utilities registered? | 21:26 |
| mgedmin | maybe someone listens for IObjectAddedEvent without realising that it is also invoked when you copy & paste an existing object from the ZMI? | 21:28 |
| mgedmin | ... IIRC | 21:28 |
| J1m | If you really *must* check for an existing registration, call registeredUtilities() on the site manager and filter the result. | 21:28 |
| J1m | See zope.component.interfaces.IComponentRegistry. | 21:29 |
| *** nathany has quit IRC | 21:29 | |
| J1m | mgedmin, I wonder if sniffing is masking a bug. | 21:29 |
| * J1m hates sniffing | 21:29 | |
| benji | J1m: you prefer smoking or injections? | 21:30 |
| J1m | I prefer ingestion. | 21:30 |
| Cripps | J1m: well ... *during* the instantiation one block of code gets called more than once, and the second time causes an error. I don't know hwy though, because I didn't write the code. | 21:32 |
| J1m | sounds like ill-thought-out code. | 21:32 |
| Cripps | J1m: sure does. | 21:32 |
| J1m | sniffing makes it hard to tell what's going on because you don't know where something is really being done. | 21:32 |
| J1m | so anyway, I told you a way to sniff. | 21:33 |
| Cripps | anyways, I'm going home for the day, I'll re-read this and try to do it tomorrow. I hope I get to the bottom of this issue soon because I can't start to re-structure the code until it's figured out. | 21:33 |
| Cripps | g'night guys. I'll be back in the morning. | 21:33 |
| J1m | In this particular case, the approach that benji suggested might also work. | 21:34 |
| J1m | since the repeated code probably also stuffs an object somwhere. | 21:34 |
| *** philiKON has quit IRC | 21:34 | |
| *** agroszer has quit IRC | 21:37 | |
| *** mkerrin has quit IRC | 21:45 | |
| *** salfield has quit IRC | 21:58 | |
| *** MJ has quit IRC | 21:59 | |
| *** faassen has quit IRC | 22:01 | |
| *** pbugni has quit IRC | 22:05 | |
| *** elro has quit IRC | 22:06 | |
| *** srichter has quit IRC | 22:20 | |
| *** jukart has joined #zope3-dev | 22:21 | |
| *** srichter has joined #zope3-dev | 22:30 | |
| *** ChanServ sets mode: +o srichter | 22:30 | |
| *** srichter has quit IRC | 22:31 | |
| *** srichter has joined #zope3-dev | 22:31 | |
| *** ChanServ sets mode: +o srichter | 22:31 | |
| *** mgedmin has quit IRC | 22:37 | |
| *** jukart_ has joined #zope3-dev | 22:38 | |
| *** jukart has quit IRC | 22:38 | |
| *** RaFromBRC is now known as RaFromBRC|lunch | 22:45 | |
| *** alga has quit IRC | 23:01 | |
| *** javimansilla has joined #zope3-dev | 23:02 | |
| javimansilla | hi there | 23:02 |
| javimansilla | can I bind a vocabulary with a widget, but not with a field? | 23:04 |
| *** MrTopf has joined #zope3-dev | 23:04 | |
| javimansilla | why would I wont that? well, I want to display several things in my widget, 2 of them with a different vocabulary | 23:05 |
| javimansilla | s/wont/want | 23:05 |
| MrTopf | Hi | 23:07 |
| *** greenman has joined #zope3-dev | 23:20 | |
| *** jukart_ has quit IRC | 23:29 | |
| *** RaFromBRC|lunch has quit IRC | 23:31 | |
| *** RaFromBRC has joined #zope3-dev | 23:42 | |
| *** brandon_rhodes has quit IRC | 23:51 | |
Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!