*** jkakar has joined #zope3-dev | 00:00 | |
*** schwendinger has joined #zope3-dev | 00:07 | |
*** schwendinger_ has joined #zope3-dev | 00:08 | |
*** b_52Free has quit IRC | 00:11 | |
*** b_52Free has joined #zope3-dev | 00:12 | |
*** marcin_ant has joined #zope3-dev | 00:13 | |
*** b_52GM has joined #zope3-dev | 00:16 | |
*** schwendinger has quit IRC | 00:25 | |
*** b_52Free has quit IRC | 00:34 | |
*** schwendinger_ has quit IRC | 00:34 | |
*** jodok has quit IRC | 00:34 | |
WebMaven | Hmm. 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 |
---|---|---|
WebMaven | The 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 IRC | 00:46 | |
*** opetznick has joined #zope3-dev | 00:47 | |
*** d2m has quit IRC | 00:50 | |
*** schwendinger has joined #zope3-dev | 00:56 | |
*** RaFromBRC|lunch is now known as RaFromBRC | 00:57 | |
WebMaven | man this is hard. | 00:58 |
WebMaven | here is the problem: | 00:58 |
WebMaven | My relational adapter for IZopeDublinCore only works once the rows are added to the db | 00:59 |
WebMaven | which 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 |
WebMaven | and it fails, because the db is retirning an empty set for the query. | 01:02 |
WebMaven | Hmm. OK, it looks like it's not the security machinery, but something subscribing to the creation event (maybe)... | 01:05 |
*** opetznick has quit IRC | 01:05 | |
WebMaven | Any ideas on how to fix this? I can provide a traceback and show my source code. | 01:05 |
WebMaven | I'm really stuck here, can anyone take a look at this? | 01:09 |
*** schwendinger has quit IRC | 01:09 | |
*** ignas has quit IRC | 01:13 | |
*** b_52GM has quit IRC | 01:13 | |
*** b_52Free has joined #zope3-dev | 01:13 | |
*** J1m has quit IRC | 01:17 | |
WebMaven | Can I disable an adapter during object creation? | 01:18 |
ccomb | I don't understand | 01:18 |
ccomb | you use an adapter on something that does not exist ? | 01:18 |
WebMaven | Umm, no. | 01:18 |
WebMaven | OK, so I am trying to get ZAlchemy working for a simple content object. This worked. | 01:19 |
WebMaven | I am trying to adapt the content object to IZopeDublinCore with an adapter the gets it's info also from the rdb. | 01:20 |
WebMaven | this also works. | 01:20 |
WebMaven | it does this by querying the db based on an id attribute in the object. | 01:20 |
WebMaven | However! | 01:20 |
WebMaven | during object creation, the zope transaction has not completed, and a query to the db will give an empty result. | 01:21 |
WebMaven | Unfortunetely, the object *is* being adapted to IZopeDublinCore during the transaction. | 01:22 |
WebMaven | so the query gives an empty set, and the adapter fails (result = query[0]), aborting the Zope transaction. | 01:23 |
WebMaven | So, I need to adapt the object only *after* it has been created. | 01:24 |
ccomb | I'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 |
WebMaven | it's not really a ZAlchemy problem, but a general one (I believe) with rdb based adapters. | 01:26 |
*** b_52GM has joined #zope3-dev | 01:26 | |
ccomb | I'm still stuck on the zodb | 01:27 |
WebMaven | if 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 |
WebMaven | Maybe I can catch the error. | 01:31 |
WebMaven | but I'm pretty sure that will only push the problem around. | 01:31 |
WebMaven | let's see... | 01:31 |
*** redir has quit IRC | 01:36 | |
*** marcin_ant has quit IRC | 01:37 | |
WebMaven | Hmm. | 01:38 |
WebMaven | Dang. Fixed with a try/except. | 01:39 |
WebMaven | Cool. | 01:39 |
WebMaven | Wow. I think that's the last bug. | 01:39 |
WebMaven | I have a working (if not complete) relational adapter for IZopeDublinCore! | 01:40 |
WebMaven | I rock! | 01:40 |
WebMaven | Woo! | 01:42 |
*** b_52Free has quit IRC | 01:43 | |
ccomb | was it just to learn or you have a project that uses it ? | 01:45 |
WebMaven | Mostly 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 |
WebMaven | The rdb schema was devised with this particular pattern in mind. | 01:50 |
WebMaven | And then I got stubborn. | 01:51 |
WebMaven | ;-) | 01:51 |
WebMaven | Why do you ask? | 01:52 |
*** Aiste has quit IRC | 01:52 | |
WebMaven | Hmm. Perhaps I spoke just a little too soon. | 02:00 |
WebMaven | I can't traverse to the 'title' attribute: | 02:00 |
WebMaven | TraversalError: (<rogue.za_example_4.message.HelloWorldMessage object at 0xb6ae166c>, 'title') | 02:01 |
WebMaven | it's editable, and it's being saved in the rdb, but I can't render it on the page. | 02:01 |
WebMaven | Hmm. I'm probably doing something not-quite right in the adapter with the properties that isn't satisfying the DC contract. | 02:02 |
WebMaven | Hmm. This *looks* ok: | 02:03 |
WebMaven | def setTitle(self, title): | 02:03 |
WebMaven | self.result.title = title | 02:03 |
WebMaven | 02:03 | |
WebMaven | title = property(getTitle, setTitle, doc="RelationalDC title") | 02:03 |
WebMaven | err missed copying the get: | 02:04 |
WebMaven | def getTitle(self): | 02:04 |
WebMaven | return self.result.title | 02:04 |
WebMaven | 02:04 | |
*** jfroche has quit IRC | 02:08 | |
*** projekt01 has joined #zope3-dev | 02:23 | |
*** b_52Free has joined #zope3-dev | 02:27 | |
*** ccomb has quit IRC | 02:29 | |
*** b_52Centos has joined #zope3-dev | 02:32 | |
*** b_52Free has quit IRC | 02:32 | |
*** b_52Free has joined #zope3-dev | 02:41 | |
*** b_52GM has quit IRC | 02:56 | |
*** b_52Centos has quit IRC | 03:00 | |
*** b_52GM has joined #zope3-dev | 03:07 | |
*** norro has quit IRC | 03:16 | |
*** wrobel has quit IRC | 03:21 | |
*** redir has joined #zope3-dev | 03:29 | |
*** b_52Free has quit IRC | 03:30 | |
*** yota has quit IRC | 03:42 | |
*** b_52Free has joined #zope3-dev | 03:44 | |
*** Arista1 has joined #zope3-dev | 03:55 | |
*** b_52GM has quit IRC | 04:01 | |
*** redir has quit IRC | 04:01 | |
*** deo has quit IRC | 04:14 | |
*** RaFromBRC has quit IRC | 04:23 | |
*** b_52GM has joined #zope3-dev | 04:44 | |
*** niemeyer has quit IRC | 04:44 | |
*** vlado has quit IRC | 04:47 | |
*** b_52Centos has joined #zope3-dev | 04:53 | |
*** b_52Free has quit IRC | 05:02 | |
*** RaFromBRC has joined #zope3-dev | 05:09 | |
*** b_52GM has quit IRC | 05:09 | |
*** b_52Free has joined #zope3-dev | 05:13 | |
*** b_52Free has quit IRC | 05:18 | |
*** b_52Free has joined #zope3-dev | 05:19 | |
*** b_52GM has joined #zope3-dev | 05:23 | |
*** b_52Centos has quit IRC | 05:33 | |
*** b_52Centos has joined #zope3-dev | 05:34 | |
*** b_52Free has quit IRC | 05:43 | |
*** b_52GM has quit IRC | 05:45 | |
*** b_52Centos has quit IRC | 05:48 | |
*** b_52Centos has joined #zope3-dev | 05:49 | |
*** dobee has joined #zope3-dev | 05:49 | |
*** dobee has quit IRC | 05:54 | |
*** b_52Free has joined #zope3-dev | 05:56 | |
*** b_52Centos has quit IRC | 06:14 | |
*** stub has joined #zope3-dev | 06:23 | |
*** RaFromBRC has quit IRC | 07:00 | |
*** b_52GM has joined #zope3-dev | 07:04 | |
*** b_52Free has quit IRC | 07:22 | |
*** b_52Free has joined #zope3-dev | 07:24 | |
*** jkakar has quit IRC | 07:37 | |
*** b_52GM has quit IRC | 07:43 | |
*** b_52Free has quit IRC | 08:02 | |
*** b_52GM has joined #zope3-dev | 08:02 | |
*** alecm has quit IRC | 08:09 | |
*** jkakar has joined #zope3-dev | 08:48 | |
*** orange- has joined #zope3-dev | 09:06 | |
*** d2m has joined #zope3-dev | 09:42 | |
*** philiKON_ has joined #zope3-dev | 09:44 | |
*** dunny has quit IRC | 09:52 | |
*** romanofski has quit IRC | 09:52 | |
*** philiKON has quit IRC | 09:52 | |
*** ktwilight_ has quit IRC | 09:52 | |
*** andrew_m has quit IRC | 09:52 | |
*** dunny has joined #zope3-dev | 09:56 | |
*** romanofski has joined #zope3-dev | 09:56 | |
*** ktwilight_ has joined #zope3-dev | 09:56 | |
*** andrew_m has joined #zope3-dev | 09:56 | |
*** orange- has left #zope3-dev | 09:57 | |
d2m | anyone knows what happened to 'mount-point' in the zope.conf for mounting a zeoclient into a certain folder ? | 10:17 |
*** jkakar has quit IRC | 10:18 | |
*** b_52Free has joined #zope3-dev | 10:29 | |
*** b_52GM has quit IRC | 10:33 | |
*** philiKON_ has quit IRC | 10:48 | |
*** b_52GM has joined #zope3-dev | 10:48 | |
*** stu1 has joined #zope3-dev | 10:49 | |
*** jodok has joined #zope3-dev | 10:50 | |
*** jfroche has joined #zope3-dev | 10:54 | |
*** vlado has joined #zope3-dev | 10:59 | |
*** b_52GM has quit IRC | 11:02 | |
*** b_52Centos has joined #zope3-dev | 11:02 | |
*** b_52Free has quit IRC | 11:05 | |
*** stub has quit IRC | 11:07 | |
*** jfroche has quit IRC | 11:10 | |
*** b_52Free has joined #zope3-dev | 11:19 | |
*** jodok has quit IRC | 11:26 | |
*** b_52Centos has quit IRC | 11:36 | |
*** harobed has joined #zope3-dev | 11:41 | |
*** b_52Free has quit IRC | 11:49 | |
*** b_52Free has joined #zope3-dev | 11:50 | |
*** b_52Free has quit IRC | 11:52 | |
*** b_52Free has joined #zope3-dev | 11:53 | |
*** jodok has joined #zope3-dev | 12:00 | |
*** jodok has quit IRC | 12:01 | |
*** Aiste has joined #zope3-dev | 12:04 | |
*** opetznick has joined #zope3-dev | 12:10 | |
*** jodok has joined #zope3-dev | 12:10 | |
*** jodok has quit IRC | 12:11 | |
*** b_52Free has quit IRC | 12:19 | |
*** b_52Free has joined #zope3-dev | 12:20 | |
*** jodok has joined #zope3-dev | 12:20 | |
*** jodok has quit IRC | 12:21 | |
*** opetznick has quit IRC | 12:24 | |
*** jodok has joined #zope3-dev | 12:31 | |
*** jodok has quit IRC | 12:32 | |
*** harobed has quit IRC | 12:37 | |
*** opetznick has joined #zope3-dev | 12:40 | |
*** b_52GM has joined #zope3-dev | 12:44 | |
*** jodok has joined #zope3-dev | 12:45 | |
*** dunny has quit IRC | 12:46 | |
*** jodok has quit IRC | 12:46 | |
*** yota has joined #zope3-dev | 12:53 | |
*** jodok has joined #zope3-dev | 12:56 | |
*** b_52GM has quit IRC | 12:57 | |
*** jodok has quit IRC | 12:57 | |
*** b_52GM has joined #zope3-dev | 12:58 | |
*** b_52Free has quit IRC | 13:02 | |
*** jodok has joined #zope3-dev | 13:04 | |
*** jodok has quit IRC | 13:05 | |
*** schwendinger has joined #zope3-dev | 13:09 | |
*** jodok has joined #zope3-dev | 13:19 | |
*** jodok has quit IRC | 13:20 | |
*** b_52Free has joined #zope3-dev | 13:22 | |
*** opetznick has quit IRC | 13:26 | |
*** dobee has joined #zope3-dev | 13:27 | |
*** jodok has joined #zope3-dev | 13:34 | |
*** jodok has quit IRC | 13:35 | |
*** b_52Free has quit IRC | 13:38 | |
*** b_52Free has joined #zope3-dev | 13:39 | |
*** b_52GM has quit IRC | 13:42 | |
*** jodok has joined #zope3-dev | 13:44 | |
*** jodok has quit IRC | 13:46 | |
*** jodok has joined #zope3-dev | 13:55 | |
*** jodok has quit IRC | 13:56 | |
*** jodok has joined #zope3-dev | 14:10 | |
*** jodok has quit IRC | 14:11 | |
*** jodok has joined #zope3-dev | 14:21 | |
*** jodok has quit IRC | 14:22 | |
*** jodok has joined #zope3-dev | 14:32 | |
*** jodok has quit IRC | 14:33 | |
*** vlado has joined #zope3-dev | 14:34 | |
*** jodok has joined #zope3-dev | 14:42 | |
*** jodok has quit IRC | 14:43 | |
*** dobee_ has joined #zope3-dev | 14:45 | |
*** jodok has joined #zope3-dev | 14:51 | |
*** jodok has quit IRC | 14:52 | |
*** dobee has quit IRC | 15:01 | |
*** norro has joined #zope3-dev | 15:08 | |
*** philiKON has joined #zope3-dev | 15:11 | |
*** dobee has joined #zope3-dev | 15:11 | |
*** vlado has quit IRC | 15:12 | |
*** rocky|away is now known as rocky | 15:15 | |
*** philiKON has quit IRC | 15:15 | |
*** sureshvv has joined #zope3-dev | 15:18 | |
*** philiKON has joined #zope3-dev | 15:22 | |
*** dobee_ has quit IRC | 15:29 | |
*** schwendinger has quit IRC | 15:30 | |
*** b_52GM has joined #zope3-dev | 15:32 | |
*** dobee_ has joined #zope3-dev | 15:36 | |
*** philiKON_ has joined #zope3-dev | 15:42 | |
*** schwendinger has joined #zope3-dev | 15:44 | |
*** dobee has quit IRC | 15:45 | |
*** b_52Centos has joined #zope3-dev | 15:51 | |
*** b_52Free has quit IRC | 15:57 | |
*** philiKON has quit IRC | 15:58 | |
*** dobee has joined #zope3-dev | 15:59 | |
*** b_52Free has joined #zope3-dev | 16:04 | |
*** philiKON_ has quit IRC | 16:11 | |
*** b_52GM has quit IRC | 16:12 | |
*** dobee_ has quit IRC | 16:15 | |
*** b_52Centos has quit IRC | 16:21 | |
*** schwendinger_ has joined #zope3-dev | 16:32 | |
*** HakTom has joined #zope3-dev | 16:35 | |
*** b_52GM has joined #zope3-dev | 16:38 | |
*** alecm has joined #zope3-dev | 16:39 | |
*** lamike has joined #zope3-dev | 16:45 | |
*** b_52Centos has joined #zope3-dev | 16:46 | |
*** jodok has joined #zope3-dev | 16:46 | |
*** schwendinger has quit IRC | 16:49 | |
*** b_52Free has quit IRC | 16:54 | |
*** b_52GM has quit IRC | 17:02 | |
*** b_52Free has joined #zope3-dev | 17:10 | |
*** lamike has quit IRC | 17:19 | |
*** b_52GM has joined #zope3-dev | 17:22 | |
*** b_52Centos has quit IRC | 17:27 | |
*** HakTom has quit IRC | 17:34 | |
*** b_52Free has quit IRC | 17:38 | |
*** b_52Free has joined #zope3-dev | 17:40 | |
*** jinty has joined #zope3-dev | 17:45 | |
*** b_52GM has quit IRC | 18:06 | |
*** b_52Free has quit IRC | 18:20 | |
*** b_52Free has joined #zope3-dev | 18:21 | |
*** opetznick has joined #zope3-dev | 18:21 | |
*** b_52Free has quit IRC | 18:24 | |
*** b_52Free has joined #zope3-dev | 18:25 | |
*** jinty has quit IRC | 18:27 | |
*** philiKON has joined #zope3-dev | 18:44 | |
*** philiKON has quit IRC | 18:48 | |
*** b_52GM has joined #zope3-dev | 18:49 | |
*** b_52Free has quit IRC | 19:06 | |
*** whit has quit IRC | 19:09 | |
*** ofer has joined #zope3-dev | 19:11 | |
*** stu1 has quit IRC | 19:11 | |
*** natea has quit IRC | 19:27 | |
*** whit has joined #zope3-dev | 19:33 | |
*** ofer has quit IRC | 19:46 | |
*** whit has quit IRC | 19:57 | |
*** jodok has quit IRC | 20:13 | |
*** philiKON has joined #zope3-dev | 20:14 | |
*** WebMaven has quit IRC | 20:17 | |
*** tomus has joined #zope3-dev | 20:24 | |
*** jodok has joined #zope3-dev | 20:40 | |
*** jodok has quit IRC | 20:52 | |
*** dobee has quit IRC | 21:22 | |
*** dobee has joined #zope3-dev | 21:23 | |
*** jodok has joined #zope3-dev | 21:28 | |
*** WebMaven has joined #zope3-dev | 22:01 | |
*** schwendinger_ has quit IRC | 22:02 | |
*** WebMaven_ has joined #zope3-dev | 22:03 | |
*** dunny has joined #zope3-dev | 22:03 | |
*** timte has joined #zope3-dev | 22:08 | |
*** timte has quit IRC | 22:08 | |
*** timte has joined #zope3-dev | 22:10 | |
*** WebMaven_ has quit IRC | 22:15 | |
*** ofer has joined #zope3-dev | 22:36 | |
*** jkakar has joined #zope3-dev | 23:04 | |
*** flox has joined #zope3-dev | 23:21 | |
*** ofer has quit IRC | 23:32 | |
*** flox has quit IRC | 23:34 | |
*** ktwilight has joined #zope3-dev | 23:51 | |
*** sureshvv has quit IRC | 23:56 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!