*** rockyburt has quit IRC | 00:03 | |
*** rockyburt has joined #zope3-dev | 00:03 | |
*** jan_s has quit IRC | 00:05 | |
*** sawdog has left #zope3-dev | 00:09 | |
*** jan_s__ has joined #zope3-dev | 00:14 | |
*** jan_s__ is now known as jan_s | 00:14 | |
*** jan_s has left #zope3-dev | 00:15 | |
*** jinty has joined #zope3-dev | 00:16 | |
*** dobee has quit IRC | 00:18 | |
*** jhauser has quit IRC | 00:21 | |
*** guruz has quit IRC | 00:24 | |
*** barzinho has quit IRC | 00:30 | |
*** jan_s_ has quit IRC | 00:33 | |
*** dobee has joined #zope3-dev | 00:34 | |
*** alga has joined #zope3-dev | 00:54 | |
*** srichter has quit IRC | 00:59 | |
*** srichter has joined #zope3-dev | 01:14 | |
*** ChanServ sets mode: +o srichter | 01:14 | |
skeeter | Hey everyone. I've got a question regarding INameChooser. I have some content that I want to use a certain field as the name. I'm using IContainerNamesContainer marker adapter. My NamesChooser works fine when new content is created. The problem is that I want the name to get updated when the field is updated. It apears that NameChooser only happens at creation... I've tried hooking into the constraint for the field, but that doesn't seem | 01:25 |
---|---|---|
*** rockyburt has quit IRC | 01:30 | |
srichter | skeeter: Basically you have to do a rename, whenever the field changes | 01:31 |
srichter | the easiest would be to send out an event when the field is changed and then have a subscriber that does the renaming spiel | 01:32 |
*** dobee has quit IRC | 01:32 | |
skeeter | I thought about that, but then if there is already something with that name, there would be a conflict and the field value would be out of sync or invalid. | 01:32 |
srichter | well, your subscriber can raise an error | 01:33 |
srichter | also note that you can easily have a constraint/invariant, since the name of the object is sotred in __name__ | 01:34 |
srichter | so there are severla possibilities to handle this problem | 01:34 |
skeeter | hmm. I'll need to think about __name__. I just can't change __name__ without getting the container to know about the change and aprove it. | 01:35 |
srichter | right, you still need the subscriber | 01:35 |
srichter | I would have the subscriber handle it all | 01:35 |
skeeter | If I could get the constraint to call the container's checkName, that would work. | 01:35 |
skeeter | but constraints don't know about objects and parents. they only take a value to check... I think.... | 01:36 |
skeeter | I always thought subscribers dealt with things after they happened. I want to not let the field get changed if the new value is already in use as a name. | 01:37 |
skeeter | It's very much like a constraint, but it needs to be container aware. | 01:38 |
skeeter | Maybe I'm missing something, but this seems more complicated than it should be. | 01:38 |
srichter | the event should be an object event | 01:39 |
srichter | and you get the container using zapi.getParent(event.object) | 01:39 |
srichter | then you have all the objects you need | 01:39 |
srichter | events can happen at any time you want them to happen | 01:40 |
skeeter | hmm... ok, I'll think about it more. Thanks for the info. | 01:41 |
*** yota has quit IRC | 01:50 | |
*** philiKON has joined #zope3-dev | 01:58 | |
*** tarek has quit IRC | 02:02 | |
*** dunny has left #zope3-dev | 02:18 | |
*** dunny has joined #zope3-dev | 02:38 | |
*** philiKON has quit IRC | 02:46 | |
*** zbir has joined #zope3-dev | 02:52 | |
*** mcdonc has joined #zope3-dev | 03:25 | |
*** stub has joined #zope3-dev | 03:32 | |
*** alga has quit IRC | 04:03 | |
*** jinty has quit IRC | 04:04 | |
*** kamalgill is now known as kamalgill-away | 04:05 | |
*** kamalgill-away has quit IRC | 04:07 | |
*** mcdonc has quit IRC | 04:16 | |
*** trevorp-office has quit IRC | 04:29 | |
*** wrobel has quit IRC | 04:56 | |
*** stu1 has joined #zope3-dev | 05:14 | |
*** stu1 has quit IRC | 05:16 | |
*** stub has quit IRC | 05:19 | |
*** stub has joined #zope3-dev | 05:19 | |
*** natea has quit IRC | 05:22 | |
*** natea has joined #zope3-dev | 05:23 | |
*** stub has joined #zope3-dev | 05:38 | |
*** trevorp-office has joined #zope3-dev | 05:38 | |
*** SteveA has quit IRC | 05:49 | |
*** xenru has joined #zope3-dev | 06:02 | |
*** MiUlEr has joined #zope3-dev | 06:21 | |
*** kamalgil1 has joined #zope3-dev | 06:54 | |
*** whit has quit IRC | 07:05 | |
*** kamalgil1 is now known as kamalgill | 07:22 | |
*** MiUlEr has quit IRC | 07:46 | |
eins | hi all | 08:05 |
*** hazmat is now known as haz-crash | 08:07 | |
*** haz-crash has left #zope3-dev | 08:07 | |
*** zagy has joined #zope3-dev | 08:22 | |
*** newpers has quit IRC | 08:34 | |
*** zagy has quit IRC | 08:44 | |
*** dobee has joined #zope3-dev | 08:54 | |
*** dunny has quit IRC | 09:07 | |
*** zagy_ has joined #zope3-dev | 09:18 | |
*** dunny has joined #zope3-dev | 09:25 | |
*** kamalgil1 has joined #zope3-dev | 09:26 | |
*** kamalgill has quit IRC | 09:33 | |
*** kamalgil1 has left #zope3-dev | 09:33 | |
*** romanofski has joined #zope3-dev | 09:36 | |
romanofski | moin | 09:38 |
*** yota has joined #zope3-dev | 09:39 | |
*** MJ has quit IRC | 09:54 | |
*** j-w has joined #zope3-dev | 10:00 | |
*** tarek has joined #zope3-dev | 10:10 | |
eins | hi romanofski | 10:22 |
romanofski | hey eins :) | 10:24 |
*** srichter has quit IRC | 10:46 | |
*** russf has quit IRC | 10:48 | |
*** russf has joined #zope3-dev | 10:53 | |
*** srichter has joined #zope3-dev | 10:58 | |
*** qk has joined #zope3-dev | 11:23 | |
qk | hi. | 11:23 |
qk | when i have instaled zope.interfaces, zope.testbrowser isn't working :( | 11:23 |
qk | http://deadbeefbabe.org/paste/2972 | 11:24 |
*** tonico has quit IRC | 11:24 | |
*** MJ has joined #zope3-dev | 11:25 | |
*** MJ has joined #zope3-dev | 11:26 | |
*** agroszer has joined #zope3-dev | 11:27 | |
*** srichter has quit IRC | 11:29 | |
*** sashav has joined #zope3-dev | 11:30 | |
*** d2m has quit IRC | 11:39 | |
*** slinkP has left #zope3-dev | 11:46 | |
*** dlk has joined #zope3-dev | 11:57 | |
qk | hmm.. workaround for it is force testbrowser to use dummymodules.interfaces insted zope.interfaces. | 12:01 |
qk | Maybe it is kind of incompability and testbroeser works only with some zope.interfaces versions? | 12:02 |
*** anguenot has quit IRC | 12:05 | |
*** philiKON has joined #zope3-dev | 12:16 | |
*** dunny has quit IRC | 12:17 | |
*** danfairs has joined #zope3-dev | 12:39 | |
*** mgedmin has joined #zope3-dev | 12:47 | |
*** Aiste has quit IRC | 12:47 | |
*** faassen has joined #zope3-dev | 12:47 | |
*** rockyburt has joined #zope3-dev | 12:52 | |
*** agroszer has quit IRC | 13:00 | |
*** alga has joined #zope3-dev | 13:02 | |
*** _anguenot has joined #zope3-dev | 13:04 | |
*** MrTopf has joined #zope3-dev | 13:07 | |
*** d2m has joined #zope3-dev | 13:13 | |
*** Aiste has joined #zope3-dev | 13:27 | |
*** juan_lago has joined #zope3-dev | 13:30 | |
*** rockybur1 has joined #zope3-dev | 13:40 | |
*** srichter has joined #zope3-dev | 13:47 | |
*** rockyburt has quit IRC | 13:49 | |
*** rockybur1 is now known as rockyburt | 13:49 | |
*** juan_lago has quit IRC | 13:53 | |
*** _root has joined #zope3-dev | 13:55 | |
*** _root has quit IRC | 13:58 | |
*** _root has joined #zope3-dev | 13:59 | |
*** _root has quit IRC | 14:01 | |
*** _root has joined #zope3-dev | 14:02 | |
*** _root has quit IRC | 14:03 | |
*** _root has joined #zope3-dev | 14:04 | |
*** _root has quit IRC | 14:07 | |
*** JiVo has joined #zope3-dev | 14:07 | |
*** mkerrin has joined #zope3-dev | 14:09 | |
*** ChanServ sets mode: +o srichter | 14:17 | |
*** tonico has joined #zope3-dev | 14:31 | |
*** benji has quit IRC | 14:46 | |
*** agroszer has joined #zope3-dev | 15:03 | |
*** alga has quit IRC | 15:07 | |
*** benji has joined #zope3-dev | 15:40 | |
*** alga has joined #zope3-dev | 16:01 | |
*** zagy_ has quit IRC | 16:03 | |
*** efge has joined #zope3-dev | 16:08 | |
*** zagy has joined #zope3-dev | 16:10 | |
*** ruda_porto has joined #zope3-dev | 16:30 | |
*** zagy has quit IRC | 16:36 | |
*** wrobel has joined #zope3-dev | 16:43 | |
*** romanofski is now known as rom|aw | 16:47 | |
*** jhauser has joined #zope3-dev | 16:47 | |
*** sawdog has joined #zope3-dev | 16:49 | |
*** vlado has joined #zope3-dev | 16:49 | |
*** zagy has joined #zope3-dev | 17:02 | |
*** dlk has quit IRC | 17:02 | |
*** whit has joined #zope3-dev | 17:06 | |
*** JiVo has quit IRC | 17:12 | |
*** jukart has joined #zope3-dev | 17:28 | |
*** MJ has quit IRC | 17:29 | |
*** jukart has left #zope3-dev | 17:30 | |
*** J1m has joined #zope3-dev | 17:31 | |
*** J1m has left #zope3-dev | 17:37 | |
*** eins has quit IRC | 17:43 | |
*** russf has quit IRC | 17:44 | |
*** rom|aw is now known as romanofski | 17:50 | |
*** vlado has quit IRC | 17:50 | |
*** russf has joined #zope3-dev | 17:50 | |
*** __mac__ has joined #zope3-dev | 18:01 | |
*** sashav has quit IRC | 18:04 | |
*** MJ has joined #zope3-dev | 18:09 | |
__mac__ | hi, is there a reason formlib uses "zope.formlib" as translation domain instead of "zope"? | 18:14 |
philiKON | good question... | 18:15 |
__mac__ | translation of messages only works when it is set to zope | 18:15 |
__mac__ | maybe it is because formlib's messages are translated in zope.po | 18:16 |
__mac__ | ... I don't know ... just a guess | 18:16 |
benji | __mac__, I don't know if there is a larger reason, but zope.formlib evolved from zc.form (never publicly released) and I'm sure it had its own translation domain, so it might just be a transliteration of that | 18:17 |
philiKON | i actually think that most zope.* libraries shoudl have their own translation domain | 18:18 |
philiKON | because some of them can be used independently | 18:19 |
philiKON | not entirely sure aobut zope.formlib | 18:19 |
benji | yep, I think so too | 18:19 |
philiKON | either way, the current extractor tool can't figure out the domain of python based message ids | 18:19 |
philiKON | that's why all of them end up in zope.pot | 18:19 |
__mac__ | should I file a bug into the collector? | 18:24 |
*** srichter has quit IRC | 18:27 | |
philiKON | __mac__, good idea | 18:29 |
*** tiredbones has left #zope3-dev | 18:32 | |
*** tiredbones has joined #zope3-dev | 18:33 | |
__mac__ | philiKON, done | 18:36 |
philiKON | thanks | 18:36 |
__mac__ | np | 18:36 |
*** skeeter has quit IRC | 18:46 | |
*** dobee has quit IRC | 18:57 | |
*** romanofski is now known as rom|aw | 19:21 | |
*** stub has quit IRC | 19:25 | |
*** agroszer has quit IRC | 19:28 | |
*** russf has quit IRC | 19:29 | |
*** skeeter has joined #zope3-dev | 19:30 | |
*** natea has quit IRC | 19:35 | |
*** natea has joined #zope3-dev | 19:36 | |
*** rockyburt has quit IRC | 19:37 | |
*** dunny has joined #zope3-dev | 19:51 | |
*** rockyburt has joined #zope3-dev | 19:53 | |
*** dobee has joined #zope3-dev | 19:54 | |
*** dobee_ has joined #zope3-dev | 20:11 | |
*** deo has joined #zope3-dev | 20:11 | |
*** dobee has quit IRC | 20:18 | |
*** sawdog has left #zope3-dev | 20:24 | |
*** ruda_porto has quit IRC | 20:26 | |
*** jinty has joined #zope3-dev | 20:28 | |
*** j-w has quit IRC | 20:28 | |
*** Aiste has quit IRC | 20:29 | |
*** sashav has joined #zope3-dev | 20:30 | |
*** faassen has quit IRC | 20:41 | |
tiredbones | Can anyone tell me how to get the code for the zope3 book that's online. | 20:44 |
*** gumpa has joined #zope3-dev | 20:45 | |
d2m | tiredbones: i think its over gere http://svn.zope.org/book/trunk/ | 20:48 |
*** Aiste has joined #zope3-dev | 20:52 | |
*** dobee has joined #zope3-dev | 20:53 | |
*** dobee_ has quit IRC | 20:53 | |
tiredbones | d2m, thanks - I found that one but you have to download them separately. Do you know of a zip file? | 20:54 |
d2m | tiredbones: you could use a SVN client | 20:54 |
tiredbones | d2m, ok | 20:55 |
d2m | tiredbones: SVN checkout instructions are here http://www.zope.org/DevHome/Subversion/ReadOnlyAccess | 20:56 |
tiredbones | d2m, I got a 301, it moved. Do you have any idea where it moved to? | 21:03 |
d2m | tiredbones: a 301 on which URL ? | 21:03 |
tiredbones | d2m, http://svn.zope.org/book/trunk/ | 21:04 |
d2m | tiredbones: in your SVN browser its likely svn://svn.zope.org/repos/main/book/trunk | 21:06 |
*** zagy has quit IRC | 21:06 | |
tiredbones | d2m, ok - i got it, thanks | 21:07 |
d2m | np | 21:07 |
*** dobee_ has joined #zope3-dev | 21:15 | |
*** mkerrin has quit IRC | 21:17 | |
*** dobee has quit IRC | 21:18 | |
*** |den_RDC| has joined #zope3-dev | 21:27 | |
|den_RDC| | i am planning to use zope.interfaces (only the interfaces )in one of my apps - i read a bit about it, and it seems pretty clear how it works - the only thing i don't get is how one should find classes the implement a certain object (is there a mechanism provided to do that ?) | 21:28 |
|den_RDC| | i'll give an example | 21:28 |
*** russf has joined #zope3-dev | 21:29 | |
|den_RDC| | i've got a program that needs to control a dns server, but not all installations will use the same dnsserver (backend) ... so i'll write an interface that defines what the program can do with dns records & such, and i'll write one class per backend that implemnts the interface | 21:29 |
efge | |den_RDC|: you need some kind of registry. the interfaces by themselves don't do that | 21:30 |
|den_RDC| | is there a "builtin" way in zope.interfaces that let's me query which classes implement a certain interface , or do i have to keep track of that myzelf? | 21:30 |
efge | however zope.component's adapters are designed to do that | 21:30 |
*** kamalgill has joined #zope3-dev | 21:31 | |
*** fcorrea has joined #zope3-dev | 21:31 | |
efge | hm strike that, adapters are also in zope.interface | 21:31 |
efge | anyway | 21:31 |
|den_RDC| | i'll have a look at components then, thx | 21:32 |
*** vinsci has quit IRC | 21:41 | |
*** dobee_ has quit IRC | 21:41 | |
*** agroszer has joined #zope3-dev | 21:44 | |
*** agroszer has quit IRC | 21:47 | |
*** danfairs has quit IRC | 21:50 | |
*** efge has quit IRC | 22:05 | |
*** _anguenot has quit IRC | 22:31 | |
*** dunny_ has joined #zope3-dev | 22:37 | |
*** dunny has quit IRC | 22:37 | |
*** alga has quit IRC | 22:52 | |
*** mgedmin has quit IRC | 22:57 | |
*** rockyburt is now known as rockyburt|hockey | 23:03 | |
*** srichter has joined #zope3-dev | 23:16 | |
*** natea has quit IRC | 23:20 | |
*** natea has joined #zope3-dev | 23:21 | |
*** philiKON has quit IRC | 23:30 | |
*** jinty has quit IRC | 23:34 | |
*** jinty has joined #zope3-dev | 23:38 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!