IRC log of #zope3-dev for Wednesday, 2008-02-20

*** d2m has quit IRC00:00
*** danielblackburn has joined #zope3-dev00:00
*** jsadjohnson has joined #zope3-dev00:04
*** supton has joined #zope3-dev00:11
*** sm has quit IRC00:12
*** sm has joined #zope3-dev00:14
*** rmarianski has joined #zope3-dev00:14
*** sm has quit IRC00:14
suptonWhat would cause inability for alsoProvides() to set __provides__ on an object?  --> AttributeError00:14
lisppaste6supton pasted "alsoProvides() fails on some objects" at http://paste.lisp.org/display/5616700:15
*** sm has joined #zope3-dev00:15
*** philiKON_ has quit IRC00:15
timtesupton: to me (but I'm no super guru) it looks like the conn object has some weird behaviour, an object should be able to get new attributes00:18
suptonseems like an inability to set arbitrary attributes on some objects (where class is implemented in C)...00:19
timtesupton: try to do conn.__something__ = 200:19
suptonthat fails, as does conn.foo = 100:19
suptonsetting any attributes on this fails.00:19
suptonobviously a python/C/pysqlite idiosyncracy I don't understand00:19
timteperhaps conn overrides __setattr__ or something00:20
suptonyeah, the C code has some get/set stuff that seems tedious for me to figure out.00:23
suptonI'm guessing I should just abandon trying to mark these objects...00:23
suptonmaybe use some kind of proxy, but that seems like a PITA.00:24
suptonmy current work (utilities to generate SQL schema from schema fields on interfaces) doesn't strictly require that I mark the connections, I just thought this was odd00:25
timteit is  :)00:26
suptonThe only other place I've seen zope.interface not work well is Django models, where the metaclass removes/overwrites __provides__ attribute when you save (<rant>and any other __whatever__ attributes -- not exactly playing nice with others</rant>)...00:27
*** hexsprite has joined #zope3-dev00:27
suptonthat one is Django's fault: too much magic00:27
*** sm has quit IRC00:32
timtesupton: are you using zope.schema in django?00:35
suptontimte: yeah, but having to use proxies for content objects that use django models as persistence backends00:36
suptonand a custom descriptor called ProxyFieldProperty that sets/gets on the underlying Django model object from the plain-python, schema-driven content objects00:37
suptonthis is an experiment a colleage and I are working on00:37
timteok, cool00:37
suptonWe do some Django development, but we are writing components for use in a broader context using a minimal zope CA: zope.component, zope.schema, zope.event, transaction, and a few other things00:38
suptonbut we want to use those components in Django apps too00:39
* supton greatly prefers working with zope to Django, but finds merit with both00:39
timtemakes sense, you should do some ranting on the django mailing list that the models are evil00:39
suptonprobably will00:40
*** greenman has joined #zope3-dev00:41
suptonI'm more likely to write a patch, though... not sure how persuasive I can be there00:41
timteit's great that zope.(interface,schema,event,component) are usable in pylons, django etc00:41
suptonwell, if zope.interface is usable in Django, then the other stuff can be.  But obviously, there needs to be the ability to use implements() and alsoProvides() without problems or severe workarounds00:42
timtesupton: do you have to initialize registries (like the adapter registries) or can you just use adapters right away in e.g. django without any setup?00:42
suptonwell, adapters without registry work just fine:  MyAdaptedThing(context=MyThingDjangoModel()) works00:43
suptonbut yeah, if you can't declare that a model class implements an interface, adaptation becomes less natural00:44
suptonyou cannot use queryAdapter()00:44
suptonwell, I suppose you could register the adapter even if implements() isn't declared on the class having instances adapted00:44
suptonbut still00:44
suptonutilties should work in Django just fine, though; no need to deal with models, generally00:45
*** rmarianski has quit IRC00:48
*** dobee has quit IRC00:48
*** regebro has quit IRC01:06
*** jodok has quit IRC01:10
*** sp0cksbeard has quit IRC01:18
*** rmarianski has joined #zope3-dev01:19
*** harobed has quit IRC01:23
*** timte has quit IRC01:28
*** malthe is now known as malthe|Zzz01:38
*** ccomb has quit IRC01:46
*** ignas has quit IRC01:59
*** supton has quit IRC01:59
*** rmarianski has quit IRC02:02
*** npikarsky has joined #zope3-dev02:06
*** lucielejard has quit IRC02:15
*** norro has quit IRC02:19
*** npikarsky has quit IRC02:24
*** pikarsky has joined #zope3-dev02:25
*** danielblackburn has left #zope3-dev02:25
*** danielblackburn has joined #zope3-dev02:26
*** rmarianski has joined #zope3-dev02:26
*** nathany has quit IRC02:26
*** pikarsky has left #zope3-dev02:28
*** npikarsky has joined #zope3-dev02:30
*** npikarsky has quit IRC02:38
*** rmarianski has quit IRC02:52
*** J1m has left #zope3-dev03:02
*** pbugni has quit IRC03:04
*** danielblackburn has quit IRC03:32
*** niemeyer has quit IRC03:40
*** hexsprite has quit IRC03:42
*** jeffk has quit IRC03:44
*** reco has quit IRC03:50
*** deo has joined #zope3-dev03:55
*** danielblackburn has joined #zope3-dev04:14
*** lucielejard has joined #zope3-dev04:24
*** redir has quit IRC04:36
*** hexsprite has joined #zope3-dev04:45
*** rmarianski has joined #zope3-dev04:58
*** nathany has joined #zope3-dev05:29
*** alecm has quit IRC05:30
*** danielblackburn has quit IRC05:35
*** alga has quit IRC05:40
*** deo has quit IRC05:46
*** greenman has quit IRC05:46
*** rcrafton has quit IRC05:51
*** run|home has joined #zope3-dev06:04
*** lucielejard has quit IRC06:04
*** rmarianski has quit IRC06:19
*** rmarianski has joined #zope3-dev06:20
*** nathany has quit IRC06:25
*** rmarianski has quit IRC06:34
*** hexsprite has quit IRC06:41
*** pcardune has quit IRC06:59
*** alecm has joined #zope3-dev07:07
*** vimes656 has joined #zope3-dev07:08
*** afd_ has joined #zope3-dev07:17
*** redir has joined #zope3-dev07:28
*** redir has quit IRC07:45
*** RaFromBRC_ has joined #zope3-dev07:53
*** RaFromBRC has quit IRC08:03
*** philiKON has joined #zope3-dev08:05
*** redir has joined #zope3-dev08:16
*** run|home has quit IRC08:19
*** philiKON has quit IRC08:26
*** alecm has quit IRC08:30
*** alecm has joined #zope3-dev08:32
*** dobee has joined #zope3-dev08:33
*** redir has quit IRC08:35
*** jukart has joined #zope3-dev08:42
*** jukart has quit IRC08:42
*** jukart has joined #zope3-dev08:43
*** vimes656 has quit IRC08:47
*** hdima has joined #zope3-dev08:49
*** sorin has joined #zope3-dev08:57
*** sorin is now known as sorindregan08:58
*** pelle_ has joined #zope3-dev08:58
*** jodok has joined #zope3-dev09:00
*** RaFromBRC_ has quit IRC09:06
*** jayaraj has joined #zope3-dev09:06
*** afd_ has quit IRC09:08
*** stub has joined #zope3-dev09:08
*** __mac__ has joined #zope3-dev09:09
*** d2m has joined #zope3-dev09:26
*** pelle_ has quit IRC09:31
*** pelle_ has joined #zope3-dev09:32
jayarajy no activity here????09:37
*** sorindregan has quit IRC09:37
*** sorin has joined #zope3-dev09:40
*** sorin is now known as sorindregan09:40
__mac__no, everyone sleeping ;)09:48
*** timte has joined #zope3-dev09:52
jayarajthen wake them up....09:54
*** regebro has joined #zope3-dev09:55
jayarajhush the last one also slept ....zzzzzzz09:59
*** alecm has quit IRC10:01
*** afd_ has joined #zope3-dev10:05
__mac__what's the problem with this, sleeping is healthy ...10:12
*** __mac__ has quit IRC10:14
*** __mac__ has joined #zope3-dev10:15
jayarajmake sure they are not dead....10:18
*** malthe|Zzz is now known as malthe10:21
*** toutpt has joined #zope3-dev10:26
*** MJ has joined #zope3-dev10:31
*** harobed has joined #zope3-dev10:32
*** tarek has joined #zope3-dev10:46
*** pelle_ has quit IRC10:48
*** pelle_ has joined #zope3-dev10:51
*** jpcw2002 has joined #zope3-dev10:55
*** goschtl has joined #zope3-dev10:58
*** ktwilight has joined #zope3-dev10:58
*** malthe has quit IRC11:00
__mac__so you require a heartbeat of everyone here?11:11
*** ignas has joined #zope3-dev11:11
*** ktwilight_ has quit IRC11:11
__mac__if you have a zope-question, ask it and see how people get awake11:12
*** __mac__ has quit IRC11:13
*** __mac__ has joined #zope3-dev11:13
*** stub has quit IRC11:16
*** malthe has joined #zope3-dev11:22
*** maurits has joined #zope3-dev11:28
*** reco has joined #zope3-dev11:34
*** quodt has joined #zope3-dev11:38
*** jpcw2002_ has joined #zope3-dev11:40
*** jpcw2002 has quit IRC11:49
*** mkerrin has joined #zope3-dev11:50
malthehey11:57
malthehow would I implement an object publisher that did not look for a view named "index" but instead look up some other name (kept with the object itself, for instance)?11:59
maltheor if it's not the publisher that does this, then what is it?11:59
__mac__maybe you are looking for the default view?12:01
maltheright12:04
maltheI want to override it, you might say.12:04
*** ccomb has joined #zope3-dev12:04
*** yvl has left #zope3-dev12:04
maltheit's a dynamic view implementation that I'm looking for, i.e. I would adapt the context to IDynamicView and get the view name.12:05
__mac__there is a zcml directive to set the default view12:05
*** npikarsky has joined #zope3-dev12:06
*** npikarsky has quit IRC12:07
*** goschtl_ has joined #zope3-dev12:08
malthe__mac__: what interface does it provide ultimately?12:10
__mac__don12:10
__mac__'t know12:10
*** goschtl__ has joined #zope3-dev12:11
malthek i'll search for it12:11
jayaraji would like to know is there any way in zope3 to implement client side logics....12:12
*** menesis has joined #zope3-dev12:12
jayarajlike we can do with aplet or javascript12:13
malthejayaraj: how would that work?12:13
jayaraji want to perform some operation at client side! is it possible in zope312:14
jayarajif there is no dirrect method.... next Qn is... can i integrate client side scripts with zope3?12:15
malthejayaraj: sure you can; but if it's client-side, then it's flash/air/javascript, right?12:16
malthehas nothing to do with Zope.12:16
jayarajic12:16
malthejayaraj: but you can have Zope implement views that can be called from javascript.12:17
jayarajthanks... i am in the middle of a feasibility study... :)12:17
maltheproviding text, xml, json, whatever it is you need.12:17
malthejayaraj: look into KSS as well; it's server-side control of the client.12:18
maltheit's quite mature but does not round-trips for each interaction.12:18
malthes/not/need12:18
jayarajyep i ll look for it12:18
*** goschtl has quit IRC12:24
romanofskia12:26
romanofskibzzz12:26
*** goschtl_ has quit IRC12:28
*** afd_ has quit IRC12:44
*** afd_ has joined #zope3-dev12:45
malthe__mac__: zope.component.bbb.interfaces.IDefaultViewName --- seems it's deprecated though.12:57
__mac__hmm12:58
maltheseems it's zope.app.publisher.browser.IDefaultViewNameAPI that I need to implement.12:59
maltheIt seems everything concerning this is deprecated; funny that they never mention what's taking over.13:02
*** MJ is now known as MJ|lunch13:02
__mac__see http://wiki.zope.org/zope3/ZCMLBrowserViewDirectiveSimplification13:06
__mac__there seems to be no replacement for IDefaultViewName13:06
maltheproposes to make `index.html` the default view name.13:08
malthemust be overridable though13:08
maltheit's not even obvious where it defines this name as the default.13:11
*** jpfarias_ has joined #zope3-dev13:25
*** pyqwer has joined #zope3-dev13:35
*** malthe has left #zope3-dev13:47
*** malthe has joined #zope3-dev13:48
*** jpfarias_ has left #zope3-dev13:51
*** jayaraj has quit IRC13:52
*** afd_ has quit IRC13:52
*** jayaraj has joined #zope3-dev13:55
*** MJ|lunch is now known as MJ14:00
*** danielblackburn has joined #zope3-dev14:03
*** niemeyer has joined #zope3-dev14:03
*** __shon has joined #zope3-dev14:09
*** danielblackburn has quit IRC14:22
*** danielblackburn has joined #zope3-dev14:23
*** danielblackburn has quit IRC14:28
*** alga has joined #zope3-dev14:33
*** wiggy has joined #zope3-dev14:35
*** jayaraj has quit IRC14:47
*** __shon has quit IRC14:58
hazmatmalthe, traverser browserDefault14:58
malthehazmat: yep found it14:58
*** rcrafton has joined #zope3-dev14:59
*** ghendi has joined #zope3-dev15:09
*** redir has joined #zope3-dev15:11
*** benji has joined #zope3-dev15:15
*** baijum has joined #zope3-dev15:22
*** benji has quit IRC15:42
*** redir has quit IRC15:43
*** danielblackburn has joined #zope3-dev15:50
*** norro has joined #zope3-dev15:52
*** baijum has quit IRC15:54
*** pelle_ has quit IRC16:05
*** rcrafton has quit IRC16:10
*** J1m has joined #zope3-dev16:19
*** benji has joined #zope3-dev16:20
*** lucielejard has joined #zope3-dev16:20
*** timte has quit IRC16:21
*** timte has joined #zope3-dev16:21
*** jodok has quit IRC16:29
*** rcrafton has joined #zope3-dev16:31
*** sp0cksbeard has joined #zope3-dev16:32
*** timte has quit IRC16:40
hazmatis it possible to do role based ui without resorting to different app urls by role?16:41
wiggyadd roles on traversal?16:43
ignasor do not use @@ to lookup views and write your own view lookup mechanism16:45
*** zagy has quit IRC16:47
hazmat auth takes place after traversal afaik16:48
*** menesis has quit IRC16:49
*** timte has joined #zope3-dev16:52
*** zagy has joined #zope3-dev16:55
*** alecm has joined #zope3-dev16:56
*** afd_ has joined #zope3-dev16:59
*** kursor has joined #zope3-dev17:00
*** alecm has quit IRC17:02
*** __gotcha has joined #zope3-dev17:04
*** Doc_Dan has joined #zope3-dev17:05
*** norro has quit IRC17:08
*** ghendi has quit IRC17:17
*** sorindregan has quit IRC17:20
*** hdima has quit IRC17:27
*** jbonilla has joined #zope3-dev17:29
*** philiKON has joined #zope3-dev17:36
*** kursor has quit IRC17:39
*** jpcw2002_ has left #zope3-dev17:39
*** nathany has joined #zope3-dev17:43
*** rmarianski has joined #zope3-dev17:44
jbonillaanyone come across ZODB.POSException.ConflictError when working with AJAX?  Seems like Zope doesn't handle concurrent updates to the same persistent object.17:46
wiggyzope isn't supposed to17:46
philiKONzope actually rarely can17:49
bigkevmcddepends on the object I suppose17:50
jbonillai was expecting a wait/retry behavior.17:51
philiKONit does that17:51
philiKONup to a certain limit17:51
*** menesis has joined #zope3-dev17:52
jbonillaI see.  Surprised the limit was reached in this case.  I'm sending 3 or 4 concurrent requests.17:53
*** mgedmin has joined #zope3-dev17:54
philiKONwell, if they are bound to change the same object, you're provoking this behaviour17:54
philiKONbetter send 117:54
jbonillayeah, I have an app with lots of publish/subscribe behavior in dojo.  If I change those AJAX calls to synchronous, everything works.  But the UI feels slow since each of those calls are blocking.17:58
*** sm has joined #zope3-dev18:00
benjijbonilla: and all those requests change the same object?18:01
jbonillayes18:01
*** TheSkrill has joined #zope3-dev18:02
jbonilladiffernt attributes on the object, but same object.18:02
benjiI'd look at either combining the write requests or splitting the object.18:03
*** jukart has quit IRC18:07
*** wiggy has quit IRC18:10
*** norro has joined #zope3-dev18:14
*** MJ has quit IRC18:16
*** pcardune has joined #zope3-dev18:23
*** goschtl__ has quit IRC18:25
*** RaFromBRC has joined #zope3-dev18:27
TheSkrillhey all, is it safe to use a NameChooser that stores a 'nextId' attr in the container and increments it for each chooseName() call?18:30
TheSkrillI'm mostly concerned with race conditions.18:30
mgedminI think it's not polite to stick your attributes on other objects18:34
mgedminhow about using an annotation?18:34
mgedminIAnnotations(container)['yourpackage.yourcontainer'] = nextId18:35
hazmatTheSkrill, its more a spot  for conflicts if there are concurrent content creations, than race conditions18:36
*** rmarianski has quit IRC18:43
*** rmarianski has joined #zope3-dev18:44
*** quodt has quit IRC18:47
*** quodt has joined #zope3-dev18:48
*** pyqwer has quit IRC18:55
*** srichter has joined #zope3-dev19:00
*** ChanServ sets mode: +o srichter19:00
*** dobee has quit IRC19:02
TheSkrillmgedmin, thanks thats a good idea19:05
*** jukart has joined #zope3-dev19:05
TheSkrillhazmat, my consern is when running two instances in front of a ZEO server. would there be an issue with two items reciving the same id?19:07
*** alecm has joined #zope3-dev19:07
*** pcardune has quit IRC19:08
*** __gotcha has quit IRC19:17
*** agroszer has joined #zope3-dev19:20
*** malthe has quit IRC19:24
*** jukart has quit IRC19:30
*** quodt has quit IRC19:31
*** rocky is now known as rocky|away19:31
*** harobed has quit IRC19:34
*** pbugni has joined #zope3-dev19:36
*** jukart has joined #zope3-dev19:40
*** danielblackburn has quit IRC19:43
*** toutpt has quit IRC19:46
*** jukart_ has joined #zope3-dev19:46
*** jukart__ has joined #zope3-dev19:48
*** jukart has quit IRC19:49
*** jukart__ is now known as jukart19:49
*** whitmo has joined #zope3-dev19:49
*** edgordon has joined #zope3-dev20:02
*** jukart_ has quit IRC20:05
*** whit has quit IRC20:05
*** lucielejard has quit IRC20:09
*** pcardune has joined #zope3-dev20:09
*** wiggy has joined #zope3-dev20:10
*** csmiga has joined #zope3-dev20:16
*** csmiga has left #zope3-dev20:16
*** maurits has quit IRC20:17
*** ignas has quit IRC20:18
*** pbugni has quit IRC20:23
*** mkerrin has quit IRC20:28
*** b52lap has quit IRC20:34
*** b52lap has joined #zope3-dev20:36
*** danielblackburn has joined #zope3-dev20:36
*** rcrafton has quit IRC20:44
*** rcrafton has joined #zope3-dev20:44
*** ignas has joined #zope3-dev20:47
*** edgordon has quit IRC20:48
*** jukart has quit IRC20:48
*** pcardune has quit IRC20:50
*** sm has quit IRC20:51
*** sm has joined #zope3-dev20:51
*** lucielejard has joined #zope3-dev21:00
*** kursor has joined #zope3-dev21:04
*** edgordon has joined #zope3-dev21:06
*** pelle_ has joined #zope3-dev21:13
*** jsadjohnson has quit IRC21:23
*** pcardune has joined #zope3-dev21:23
*** jukart has joined #zope3-dev21:28
*** whitmo has quit IRC21:31
*** malthe has joined #zope3-dev21:32
*** agroszer_ has joined #zope3-dev21:33
*** jukart has quit IRC21:34
*** agroszer_ has quit IRC21:35
*** harobed has joined #zope3-dev21:42
*** agroszer has quit IRC21:46
*** fcorrea has joined #zope3-dev21:47
*** whitmo__________ has joined #zope3-dev21:54
benjiwhitmo__________: what a beautiful, long tail you have22:01
*** kursor has quit IRC22:01
*** whit has joined #zope3-dev22:06
*** reco has quit IRC22:11
*** whitmo__________ has quit IRC22:11
*** supton has joined #zope3-dev22:12
suptonzope.mimetype has an22:12
suptonzope.mimetype has an22:12
*** markusleist has joined #zope3-dev22:12
suptonzope.mimetype has an 'unadvertised' dependency on zope.publisher, it seems22:12
*** jodok has joined #zope3-dev22:13
suptonzope.mimetype.typegetter imports zope.publisher.contenttype for two functions...22:13
suptonmakes for complex dependency chain, which might be unneeeded?22:13
suptondep of zope.publisher yields need for a bunch of zope.app.* deps, which seem extraneous in a minimal CA application22:14
suptonthat just needs to read in files22:14
suptonI'm looking to do type guessing using file magic; there are other python libraries to do this, but I thought I would try zope.mimetype first in my app (which is using zope.component and zope.schema only).22:15
wiggyI'ld suggest bringing it up on the zope-dev list22:16
suptonyeah, likely will do that22:16
*** toutpt has joined #zope3-dev22:16
*** danielblackburn has quit IRC22:19
*** zagy has quit IRC22:30
*** jodok_ has joined #zope3-dev22:38
*** natea has quit IRC22:38
*** danielblackburn has joined #zope3-dev22:39
*** markusleist has quit IRC22:45
*** rmarianski has quit IRC22:46
*** rmarianski has joined #zope3-dev22:47
*** b52lap has quit IRC22:47
*** TheSkrill has quit IRC22:48
*** sm has quit IRC22:51
*** jodok has quit IRC22:55
*** b52laptop has joined #zope3-dev23:14
*** jeffk has joined #zope3-dev23:15
*** edgordon has quit IRC23:19
*** natea_ has joined #zope3-dev23:21
*** pelle_ has quit IRC23:25
*** edgordon has joined #zope3-dev23:27
*** reco has joined #zope3-dev23:28
*** edgordon has quit IRC23:31
*** afd_ has quit IRC23:35
*** alga has quit IRC23:36
*** d2m has quit IRC23:39
*** RaFromBRC is now known as RaFromBRC|lunch23:49
*** reco has quit IRC23:49
*** sp0cksbeard has quit IRC23:56
*** menesis has quit IRC23:57

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