IRC log of #zope3-dev for Saturday, 2007-01-13

*** jkakar has joined #zope3-dev00:00
*** schwendinger has joined #zope3-dev00:07
*** schwendinger_ has joined #zope3-dev00:08
*** b_52Free has quit IRC00:11
*** b_52Free has joined #zope3-dev00:12
*** marcin_ant has joined #zope3-dev00:13
*** b_52GM has joined #zope3-dev00:16
*** schwendinger has quit IRC00:25
*** b_52Free has quit IRC00:34
*** schwendinger_ has quit IRC00:34
*** jodok has quit IRC00:34
WebMavenHmm. Nearly there... Looks like my adapter is causing an error during object creation, but I'm not really expecting it to be called then....00:42
WebMavenThe adapter won't work until the transaction creating the adapted object is complete. Does anyone have a suggestion as to how to fix this?00:43
*** opetznick_ has quit IRC00:46
*** opetznick has joined #zope3-dev00:47
*** d2m has quit IRC00:50
*** schwendinger has joined #zope3-dev00:56
*** RaFromBRC|lunch is now known as RaFromBRC00:57
WebMavenman this is hard.00:58
WebMavenhere is the problem:00:58
WebMavenMy relational adapter for IZopeDublinCore only works once the rows are added to the db00:59
WebMavenwhich doesn't happen until the zope transaction commits.00:59
WebMaven*before* that happens, the adapter gets applied by (as far as I can tell) the security machinery.01:00
WebMavenand it fails, because the db is retirning an empty set for the query.01:02
WebMavenHmm. OK, it looks like it's not the security machinery, but something subscribing to the creation event (maybe)...01:05
*** opetznick has quit IRC01:05
WebMavenAny ideas on how to fix this? I can provide a traceback and show my source code.01:05
WebMavenI'm really stuck here, can anyone take a look at this?01:09
*** schwendinger has quit IRC01:09
*** ignas has quit IRC01:13
*** b_52GM has quit IRC01:13
*** b_52Free has joined #zope3-dev01:13
*** J1m has quit IRC01:17
WebMavenCan I disable an adapter during object creation?01:18
ccombI don't understand01:18
ccombyou use an adapter on something that does not exist ?01:18
WebMavenUmm, no.01:18
WebMavenOK, so I am trying to get ZAlchemy working for a simple content object. This worked.01:19
WebMavenI am trying to adapt the content object to IZopeDublinCore with an adapter the gets it's info also from the rdb.01:20
WebMaventhis also works.01:20
WebMavenit does this by querying the db based on an id attribute in the object.01:20
WebMavenHowever!01:20
WebMavenduring object creation, the zope transaction has not completed, and a query to the db will give an empty result.01:21
WebMavenUnfortunetely, the object *is* being adapted to IZopeDublinCore during the transaction.01:22
WebMavenso the query gives an empty set, and the adapter fails (result = query[0]), aborting the Zope transaction.01:23
WebMavenSo, I need to adapt the object only *after* it has been created.01:24
ccombI've never used zalchemy yet, I fear I won't be able to help on this, maybe you should make a pause or go to sleep (depending on your local time) because sometimes we spend several hours on one point, and on the morning we find in ten minutes...01:24
WebMavenit's not really a ZAlchemy problem, but a general one (I believe) with rdb based adapters.01:26
*** b_52GM has joined #zope3-dev01:26
ccombI'm still stuck on the zodb01:27
WebMavenif the adapter is pulling info from the rdb based on a primary key, and the adaptation is called during the object's instantiation before the transaction comits and the primary key has been written to the db, the exception or error can cause the whole zope transaction to fail.01:29
WebMavenMaybe I can catch the error.01:31
WebMavenbut I'm pretty sure that will only push the problem around.01:31
WebMavenlet's see...01:31
*** redir has quit IRC01:36
*** marcin_ant has quit IRC01:37
WebMavenHmm.01:38
WebMavenDang. Fixed with a try/except.01:39
WebMavenCool.01:39
WebMavenWow. I think that's the last bug.01:39
WebMavenI have a working (if not complete) relational adapter for IZopeDublinCore!01:40
WebMavenI rock!01:40
WebMavenWoo!01:42
*** b_52Free has quit IRC01:43
ccombwas it just to learn or you have a project that uses it ?01:45
WebMavenMostly the latter, because although I do need dublin core metadata for project, I could have simply duplicated the fields in various tables instead of using a more general purpose adapter.01:50
WebMavenThe rdb schema was devised with this particular pattern in mind.01:50
WebMavenAnd then I got stubborn.01:51
WebMaven;-)01:51
WebMavenWhy do you ask?01:52
*** Aiste has quit IRC01:52
WebMavenHmm. Perhaps I spoke just a little too soon.02:00
WebMavenI can't traverse to the 'title' attribute:02:00
WebMavenTraversalError: (<rogue.za_example_4.message.HelloWorldMessage object at 0xb6ae166c>, 'title')02:01
WebMavenit's editable, and it's being saved in the rdb, but I can't render it on the page.02:01
WebMavenHmm. I'm probably doing something not-quite right in the adapter with the properties that isn't satisfying the DC contract.02:02
WebMavenHmm. This *looks* ok:02:03
WebMaven    def setTitle(self, title):02:03
WebMaven        self.result.title = title02:03
WebMaven02:03
WebMaven    title = property(getTitle, setTitle, doc="RelationalDC title")02:03
WebMavenerr missed copying the get:02:04
WebMaven    def getTitle(self):02:04
WebMaven        return self.result.title02:04
WebMaven02:04
*** jfroche has quit IRC02:08
*** projekt01 has joined #zope3-dev02:23
*** b_52Free has joined #zope3-dev02:27
*** ccomb has quit IRC02:29
*** b_52Centos has joined #zope3-dev02:32
*** b_52Free has quit IRC02:32
*** b_52Free has joined #zope3-dev02:41
*** b_52GM has quit IRC02:56
*** b_52Centos has quit IRC03:00
*** b_52GM has joined #zope3-dev03:07
*** norro has quit IRC03:16
*** wrobel has quit IRC03:21
*** redir has joined #zope3-dev03:29
*** b_52Free has quit IRC03:30
*** yota has quit IRC03:42
*** b_52Free has joined #zope3-dev03:44
*** Arista1 has joined #zope3-dev03:55
*** b_52GM has quit IRC04:01
*** redir has quit IRC04:01
*** deo has quit IRC04:14
*** RaFromBRC has quit IRC04:23
*** b_52GM has joined #zope3-dev04:44
*** niemeyer has quit IRC04:44
*** vlado has quit IRC04:47
*** b_52Centos has joined #zope3-dev04:53
*** b_52Free has quit IRC05:02
*** RaFromBRC has joined #zope3-dev05:09
*** b_52GM has quit IRC05:09
*** b_52Free has joined #zope3-dev05:13
*** b_52Free has quit IRC05:18
*** b_52Free has joined #zope3-dev05:19
*** b_52GM has joined #zope3-dev05:23
*** b_52Centos has quit IRC05:33
*** b_52Centos has joined #zope3-dev05:34
*** b_52Free has quit IRC05:43
*** b_52GM has quit IRC05:45
*** b_52Centos has quit IRC05:48
*** b_52Centos has joined #zope3-dev05:49
*** dobee has joined #zope3-dev05:49
*** dobee has quit IRC05:54
*** b_52Free has joined #zope3-dev05:56
*** b_52Centos has quit IRC06:14
*** stub has joined #zope3-dev06:23
*** RaFromBRC has quit IRC07:00
*** b_52GM has joined #zope3-dev07:04
*** b_52Free has quit IRC07:22
*** b_52Free has joined #zope3-dev07:24
*** jkakar has quit IRC07:37
*** b_52GM has quit IRC07:43
*** b_52Free has quit IRC08:02
*** b_52GM has joined #zope3-dev08:02
*** alecm has quit IRC08:09
*** jkakar has joined #zope3-dev08:48
*** orange- has joined #zope3-dev09:06
*** d2m has joined #zope3-dev09:42
*** philiKON_ has joined #zope3-dev09:44
*** dunny has quit IRC09:52
*** romanofski has quit IRC09:52
*** philiKON has quit IRC09:52
*** ktwilight_ has quit IRC09:52
*** andrew_m has quit IRC09:52
*** dunny has joined #zope3-dev09:56
*** romanofski has joined #zope3-dev09:56
*** ktwilight_ has joined #zope3-dev09:56
*** andrew_m has joined #zope3-dev09:56
*** orange- has left #zope3-dev09:57
d2manyone knows what happened to 'mount-point' in the zope.conf for mounting a zeoclient into a certain folder ?10:17
*** jkakar has quit IRC10:18
*** b_52Free has joined #zope3-dev10:29
*** b_52GM has quit IRC10:33
*** philiKON_ has quit IRC10:48
*** b_52GM has joined #zope3-dev10:48
*** stu1 has joined #zope3-dev10:49
*** jodok has joined #zope3-dev10:50
*** jfroche has joined #zope3-dev10:54
*** vlado has joined #zope3-dev10:59
*** b_52GM has quit IRC11:02
*** b_52Centos has joined #zope3-dev11:02
*** b_52Free has quit IRC11:05
*** stub has quit IRC11:07
*** jfroche has quit IRC11:10
*** b_52Free has joined #zope3-dev11:19
*** jodok has quit IRC11:26
*** b_52Centos has quit IRC11:36
*** harobed has joined #zope3-dev11:41
*** b_52Free has quit IRC11:49
*** b_52Free has joined #zope3-dev11:50
*** b_52Free has quit IRC11:52
*** b_52Free has joined #zope3-dev11:53
*** jodok has joined #zope3-dev12:00
*** jodok has quit IRC12:01
*** Aiste has joined #zope3-dev12:04
*** opetznick has joined #zope3-dev12:10
*** jodok has joined #zope3-dev12:10
*** jodok has quit IRC12:11
*** b_52Free has quit IRC12:19
*** b_52Free has joined #zope3-dev12:20
*** jodok has joined #zope3-dev12:20
*** jodok has quit IRC12:21
*** opetznick has quit IRC12:24
*** jodok has joined #zope3-dev12:31
*** jodok has quit IRC12:32
*** harobed has quit IRC12:37
*** opetznick has joined #zope3-dev12:40
*** b_52GM has joined #zope3-dev12:44
*** jodok has joined #zope3-dev12:45
*** dunny has quit IRC12:46
*** jodok has quit IRC12:46
*** yota has joined #zope3-dev12:53
*** jodok has joined #zope3-dev12:56
*** b_52GM has quit IRC12:57
*** jodok has quit IRC12:57
*** b_52GM has joined #zope3-dev12:58
*** b_52Free has quit IRC13:02
*** jodok has joined #zope3-dev13:04
*** jodok has quit IRC13:05
*** schwendinger has joined #zope3-dev13:09
*** jodok has joined #zope3-dev13:19
*** jodok has quit IRC13:20
*** b_52Free has joined #zope3-dev13:22
*** opetznick has quit IRC13:26
*** dobee has joined #zope3-dev13:27
*** jodok has joined #zope3-dev13:34
*** jodok has quit IRC13:35
*** b_52Free has quit IRC13:38
*** b_52Free has joined #zope3-dev13:39
*** b_52GM has quit IRC13:42
*** jodok has joined #zope3-dev13:44
*** jodok has quit IRC13:46
*** jodok has joined #zope3-dev13:55
*** jodok has quit IRC13:56
*** jodok has joined #zope3-dev14:10
*** jodok has quit IRC14:11
*** jodok has joined #zope3-dev14:21
*** jodok has quit IRC14:22
*** jodok has joined #zope3-dev14:32
*** jodok has quit IRC14:33
*** vlado has joined #zope3-dev14:34
*** jodok has joined #zope3-dev14:42
*** jodok has quit IRC14:43
*** dobee_ has joined #zope3-dev14:45
*** jodok has joined #zope3-dev14:51
*** jodok has quit IRC14:52
*** dobee has quit IRC15:01
*** norro has joined #zope3-dev15:08
*** philiKON has joined #zope3-dev15:11
*** dobee has joined #zope3-dev15:11
*** vlado has quit IRC15:12
*** rocky|away is now known as rocky15:15
*** philiKON has quit IRC15:15
*** sureshvv has joined #zope3-dev15:18
*** philiKON has joined #zope3-dev15:22
*** dobee_ has quit IRC15:29
*** schwendinger has quit IRC15:30
*** b_52GM has joined #zope3-dev15:32
*** dobee_ has joined #zope3-dev15:36
*** philiKON_ has joined #zope3-dev15:42
*** schwendinger has joined #zope3-dev15:44
*** dobee has quit IRC15:45
*** b_52Centos has joined #zope3-dev15:51
*** b_52Free has quit IRC15:57
*** philiKON has quit IRC15:58
*** dobee has joined #zope3-dev15:59
*** b_52Free has joined #zope3-dev16:04
*** philiKON_ has quit IRC16:11
*** b_52GM has quit IRC16:12
*** dobee_ has quit IRC16:15
*** b_52Centos has quit IRC16:21
*** schwendinger_ has joined #zope3-dev16:32
*** HakTom has joined #zope3-dev16:35
*** b_52GM has joined #zope3-dev16:38
*** alecm has joined #zope3-dev16:39
*** lamike has joined #zope3-dev16:45
*** b_52Centos has joined #zope3-dev16:46
*** jodok has joined #zope3-dev16:46
*** schwendinger has quit IRC16:49
*** b_52Free has quit IRC16:54
*** b_52GM has quit IRC17:02
*** b_52Free has joined #zope3-dev17:10
*** lamike has quit IRC17:19
*** b_52GM has joined #zope3-dev17:22
*** b_52Centos has quit IRC17:27
*** HakTom has quit IRC17:34
*** b_52Free has quit IRC17:38
*** b_52Free has joined #zope3-dev17:40
*** jinty has joined #zope3-dev17:45
*** b_52GM has quit IRC18:06
*** b_52Free has quit IRC18:20
*** b_52Free has joined #zope3-dev18:21
*** opetznick has joined #zope3-dev18:21
*** b_52Free has quit IRC18:24
*** b_52Free has joined #zope3-dev18:25
*** jinty has quit IRC18:27
*** philiKON has joined #zope3-dev18:44
*** philiKON has quit IRC18:48
*** b_52GM has joined #zope3-dev18:49
*** b_52Free has quit IRC19:06
*** whit has quit IRC19:09
*** ofer has joined #zope3-dev19:11
*** stu1 has quit IRC19:11
*** natea has quit IRC19:27
*** whit has joined #zope3-dev19:33
*** ofer has quit IRC19:46
*** whit has quit IRC19:57
*** jodok has quit IRC20:13
*** philiKON has joined #zope3-dev20:14
*** WebMaven has quit IRC20:17
*** tomus has joined #zope3-dev20:24
*** jodok has joined #zope3-dev20:40
*** jodok has quit IRC20:52
*** dobee has quit IRC21:22
*** dobee has joined #zope3-dev21:23
*** jodok has joined #zope3-dev21:28
*** WebMaven has joined #zope3-dev22:01
*** schwendinger_ has quit IRC22:02
*** WebMaven_ has joined #zope3-dev22:03
*** dunny has joined #zope3-dev22:03
*** timte has joined #zope3-dev22:08
*** timte has quit IRC22:08
*** timte has joined #zope3-dev22:10
*** WebMaven_ has quit IRC22:15
*** ofer has joined #zope3-dev22:36
*** jkakar has joined #zope3-dev23:04
*** flox has joined #zope3-dev23:21
*** ofer has quit IRC23:32
*** flox has quit IRC23:34
*** ktwilight has joined #zope3-dev23:51
*** sureshvv has quit IRC23:56

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