IRC log of #zope3-dev for Monday, 2008-02-25

*** Jell-O-Fishi has quit IRC00:08
*** regebro has quit IRC00:14
*** tarek has quit IRC00:16
*** jukart has joined #zope3-dev00:19
*** jukart_ has joined #zope3-dev00:22
*** mgedmin has quit IRC00:28
*** jukart has quit IRC00:38
*** greenman has joined #zope3-dev00:41
*** d2m has quit IRC00:42
*** tarek has joined #zope3-dev00:43
*** tarek has quit IRC00:47
*** jukart_ has quit IRC00:52
*** harobed has quit IRC00:54
*** tarek has joined #zope3-dev01:06
*** timte has quit IRC01:16
*** markusleist has left #zope3-dev01:42
*** tarek has quit IRC01:44
*** J1m has quit IRC01:50
*** jpcw2002 has left #zope3-dev01:58
*** Leefmc has joined #zope3-dev02:15
*** greenman has quit IRC02:16
*** Leefmc has left #zope3-dev02:47
*** malthe is now known as malthe|Zzz03:01
*** whitmo has joined #zope3-dev03:05
*** whitmo has quit IRC03:12
*** whitmo has joined #zope3-dev03:12
*** greenman has joined #zope3-dev03:22
*** whit has quit IRC03:23
*** hexsprite has quit IRC03:32
*** natea_ has quit IRC03:38
*** hexsprite has joined #zope3-dev03:47
*** greenman has quit IRC04:13
*** pcardune has quit IRC04:23
*** natea_ has joined #zope3-dev04:38
*** rcrafton has quit IRC05:09
*** natea_ has quit IRC05:39
*** sm has quit IRC06:10
*** natea_ has joined #zope3-dev06:24
*** redir has quit IRC06:29
*** stub has joined #zope3-dev06:29
*** natea_ has quit IRC06:41
*** whitmo has quit IRC06:45
*** tarek has joined #zope3-dev06:49
*** tarek has quit IRC06:59
*** whit has joined #zope3-dev07:06
*** kursor has joined #zope3-dev07:07
*** baijum has joined #zope3-dev07:11
*** sm has joined #zope3-dev07:14
*** sm has quit IRC07:15
*** redir has joined #zope3-dev07:18
*** kursor has quit IRC07:18
*** natea_ has joined #zope3-dev07:20
*** whit has quit IRC07:23
*** rmarianski has joined #zope3-dev07:35
*** redir has quit IRC07:43
*** d2m has joined #zope3-dev08:00
*** jayaraj has joined #zope3-dev08:03
*** natea_ has quit IRC08:04
*** philiKON_ has joined #zope3-dev08:06
*** jukart has joined #zope3-dev08:12
*** zagy has quit IRC08:12
*** natea_ has joined #zope3-dev08:14
*** greenman has joined #zope3-dev08:19
*** philiKON has quit IRC08:23
*** ghendi has joined #zope3-dev08:28
*** jukart has quit IRC08:30
*** baijum has quit IRC08:43
*** baijum has joined #zope3-dev08:44
*** sorin has joined #zope3-dev08:47
*** sorin is now known as sorindregan08:47
baijumCan anyone give a pointer to how ZEO is sharing global components (eg: utilities) ?08:50
*** jukart has joined #zope3-dev08:57
*** __mac__ has joined #zope3-dev09:03
*** b52laptop has quit IRC09:04
*** greenman has quit IRC09:07
*** timte has joined #zope3-dev09:13
*** natea_ has quit IRC09:16
*** afd_ has joined #zope3-dev09:18
Theunibaijum: zeo doesn't do anything special for that ...09:19
*** natea_ has joined #zope3-dev09:26
*** rmarianski has quit IRC09:30
*** romanofski has joined #zope3-dev09:30
*** markusleist has joined #zope3-dev09:35
*** encolpe has joined #zope3-dev09:54
encolpehello09:54
*** gimni has joined #zope3-dev09:55
encolpeDid anybody, but wichert, get this bug and solve it ?09:55
encolpehttps://bugs.launchpad.net/zope2/+bug/14394109:55
afd_encolpe: I think that looks more like a broken interface (not inheriting Interface, or something like that)09:57
afd_philiKON_ might know more about it, as he rejected the bug09:58
encolpeThe interface that raise the bug unherit directly from zope.interface.Interface09:59
encolpeIt's like something remove the attribute '__iro__'09:59
baijumTheuni, well then how a  global component is shared between Zope instances ?09:59
philiKON_encolpe: ICurrencyManager seems to be a class10:00
philiKON_encolpe: because it says "type object"10:00
philiKON_encolpe: so fix CMFCore so that ICurrencyManager is actually an interface10:00
philiKON_see my explanation https://bugs.edge.launchpad.net/zope2/+bug/143941/comments/010:01
encolpehtanks10:02
encolpewhy your comment is not available from the first link ?10:04
*** pelle_ has joined #zope3-dev10:04
philiKON_yeah, i wonder too10:05
baijumphiliKON_, can you give me pointer how a  global component is shared between Zope instances ?10:05
philiKON_something got messed up10:05
philiKON_baijum: huh?10:05
philiKON_encolpe: see the " This description was updated. View original description" link on the original page10:05
baijumIf I a register a global utility and use with Mutiple zope instances (using ZEO) can I get that utility transparently in all instances ?10:06
*** stub has quit IRC10:06
baijumor am I missing something ?10:07
*** pyqwer has joined #zope3-dev10:07
philiKON_ZEO will only allow you to share objects that are in the ZODB10:07
philiKON_a global utility isn't in the ZODB per definitionem10:08
afd_philiKON_: would _v_ attributes be shared?10:08
philiKON_i don't think so10:08
afd_ok10:08
philiKON_now, since you should be running the same software configuration on those zeo clients, you should be able to say getUtility(IFoo) on all those clients10:09
baijumif I set an attribute of a global component, will the other instance also get updated ?10:09
*** stub has joined #zope3-dev10:09
philiKON_but they will obviously yield different objects10:09
philiKON_baijum: no, of course not10:09
*** markusleist has joined #zope3-dev10:09
*** jodok has joined #zope3-dev10:09
baijumphiliKON_, ok. thanks10:10
afd_philiKON_: is the session shared?10:14
philiKON_session?10:14
afd_ISession I mean10:14
philiKON_god heavens no10:14
afd_ok10:14
philiKON_only for the same browser obviousuly10:14
philiKON_the ISession adapter uses an IClientId adapter to determine a unique id for each client10:15
philiKON_so whenever a client comes back, it'll get the same session associated10:15
philiKON_the session storage *can* be shared over zeo, but doesn't have to10:15
philiKON_there are scaling drawbacks when you share it over zeo10:16
afd_ok... I was thinking that baijum maybe can share data between the zopes using the session10:16
afd_of course, client/browser dependent10:16
afd_what about the ram cache utility? I was under the impression that that isn't shared between zopes too10:16
philiKON_uh, dude, it's called the *RAM* cache utility :)10:17
*** MacYET has joined #zope3-dev10:17
*** malthe|Zzz is now known as malthe10:18
afd_yeah... but doesn't hurt asking10:19
baijumphiliKON_, so ZEO can scale your app only if you are using ZDOB, is it?10:19
afd_baijum: maybe you can store that object in memcache :)10:19
philiKON_well yeah10:19
philiKON_if you're using some other data storage, use *its* scaling mechanism10:19
philiKON_e.g. a non-issue when you're using a relational storage10:20
philiKON_because each client would simply connect to the storage server10:20
philiKON_yeah, memcached works10:21
*** markusleist has quit IRC10:27
pyqwerHi, I finally managed to index my objects, however, when changing object attributes, the objects are not reindexed - does anyone know why/what to do?10:34
*** tarek has joined #zope3-dev10:34
*** MJ has joined #zope3-dev10:36
*** bigkevmcd has joined #zope3-dev10:36
*** jpcw2002 has joined #zope3-dev10:41
*** harobed has joined #zope3-dev10:41
philiKON_pyqwer: sending objectmodifiedevents?10:42
*** malthe has quit IRC10:44
pyqwerAh, ok, now I do a "zope.event.notify(zope.lifecycleevent.ObjectModifiedEvent(self.context))" and it reindexes.10:44
pyqwerInteresting - I thought this event would be automatically fired when modifiying an object attribute.10:45
philiKON_nope10:45
philiKON_the rule is: "you do something to an object, you'll have to send the event about it"10:45
*** ccomb has quit IRC10:46
pyqwerOk, I understand. But for creation, this is different, isn't it?10:46
philiKON_it isn't different10:46
philiKON_you're supposed to send an ObjectCreated event10:46
philiKON_the only time when you don't have to send an event is adding or removing things to/from a container10:47
philiKON_but technically speaking, you're not adding or removing stuff, the container is10:47
philiKON_because the container ends up modifying obj.__parent__ and obj.__name__, you aren't10:47
philiKON_so it's the container's chore10:47
pyqwerOk, so that's the reason why I don't have to notify when adding objects to a container.10:48
pyqwerGood to know, many thanks.10:48
philiKON_this is all in the book, btw10:49
*** ccomb has joined #zope3-dev10:49
pyqwerHmmm, it seems I have to reread it very thoroughly.10:49
pyqwerOne more thing: When I retrieve values from my index, they seem to be in arbitrary order. However, I need to order them (e.g. after a attribute "Date"). Is this somehow supported in the index?10:50
*** malthe has joined #zope3-dev10:51
philiKON_yes and no10:51
philiKON_indexes have a built-in ordering because of their usage of btrees10:51
philiKON_you can make clever use of that10:52
philiKON_but in general, you'll have to do some sorting10:52
philiKON_which is an involved process on large result sets...10:52
* philiKON_ afk10:52
pyqwerOk, thanks, maybe I can do the trick via the btree...10:54
*** vimes656 has joined #zope3-dev10:57
*** maurits_ has joined #zope3-dev11:01
*** maurits_ is now known as maurits11:05
*** __mac__ has left #zope3-dev11:14
*** thruflo has joined #zope3-dev11:16
*** toutpt has joined #zope3-dev11:22
*** yvl has joined #zope3-dev11:27
*** agroszer has joined #zope3-dev11:28
*** b52laptop has joined #zope3-dev11:31
*** encolpe has quit IRC11:32
*** greenman has joined #zope3-dev11:36
*** gstratton has joined #zope3-dev12:10
*** stub has quit IRC12:10
*** mkerrin has joined #zope3-dev12:40
*** jinty has joined #zope3-dev12:46
*** fcorrea has joined #zope3-dev12:46
*** projekt01 has joined #zope3-dev12:56
*** markusleist has joined #zope3-dev12:57
*** MJ is now known as MJ|lunch12:58
*** malthe is now known as malthe|lunch13:05
*** dunny has quit IRC13:12
*** jodok has quit IRC13:14
*** afd_ has quit IRC13:24
*** gstratton has quit IRC13:28
*** MJ|lunch is now known as MJ13:28
*** salfield has joined #zope3-dev13:33
*** malthe|lunch is now known as malthe13:35
*** tarek has quit IRC13:37
*** afd_ has joined #zope3-dev13:50
*** J1m has joined #zope3-dev13:55
*** reco has joined #zope3-dev13:59
*** benji has quit IRC14:01
*** regebro has joined #zope3-dev14:01
*** greenman has quit IRC14:06
*** J1m has quit IRC14:09
*** MacYET has left #zope3-dev14:33
*** toutpt has quit IRC14:40
*** benji has joined #zope3-dev14:42
*** rcrafton has joined #zope3-dev14:45
*** niemeyer has joined #zope3-dev14:50
*** ignas has joined #zope3-dev14:51
*** jinty has quit IRC14:51
*** rocky has joined #zope3-dev14:52
*** tarek has joined #zope3-dev14:57
*** thruflo_ has joined #zope3-dev15:05
*** thruflo has quit IRC15:05
*** alga has quit IRC15:08
*** toutpt has joined #zope3-dev15:12
*** dobee has joined #zope3-dev15:26
*** rocky has quit IRC15:27
*** jodok has joined #zope3-dev15:27
*** run|home has joined #zope3-dev15:30
*** redir has joined #zope3-dev15:31
*** vahur has left #zope3-dev15:33
*** rocky has joined #zope3-dev15:38
*** arnarl has joined #zope3-dev15:43
*** stub has joined #zope3-dev15:44
*** hexsprite has quit IRC15:47
*** hexsprite has joined #zope3-dev15:49
*** J1m has joined #zope3-dev15:51
*** baijum has quit IRC15:55
*** regebro is now known as regebro|away16:03
*** alga has joined #zope3-dev16:03
*** redir has quit IRC16:04
*** jodok has quit IRC16:07
*** zagy has joined #zope3-dev16:12
*** rcrafton has quit IRC16:23
*** rcrafton has joined #zope3-dev16:24
*** b52laptop has quit IRC16:28
*** zagy has quit IRC16:35
*** run|home is now known as run|away16:35
*** malthe has quit IRC16:37
*** jayaraj has quit IRC16:41
*** srichter has joined #zope3-dev16:43
*** lucielejard has joined #zope3-dev16:43
*** ChanServ sets mode: +o srichter16:44
*** afd_ has quit IRC16:45
*** ghendi has quit IRC16:47
*** jodok has joined #zope3-dev16:59
*** salfield has quit IRC17:04
*** redir has joined #zope3-dev17:05
*** sorindregan has quit IRC17:06
*** danielblackburn has joined #zope3-dev17:08
*** reedobrien has joined #zope3-dev17:15
*** MJ has quit IRC17:20
*** nathany has joined #zope3-dev17:22
*** redir has quit IRC17:22
*** pcardune has joined #zope3-dev17:24
*** jukart has quit IRC17:39
*** rmarianski has joined #zope3-dev17:41
*** stub has quit IRC17:50
*** natea_ is now known as natea17:55
*** salfield has joined #zope3-dev18:00
*** pelle__ has joined #zope3-dev18:08
*** sm has joined #zope3-dev18:09
*** whit has joined #zope3-dev18:13
*** danielblackburn_ has joined #zope3-dev18:13
*** danielblackburn has quit IRC18:13
*** dobee has quit IRC18:22
*** pelle_ has quit IRC18:24
*** rcrafton has quit IRC18:30
*** thruflo has joined #zope3-dev18:34
pyqwerprojekt01: Hi, it seems that getSite() returns an unproxied object - do you know if this is intended?18:35
*** srichter has quit IRC18:36
*** rcrafton has joined #zope3-dev18:36
projekt01pyqwer, yes, take a look a the method setSite/getSite it uses;18:39
projekt01site = zope.security.proxy.removeSecurityProxy(site)18:39
pyqwerAh, I see, do you know why it's done this way? Is there some general guideline what's proxied and what not?18:40
*** run|home has joined #zope3-dev18:41
projekt01everything schould get proxied, till you remove them because of public access18:42
pyqwerprojekt01: Yes, that was also my intention, but why is then the security proxy removed when getting the site through getSite()?18:43
*** run|away has quit IRC18:46
projekt01why do you think it should not remove the proxy?18:47
pyqwerprojekt01: Hmmm, you said that "everything should be proxied till I remove it". So why is the return of getSite() unproxied?18:48
projekt01because it removes the proxy18:48
pyqwerOr do I have to proxy anything manually - but, some things are already proxied?18:48
projekt01no18:48
*** thruflo_ has quit IRC18:48
projekt01you don't have to use methods whihc remove tproxies if you don't need to18:48
pyqwerIt seems I'm missing the point here...18:48
projekt01why do you need the getSite method?18:48
pyqwerIs there some other way to get the current site?18:49
projekt01getSite is an internal method used for specific stuff18:49
pyqwerI have some global sequence number that is stored at my site object and I need to somewhere access it.18:49
*** J1m has quit IRC18:50
pyqwerSo, one way to access it is a simple getSite().seq_number18:50
projekt01you can traverse to the site with: while: ISite.providedBy(context); context = context.__parent__18:50
projekt01or something like that18:50
*** jukart has joined #zope3-dev18:50
pyqwerOk, that's a way to do it. And what about "ProxyFactor(getSite())"?18:51
*** alecm has joined #zope3-dev18:51
projekt01why must this be proxied?18:51
pyqwerWell, so that data is not accidentally shown du to some programming mistake.18:53
projekt01why do you need to access something which is not accessible? Make sure if somebody has permission before you try to call something18:53
projekt01Yo can't do that, I allways can configure things that this works anyway with programming mistakes18:53
*** yvl has left #zope3-dev18:54
projekt01you have to write a functional doct test and use the users you like to test access for18:54
projekt01only the full configure.zcml settings in functional doctest can ensure what sou like to do18:54
pyqwerHmmm, I have to think a little about that.18:55
pyqwerAnyway, many thanks for help!18:57
*** run|home_ has joined #zope3-dev19:02
*** pcardune has quit IRC19:03
*** projekt01 has quit IRC19:12
*** tarek has quit IRC19:12
*** run|home has quit IRC19:18
*** arnarl has quit IRC19:18
*** arnarl has joined #zope3-dev19:19
*** harobed has quit IRC19:19
*** pbugni has joined #zope3-dev19:20
*** arnarl has quit IRC19:20
*** pbugni has quit IRC19:20
*** pbugni has joined #zope3-dev19:21
*** jodok has quit IRC19:22
*** reco has quit IRC19:24
*** danielblackburn_ has quit IRC19:26
*** srichter has joined #zope3-dev19:30
*** ejucovy__ has joined #zope3-dev19:33
*** ChanServ sets mode: +o srichter19:35
*** danielblackburn has joined #zope3-dev19:36
*** jukart_ has joined #zope3-dev19:43
*** danielblackburn has quit IRC19:49
*** pcardune has joined #zope3-dev19:51
*** strichter has joined #zope3-dev19:51
*** srichter has quit IRC19:51
*** strichter is now known as srichter19:52
*** ChanServ sets mode: +o srichter19:52
*** tarek has joined #zope3-dev19:55
*** danielblackburn has joined #zope3-dev19:58
*** jukart has quit IRC20:01
*** danielblackburn has quit IRC20:02
*** mgedmin has joined #zope3-dev20:02
*** zagy has joined #zope3-dev20:05
*** gimni has quit IRC20:05
*** toutpt has quit IRC20:11
*** maurits has quit IRC20:14
*** jukart_ has quit IRC20:15
*** jodok has joined #zope3-dev20:25
*** J1m has joined #zope3-dev20:25
*** dunny has joined #zope3-dev20:26
*** agroszer has quit IRC20:31
*** tarek has quit IRC20:31
*** zagy has quit IRC20:38
J1mmcdonc, do you know if there are any wsgi/paste mechanisms for restarting servers?20:39
mcdoncJ1m: i know "paster" includes some basic restart facilities because if you do "paster serve --reload", it will restart the server every time you change a file that is represented by something in sys.modules20:40
mcdonci dont know what the signal is tho20:41
J1mI was thinking of an api to use within the process.20:42
J1mmcdonc, do, like now, in the zmi, you can request a server restart.20:43
J1mI don't think much of this feature in general, but I happen to actually have a specialized use case where I need it. :)20:43
J1moh I guess that actually is within process.20:44
J1mHm.20:44
mcdonci'd imagine it's either a call to sys.exit or a special exception that paster serve catches20:45
*** jpcw2002 has left #zope3-dev20:47
mcdoncJ1m: paste/script/serve.py is  where the guts are20:47
*** menesis has joined #zope3-dev20:50
*** ignas has quit IRC20:51
J1mmcdonc, thanks, I'll check that out.20:51
mcdoncit looks like  starts the server as a subprocess and if you start paster serve with --monitor-restart, any server exit code will the server to restart instead of exit.20:52
mcdonc"paster serve" that is20:52
*** thruflo has quit IRC20:57
*** danielblackburn has joined #zope3-dev20:58
*** reedobrien is now known as redir20:58
*** RaFromBRC has joined #zope3-dev20:59
*** whitmo has joined #zope3-dev21:00
*** zagy has joined #zope3-dev21:00
*** danielblackburn has quit IRC21:00
*** zagy has quit IRC21:07
*** reco has joined #zope3-dev21:13
*** whit has quit IRC21:14
*** regebro|away is now known as regebro21:14
*** reco has quit IRC21:16
*** lisppaste6 has quit IRC21:20
*** agroszer has joined #zope3-dev21:21
*** agroszer has quit IRC21:23
*** sp0cksbeard has joined #zope3-dev21:25
*** greenman has joined #zope3-dev21:25
*** nathany has quit IRC21:26
*** mkerrin has quit IRC21:31
*** gstratton has joined #zope3-dev21:36
*** gstratton has quit IRC21:36
*** danielblackburn has joined #zope3-dev21:57
*** lisppaste6 has joined #zope3-dev22:17
*** rcrafton has quit IRC22:30
*** rcrafton has joined #zope3-dev22:34
*** doffm has left #zope3-dev22:53
*** norro has joined #zope3-dev22:57
*** alecm has quit IRC22:59
*** alecm has joined #zope3-dev22:59
*** whitmo is now known as whit23:00
*** rocky has quit IRC23:09
*** whit has quit IRC23:19
*** markusleist has quit IRC23:31
*** jayaraj has joined #zope3-dev23:31
*** jayaraj has quit IRC23:32
*** tarek has joined #zope3-dev23:36
*** pcardune has quit IRC23:37
*** whit has joined #zope3-dev23:37
*** d2m has quit IRC23:41
*** danielblackburn has quit IRC23:48
*** menesis has left #zope3-dev23:49
*** fcorrea has quit IRC23:51
*** danielblackburn has joined #zope3-dev23:51
*** natea has quit IRC23:57

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!