*** projekt01 has joined #zope3-dev | 00:03 | |
*** xenru has joined #zope3-dev | 00:04 | |
*** b52laptop has joined #zope3-dev | 00:11 | |
*** g_n_o_s_i_s has quit IRC | 00:13 | |
*** niemeyer has quit IRC | 00:17 | |
*** natea|food_ has joined #zope3-dev | 00:22 | |
*** twcook has quit IRC | 00:23 | |
*** Ariel_Calzada has quit IRC | 00:27 | |
*** nerdalert has quit IRC | 00:29 | |
*** natea|food has quit IRC | 00:29 | |
*** Ariel_Calzada has joined #zope3-dev | 00:33 | |
*** tarek has quit IRC | 00:39 | |
*** alecm has joined #zope3-dev | 00:41 | |
*** RaFromBRC|lunch is now known as RaFromBRC | 00:41 | |
*** xenru has quit IRC | 00:44 | |
*** greenman has joined #zope3-dev | 00:54 | |
*** reco has joined #zope3-dev | 00:57 | |
*** ignas has joined #zope3-dev | 01:00 | |
*** ktwilight_ has joined #zope3-dev | 01:01 | |
*** benji has quit IRC | 01:03 | |
*** jhauser has quit IRC | 01:08 | |
*** norro has quit IRC | 01:12 | |
*** ktwilight has quit IRC | 01:17 | |
*** J1m has quit IRC | 01:17 | |
*** Ariel_Calzada has quit IRC | 01:19 | |
*** Ariel_Calzada has joined #zope3-dev | 01:19 | |
*** Ariel_Calzada has quit IRC | 01:19 | |
dennis__ | suppose I have a users settings storen in the annotations for the principal. I have a custom traverser that will return the right settings object based on self.request.principal. | 01:21 |
---|---|---|
dennis__ | however this settings object needs to be locatable, for everything else to work | 01:21 |
dennis__ | so, i have to use removeSecurityProxy on the "virtual" folder which travers to this object, and locate( settingsObj, folderObj, u'' ) | 01:22 |
*** Ariel_Calzada has joined #zope3-dev | 01:22 | |
dennis__ | what if I would like an /admin folder, which also has a uri such as /admin/userX/settings, which I also want to return this settings object from the principals annotations | 01:22 |
dennis__ | it would then be locatable in 2 ways | 01:22 |
dennis__ | which makes me wonder if I am on the right track | 01:23 |
ignas | dennis__: hmm, why do you want them on principal? if you have userX | 01:24 |
ignas | maybe you could make an adapter that adapts your principal to your User object | 01:25 |
ignas | and then just access the settings on the user | 01:25 |
*** sm-afk has quit IRC | 01:25 | |
ignas | and store them on a user | 01:25 |
X-scream | dennis__: i solved yesterday's problem :) | 01:25 |
*** sm has joined #zope3-dev | 01:25 | |
dennis__ | i have an adapter that returns a settings object, which is the active context of the let's say edit_settings.html view | 01:25 |
dennis__ | but this object needs to be locatable | 01:26 |
*** natea|food_ has quit IRC | 01:26 | |
dennis__ | X-scream good :) what was it ? | 01:26 |
ignas | you are doing something "interesting" | 01:26 |
dennis__ | ignas do you mean storing users as seperate objects in some user folder ? | 01:27 |
ignas | sorry i am not sure what you are trying to do anymore | 01:27 |
dennis__ | your calendar example :) | 01:27 |
X-scream | didn't set the "value_type" schema field parameter in a List I had in the recipe schema | 01:28 |
*** sm has quit IRC | 01:28 | |
dennis__ | except, my calendar (for the given user) does not come from locatable place such as /allcalendars/userX/calendar, but is stored in the annotations of a principal | 01:28 |
ignas | so you have persistent principals? | 01:28 |
ignas | not sure i have seen it done that way | 01:29 |
*** sm has joined #zope3-dev | 01:29 | |
dennis__ | actually IInternalPrincipal | 01:29 |
dennis__ | but I figure I am doing something "interesting" so I am looking for a kick in a better direction :) | 01:29 |
ignas | they are not persistent | 01:29 |
ignas | how can you store anything in their annotations? | 01:30 |
dennis__ | but the principal annotations are | 01:30 |
ignas | hmm | 01:30 |
ignas | indeed | 01:30 |
dennis__ | maybe a better way to ask would be, can I have the same object be at /uri/a/b/myObject AND at /uri/b/c/myObject | 01:30 |
dennis__ | and if so, what is the __parent__ of myObject | 01:31 |
ignas | yes and no | 01:31 |
ignas | there are 2 parts in the mechanism | 01:31 |
ignas | one is - what is traversal | 01:31 |
ignas | so you can traverse to the same object in as many ways as you want | 01:31 |
ignas | another one is absolute_url generation | 01:32 |
ignas | most of the time you get 1 url per object | 01:32 |
ignas | unless you do something "interesting" | 01:32 |
ignas | like mark object on traversal | 01:32 |
ignas | so it would know which url to use | 01:32 |
ignas | or something like that | 01:32 |
dennis__ | it's like I would like to set location information for the current request only, not persistently | 01:33 |
ignas | why would you want to do that? | 01:33 |
dennis__ | (just so it renders the rest of my page and creates valid urls relative to where I am) | 01:33 |
ignas | so you want different urls for different ways of traversing to the object | 01:33 |
dennis__ | well, put another way, if my settings object is stored in the principal annotations, it is not directly locatable | 01:34 |
dennis__ | i would like every user to have a /mysettings url | 01:34 |
dennis__ | and the admin /allsettings/user1/ /user2, etc | 01:34 |
*** srichter has quit IRC | 01:34 | |
ignas | you don't need to fake __parents__ for that | 01:34 |
ignas | hmm | 01:34 |
ignas | you just set up a custom absolute_url adapter | 01:34 |
ignas | that returns /mysettings if request.principal is the same as the principal you are traversing for | 01:35 |
ignas | or returns the proper url, in the other case | 01:35 |
ignas | the downside is that /allsettings/admin/ would work, but when you would click on it, all the links inside would point to /mysettings | 01:36 |
dennis__ | it wouldn't need a __parent__ in that case ? (since its in annotations, not in a real folder anywhere) | 01:36 |
*** nathany has joined #zope3-dev | 01:36 | |
ignas | you can write your own absolute_url adapter, so it can return "BWAHAHAHA where is your url now?" | 01:36 |
ignas | ;) | 01:36 |
*** hazmat has quit IRC | 01:36 | |
dennis__ | hehe :) | 01:36 |
ignas | but still | 01:36 |
ignas | i'd do a mysettings view | 01:37 |
ignas | that redirects you | 01:37 |
ignas | to the /allsettings/user1 url | 01:37 |
dennis__ | or something like a location proxy, the proxy exists in different places at different url's, but references the same object inside | 01:38 |
dennis__ | i was so excited about having nice url's where /mysettings gives something completely user specific, without having long /allusers/userX/ things | 01:39 |
ignas | interesting | 01:39 |
ignas | in my world - REST is better than same url having different meanings | 01:39 |
ignas | but YMMV | 01:40 |
dennis__ | REST ? | 01:40 |
ignas | http://en.wikipedia.org/wiki/Representational_State_Transfer | 01:40 |
ignas | the idea that URLs uniquely identify objects, and all the related blabbering about standards | 01:41 |
*** jinty has quit IRC | 01:44 | |
*** jfroche has quit IRC | 01:44 | |
*** rom|zzZZZ has quit IRC | 01:44 | |
*** lisppaste6 has quit IRC | 01:44 | |
*** bigkevmcd has quit IRC | 01:44 | |
*** iap has quit IRC | 01:44 | |
*** timte has quit IRC | 01:45 | |
dennis__ | ignas thank you for your thoughts :) i need to think this a bit more through | 01:45 |
*** Ariel_Calzada has quit IRC | 01:45 | |
*** whit has quit IRC | 01:46 | |
*** whit has joined #zope3-dev | 01:46 | |
*** srichter has joined #zope3-dev | 01:48 | |
*** pbugni has quit IRC | 01:48 | |
*** iap has joined #zope3-dev | 01:52 | |
*** ChanServ sets mode: +o srichter | 01:52 | |
*** jinty has joined #zope3-dev | 01:53 | |
*** jfroche has joined #zope3-dev | 01:53 | |
*** rom|zzZZZ has joined #zope3-dev | 01:53 | |
*** lisppaste6 has joined #zope3-dev | 01:53 | |
*** bigkevmcd has joined #zope3-dev | 01:53 | |
*** projekt01 has quit IRC | 01:55 | |
*** ktwilight_ has quit IRC | 01:55 | |
*** ignas has quit IRC | 01:55 | |
*** RaFromBRC has quit IRC | 01:55 | |
*** X-scream has quit IRC | 01:55 | |
*** CSWookie has quit IRC | 01:55 | |
*** SteveA has quit IRC | 01:55 | |
*** pbugni has joined #zope3-dev | 01:56 | |
*** ktwilight_ has joined #zope3-dev | 01:56 | |
*** ignas has joined #zope3-dev | 01:56 | |
*** projekt01 has joined #zope3-dev | 01:56 | |
*** RaFromBRC has joined #zope3-dev | 01:56 | |
*** X-scream has joined #zope3-dev | 01:56 | |
*** SteveA has joined #zope3-dev | 01:56 | |
*** CSWookie has joined #zope3-dev | 01:56 | |
*** RaFromBRC is now known as RaFromBRC|brb | 02:04 | |
*** nathany has quit IRC | 02:09 | |
*** dunny_ has quit IRC | 02:11 | |
*** dunny has joined #zope3-dev | 02:15 | |
*** dunny has quit IRC | 02:19 | |
*** twcook has joined #zope3-dev | 02:21 | |
*** andrew_m has quit IRC | 02:23 | |
*** dunny has joined #zope3-dev | 02:25 | |
*** ignas has quit IRC | 02:43 | |
*** RaFromBRC|brb is now known as RaFromBRC | 02:43 | |
*** tarek has joined #zope3-dev | 02:54 | |
*** benji has joined #zope3-dev | 02:54 | |
*** jfroche has quit IRC | 03:00 | |
*** hazmat has joined #zope3-dev | 03:01 | |
*** ChanServ sets mode: +o hazmat | 03:01 | |
*** whitmo has joined #zope3-dev | 03:28 | |
*** whit has quit IRC | 03:28 | |
*** hazmat has quit IRC | 03:30 | |
*** dunny has quit IRC | 03:51 | |
*** dunny has joined #zope3-dev | 04:00 | |
*** reco has quit IRC | 04:05 | |
*** huajie has joined #zope3-dev | 04:06 | |
*** dunny has joined #zope3-dev | 04:20 | |
*** pcardune_ has joined #zope3-dev | 04:26 | |
*** dunny has quit IRC | 04:33 | |
*** rcrafton has quit IRC | 04:34 | |
*** dunny has joined #zope3-dev | 04:37 | |
*** pcardune has quit IRC | 04:55 | |
*** bigkevmcd has quit IRC | 05:00 | |
*** RaFromBRC has quit IRC | 05:03 | |
*** alecm has quit IRC | 05:07 | |
*** twcook has quit IRC | 05:18 | |
*** natea|food_ has joined #zope3-dev | 05:46 | |
*** natea|food_ has quit IRC | 05:48 | |
*** twcook has joined #zope3-dev | 05:51 | |
*** natea|away has joined #zope3-dev | 05:57 | |
*** twcook has quit IRC | 06:08 | |
*** hazmat has joined #zope3-dev | 06:38 | |
*** ChanServ sets mode: +o hazmat | 06:38 | |
*** chacha_chaudhry has joined #zope3-dev | 06:39 | |
*** rcrafton has joined #zope3-dev | 06:45 | |
*** alecm has joined #zope3-dev | 06:48 | |
*** alecm has quit IRC | 07:04 | |
*** cursor has joined #zope3-dev | 07:04 | |
*** rcrafton has quit IRC | 07:13 | |
*** cursor has quit IRC | 07:24 | |
*** dunny_ has joined #zope3-dev | 07:24 | |
*** philiKON has joined #zope3-dev | 07:25 | |
*** dunny has quit IRC | 07:35 | |
*** baijum has joined #zope3-dev | 07:48 | |
*** philiKON has quit IRC | 07:57 | |
*** d2m has joined #zope3-dev | 08:13 | |
*** alecm has joined #zope3-dev | 08:13 | |
*** rom|zzZZZ has quit IRC | 08:15 | |
*** philiKON has joined #zope3-dev | 08:17 | |
*** Aiste has joined #zope3-dev | 08:23 | |
*** pcardune_ has quit IRC | 08:23 | |
*** projekt01 has quit IRC | 08:31 | |
*** sorin_ has joined #zope3-dev | 08:32 | |
*** philiKON has quit IRC | 08:33 | |
*** sorin_ is now known as sorindregan | 08:34 | |
*** niemeyer has joined #zope3-dev | 08:34 | |
*** pcardune_ has joined #zope3-dev | 08:40 | |
*** stub has joined #zope3-dev | 08:44 | |
*** philiKON has joined #zope3-dev | 08:48 | |
*** naro has joined #zope3-dev | 08:52 | |
*** pelle_ has joined #zope3-dev | 09:05 | |
*** pelle_ has joined #zope3-dev | 09:06 | |
*** ignas has joined #zope3-dev | 09:15 | |
*** srichter has quit IRC | 09:16 | |
*** jfroche has joined #zope3-dev | 09:27 | |
*** schwendinger has joined #zope3-dev | 09:30 | |
*** greenman_ has joined #zope3-dev | 09:33 | |
*** greenman has quit IRC | 09:47 | |
*** jukart has joined #zope3-dev | 09:57 | |
*** romanofski has joined #zope3-dev | 09:57 | |
*** alecm has quit IRC | 10:02 | |
*** niemeyer_ has joined #zope3-dev | 10:28 | |
*** niemeyer has quit IRC | 10:28 | |
*** jukart_ has joined #zope3-dev | 10:35 | |
*** ignas has quit IRC | 10:46 | |
*** twcook has joined #zope3-dev | 10:46 | |
*** jukart has quit IRC | 10:52 | |
*** bigkevmcd has joined #zope3-dev | 10:57 | |
*** pcardune_ has quit IRC | 10:59 | |
*** twcook has quit IRC | 11:04 | |
*** ignas has joined #zope3-dev | 11:05 | |
*** jinty has quit IRC | 11:07 | |
*** andrew_m has joined #zope3-dev | 11:08 | |
*** jsadjohnson_ has quit IRC | 11:15 | |
*** jsadjohnson has joined #zope3-dev | 11:16 | |
*** pcardune_ has joined #zope3-dev | 11:22 | |
*** jinty has joined #zope3-dev | 11:33 | |
*** b52laptop has quit IRC | 11:38 | |
*** greenman_ has quit IRC | 11:58 | |
*** greenman has joined #zope3-dev | 12:02 | |
*** jukart_ has quit IRC | 12:05 | |
*** jukart has joined #zope3-dev | 12:06 | |
*** timte has joined #zope3-dev | 12:11 | |
* huajie looks all these people at europython ;) | 12:19 | |
*** richardkan has joined #zope3-dev | 12:22 | |
*** niemeyer_ is now known as niemeyer | 12:22 | |
ignas | anyone who has worked on zope http publisher code? | 12:28 |
* ignas might have found a bug, but is not sure whether it is in Zope or in WSGIUtils | 12:29 | |
*** b52laptop has joined #zope3-dev | 12:33 | |
*** norro has joined #zope3-dev | 12:33 | |
*** afd_ has joined #zope3-dev | 12:40 | |
*** ghendi has joined #zope3-dev | 12:41 | |
*** huajie has quit IRC | 12:41 | |
*** niemeyer has quit IRC | 12:42 | |
*** jinty has quit IRC | 12:43 | |
*** ktwilight_ has quit IRC | 12:45 | |
*** ktwilight_ has joined #zope3-dev | 12:46 | |
*** twcook has joined #zope3-dev | 12:52 | |
*** pcardune_ has quit IRC | 12:53 | |
*** tarek has quit IRC | 12:58 | |
*** ignas has quit IRC | 13:00 | |
*** Aiste has quit IRC | 13:03 | |
*** Aiste has joined #zope3-dev | 13:03 | |
*** dunny_ has quit IRC | 13:06 | |
*** MJ has joined #zope3-dev | 13:08 | |
*** deo has joined #zope3-dev | 13:10 | |
*** jodok has joined #zope3-dev | 13:12 | |
*** jodok has quit IRC | 13:13 | |
*** jodok has joined #zope3-dev | 13:15 | |
*** ghendi has quit IRC | 13:16 | |
*** greenman has quit IRC | 13:20 | |
*** ghendi has joined #zope3-dev | 13:23 | |
*** twcook has quit IRC | 13:26 | |
*** afd_ has quit IRC | 13:41 | |
*** baijum has quit IRC | 13:53 | |
*** baijum has joined #zope3-dev | 13:55 | |
*** twcook has joined #zope3-dev | 14:01 | |
*** pcardune_ has joined #zope3-dev | 14:10 | |
*** niemeyer has joined #zope3-dev | 14:17 | |
*** goschtl has joined #zope3-dev | 14:32 | |
*** MJ has quit IRC | 14:33 | |
*** twcook has quit IRC | 14:33 | |
*** benji has quit IRC | 14:34 | |
*** jinty has joined #zope3-dev | 14:35 | |
*** jinty has quit IRC | 14:35 | |
*** jinty has joined #zope3-dev | 14:36 | |
*** jukart_ has joined #zope3-dev | 14:37 | |
andrew_m | is that a known problem that zope 3.2.1 does not work with python 2.4.4 (but 2.4.2)? somethings to do with cgi / readline... | 14:39 |
norro | andrew_m error in publisher.py? | 14:41 |
*** johnlr has quit IRC | 14:43 | |
norro | andrew_m here is a link, that might solve your problem: https://bugs.launchpad.net/zope3/+bug/98284 | 14:47 |
*** pcardune_ has quit IRC | 14:52 | |
*** jukart has quit IRC | 14:52 | |
*** mkerrin has joined #zope3-dev | 14:54 | |
norro | are there any experiences to run a zope3 instance on a 233 MHz machine? | 14:58 |
*** jodok_ has joined #zope3-dev | 15:00 | |
*** MJ has joined #zope3-dev | 15:02 | |
*** jukart_ has quit IRC | 15:06 | |
*** projekt01 has joined #zope3-dev | 15:07 | |
*** jukart has joined #zope3-dev | 15:08 | |
*** benji has joined #zope3-dev | 15:10 | |
*** tarek has joined #zope3-dev | 15:16 | |
*** jodok has quit IRC | 15:16 | |
andrew_m | norro: thanks.. i will roll back to python 2.4.2 for now | 15:19 |
*** Ariel_Calzada has joined #zope3-dev | 15:21 | |
*** chacha_chaudhry has quit IRC | 15:26 | |
*** rcrafton has joined #zope3-dev | 15:30 | |
*** whitmo has quit IRC | 15:39 | |
*** whit has joined #zope3-dev | 15:39 | |
*** mkerrin has quit IRC | 15:46 | |
*** jsadjohnson has joined #zope3-dev | 15:46 | |
*** huajie has joined #zope3-dev | 15:51 | |
*** ignas has joined #zope3-dev | 16:04 | |
*** jukart_ has joined #zope3-dev | 16:05 | |
*** jinty has quit IRC | 16:05 | |
*** jukart_ has quit IRC | 16:08 | |
*** srichter has joined #zope3-dev | 16:18 | |
*** ChanServ sets mode: +o srichter | 16:18 | |
*** baijum has quit IRC | 16:19 | |
*** jukart has quit IRC | 16:21 | |
*** huajie has quit IRC | 16:27 | |
*** jodok_ has quit IRC | 16:31 | |
*** jodok has joined #zope3-dev | 16:32 | |
*** natea|away has quit IRC | 16:34 | |
*** J1m has joined #zope3-dev | 16:34 | |
*** natea|away has joined #zope3-dev | 16:35 | |
*** ignas has quit IRC | 16:38 | |
*** natea|away is now known as natea | 16:42 | |
*** natea has quit IRC | 16:48 | |
*** twcook has joined #zope3-dev | 16:53 | |
*** jinty has joined #zope3-dev | 17:06 | |
*** sorindregan has quit IRC | 17:09 | |
*** jodok has quit IRC | 17:11 | |
*** jinty has quit IRC | 17:12 | |
*** ignas has joined #zope3-dev | 17:18 | |
*** jinty has joined #zope3-dev | 17:18 | |
*** ghendi has quit IRC | 17:26 | |
*** alecm has joined #zope3-dev | 17:29 | |
*** edgordon has joined #zope3-dev | 17:37 | |
*** jinty_ has joined #zope3-dev | 17:40 | |
*** theuni has joined #zope3-dev | 17:40 | |
*** jinty has quit IRC | 17:40 | |
*** afd_ has joined #zope3-dev | 17:41 | |
edgordon | i am really confused. I have an object that subclasses folder.Folder, and when I try to add objects to it, I get an error that __setitem__ takes 2 arguments and 3 were given. i have tried adding a __setitem__ function to my class, but it isn't even being called. Any ideas what is causing this? | 17:45 |
*** pelle_ has quit IRC | 17:47 | |
*** niemeyer has quit IRC | 17:53 | |
*** nerdalert has joined #zope3-dev | 17:56 | |
*** alecm has quit IRC | 17:56 | |
*** Aiste has quit IRC | 18:01 | |
*** philiKON has joined #zope3-dev | 18:03 | |
*** richardkan_ has joined #zope3-dev | 18:05 | |
*** norro has quit IRC | 18:11 | |
*** alecm has joined #zope3-dev | 18:15 | |
*** goschtl has quit IRC | 18:15 | |
*** richardkan has quit IRC | 18:23 | |
*** norro has joined #zope3-dev | 18:36 | |
*** richardkan_ has quit IRC | 18:37 | |
*** nathany has joined #zope3-dev | 18:41 | |
*** b52lap has joined #zope3-dev | 18:45 | |
*** theuni has quit IRC | 18:47 | |
*** alecm has quit IRC | 18:50 | |
*** dobee has joined #zope3-dev | 18:53 | |
*** alecm has joined #zope3-dev | 18:56 | |
*** dobee has quit IRC | 18:57 | |
*** philiKON has quit IRC | 18:59 | |
*** ignas has quit IRC | 18:59 | |
*** alecm has quit IRC | 19:02 | |
*** jinty_ has quit IRC | 19:02 | |
*** jodok has joined #zope3-dev | 19:04 | |
*** jinty has joined #zope3-dev | 19:06 | |
*** pbugni has quit IRC | 19:10 | |
*** jukart has joined #zope3-dev | 19:11 | |
*** jukart_ has joined #zope3-dev | 19:14 | |
*** RaFromBRC has joined #zope3-dev | 19:16 | |
*** dobee has joined #zope3-dev | 19:17 | |
*** projekt01 has quit IRC | 19:18 | |
*** stub has quit IRC | 19:21 | |
*** alecm has joined #zope3-dev | 19:23 | |
*** bramjones has joined #zope3-dev | 19:23 | |
*** bramjones has left #zope3-dev | 19:27 | |
*** schwendinger has quit IRC | 19:28 | |
*** jukart has quit IRC | 19:31 | |
*** jukart_ has quit IRC | 19:33 | |
*** jodok_ has joined #zope3-dev | 19:35 | |
*** jukart has joined #zope3-dev | 19:39 | |
*** b52laptop has quit IRC | 19:41 | |
*** jukart has quit IRC | 19:48 | |
*** dobee has quit IRC | 19:49 | |
*** jodok has quit IRC | 19:51 | |
*** jodok_ has quit IRC | 19:51 | |
*** jodok has joined #zope3-dev | 19:51 | |
*** jodok has quit IRC | 19:51 | |
*** edgordon has quit IRC | 19:56 | |
*** xbeanx has joined #zope3-dev | 19:58 | |
*** pbugni has joined #zope3-dev | 20:02 | |
*** romanofski has quit IRC | 20:05 | |
*** b52laptop has joined #zope3-dev | 20:07 | |
*** jinty has quit IRC | 20:13 | |
*** edgordon has joined #zope3-dev | 20:18 | |
dennis__ | what is the best practice way to keep track of the equivalent of foreign keys? ie lets say I have a folder full of bars (contact info), and every user has a list of their favourite bars, which are just persistent lists with the bars (from the bars folder) in it, this works great to spot the favourite bars of a user, but does not tell me wich user is currently linking a certain bar, nor prevents stale references, do I need to add a list of referencing | 20:29 |
dennis__ | users to every bar, or somehow use the catalog for this? | 20:29 |
dennis__ | why do I always have these kinds of questions :) | 20:29 |
*** rocky has quit IRC | 20:37 | |
nerdalert | dennis__: one way to do that is with catalogs | 20:44 |
nerdalert | dennis__: and you can index/unindex your different objects as they're added/deleted | 20:45 |
nerdalert | dennis__: although in the most basic sense, what you're asking for seems to be a unique ID utility | 20:47 |
nerdalert | dennis__: you can simply drop one in through the ZMI and register it. now any objects you add will have a unique ID that you can use like a foreign key in a DB | 20:48 |
dennis__ | reading through zc.relationship now .. yes i have an intid utility, but i would have to store references to each other on both objects, and would like to avoid that | 20:49 |
*** pandres has joined #zope3-dev | 20:53 | |
dennis__ | or catalog them somehow, i'll keep playing :) | 20:54 |
nerdalert | cool =) | 20:54 |
nerdalert | I haven't used zc.relationship yet. I'll have to play around with that sometime | 20:54 |
*** rocky has joined #zope3-dev | 20:55 | |
*** rocky has quit IRC | 20:55 | |
*** natea_ has joined #zope3-dev | 20:57 | |
*** derek|office is now known as derek_richardson | 21:13 | |
*** markusleist has joined #zope3-dev | 21:13 | |
*** jfroche has quit IRC | 21:14 | |
*** jhauser has joined #zope3-dev | 21:19 | |
*** markusleist has left #zope3-dev | 21:28 | |
*** markusleist has joined #zope3-dev | 21:28 | |
*** GuestBaha54 has joined #zope3-dev | 21:28 | |
*** schwendinger has joined #zope3-dev | 21:37 | |
*** jhauser has quit IRC | 21:44 | |
*** niemeyer has joined #zope3-dev | 21:53 | |
edgordon | can a field constraint ever take more than one argument, or have any kind of awareness of the Interface it is being called within? | 21:55 |
*** jodok has joined #zope3-dev | 22:03 | |
nerdalert | edgordon: think you're looking for invariants | 22:03 |
edgordon | /me is googling invariants | 22:04 |
nerdalert | think it's in zope.interface but I'm double checking for you | 22:04 |
nerdalert | yeah, take a look at the README.txt in zope.interface | 22:05 |
nerdalert | there's a section on invariants | 22:05 |
*** dobee has joined #zope3-dev | 22:05 | |
edgordon | yep. thanks, that is exactly what I was looking for | 22:06 |
*** jukart has joined #zope3-dev | 22:06 | |
nerdalert | cool =) | 22:06 |
nerdalert | you can also make forms check invariants. check out the README in zope.formlib | 22:07 |
nerdalert | I don't think invariants get checked automatically like field constraints | 22:08 |
edgordon | yeah, maybe it isn't what i want | 22:08 |
nerdalert | but you should be able to find functions to make it easy to enforce them | 22:08 |
edgordon | cause i want to use it to determine if it can be contained in the parent object | 22:09 |
nerdalert | oh | 22:09 |
edgordon | trying to make the objects that can be added to a folder user-configurable | 22:09 |
nerdalert | hmm. if you want container constraints, look in zope.app.container.constraints | 22:09 |
nerdalert | container constraints will allow you to enforce that a container only contains certain types of objects | 22:10 |
nerdalert | if your constraints aren't based on type though, you should look at the invariants some more | 22:11 |
nerdalert | and if your constraint can't be expressed as a pre/post condition, there's always good ol' fashioned exception mechanisms | 22:13 |
*** romanofski has joined #zope3-dev | 22:20 | |
*** jodok_ has joined #zope3-dev | 22:25 | |
*** jodok has quit IRC | 22:29 | |
*** jodok has joined #zope3-dev | 22:29 | |
*** b52lap has joined #zope3-dev | 22:33 | |
*** RaFromBRC is now known as RaFromBRC|lunch | 22:40 | |
*** jodok_ has quit IRC | 22:47 | |
*** pbugni has quit IRC | 22:48 | |
*** b52laptop has quit IRC | 22:51 | |
*** edgordon has quit IRC | 23:05 | |
*** romanofski has quit IRC | 23:07 | |
*** schwendinger has quit IRC | 23:11 | |
*** d2m has quit IRC | 23:18 | |
*** Ariel_Calzada has quit IRC | 23:19 | |
*** naro has quit IRC | 23:24 | |
*** dobee has quit IRC | 23:30 | |
*** jhauser has joined #zope3-dev | 23:31 | |
*** derek_richardson is now known as derek|office | 23:35 | |
*** RaFromBRC|lunch is now known as RaFromBRC | 23:35 | |
*** lisppaste6 has quit IRC | 23:41 | |
*** deo has quit IRC | 23:45 | |
*** alecm has quit IRC | 23:46 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!