malthe | tesdal: what's the attributes stuff in subscribers.py do? i.e. ``dispatchToSublocations``? | 00:00 |
---|---|---|
malthe | looks advanced | 00:01 |
tesdal | malthe: z3 stuff | 00:01 |
tesdal | malthe: by default, attributes are the attribute names that was updated | 00:01 |
tesdal | if I remember correctly | 00:01 |
malthe | oh really | 00:01 |
tesdal | Archetypes doesn't implement it though | 00:01 |
malthe | didn't know about that | 00:01 |
malthe | this stuff hasn't been carried over yet | 00:01 |
malthe | I think I'll continue to integrate kapil's async queue first | 00:02 |
tesdal | malthe: I think dispatchToSublocations is in enfold.* | 00:02 |
malthe | from zope.app.container.contained import dispatchToSublocations | 00:02 |
malthe | exotic stuff | 00:02 |
tesdal | what's the easiest way to install git on mac? | 00:02 |
malthe | port install git-core | 00:03 |
tesdal | ah, git-core | 00:03 |
* tesdal just tried git | 00:03 | |
malthe | no I think git is something else alas | 00:03 |
malthe | but git the scm is taking over the name most places | 00:03 |
*** dunny has joined #zope3-dev | 00:17 | |
Theuni | benji: pah | 00:19 |
benji | Theuni: heh | 00:19 |
benji | what are you talking about? :) | 00:20 |
Theuni | I was dared to answer your mail. | 00:20 |
benji | on zope3-user? | 00:20 |
* faassen still doesn't know what Theuni is talking about. :) | 00:20 | |
Theuni | benji: exactly. | 00:20 |
Theuni | I finally realized I shouldn't feed him. | 00:20 |
faassen | oh, in my days, we messaged each other using sticks and stones barefoot in the snow. | 00:20 |
benji | pfft | 00:20 |
Theuni | I didn't even want to see this starting. ;) | 00:21 |
Theuni | faassen: i thought you were messaging each other using clubs ... | 00:21 |
benji | yeah, he seemed like a troll from the start, so I didn't feel bad about snarking on him | 00:21 |
faassen | ME GROK SMASH CLUBS | 00:21 |
Theuni | "Hit me once for 'yes' and twice for 'no'." | 00:21 |
Theuni | *hit* | 00:21 |
benji | heh | 00:21 |
Theuni | *hit* | 00:21 |
Theuni | "Aha. Yes, yes." | 00:21 |
faassen | I just think he was rather incoherently frustrated. :) | 00:21 |
Theuni | Being incoherent *is* frustrating. | 00:22 |
benji | sufficient incoherence is indistinguishable from trolling | 00:22 |
Theuni | rofl | 00:22 |
faassen | I don't think I've seen a real troll on any zope list in a long time, if ever. | 00:23 |
faassen | I don't think the zope lists are very favorite haunts for trolls. | 00:23 |
Theuni | faassen: is > 1 year a long time? | 00:23 |
faassen | I don't recall anyone longer than a year ago either. | 00:23 |
Theuni | you want to? | 00:23 |
faassen | an actual troll, whose main goal is to upset people? | 00:23 |
Theuni | Hmm. Does he need to be self-aware? | 00:24 |
faassen | yes, trolls are self-aware by definition. | 00:24 |
Theuni | Darn. | 00:24 |
faassen | the others are loonies or crackpots. :) | 00:24 |
Theuni | I guess that one matches the crackpot. | 00:24 |
faassen | yes. :) | 00:24 |
* Theuni shuffles people over to "crackpot" | 00:24 | |
faassen | anyway, a REAL troll would go like.. | 00:24 |
Theuni | Actually, I should shuffle myself into my bed. | 00:24 |
faassen | hah the ZODB sucks, relational databases are superior in ALL respects. | 00:25 |
Theuni | You're right. | 00:25 |
* benji has a Bozo list from back when he subscribed to the python-list; Xah Lee is the greatest entry. | 00:25 | |
* Theuni gets the fish | 00:25 | |
mcdonc | zodb eetz chzbgr | 00:25 |
faassen | a clever troll would start out sounding plausible and then making insinuations.. but don't you think the ZODB really sucks for any purpose? | 00:25 |
Theuni | can i haz or8cle? | 00:25 |
faassen | so what's Xah Lee like? | 00:26 |
Theuni | http://xahlee.org/perl-python/python_3000.html | 00:27 |
Theuni | I guess that's him? | 00:27 |
benji | ooooh, yeah! That's him | 00:27 |
benji | I'm not sure he's self-aware though, hard to tell. | 00:27 |
Theuni | He mentations compiler implementators. | 00:27 |
Theuni | I haven't had those in a while. | 00:27 |
Theuni | ooops. freudian. | 00:27 |
benji | He might have perfected crackpottery. | 00:28 |
Theuni | Woah! He quotes Dijkstra in that post. | 00:28 |
Theuni | Boooh! | 00:28 |
faassen | he's long. :0 | 00:29 |
Theuni | Ouch. On a referenced article, he mentions C, vi, Perl, MySQL and Unix and follows: | 00:29 |
Theuni | In our software industry, i like to define criminals as those who cause inordinate harm to society, not necessarily directly. Of the above things, some of their authors are not such criminals or are forgivable. While others, are hypocritical fantastic liers selfish to the core. When dealing with these self-promoting jolly lying humble humorous priests and their insidious superficially-harmless speeches, there should be no benefit of doubt. Tell them dire | 00:29 |
faassen | I've seen amazing crackpots. I mean, they're not self-aware, it's very interesting. as they're in some respects quite clever and articulate, but then they go off the deep end. I hope I'm not one, but I'd never find out as I'm not self-aware then. :) | 00:30 |
mcdonc | I personally enjoy: | 00:30 |
mcdonc | In 2004, i'm in a somewhat-depressed mode, living as a vagabond mostly in my car and visiting friends with my savings. This downfall has 3 main causes: • In 2002-10 i was laid off from a tech company. This lay-off lodged in my mind like a stigma. • The pain my dad has caused me at the 21-years-apart reunion in Taiwan. • I'm reaching mid 30s, my hair is falling out, having my mid-life crisis. In 2004-2005, i have worked nonstop on my | 00:30 |
benji | faassen: that reminds me of the ending paragraph of "Unskilled and Unaware of it" | 00:30 |
faassen | he also has pages on females. | 00:31 |
faassen | the Female exhibition. | 00:31 |
mcdonc | i'm pretty sure this is some form of autism | 00:31 |
benji | mcdonc: good call; you may be right | 00:33 |
faassen | perhaps crackpots are, I'm not sure. :) | 00:33 |
faassen | crackpots are quite intriguing, and I imagine they do have some autistic spectrum traits, as they don't seem to respond to feedback very well. :) | 00:34 |
mcdonc | we all have a little crackpot in us i suspect... some more crack than pot, however | 00:34 |
* faassen grins. | 00:35 | |
Theuni | I detect more adjectives than verbs. Usually a bad sign. ;) | 00:35 |
*** Theuni has quit IRC | 00:35 | |
*** Theuni has joined #zope3-dev | 00:35 | |
faassen | yeah, it's interesting as they're quite recognizable, and it's hard to put the finger on how they are different exactly. :) | 00:35 |
* faassen grins. | 00:36 | |
mcdonc | they're not. they're just *more*. ha. | 00:37 |
benji | We should fork Spambayes into Trollbayes and Crackpotbayes. | 00:37 |
*** wiggy has joined #zope3-dev | 00:37 | |
faassen | mcdonc: yeah, I think you're right. | 00:38 |
faassen | benji: for crackpotbayes you'd get 'Einstein' 'better than' 'neutopia' 'Archimedes' and 'near earth orbit' :) | 00:39 |
benji | heh | 00:39 |
faassen | ABIAN MASS-TIME EQUIVALENCE FORMULA m = Mo(1-exp(T/(kT-Mo))) Abian units. | 00:39 |
faassen | ALTER EARTH'S ORBIT AND TILT - STOP GLOBAL DISASTERS AND EPIDEMICS. | 00:39 |
faassen | ALTER THE SOLAR SYSTEM. REORBIT VENUS INTO A NEAR EARTH-LIKE ORBIT | 00:39 |
faassen | TO CREATE A BORN AGAIN EARTH (1990) | 00:39 |
mcdonc | man you type fast | 00:40 |
faassen | that was a copy paste. one of my favorite old crackpots, unfortunately now deceased. | 00:40 |
faassen | the only crackpot I ever heard on the radio, apparently before he went crackpot he was a respected mathematician. | 00:40 |
mcdonc | i know.. it was just fun to pretend you were typing it. | 00:41 |
faassen | that is, I heard that he'd died on the radio. | 00:41 |
wiggy | faassen: does your paste button have a build-in capslock? :) | 00:41 |
benji | faassen: was he the person making the announcement? | 00:41 |
benji | heh | 00:41 |
faassen | that's what his sig looked like. Alexander Abian. | 00:41 |
faassen | no, he wasn't on the radio himself. :) | 00:41 |
mcdonc | my favorite crackpots are in pkd's scanner darkly... i have had some of those conversations... ;-) | 00:42 |
faassen | then there's Doctress Neutopia, who is all for the gaia revolution and happy love satellites | 00:42 |
faassen | >Martijn Faassen (faas...@phil.ruu.nl) wrote: | 00:43 |
faassen | >: I heard you wanted to create a moon base? (for the queen | 00:43 |
faassen | >: bee, if I remember correctly) That doesn't sounds like knowledge being | 00:43 |
faassen | >: on Earth.. How does this fit in? | 00:43 |
faassen | >This is correct. I would like to live in a biospheric moon colony. | 00:43 |
faassen | >That is, I would like to rule the earth from Outer Space using | 00:43 |
faassen | >communication satellites which direct the flow of energy. | 00:43 |
faassen | 00:43 | |
faassen | me in conversation with Doctress Neutopia! in '94. :) | 00:43 |
mcdonc | e.g. http://evesalexandria.typepad.com/eves_alexandria/2006/07/happiness_is_kn.html ("i drove by the maylar microdot corporation...") | 00:43 |
*** tesdal has quit IRC | 00:44 | |
faassen | >: What is male-center knowledge? Why is it wrong? How would changing our | 00:44 |
faassen | >: architecture change our knowledge? or survival? | 00:44 |
faassen | >Martijn, you ask good questions. | 00:44 |
faassen | :) | 00:44 |
* faassen grins. | 00:44 | |
mcdonc | you're a troll troller | 00:44 |
faassen | I was just curious. :) | 00:45 |
faassen | she wasn't a troll though. she's a crackpot, the only female one I witnessed in the early days. I'm sure there's a lot of new ones now. :) | 00:46 |
faassen | and then you have Archimedes Plutonium. :) | 00:47 |
faassen | anyway, I'll stop spamming you all now. | 00:47 |
faassen | I'm off, see you later! | 00:47 |
*** J1m has quit IRC | 00:49 | |
*** faassen has quit IRC | 00:49 | |
*** J1m has joined #zope3-dev | 00:49 | |
*** J1m has quit IRC | 00:50 | |
*** alex_smith has quit IRC | 00:55 | |
*** alecm has quit IRC | 01:08 | |
*** nathany has quit IRC | 01:11 | |
*** benji has quit IRC | 01:14 | |
*** reco has quit IRC | 01:19 | |
*** harobed has quit IRC | 01:25 | |
*** rocky has quit IRC | 01:31 | |
*** whit has quit IRC | 01:33 | |
*** rocky has joined #zope3-dev | 01:33 | |
*** redir has quit IRC | 01:40 | |
*** greenman has joined #zope3-dev | 01:42 | |
*** malthe has quit IRC | 01:48 | |
*** rmarianski has quit IRC | 01:51 | |
*** djohnson has joined #zope3-dev | 01:54 | |
*** tarek has quit IRC | 02:16 | |
*** djohnson_ has joined #zope3-dev | 02:32 | |
*** pcardune has quit IRC | 02:49 | |
*** djohnson has quit IRC | 02:52 | |
*** wiggy has quit IRC | 02:56 | |
*** salfield has joined #zope3-dev | 03:01 | |
*** junkafarian has quit IRC | 03:06 | |
*** norro has quit IRC | 03:20 | |
*** jpcw2002 has quit IRC | 03:22 | |
*** salfield has quit IRC | 03:42 | |
*** sm has joined #zope3-dev | 04:11 | |
*** alga has quit IRC | 04:22 | |
*** greenman has quit IRC | 04:41 | |
*** povbot has joined #zope3-dev | 05:32 | |
*** georgy_ has joined #zope3-dev | 05:37 | |
*** povbot` has quit IRC | 05:49 | |
*** rcrafton has quit IRC | 05:55 | |
georgy_ | hello Zope developers | 05:58 |
georgy_ | I am applying for this year's summer of code with trying to port many important components of Zope 3 to Jython | 05:59 |
georgy_ | in case that someone has suggestions and feedback is really welcome, please check the following email: | 05:59 |
georgy_ | http://mail.zope.org/pipermail/gsoc/2008-March/000136.html | 05:59 |
*** stub has joined #zope3-dev | 06:00 | |
*** niemeyer has quit IRC | 06:07 | |
*** afd_ has joined #zope3-dev | 07:01 | |
*** afd__ has joined #zope3-dev | 07:03 | |
*** d2m has joined #zope3-dev | 07:07 | |
*** povbot` has joined #zope3-dev | 07:11 | |
*** mcdonc has quit IRC | 07:19 | |
*** mcdonc has joined #zope3-dev | 07:20 | |
*** afd_ has quit IRC | 07:21 | |
*** povbot has quit IRC | 07:24 | |
*** georgy_ has quit IRC | 07:24 | |
*** markusleist has quit IRC | 07:27 | |
*** timte has joined #zope3-dev | 07:58 | |
*** afd__ has quit IRC | 08:14 | |
*** tarek has joined #zope3-dev | 08:20 | |
*** menesis has joined #zope3-dev | 08:25 | |
*** jukart has joined #zope3-dev | 08:27 | |
*** pelle_ has joined #zope3-dev | 08:32 | |
*** pelle_ has quit IRC | 08:33 | |
*** andy-chen has joined #zope3-dev | 08:36 | |
andy-chen | when use z3c.form, i have a question. how can i custom a widget use template..........? i use the z3c:widgetTemplate , and give a IMyWidget extends ITextWidget, but where should i instance my widget class ? in form ? | 08:44 |
*** zagy has joined #zope3-dev | 08:48 | |
*** jayaraj has joined #zope3-dev | 09:01 | |
andy-chen | when i look at z3c.form, i found in our widgets manager , FieldWidgets.update() will get the IFieldWidget for each field in form use getMultiAdapter(field,request) , then for example, IFieldWidget factory for TextWidget: the TextFieldWidget will return FieldWidget(field, TextWidget(request))........why ? how can i specify MyTextWidget class here ? | 09:01 |
*** dobee has joined #zope3-dev | 09:05 | |
*** afd_ has joined #zope3-dev | 09:07 | |
*** sorin has joined #zope3-dev | 09:12 | |
*** sorin is now known as sorindregan | 09:12 | |
*** zagy has quit IRC | 09:16 | |
*** zagy has joined #zope3-dev | 09:23 | |
*** goschtl has joined #zope3-dev | 09:24 | |
*** greenman has joined #zope3-dev | 09:26 | |
*** benji has joined #zope3-dev | 09:26 | |
*** b52laptop has quit IRC | 09:28 | |
*** zagy has quit IRC | 09:39 | |
*** zagy has joined #zope3-dev | 09:40 | |
*** kursor has joined #zope3-dev | 09:44 | |
*** zagy has quit IRC | 09:44 | |
*** zagy_ has joined #zope3-dev | 09:45 | |
*** stub has quit IRC | 09:56 | |
*** toutpt has joined #zope3-dev | 10:08 | |
*** markusleist has joined #zope3-dev | 10:13 | |
*** quodt has joined #zope3-dev | 10:18 | |
*** bigkevmcd has joined #zope3-dev | 10:19 | |
*** hazmat has quit IRC | 10:21 | |
*** stub has joined #zope3-dev | 10:21 | |
*** jpcw2002 has joined #zope3-dev | 10:24 | |
afd_ | Grokstar buildout fails with: http://dpaste.com/41761/ | 10:28 |
afd_ | what's the easiest way to solve that version conflict? | 10:28 |
timte | do you use virtualenv? it could fix it | 10:33 |
afd_ | timte: no... but I can try | 10:33 |
timte | if virtualenv doesn't fix it, then you probably need to pin down the version of zope.schema | 10:33 |
afd_ | I could also add an entry for that specific egg in the buildout.cfg, I think | 10:33 |
timte | [versions] | 10:34 |
timte | zope.schema = ... | 10:34 |
afd_ | ok | 10:34 |
*** goschtl_ has joined #zope3-dev | 10:41 | |
*** tesdal has joined #zope3-dev | 10:43 | |
*** tesdal has quit IRC | 10:49 | |
*** norro has joined #zope3-dev | 10:50 | |
*** tesdal has joined #zope3-dev | 10:55 | |
*** yvl has joined #zope3-dev | 10:56 | |
*** goschtl has quit IRC | 10:57 | |
*** junkafarian has joined #zope3-dev | 11:00 | |
*** sm is now known as sm-zzz | 11:05 | |
*** toko has joined #zope3-dev | 11:13 | |
*** ignas has joined #zope3-dev | 11:18 | |
*** ktwilight has joined #zope3-dev | 11:18 | |
*** thruflo has joined #zope3-dev | 11:20 | |
*** salfield has joined #zope3-dev | 11:22 | |
*** alecm has joined #zope3-dev | 11:22 | |
*** pelle_ has joined #zope3-dev | 11:30 | |
*** ktwilight_ has quit IRC | 11:31 | |
*** projekt01 has joined #zope3-dev | 11:34 | |
*** pyqwer has joined #zope3-dev | 11:40 | |
*** toutpt has quit IRC | 11:43 | |
*** toutpt has joined #zope3-dev | 11:43 | |
*** maurits has joined #zope3-dev | 11:45 | |
*** junkafarian has quit IRC | 11:50 | |
*** ktwilight_ has joined #zope3-dev | 11:53 | |
*** malthe has joined #zope3-dev | 11:54 | |
*** ktwilight_ has quit IRC | 11:56 | |
*** ktwilight_ has joined #zope3-dev | 11:57 | |
*** dunny has quit IRC | 12:03 | |
*** ktwilight has quit IRC | 12:08 | |
*** mkerrin has joined #zope3-dev | 12:11 | |
*** b52laptop has joined #zope3-dev | 12:11 | |
*** harobed has joined #zope3-dev | 12:12 | |
*** andy-chen has quit IRC | 12:14 | |
*** djohnson has joined #zope3-dev | 12:14 | |
*** djohnson__ has joined #zope3-dev | 12:15 | |
pyqwer | Hi, it seems that the SessionCredentialsPlugin, which sets cookies, sets the cookie with a cookie path including the skin, which is bad. | 12:15 |
*** djohnson__ has quit IRC | 12:15 | |
pyqwer | This way, changing the skin changes the cookie, thus I loose the authentication. Is there a way to change this behaviour? | 12:16 |
*** djohnson__ has joined #zope3-dev | 12:16 | |
*** djohnson_ has quit IRC | 12:31 | |
*** stub has quit IRC | 12:31 | |
*** djohnson has quit IRC | 12:32 | |
*** greenman has quit IRC | 12:35 | |
*** junkafarian has joined #zope3-dev | 12:36 | |
*** timte has quit IRC | 12:42 | |
*** stub has joined #zope3-dev | 12:59 | |
*** timte has joined #zope3-dev | 13:15 | |
*** timte has quit IRC | 13:16 | |
*** timte has joined #zope3-dev | 13:17 | |
*** benji has quit IRC | 13:17 | |
*** ktwilight has joined #zope3-dev | 13:20 | |
*** zagy has joined #zope3-dev | 13:26 | |
*** zagy_ has quit IRC | 13:26 | |
jayaraj | so one small doubt :) is there any way to view all contents of an annotation .... like a tuple... i tried print tuple(list(annotation))...but dint work | 13:30 |
pyqwer | Hmmm, does list(annotation) work? | 13:31 |
jayaraj | nop | 13:31 |
pyqwer | Thought so. I'm unsure how and where annotations are stored, but I think it's mentioned in Philipps book. | 13:31 |
timte | they are usually stored in obj.__annotations__ | 13:32 |
jayaraj | yea thats rite | 13:32 |
pyqwer | Not necessarily, this is only true for attribut annotations, I think. | 13:32 |
timte | _usually_ | 13:33 |
pyqwer | Ok, it reads: "N IAnnotations adapter is a singular object with a dictionary-like interface that can store metadata". | 13:33 |
*** malthe has quit IRC | 13:34 | |
pyqwer | so, what about annotations.items()? | 13:34 |
*** hazmat has joined #zope3-dev | 13:34 | |
*** ChanServ sets mode: +o hazmat | 13:34 | |
jayaraj | i checked IAnnotation... and it seems we can access the contents only by specifying keys.... mm i dint try .items().. lemme see | 13:34 |
*** ktwilight_ has quit IRC | 13:35 | |
*** malthe__ has joined #zope3-dev | 13:36 | |
jayaraj | pyqwer .items() wont work | 13:38 |
pyqwer | Hmmm, then I don't know either, I'd try to find out of what type your object is, e.g. by printing the object, and dir(object), and object.__dict__. | 13:38 |
pyqwer | Probably you'll find out this way. | 13:39 |
timte | jayaraj: what kind of object is annotation? | 13:39 |
jayaraj | its true that annotaions have dictionary like interface.. but it require the keys to be specified | 13:39 |
pyqwer | jayaraj: Well, check what extra functions are available through annotations.__dict__ | 13:39 |
*** zagy_ has joined #zope3-dev | 13:40 | |
*** zagy has quit IRC | 13:40 | |
*** zagy has joined #zope3-dev | 13:42 | |
*** zagy_ has quit IRC | 13:42 | |
*** b52laptop has quit IRC | 13:42 | |
*** malthe__ has quit IRC | 13:44 | |
*** mgedmin has joined #zope3-dev | 13:49 | |
*** b52laptop has joined #zope3-dev | 13:49 | |
*** zagy_ has joined #zope3-dev | 13:53 | |
*** zagy has quit IRC | 13:53 | |
*** jpcw2002 has quit IRC | 13:55 | |
jayaraj | pyqwer: output of the annotation.__dict__ looks like this.. {'__name__': u'PAUsignupjose', 'data': <persistent.dict.PersistentDict object at 0xb6779c6c>, 'principalId': u'PAUsignupjose', '__parent__': <zope.app.principalannotation.PrincipalAnnotationUtility object at 0xb6c8472c>} | 13:57 |
jayaraj | anootations here is a principal annotation | 13:57 |
pyqwer | Hmmm, have a look at annotation.data. | 13:58 |
pyqwer | I assume, you will find your data there. | 13:58 |
*** stub has quit IRC | 14:00 | |
*** benji has joined #zope3-dev | 14:03 | |
*** salfield has quit IRC | 14:08 | |
jayaraj | yea data is there | 14:08 |
pyqwer | Ah, fine. So I assume, you should be able to do something like annotations.data.items() | 14:09 |
pyqwer | So, in your case, annotations seem not to be stored in attributes. | 14:09 |
jayaraj | yea i got list(annotation.data) | 14:10 |
pyqwer | Perfect. So in your case the annotation class does not implement certain functions, such as items(). | 14:10 |
jayaraj | i checked the IAnnotation but item() was not there | 14:11 |
pyqwer | Yes, the class should theoretically provide all methods that a dict has. These methods would then simply return the appropriate method of annotation.data | 14:12 |
*** agroszer has joined #zope3-dev | 14:12 | |
pyqwer | Once in a while I stumble over such things - Zope objects promise to behave like a dict/list but miss several methods. | 14:12 |
pyqwer | But it's not a big deal. | 14:13 |
jayaraj | its a persistent dictionary | 14:14 |
pyqwer | Ok. | 14:14 |
pyqwer | But, well, no, "data" is the persistent dictionary. | 14:15 |
pyqwer | The annotation object is not, I assume. | 14:15 |
jayaraj | mmm | 14:16 |
jayaraj | yep you are right... zope.app.principalannotation.Annotations object at 0xb6741bec | 14:20 |
pyqwer | Yes, you find it in app/principalannotation/__init__.py | 14:21 |
pyqwer | And there, only __getitem__, __setitem__, __delitem__ and get() is defined. | 14:21 |
pyqwer | So, someone could simply add something like this: "def items(self): return self.data.items()" | 14:22 |
*** b52laptop has quit IRC | 14:27 | |
*** zagy has joined #zope3-dev | 14:36 | |
*** zagy_ has quit IRC | 14:36 | |
*** J1m has joined #zope3-dev | 14:42 | |
*** tarek has quit IRC | 14:46 | |
*** jpcw2002 has joined #zope3-dev | 14:46 | |
*** salfield has joined #zope3-dev | 14:48 | |
*** alecm has quit IRC | 14:53 | |
*** b52laptop has joined #zope3-dev | 14:54 | |
*** tarek has joined #zope3-dev | 14:59 | |
*** faassen has joined #zope3-dev | 15:00 | |
*** lucielejard has joined #zope3-dev | 15:02 | |
*** rcrafton has joined #zope3-dev | 15:04 | |
junkafarian | hey, when adding interface fields to the form_fields is it possible to change it's key? | 15:05 |
pyqwer | for z3c.form? | 15:05 |
junkafarian | eg form_fields += Fields(ISomeInterface).select('field') | 15:05 |
junkafarian | yeah | 15:06 |
junkafarian | but then being able to reference form_fields['otherfieldname'] | 15:06 |
junkafarian | basically i just want to be able to access it in the create method of an AddForm | 15:07 |
junkafarian | and process it seperately | 15:07 |
junkafarian | pyqwer: does that make sense? | 15:08 |
pyqwer | Just a minute... | 15:09 |
junkafarian | the situation is that i want to construct an AddForm which has the required interface fields to create one object, but then i want to include 2 extra (identical) fields from another interface to be used to create separate objects | 15:10 |
pyqwer | Hmmm, for z3c.form, it's called "fields", not "form_fields", right? Or are you using formlib? | 15:10 |
junkafarian | ah yes sorry | 15:11 |
pyqwer | Ok. | 15:11 |
junkafarian | using formlib | 15:11 |
*** fcorrea has joined #zope3-dev | 15:11 | |
pyqwer | Ah, formlib, not z3c.form. Hmmm, I'm not very good at this. | 15:11 |
junkafarian | would it be better to use z3c.form? | 15:11 |
*** niemeyer has joined #zope3-dev | 15:12 | |
fcorrea | junkafarian: In theses it would be, but in practice it means that you'd need to read some docs first. At least five doctests ;) | 15:12 |
fcorrea | s/theses/thesis/ | 15:13 |
*** alex_smith has joined #zope3-dev | 15:14 | |
junkafarian | ok | 15:14 |
*** alga has joined #zope3-dev | 15:14 | |
junkafarian | fcorrea: did you see the q before? | 15:15 |
junkafarian | http://zope3.pov.lt/irclogs/%23zope3-dev.2008-03-28.log.html#t2008-03-28T15:05:19 | 15:15 |
*** whit has joined #zope3-dev | 15:17 | |
mgedmin | junkafarian: you can't change the key, but you can add a prefix | 15:19 |
fcorrea | junkafarian: Too bad my early experiences with formlib was to basic and I didn't have those use cases. I can talk about z3c.form. You have ways of adding whatever fields you want and create extended field schemas | 15:19 |
mgedmin | but you don't need that if you want to process the field separately | 15:19 |
mgedmin | just pop it from the data dict before you invoke the inherited function | 15:19 |
junkafarian | mgedmin: what about for adding the same field twice? | 15:20 |
pyqwer | z3c.form is to my mind superior, but it takes some time to get into it. | 15:20 |
junkafarian | its basically to create 2 images | 15:20 |
junkafarian | i had it working with the single field | 15:22 |
junkafarian | but need to provide 2 image upload slots on a single step form | 15:22 |
pyqwer | Well, try to do some magic: myfield = copy.deepcopy(ISomeInterface['field']) | 15:24 |
pyqwer | and then do a myfield.__name__ = 'myothername' | 15:24 |
pyqwer | and then add this specific field. | 15:24 |
*** toko has quit IRC | 15:24 | |
pyqwer | Such things work in z3c.form. | 15:24 |
pyqwer | Don't (!) forget to copy the field, otherwise you will change it in the interface class. | 15:25 |
junkafarian | pyqwer: where is the copy module? | 15:26 |
pyqwer | import copy | 15:29 |
pyqwer | That's python-related. | 15:29 |
junkafarian | ah k | 15:29 |
pyqwer | The copy module is for copying objects. | 15:29 |
*** redir has joined #zope3-dev | 15:30 | |
junkafarian | and then i should be able to do: form_fields += Fields(myfield) | 15:30 |
junkafarian | ? | 15:30 |
junkafarian | or do i deepcopy Fields(ISomeInterface).select('field') | 15:31 |
pyqwer | I don't know for sure, but it works like that in z3c.form | 15:31 |
*** Doc_Dan has joined #zope3-dev | 15:37 | |
*** redir_ has joined #zope3-dev | 15:39 | |
*** philiKON has joined #zope3-dev | 15:39 | |
*** zagy_ has joined #zope3-dev | 15:40 | |
*** zagy_ has quit IRC | 15:41 | |
*** zagy has quit IRC | 15:41 | |
*** zagy has joined #zope3-dev | 15:42 | |
junkafarian | is there a way edit the __name__ attribute of an FormField object | 15:44 |
junkafarian | s/a | 15:44 |
*** djohnson__ has quit IRC | 15:50 | |
*** djohnson_ has joined #zope3-dev | 15:51 | |
junkafarian | its cool i got it :D | 15:53 |
*** sunew has joined #zope3-dev | 15:53 | |
junkafarian | thanks pyqwer / mgedmin / fcorrea | 15:53 |
*** redir has quit IRC | 15:53 | |
junkafarian | deepcopying the FormFields object seemed to work a treat | 15:54 |
*** _redir_ has joined #zope3-dev | 15:58 | |
*** sunew has quit IRC | 16:00 | |
*** b52laptop has quit IRC | 16:07 | |
*** redir_ has quit IRC | 16:08 | |
*** b52laptop has joined #zope3-dev | 16:08 | |
*** goschtl_ has quit IRC | 16:08 | |
*** sunew has joined #zope3-dev | 16:12 | |
*** philiKON has quit IRC | 16:16 | |
*** sp0cksbeard has joined #zope3-dev | 16:16 | |
*** jayaraj has quit IRC | 16:17 | |
*** alex_smith has quit IRC | 16:22 | |
*** alex_smith_ has joined #zope3-dev | 16:22 | |
*** vimes656 has joined #zope3-dev | 16:22 | |
vimes656 | when running my buildout I get this error: 'Error: Download error: unknown url type: svn' for z3c.template | 16:29 |
vimes656 | I manually put the z3c.template egg in my buildout-eggs directory but got the same error for z3c.form | 16:30 |
vimes656 | what do I need to do so that the buildout can get the eggs from subversion repositories? | 16:34 |
*** whit has quit IRC | 16:35 | |
*** whit has joined #zope3-dev | 16:35 | |
*** timte has quit IRC | 16:37 | |
*** kursor has quit IRC | 16:45 | |
*** rmarianski has joined #zope3-dev | 16:46 | |
*** timte has joined #zope3-dev | 16:46 | |
*** sunew has quit IRC | 16:53 | |
*** djohnson_ has quit IRC | 16:53 | |
*** alga_ has joined #zope3-dev | 16:59 | |
*** sm-zzz is now known as sm | 17:02 | |
*** dobee has quit IRC | 17:02 | |
*** reco has joined #zope3-dev | 17:02 | |
*** vimes656 has quit IRC | 17:10 | |
*** jukart has quit IRC | 17:13 | |
*** reco_ has joined #zope3-dev | 17:17 | |
*** alga has quit IRC | 17:17 | |
*** reco has quit IRC | 17:23 | |
*** menesis has quit IRC | 17:32 | |
*** torkel_ has joined #zope3-dev | 17:34 | |
*** tesdal has quit IRC | 17:50 | |
*** baijum has joined #zope3-dev | 17:52 | |
*** baijum has quit IRC | 17:58 | |
*** dobee has joined #zope3-dev | 18:00 | |
*** afd_ has quit IRC | 18:01 | |
*** sorindregan has quit IRC | 18:04 | |
*** vimes656 has joined #zope3-dev | 18:11 | |
*** _redir_ is now known as redir | 18:12 | |
*** maurits has quit IRC | 18:14 | |
*** zagy has quit IRC | 18:19 | |
*** projekt01 has quit IRC | 18:23 | |
*** pelle_ has quit IRC | 18:27 | |
*** b52laptop has quit IRC | 18:28 | |
*** toutpt has quit IRC | 18:51 | |
*** sm has quit IRC | 18:52 | |
*** fcorrea has quit IRC | 19:02 | |
*** djohnson_ has joined #zope3-dev | 19:05 | |
*** malthe has joined #zope3-dev | 19:05 | |
*** dunny has joined #zope3-dev | 19:17 | |
*** pcardune has joined #zope3-dev | 19:18 | |
pcardune | Theuni: just released gocept.registration. You are an owner as well. | 19:19 |
*** harobed has quit IRC | 19:20 | |
*** yvl has left #zope3-dev | 19:21 | |
*** whit has quit IRC | 19:22 | |
*** whit has joined #zope3-dev | 19:23 | |
*** djohnson_ has quit IRC | 19:27 | |
Theuni | pcardune: yay! thanks! | 19:29 |
pcardune | Theuni: no, thank you! made my job a lot easier. | 19:30 |
Theuni | :) | 19:31 |
*** pyqwer has quit IRC | 19:33 | |
*** RaFromBRC has joined #zope3-dev | 19:36 | |
*** vimes656 has quit IRC | 19:36 | |
*** dunny has quit IRC | 19:41 | |
*** markusleist has left #zope3-dev | 19:43 | |
*** jsadjohnson has joined #zope3-dev | 19:56 | |
*** agroszer_ has joined #zope3-dev | 19:58 | |
*** jukart has joined #zope3-dev | 19:59 | |
*** jukart has quit IRC | 19:59 | |
*** jukart has joined #zope3-dev | 20:00 | |
*** jukart has quit IRC | 20:00 | |
*** quodt has quit IRC | 20:03 | |
*** bigkevmcd has quit IRC | 20:03 | |
*** fcorrea has joined #zope3-dev | 20:05 | |
*** agroszer has quit IRC | 20:11 | |
*** mkerrin has quit IRC | 20:12 | |
*** lucielejard has quit IRC | 20:14 | |
*** tarek has quit IRC | 20:15 | |
*** ignas has quit IRC | 20:17 | |
*** agroszer_ is now known as agroszer | 20:24 | |
*** sm has joined #zope3-dev | 20:30 | |
*** jpcw2002 has left #zope3-dev | 20:35 | |
*** Doc_Dan has quit IRC | 20:37 | |
*** alecghica has quit IRC | 20:37 | |
*** thruflo has quit IRC | 20:40 | |
*** faassen has quit IRC | 20:43 | |
*** alecm has joined #zope3-dev | 20:51 | |
*** afd_ has joined #zope3-dev | 20:52 | |
*** dunny has joined #zope3-dev | 20:53 | |
*** sm has quit IRC | 20:53 | |
*** quodt has joined #zope3-dev | 20:59 | |
*** redir has quit IRC | 21:03 | |
*** grahal has joined #zope3-dev | 21:13 | |
*** grahal has left #zope3-dev | 21:14 | |
*** salfield has quit IRC | 21:20 | |
*** mgedmin has quit IRC | 21:21 | |
*** agroszer has quit IRC | 21:24 | |
*** fcorrea has quit IRC | 21:25 | |
*** junkafarian has quit IRC | 21:35 | |
*** alecm has quit IRC | 21:40 | |
*** jsadjohnson has quit IRC | 21:40 | |
*** georgy_ has joined #zope3-dev | 21:43 | |
*** tarek has joined #zope3-dev | 21:44 | |
*** pelle_ has joined #zope3-dev | 21:55 | |
*** hexsprite has joined #zope3-dev | 21:57 | |
*** hexsprite has quit IRC | 22:01 | |
*** hexsprite has joined #zope3-dev | 22:01 | |
*** dobee has quit IRC | 22:07 | |
*** tesdal has joined #zope3-dev | 22:09 | |
tesdal | hey malthe | 22:09 |
tesdal | any progress on z3c.indexing.dispatch? | 22:10 |
*** Doc_Dan has joined #zope3-dev | 22:25 | |
* tesdal pokes malthe | 22:27 | |
*** tarek has quit IRC | 22:28 | |
*** sm has joined #zope3-dev | 22:29 | |
*** alga_ has quit IRC | 22:47 | |
*** markusleist has joined #zope3-dev | 22:48 | |
*** mweichert has quit IRC | 22:49 | |
*** greenman has joined #zope3-dev | 22:59 | |
*** afd_ has quit IRC | 23:10 | |
*** afd_ has joined #zope3-dev | 23:10 | |
*** hexsprite_ has joined #zope3-dev | 23:11 | |
*** b52laptop has joined #zope3-dev | 23:21 | |
*** tarek has joined #zope3-dev | 23:25 | |
*** georgy_ is now known as codingmaster | 23:26 | |
*** hexsprite has quit IRC | 23:26 | |
*** philiKON has joined #zope3-dev | 23:40 | |
*** afd_ has quit IRC | 23:46 | |
*** pelle_ has quit IRC | 23:51 | |
*** quodt has quit IRC | 23:59 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!