*** dobee has quit IRC | 00:17 | |
*** alecm has joined #zope3-dev | 00:26 | |
*** timte has quit IRC | 00:26 | |
*** RaFromBRC is now known as RaFromBRC|lunch | 00:32 | |
*** lucielejard has quit IRC | 00:43 | |
*** afd__ has quit IRC | 00:50 | |
*** Doc_Dan has quit IRC | 00:53 | |
*** salfield has joined #zope3-dev | 00:54 | |
*** J1m has quit IRC | 01:01 | |
*** povbot has joined #zope3-dev | 01:10 | |
*** sp0cksbeard has joined #zope3-dev | 01:11 | |
*** alecm has joined #zope3-dev | 01:11 | |
*** mcdonc has joined #zope3-dev | 01:11 | |
*** derek|office has joined #zope3-dev | 01:12 | |
*** pcardune has joined #zope3-dev | 01:12 | |
*** salfield has joined #zope3-dev | 01:16 | |
*** niemeyer has joined #zope3-dev | 01:16 | |
*** pcardune_ has joined #zope3-dev | 01:16 | |
*** jbonilla has joined #zope3-dev | 01:16 | |
*** mcdonc_ has joined #zope3-dev | 01:16 | |
*** derek_richardson has joined #zope3-dev | 01:16 | |
*** Aiste has joined #zope3-dev | 01:16 | |
*** pcardune_ has quit IRC | 01:16 | |
*** derek_richardson has quit IRC | 01:17 | |
*** RaFromBRC|lunch is now known as RaFromBRC | 01:17 | |
*** mcdonc_ has quit IRC | 01:17 | |
*** Aiste has quit IRC | 01:19 | |
*** niemeyer has quit IRC | 01:19 | |
*** salfield has quit IRC | 01:19 | |
*** jbonilla has quit IRC | 01:19 | |
*** jbonilla has joined #zope3-dev | 01:19 | |
*** salfield has joined #zope3-dev | 01:19 | |
*** Aiste has joined #zope3-dev | 01:19 | |
*** niemeyer has joined #zope3-dev | 01:19 | |
*** norro has quit IRC | 01:24 | |
*** rmarianski has quit IRC | 01:29 | |
*** rmarianski has joined #zope3-dev | 01:29 | |
*** lucielejard has joined #zope3-dev | 01:35 | |
*** pcardune has quit IRC | 01:53 | |
*** b52laptop has quit IRC | 02:02 | |
*** b52laptop has joined #zope3-dev | 02:03 | |
*** quodt has quit IRC | 02:05 | |
*** nathany has quit IRC | 02:18 | |
*** regebro has quit IRC | 02:21 | |
*** danielblackburn has joined #zope3-dev | 02:26 | |
*** rmarianski has quit IRC | 02:26 | |
*** sp0cksbeard has quit IRC | 02:26 | |
*** rmarianski has joined #zope3-dev | 02:27 | |
*** pbugni has quit IRC | 02:37 | |
*** RaFromBRC is now known as RaFromBRC|away | 02:56 | |
*** rmarianski_ has joined #zope3-dev | 02:57 | |
*** rmarianski has quit IRC | 02:57 | |
*** pcardune has joined #zope3-dev | 02:57 | |
*** vod has quit IRC | 03:05 | |
*** alecm has quit IRC | 03:25 | |
*** rmarianski_ has quit IRC | 03:30 | |
*** RaFromBRC|away is now known as RaFromBRC | 03:32 | |
*** danielblackburn has quit IRC | 04:11 | |
*** danielblackburn has joined #zope3-dev | 04:13 | |
*** RaFromBRC has quit IRC | 04:27 | |
*** niemeyer has quit IRC | 04:59 | |
*** danielblackburn has quit IRC | 05:03 | |
*** pcardune_ has joined #zope3-dev | 05:20 | |
*** vod has joined #zope3-dev | 05:28 | |
*** run|home has joined #zope3-dev | 05:29 | |
*** natea_ has joined #zope3-dev | 05:35 | |
*** pcardune has quit IRC | 05:37 | |
*** lucielejard has quit IRC | 05:41 | |
*** run|home_ has joined #zope3-dev | 05:47 | |
*** greenman has quit IRC | 05:47 | |
*** pcardune has joined #zope3-dev | 05:50 | |
*** run|home has quit IRC | 05:54 | |
*** rcrafton has quit IRC | 05:54 | |
*** pcardune__ has joined #zope3-dev | 06:05 | |
*** Macarse has left #zope3-dev | 06:09 | |
*** pcardune_ has quit IRC | 06:09 | |
*** pcardune has quit IRC | 06:22 | |
*** pcardune has joined #zope3-dev | 06:38 | |
*** alecm has joined #zope3-dev | 06:43 | |
*** rcrafton has joined #zope3-dev | 06:47 | |
*** pcardune__ has quit IRC | 06:55 | |
*** greenman has joined #zope3-dev | 07:06 | |
*** jayaraj has joined #zope3-dev | 07:06 | |
*** baijum has joined #zope3-dev | 07:15 | |
*** kursor has joined #zope3-dev | 07:24 | |
*** pcardune has quit IRC | 07:34 | |
*** afd_ has joined #zope3-dev | 07:35 | |
*** alecm has quit IRC | 07:48 | |
*** lisppaste6 has quit IRC | 07:48 | |
*** alecm has joined #zope3-dev | 07:52 | |
*** lisppaste6 has joined #zope3-dev | 07:56 | |
*** philiKON_ has joined #zope3-dev | 08:07 | |
*** kursor has quit IRC | 08:09 | |
*** philiKON has quit IRC | 08:23 | |
*** alecm has quit IRC | 08:41 | |
*** d2m has joined #zope3-dev | 08:44 | |
*** alecm has joined #zope3-dev | 08:48 | |
*** natea_ has quit IRC | 08:49 | |
*** greenman has quit IRC | 08:52 | |
*** jukart has joined #zope3-dev | 08:55 | |
*** alecm has quit IRC | 08:58 | |
*** dunny has joined #zope3-dev | 09:02 | |
*** sorin has joined #zope3-dev | 09:04 | |
*** sorin is now known as sorindregan | 09:04 | |
*** ghendi has joined #zope3-dev | 09:09 | |
*** ignas has joined #zope3-dev | 09:11 | |
*** dunny_ has quit IRC | 09:11 | |
*** timte has joined #zope3-dev | 09:13 | |
*** __mac__ has joined #zope3-dev | 09:30 | |
*** pelle_ has quit IRC | 09:33 | |
*** greenman has joined #zope3-dev | 09:36 | |
*** __mac__ has quit IRC | 09:39 | |
*** __mac__ has joined #zope3-dev | 09:40 | |
*** dunny has quit IRC | 09:49 | |
*** norro has joined #zope3-dev | 09:58 | |
*** norro has quit IRC | 09:59 | |
*** dobee has joined #zope3-dev | 10:00 | |
*** MJ has joined #zope3-dev | 10:15 | |
*** MJ is now known as MJ|10 | 10:18 | |
*** jpcw2002 has joined #zope3-dev | 10:29 | |
*** jukart has quit IRC | 10:34 | |
*** greenman has quit IRC | 10:37 | |
*** dunny has joined #zope3-dev | 10:37 | |
*** __mac___ has joined #zope3-dev | 10:39 | |
*** __mac__ has quit IRC | 10:40 | |
*** greenman has joined #zope3-dev | 10:42 | |
*** __mac__ has joined #zope3-dev | 10:42 | |
*** MJ|10 is now known as MJ|out | 10:52 | |
*** harobed has joined #zope3-dev | 10:53 | |
*** romanofski has quit IRC | 10:55 | |
*** __mac____ has joined #zope3-dev | 10:56 | |
*** __mac___ has quit IRC | 10:57 | |
*** romanofski has joined #zope3-dev | 11:01 | |
*** run|home has joined #zope3-dev | 11:04 | |
*** __mac____ has quit IRC | 11:06 | |
*** __mac___ has joined #zope3-dev | 11:06 | |
*** jukart has joined #zope3-dev | 11:07 | |
*** run|home_ has quit IRC | 11:09 | |
*** __mac__ has quit IRC | 11:10 | |
*** goschtl has joined #zope3-dev | 11:13 | |
*** jukart_ has joined #zope3-dev | 11:17 | |
*** menesis has joined #zope3-dev | 11:18 | |
*** dunny_ has joined #zope3-dev | 11:20 | |
*** philiKON_ has quit IRC | 11:23 | |
*** dunny has quit IRC | 11:25 | |
pyqwer | I have some strange ZODB/BTree problem, does someone know why this happens: | 11:33 |
---|---|---|
pyqwer | File "/local/home/dusty/Zope-3.4.0c1/lib/python/BTrees/Length.py", line 38, in __getstate__ | 11:33 |
pyqwer | return self.value | 11:33 |
pyqwer | AttributeError: 'Length' object has no attribute 'value' | 11:33 |
*** jukart has quit IRC | 11:34 | |
*** jukart_ is now known as jukart | 11:42 | |
*** greenman has quit IRC | 11:42 | |
*** yvl has joined #zope3-dev | 11:45 | |
*** dunny_ has quit IRC | 11:48 | |
mcdonc | pyqwer: it seems as if the length object had its value attr deleted... i've never seen anything like that | 11:52 |
*** ghendi has quit IRC | 11:52 | |
mcdonc | some other piece of code (or a human in a debugger) would have had to do that | 11:53 |
pyqwer | mcdonc: I think I found the reason: I did a deepcopy() on a located object, so deepcopy() tries to copy the __parent__ etc. | 11:53 |
mcdonc | pyqwer: yup, persistent objects and deepcopy may not work too well together (esp. if you try to repersist them). | 11:54 |
pyqwer | Seems so. I replaced deepcopy() by a copy(), hopefully this will work, we'll see. | 11:55 |
mcdonc | pyqwer: i usually just create a clone method on the thing i'm trying to copy that does something like return self.__class__(...) | 11:56 |
*** maurits has joined #zope3-dev | 11:56 | |
*** yvl has left #zope3-dev | 11:59 | |
*** quodt has joined #zope3-dev | 12:02 | |
*** malthe has joined #zope3-dev | 12:03 | |
*** jukart has quit IRC | 12:04 | |
*** ignas has quit IRC | 12:05 | |
* Theuni pokes mcdonc | 12:06 | |
mcdonc | hey, how are ya? | 12:06 |
Theuni | fine | 12:07 |
Theuni | any chance to get drunken with you at pycon? | 12:08 |
mcdonc | Theuni: you're gonna go? cool! | 12:08 |
Theuni | can't miss pycon :) | 12:08 |
Theuni | gonna stay a week in boston before | 12:08 |
mcdonc | we shall have beer, then | 12:08 |
Theuni | w00t! | 12:08 |
Theuni | abandon all hope, ye who drinke! | 12:09 |
mcdonc | i have to give two talks, both in the first slot, but that never stopped me before | 12:09 |
Theuni | indeed | 12:09 |
Theuni | we could start drinking after the first slot, though | 12:09 |
mcdonc | lol | 12:09 |
mcdonc | just dont be making fun of the presenters | 12:10 |
* Theuni pokes holes into ZEO | 12:10 | |
Theuni | nah | 12:10 |
Theuni | you're not a presenter, right? you just happen to be on the stage ;) | 12:10 |
mcdonc | i dont care if you make fun of me, its the other presenters i worry about.. like poor chad whitacre | 12:11 |
Theuni | http://www.facebook.com/people/Chad_Whitacre/187701977 ? | 12:11 |
mcdonc | i think we might have had a couple of beers before his talk about some testing thing.. and we were laughing as he showed some video... it only occurred to me later that we were complete assholes ;-) | 12:12 |
*** run|home_ has joined #zope3-dev | 12:12 | |
Theuni | we did? | 12:12 |
Theuni | interesting | 12:12 |
mcdonc | thats him | 12:12 |
mcdonc | yes, in dallas | 12:13 |
*** pelle_ has joined #zope3-dev | 12:13 | |
Theuni | we're gonna pay for that some day ;) | 12:13 |
mcdonc | he's gonna be our boss someday | 12:13 |
*** pelle_ has quit IRC | 12:13 | |
Theuni | i'm afraid of that | 12:14 |
Theuni | especially if he manages to do that while you're in VA and I'm in Germany | 12:14 |
*** pelle_ has joined #zope3-dev | 12:14 | |
Theuni | no subversive drinking possible then | 12:14 |
Theuni | sigh | 12:14 |
mcdonc | perhaps he'd just send us both to romania. | 12:14 |
Theuni | hmm | 12:15 |
Theuni | drinking and girls it is then | 12:15 |
Theuni | sigh | 12:15 |
mcdonc | i just made my hotel reservations but couldnt get a room at the crowne plaza. i had to stay at the doubletree. | 12:15 |
* Theuni hits ZEO on the head | 12:15 | |
Theuni | ouch | 12:15 |
mcdonc | its right next door | 12:15 |
*** run|home has quit IRC | 12:15 | |
Theuni | if you would have told i probably have a two bed appartment anyway | 12:15 |
Theuni | .oO(punctuation is overrated) | 12:16 |
mcdonc | tres is showing up at some point too (probably just for sprints) | 12:16 |
Theuni | yay | 12:16 |
Theuni | i need to do some al capone sight-seeing | 12:16 |
*** ghendi has joined #zope3-dev | 12:16 | |
mcdonc | i've never been to chicago | 12:16 |
mcdonc | well, except the airport | 12:16 |
mcdonc | i need to remember to bring your blueberry syrup | 12:17 |
*** __mac__ has joined #zope3-dev | 12:20 | |
*** __mac___ has quit IRC | 12:20 | |
*** ignas has joined #zope3-dev | 12:28 | |
*** mkerrin has joined #zope3-dev | 12:30 | |
*** jukart has joined #zope3-dev | 12:37 | |
Theuni | mcdonc: :) | 12:40 |
*** jukart_ has joined #zope3-dev | 12:53 | |
pyqwer | mcdonc: Yes, it works now, deepcopy was the reason. Btw., do you know in which circumstances __delitem__ can be used in BTreeContainers? | 12:56 |
pyqwer | I have a weird problem - I can do a mybtreecontainer['xyz'] = myobj, but when I do a del mybtreecontainer['xyz'], a list(mybtreecontainer) fails, so it's broken. | 12:57 |
pyqwer | I have to explicitly do a "del mybtreecontainer._SampleContainer__data['xyz']". This is somehow inconsistent, moreover it gives me headaches for security/permission declarations. | 12:59 |
*** jukart has quit IRC | 13:11 | |
fcorrea | Hello there. I would like to share some code.. err, a problem actually. I am trying to write something that acquires Annotations from the parent in a recursive method. I've debugged and it is actually returning the value when it founds it, but for some reason the attribution fails. Something like: annotations = getAnnotationsFromParent() doesn't work. I've pasted it here http://paste.plone.org/19657 | 13:14 |
fcorrea | Is there something in zope that I can use to got recusivelly up or down in the acquisition stack? | 13:15 |
pyqwer | I'm no expert but AFAIK, in zope3 things are different than in zope2, so in zope3 there's no acquisition like in zope2. | 13:16 |
*** tarek has quit IRC | 13:16 | |
pyqwer | There is ILocation, though, if that is what you mean. | 13:16 |
fcorrea | pyqwer: This is the same beast from yday. Zope2 + Zope3...I mean, Five | 13:17 |
pyqwer | fcorrea: Hmmm, sorry, don't know much about Five... | 13:17 |
fcorrea | pyqwer: np | 13:18 |
fcorrea | I don't even know if this is a Five problem or a programming issue :) | 13:18 |
afd_ | fcorrea: if your method is recursive, why there's a missing "return" at the end? | 13:18 |
fcorrea | afd_ : But it returs in the firt if I think....or am I missing something? | 13:19 |
*** tarek has joined #zope3-dev | 13:20 | |
fcorrea | afd_ : I think I got it :) | 13:20 |
afd_ | maybe you shouldn't test for IAttributeAnnotatable also, test for IAnnotatable | 13:20 |
afd_ | what was it? | 13:21 |
pyqwer | fcorrea: Hmmm, what about "return self._getAnnotationsFromParent(context=new_context, key=key)"? | 13:21 |
fcorrea | pyqwer, aft_ : I think that was the missing bit. Sorry, my partner is not around and sometimes I need an extra eye to look at my things | 13:22 |
fcorrea | afd_ : In my zcml I am "Marking" the objects with IAttributeAnnotatable. So you think it will provide IAnnotatable directly? | 13:23 |
*** jukart_ has quit IRC | 13:24 | |
fcorrea | pyqwer, afd_ : the missing return did the trick ;) Thanks for that man | 13:24 |
fcorrea | srichter: yt? | 13:25 |
pyqwer | fcorrea: Well, at least form me, recursion often makes my brain explode. Such errors are common. ;-) | 13:26 |
fcorrea | pyqwer: Everytime I think: "I think I am going to use recursion for this" I remember my college tests....which I failed in all of them. That shows now | 13:27 |
*** __mac__ has left #zope3-dev | 13:34 | |
afd_ | fcorrea: IAttributeAnnotatable inherits from IAnnotatable, so yes, any annotatable object provides IAnnotatable | 13:39 |
*** jukart has joined #zope3-dev | 13:41 | |
fcorrea | afd_ : Ahh...cool | 13:48 |
*** projekt01 has joined #zope3-dev | 13:58 | |
*** niemeyer has joined #zope3-dev | 14:03 | |
*** rohni has joined #zope3-dev | 14:17 | |
rohni | Good day all. | 14:17 |
*** goschtl has quit IRC | 14:18 | |
rohni | I am wondering if there is something like verbose-security = on, for zope3. A lot of googling has yielded nothing, and I am trying to debug something that I am 99% sure is a permission problem. | 14:18 |
afd_ | rohni: z3 will give you enough details about Unauthorized exceptions, provided that you log them | 14:19 |
afd_ | you have to configure the error utility not to ignore them | 14:20 |
ccomb | permissions problems are easier to find with ./bin/paster serve debug.ini | 14:20 |
rohni | afd_: Ahh, thanks, where would I find this error utility? | 14:21 |
afd_ | in zmi root, the error tab | 14:21 |
rohni | afd_: I am thinking I need something else in my buildout, to get the paster utility. J will just check the zmi root. Thanks for the advice. | 14:22 |
*** hazmat has quit IRC | 14:23 | |
*** hazmat has joined #zope3-dev | 14:24 | |
*** ChanServ sets mode: +o hazmat | 14:24 | |
rohni | afd_: Thanks, found the error utility, still getting used to the zope3 zmi interface. It is much prettier, but the zope2's zmi's ugliness had the advantage that everything yelled at you. ;) | 14:25 |
rohni | afd_: Thanks, thanks, thanks I have errors galore. :-) | 14:26 |
*** regebro has joined #zope3-dev | 14:32 | |
*** norro has joined #zope3-dev | 14:33 | |
*** jukart has quit IRC | 14:52 | |
*** norro_ has joined #zope3-dev | 14:57 | |
*** norro_ has quit IRC | 14:57 | |
*** J1m has joined #zope3-dev | 15:01 | |
*** goschtl has joined #zope3-dev | 15:03 | |
*** benji has joined #zope3-dev | 15:07 | |
baijum | J1m, Do you have plan to use PasteScript for the new Buildout recipe for Zope 3 based WSGI application or just PasteDeploy ? | 15:14 |
*** alga has joined #zope3-dev | 15:14 | |
*** jodok has joined #zope3-dev | 15:15 | |
*** benji has quit IRC | 15:18 | |
*** benji has joined #zope3-dev | 15:23 | |
*** jayaraj has quit IRC | 15:24 | |
*** danielblackburn has joined #zope3-dev | 15:27 | |
*** danielblackburn has quit IRC | 15:28 | |
*** danielblackburn has joined #zope3-dev | 15:34 | |
*** alga_ has joined #zope3-dev | 15:38 | |
*** goschtl has quit IRC | 15:41 | |
*** baijum has quit IRC | 15:42 | |
J1m | baijum, probably, although I haven't decided. | 15:42 |
J1m | gaaaaa | 15:42 |
*** rohanmaini has joined #zope3-dev | 15:46 | |
*** rohanmaini has left #zope3-dev | 15:48 | |
*** alga has quit IRC | 15:51 | |
*** lucielejard has joined #zope3-dev | 16:04 | |
*** MJ|out is now known as MJ | 16:10 | |
*** afd_ has quit IRC | 16:22 | |
*** dobee has quit IRC | 16:42 | |
*** jodok has quit IRC | 16:54 | |
*** J1m has quit IRC | 17:03 | |
*** J1m has joined #zope3-dev | 17:13 | |
*** romanofski has quit IRC | 17:21 | |
*** philiKON has joined #zope3-dev | 17:22 | |
*** tarek_ has joined #zope3-dev | 17:24 | |
*** tarek has quit IRC | 17:24 | |
*** tarek_ has quit IRC | 17:25 | |
*** tarek has joined #zope3-dev | 17:25 | |
*** philiKON has quit IRC | 17:28 | |
*** sp0cksbeard has joined #zope3-dev | 17:29 | |
pyqwer | Can someone give me advice for creating a catalog/index? | 17:30 |
*** jpfarias_ has joined #zope3-dev | 17:33 | |
*** jpfarias_ has left #zope3-dev | 17:33 | |
*** ghendi has quit IRC | 17:36 | |
*** philiKON has joined #zope3-dev | 17:38 | |
*** philiKON has quit IRC | 17:41 | |
*** danielblackburn has quit IRC | 17:43 | |
*** pcardune has joined #zope3-dev | 17:45 | |
*** nathany has joined #zope3-dev | 17:49 | |
*** jodok has joined #zope3-dev | 17:51 | |
*** rmarianski has joined #zope3-dev | 17:53 | |
*** sorindregan has quit IRC | 18:01 | |
*** rohni has quit IRC | 18:11 | |
*** srichter has quit IRC | 18:14 | |
*** rmarianski has quit IRC | 18:15 | |
*** rmarianski has joined #zope3-dev | 18:15 | |
*** Csiguszinho has joined #zope3-dev | 18:26 | |
Csiguszinho | Hello | 18:27 |
*** Csiguszinho has quit IRC | 18:28 | |
*** danielblackburn has joined #zope3-dev | 18:29 | |
*** ccomb has quit IRC | 18:30 | |
*** ccomb has joined #zope3-dev | 18:31 | |
*** pelle__ has joined #zope3-dev | 18:32 | |
*** jodok has quit IRC | 18:33 | |
*** pelle__ has quit IRC | 18:33 | |
*** pcardune has quit IRC | 18:33 | |
*** jodok has joined #zope3-dev | 18:34 | |
*** run|home_ has quit IRC | 18:35 | |
*** acsr has quit IRC | 18:40 | |
*** jodok_ has joined #zope3-dev | 18:43 | |
*** pelle_ has quit IRC | 18:49 | |
*** maurits has quit IRC | 18:54 | |
*** whit is now known as whit|coffee | 18:55 | |
*** aCiDBaSe has quit IRC | 18:57 | |
*** mgedmin has joined #zope3-dev | 18:58 | |
*** jodok has quit IRC | 19:00 | |
*** philiKON has joined #zope3-dev | 19:04 | |
*** J1m has quit IRC | 19:06 | |
*** jodok_ has quit IRC | 19:10 | |
*** menesis has quit IRC | 19:14 | |
*** acsr has joined #zope3-dev | 19:15 | |
*** quodt has quit IRC | 19:15 | |
*** pcardune has joined #zope3-dev | 19:16 | |
*** pcardune has quit IRC | 19:19 | |
*** harobed has quit IRC | 19:21 | |
*** rmarianski has quit IRC | 19:21 | |
*** rmarianski has joined #zope3-dev | 19:21 | |
*** rmarianski has quit IRC | 19:25 | |
*** rocky has quit IRC | 19:28 | |
*** J1m has joined #zope3-dev | 19:28 | |
*** tarek has quit IRC | 19:34 | |
*** projekt01 has quit IRC | 19:42 | |
*** jpcw2002 has left #zope3-dev | 19:42 | |
*** ccomb has quit IRC | 19:48 | |
*** danielblackburn has quit IRC | 19:49 | |
*** ignas has quit IRC | 19:56 | |
*** jayaraj has joined #zope3-dev | 20:02 | |
*** davidstryker has joined #zope3-dev | 20:04 | |
*** davidstryker has left #zope3-dev | 20:04 | |
*** jayaraj has quit IRC | 20:07 | |
*** whit|coffee is now known as whit | 20:08 | |
*** mkerrin has quit IRC | 20:09 | |
*** alecm has joined #zope3-dev | 20:19 | |
*** RaFromBRC has joined #zope3-dev | 20:30 | |
*** RaFromBRC has quit IRC | 20:31 | |
*** RaFromBRC has joined #zope3-dev | 20:32 | |
*** danielblackburn has joined #zope3-dev | 20:43 | |
*** srichter has joined #zope3-dev | 20:46 | |
*** ChanServ sets mode: +o srichter | 20:50 | |
*** malthe has quit IRC | 20:50 | |
*** alga_ has quit IRC | 20:51 | |
*** tarek has joined #zope3-dev | 21:03 | |
*** rmarianski has joined #zope3-dev | 21:04 | |
*** whitmo has joined #zope3-dev | 21:05 | |
*** danielblackburn has quit IRC | 21:13 | |
*** whitmo_ has joined #zope3-dev | 21:15 | |
*** malthe has joined #zope3-dev | 21:16 | |
*** whit has quit IRC | 21:17 | |
*** dunny has joined #zope3-dev | 21:18 | |
*** whitmo has quit IRC | 21:22 | |
*** jukart has joined #zope3-dev | 21:31 | |
*** whitmo_ has quit IRC | 21:33 | |
*** jukart_ has joined #zope3-dev | 21:38 | |
*** J1m has quit IRC | 21:39 | |
*** J1m has joined #zope3-dev | 21:43 | |
*** whitmo____ has joined #zope3-dev | 21:45 | |
*** ccomb has joined #zope3-dev | 21:45 | |
*** malthe_ has joined #zope3-dev | 21:48 | |
*** malthe has quit IRC | 21:48 | |
*** afd_ has joined #zope3-dev | 21:48 | |
*** J1m has quit IRC | 21:51 | |
*** J1m has joined #zope3-dev | 21:52 | |
*** sm has quit IRC | 21:52 | |
*** jukart_ has quit IRC | 21:52 | |
*** jukart has quit IRC | 21:55 | |
*** whitmo____ has quit IRC | 22:01 | |
*** danielblackburn has joined #zope3-dev | 22:06 | |
*** danielblackburn has quit IRC | 22:21 | |
*** markusleist has quit IRC | 22:22 | |
*** danielblackburn has joined #zope3-dev | 22:23 | |
*** rmarianski has quit IRC | 22:59 | |
*** rmarianski has joined #zope3-dev | 23:00 | |
*** danielblackburn has quit IRC | 23:00 | |
*** toutpt has joined #zope3-dev | 23:02 | |
toutpt | hi | 23:06 |
toutpt | i m just have setting up a zope3 instance, i would like to plug it to my apache | 23:06 |
toutpt | i have find two ways of doing it : rewrite or virtualhost | 23:07 |
toutpt | is there a best one ? | 23:07 |
mgedmin | what's the difference? | 23:07 |
*** whit has joined #zope3-dev | 23:07 | |
toutpt | this is my question in fact | 23:07 |
mgedmin | typical zope3 under apache is a rewrite rule inside an apache's <VirtualHost> section, and the rewrite rule itself uses zope's ++vh++ namespace to tell zope the name of the virtual host | 23:08 |
mgedmin | something like | 23:09 |
mgedmin | RewriteRule ^/(.*) http://localhost:8080/++vh++http:yourhostname:80/++/$1 [R,L] | 23:09 |
toutpt | well, that s make it more clear for me | 23:09 |
mgedmin | sorry! | 23:09 |
mgedmin | RewriteRule ^/(.*) http://localhost:8080/++vh++http:yourhostname:80/++/$1 [P,L] | 23:09 |
mgedmin | you also need to enable apache's mod_proxy and mod_rewrite | 23:09 |
toutpt | i have read that rewrite is slow | 23:10 |
toutpt | in a very old doc | 23:10 |
mgedmin | I have heard that putting zope 3 without apache in front of it is unsecure | 23:10 |
toutpt | for sure, i don't want an other web server than apache in front of my server | 23:10 |
toutpt | thank you mgedmin | 23:11 |
mgedmin | np | 23:11 |
mgedmin | fwiw when you'll decide you want an https version, the rule is | 23:11 |
mgedmin | RewriteRule ^/(.*) http://localhost:8080/++vh++https:yourhostname:443/++/$1 [P,L] | 23:11 |
pyqwer | Does someone know what this error is about? | 23:13 |
pyqwer | File "/local/home/dusty/Zope-3.4.0c1/lib/python/zope/app/keyreference/persistent.py", line 39, in __init__ | 23:13 |
pyqwer | raise zope.app.keyreference.interfaces.NotYet(object) | 23:13 |
pyqwer | NotYet: <zfym_tennis.match.ZMatch object at 0x413a938> | 23:13 |
pyqwer | I tried to register an object with an IIntIds utility, maybe something is missing here? | 23:14 |
philiKON | yup | 23:14 |
philiKON | you need to make sure it knows which database it'll be added to | 23:14 |
philiKON | give it some __parent__ linkage to an already persisted object | 23:15 |
philiKON | or explicitly add it to the respective zodb database | 23:15 |
philiKON | iirc, something like some_obj_thats_in_the_same_database._p_jar.add(your_obj) | 23:15 |
pyqwer | Ah, ok, so I thought I should do that the other way round, let me see... | 23:16 |
philiKON | RMFB :) | 23:17 |
pyqwer | philiKON: Ah, it seems to have worked now, thanks! Now let's see if the object was added to the index... | 23:18 |
pyqwer | Yes, I have the FB in front of me ;-) | 23:18 |
pyqwer | Hmmm, it's not added. :-( | 23:20 |
pyqwer | philiKON: Do I have to set up a subscriber for the catalog so that if I do iints.register(myobj), the catalog/index is updated? | 23:23 |
philiKON | shrug, why are you doing the registration manually? | 23:24 |
philiKON | you could simply send an ObjectAddedEvent | 23:24 |
pyqwer | Because I don't use the ZMI. The only thing I do is add my site via the ZMI, and the setup routine should register everything automatically. | 23:25 |
philiKON | what does this have to do with the zmi | 23:25 |
pyqwer | Hmmm, you said "manually", therefore I thought you ment "not via ZMI". | 23:25 |
philiKON | typically, when you send an ObjectAddedEvent, everything happens automatically | 23:26 |
pyqwer | Won't the ObjectAddedEvent automatically be sent when I add some object to the ZODB? | 23:26 |
philiKON | registration in the intid utilty | 23:26 |
philiKON | registration with any indices | 23:26 |
philiKON | etc. | 23:26 |
philiKON | no, it won't | 23:26 |
philiKON | it's sent when you add something to a container | 23:26 |
philiKON | but i suspect you aren't | 23:26 |
philiKON | hmm, ObjectAddedEvents are actually about adding stuff to a container | 23:26 |
philiKON | so maybe they're the wrong kind of event here | 23:26 |
philiKON | either way, when you register something with the intid utility, nothing will be done automatically after that | 23:27 |
philiKON | if you want to get the object indexed, you need to tell any catalogs as well | 23:27 |
pyqwer | Yes, right. I have a Container and I'm adding an object. But wait, I first add it (which fires the event) and then I do a iintids.register(myobj). | 23:27 |
pyqwer | So perhaps the event comes too late? | 23:27 |
philiKON | you shouldn't have to do that registration yourself | 23:27 |
philiKON | too late for what? | 23:27 |
philiKON | some_container['foo'] = your_object() will send that event | 23:28 |
philiKON | but then again, it should also get your_object().__parent__ | 23:28 |
pyqwer | Ah, ok, that's your point - I don't have to do the registration. Hmmm. | 23:28 |
philiKON | which it apparently didn't before | 23:28 |
*** redir has joined #zope3-dev | 23:28 | |
*** d2m has quit IRC | 23:28 | |
philiKON | so it seems your container isn't really performing according to IContainer | 23:28 |
pyqwer | Because this is what I read in the doctests: >>> d1 = Dummy(u'one') >>> id1 = intids.register(d1) >>> catalog.indexDocSubscriber(IntIdAddedEvent(d1, None)) | 23:29 |
philiKON | well, this then is more of a test than 'doc' | 23:29 |
philiKON | this isn't how you should use intids | 23:29 |
pyqwer | Hmmm, or my IIntids / catalog / indexes are not set up correctly. | 23:29 |
philiKON | dude, i explained all this in my book | 23:29 |
pyqwer | Well, sorry, but I didn't get it in your book - you wrote about a fulltext search, but I need to index single attributes. | 23:30 |
philiKON | well, that's a minor detail here isn't it. | 23:30 |
philiKON | that's just a different kind of index you pop into the catalog | 23:30 |
pyqwer | Yes, I thought so, too. The setup is all the same, only that I have another Index class (which I merely copied from the catalog-doctest) and plug into the catalog. | 23:31 |
philiKON | uh huh... so you implemented your own index? | 23:32 |
pyqwer | Yes, I have to, don't I? | 23:32 |
philiKON | uh... no?!? | 23:32 |
philiKON | i don't implement my own full text index in the book, do i? | 23:32 |
mgedmin | pyqwer: does your object provide IContained? | 23:33 |
*** aCiDBaSe has joined #zope3-dev | 23:33 | |
*** jukart has joined #zope3-dev | 23:33 | |
mgedmin | if not, you'll get this error | 23:33 |
mgedmin | containers only set the __parent__ attribute to objects that provide IContained | 23:33 |
philiKON | shouldn't it work with other kinds of objects, too? | 23:34 |
philiKON | after all, the container will put a containedproxy around it | 23:34 |
pyqwer | Ah, it did not, it does implement ILocation, though (and I manually locate the object via "locate()") | 23:35 |
philiKON | shrug | 23:35 |
philiKON | make it provide IContained then | 23:35 |
philiKON | it's the same as ILocation | 23:35 |
philiKON | plus that added notion of "i'm in a container" | 23:35 |
philiKON | you shouldn't have to locate it yourself | 23:35 |
philiKON | the container does that | 23:35 |
philiKON | in fact, if it already provides ILocation, *IIRC* the container will apply IContained on it | 23:36 |
*** seba870 has joined #zope3-dev | 23:36 | |
pyqwer | Changed it to IContainer, no much difference, though. | 23:36 |
philiKON | yup: | 23:36 |
philiKON | if not IContained.providedBy(object): | 23:36 |
philiKON | if ILocation.providedBy(object): | 23:36 |
philiKON | zope.interface.alsoProvides(object, IContained) | 23:36 |
*** jukart_ has joined #zope3-dev | 23:36 | |
philiKON | pyqwer: it seems you're doing a lot of things manually that are done by the framework | 23:36 |
mgedmin | ah | 23:37 |
philiKON | like putting things into the object hierarchy (__parent__) and regstering things with different kinds of utilities (intid, catalog, etc.) | 23:37 |
*** mgedmin has quit IRC | 23:37 | |
seba870 | salut | 23:37 |
seba870 | y a qq un? | 23:37 |
pyqwer | philiKON: Ah, ha! If I don't call locate() before adding the object to the container, the index routine is called. (Which raises an error, but that's another topic). | 23:39 |
*** seba870 has quit IRC | 23:40 | |
pyqwer | philiKON: YES! And now the object is added to my index. One more question: If I don't write the index for myself, what index class should I use for a simple attribute index? I need to index simple string attributes but also a list attribute where a search should match if one item is found in the list. | 23:43 |
*** srichter has quit IRC | 23:43 | |
philiKON | zc.catalog's ValueIndex | 23:43 |
philiKON | iirc | 23:43 |
*** afd_ has quit IRC | 23:44 | |
pyqwer | Ah, nice, didn't know about that, thanks! | 23:44 |
*** jukart has quit IRC | 23:53 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!