*** ofer has quit IRC | 00:04 | |
*** RaFromBRC|lunch is now known as RaFromBRC | 00:11 | |
*** schwendinger has joined #zope3-dev | 00:15 | |
*** schwendinger has quit IRC | 00:23 | |
*** gumpa_ has quit IRC | 00:28 | |
*** jodok has quit IRC | 00:31 | |
*** rocky is now known as rocky|Zzz | 00:44 | |
*** timte has quit IRC | 00:45 | |
*** grahal has joined #zope3-dev | 00:51 | |
*** xenru has joined #zope3-dev | 01:05 | |
*** alecm has quit IRC | 01:06 | |
*** harobed has quit IRC | 01:07 | |
*** norro has quit IRC | 01:16 | |
*** projekt01 has joined #zope3-dev | 01:16 | |
*** projekt01 has quit IRC | 01:19 | |
*** J1m has quit IRC | 01:35 | |
*** d2m has quit IRC | 01:47 | |
*** jfroche has quit IRC | 02:14 | |
*** nathany has quit IRC | 02:29 | |
*** marcin_ant has joined #zope3-dev | 02:57 | |
*** marcin_ant has quit IRC | 03:17 | |
*** marcin_ant has joined #zope3-dev | 03:17 | |
*** wrobel has quit IRC | 03:19 | |
*** niemeyer has quit IRC | 03:23 | |
*** yota has quit IRC | 03:55 | |
*** marcin_ant has quit IRC | 03:57 | |
*** philiKON has quit IRC | 04:32 | |
*** alga has quit IRC | 04:51 | |
*** stub has joined #zope3-dev | 05:10 | |
*** RaFromBRC has quit IRC | 05:16 | |
*** Bhaskar has joined #zope3-dev | 05:33 | |
*** baijum has joined #zope3-dev | 06:18 | |
*** xenru has quit IRC | 07:20 | |
*** Bhaskar has quit IRC | 07:29 | |
*** jkakar has quit IRC | 07:50 | |
*** dobee has joined #zope3-dev | 08:13 | |
*** dlk has joined #zope3-dev | 08:15 | |
*** zagy has quit IRC | 08:21 | |
*** sureshvv has joined #zope3-dev | 08:30 | |
*** zagy has joined #zope3-dev | 08:38 | |
*** d2m has joined #zope3-dev | 08:53 | |
*** baijum_ has joined #zope3-dev | 09:02 | |
*** baijum_ has left #zope3-dev | 09:03 | |
*** BjornT has joined #zope3-dev | 09:09 | |
*** schwendinger has joined #zope3-dev | 09:23 | |
romanofski | moin | 09:34 |
---|---|---|
*** srichter has joined #zope3-dev | 09:42 | |
*** opetznick has joined #zope3-dev | 09:44 | |
*** hdima has joined #zope3-dev | 09:50 | |
*** __mac__2 has joined #zope3-dev | 09:52 | |
*** matthewrevell has joined #zope3-dev | 09:52 | |
*** matthewrevell_ has joined #zope3-dev | 09:55 | |
*** HakTom has joined #zope3-dev | 09:56 | |
*** ChanServ sets mode: +o srichter | 09:56 | |
*** jinty has joined #zope3-dev | 09:58 | |
*** __mac__2 has quit IRC | 09:58 | |
*** yota has joined #zope3-dev | 09:59 | |
*** matthewrevell has quit IRC | 10:03 | |
*** flame__ has joined #zope3-dev | 10:06 | |
*** timte has joined #zope3-dev | 10:07 | |
*** flame__ has left #zope3-dev | 10:07 | |
*** wrobel has joined #zope3-dev | 10:09 | |
timte | I like to configure an adapter to adapt from HTTPRequest but only if the request contain certain data. If the data isn't there the lookup shouldn't find this adapter. Is this possible to achieve? | 10:10 |
*** harobed has joined #zope3-dev | 10:14 | |
*** kobold has joined #zope3-dev | 10:19 | |
*** harobed has quit IRC | 10:24 | |
*** matthewrevell_ is now known as matthewrevell | 10:28 | |
*** harobed has joined #zope3-dev | 10:31 | |
*** HakTom has quit IRC | 10:45 | |
*** jodok has joined #zope3-dev | 10:47 | |
*** b_52Free has quit IRC | 10:58 | |
*** b_52Free has joined #zope3-dev | 10:59 | |
*** philiKON has joined #zope3-dev | 11:00 | |
*** kobold has quit IRC | 11:04 | |
*** jfroche has joined #zope3-dev | 11:05 | |
*** tarek has joined #zope3-dev | 11:43 | |
*** ktwilight has joined #zope3-dev | 11:51 | |
*** philiKON has quit IRC | 11:53 | |
*** deo has joined #zope3-dev | 11:58 | |
*** ktwilight_ has quit IRC | 12:04 | |
*** dunny has quit IRC | 12:13 | |
*** timte has quit IRC | 13:03 | |
*** tonico|away is now known as tonico | 13:04 | |
*** timte has joined #zope3-dev | 13:08 | |
*** J1m has joined #zope3-dev | 13:17 | |
*** niemeyer has joined #zope3-dev | 13:22 | |
niemeyer | Good morning | 13:23 |
*** ignas has joined #zope3-dev | 13:28 | |
*** oferw has joined #zope3-dev | 13:34 | |
*** sureshvv has left #zope3-dev | 13:49 | |
*** jinty has quit IRC | 13:55 | |
*** rocky|Zzz is now known as rocky | 13:56 | |
*** jinty has joined #zope3-dev | 13:57 | |
*** Aiste has quit IRC | 14:01 | |
*** stub has quit IRC | 14:01 | |
*** mkerrin has joined #zope3-dev | 14:02 | |
*** mgedmin has joined #zope3-dev | 14:07 | |
*** mkerrin has quit IRC | 14:07 | |
*** nathany has joined #zope3-dev | 14:08 | |
*** waa has joined #zope3-dev | 14:17 | |
*** jinty has quit IRC | 14:20 | |
WebMaven | niemeyer: hello | 14:20 |
niemeyer | WebMaven: Hi | 14:20 |
WebMaven | niemeyer: have you used ZAlchemy to combine SQLAlchemy with Zope3? | 14:21 |
*** jinty has joined #zope3-dev | 14:21 | |
niemeyer | WebMaven: Nope.. we were using SQLAlchemy before we migrated into the Zope 3 transaction system. | 14:22 |
WebMaven | niemeyer: sorry, I didn't quite understand that. | 14:23 |
WebMaven | niemeyer: could you explain further? | 14:24 |
*** waa_ has joined #zope3-dev | 14:24 | |
*** J1m has quit IRC | 14:25 | |
niemeyer | WebMaven: IOW, we didn't need ZAlchemy by the time we were using SQLAlchemy. | 14:25 |
niemeyer | WebMaven: If we were using SQLAlchemy now, we'd need it. | 14:25 |
*** Aiste has joined #zope3-dev | 14:25 | |
WebMaven | Ah, you're saying that at the time, you were using SQLAlchemy outside the Zope transaction system, but since your current code *does* use Zope transaction, you would need ZAlchemy in order to accomplish the same sort of work today. | 14:27 |
WebMaven | Hmm. OK. | 14:27 |
*** waa__ has joined #zope3-dev | 14:31 | |
*** waa__ has quit IRC | 14:32 | |
*** waa has quit IRC | 14:33 | |
niemeyer | WebMaven: Correct | 14:35 |
*** waa_ has quit IRC | 14:43 | |
WebMaven | niemeyer: OK. Well, thanks for answering my question. | 14:43 |
WebMaven | niemeyer: Do you know anyone else who might have a little experience with ZAlchemy? | 14:44 |
niemeyer | WebMaven: I don't :( | 14:45 |
WebMaven | OK, thanks anyway. | 14:46 |
*** vlado has joined #zope3-dev | 14:46 | |
*** schwendinger has quit IRC | 14:48 | |
*** schwendinger has joined #zope3-dev | 14:52 | |
*** oferw has quit IRC | 15:02 | |
*** harobed has quit IRC | 15:27 | |
*** nathany has quit IRC | 15:35 | |
*** waa has joined #zope3-dev | 15:45 | |
*** philiKON has joined #zope3-dev | 15:53 | |
*** daniele has quit IRC | 15:53 | |
*** baijum has quit IRC | 15:56 | |
*** tonico has quit IRC | 16:02 | |
*** reco has joined #zope3-dev | 16:06 | |
*** reco has quit IRC | 16:07 | |
*** reco has joined #zope3-dev | 16:07 | |
*** dobee has quit IRC | 16:42 | |
*** dobee has joined #zope3-dev | 17:03 | |
*** hdima has quit IRC | 17:04 | |
*** matthewrevell has quit IRC | 17:05 | |
*** matthewrevell has joined #zope3-dev | 17:08 | |
*** alga has joined #zope3-dev | 17:11 | |
*** rmarianski has joined #zope3-dev | 17:12 | |
*** dobee has quit IRC | 17:17 | |
*** waa has quit IRC | 17:23 | |
*** zagy has quit IRC | 17:23 | |
*** waa has joined #zope3-dev | 17:24 | |
*** dobee has joined #zope3-dev | 17:30 | |
*** J1m has joined #zope3-dev | 17:31 | |
*** mkerrin has joined #zope3-dev | 17:34 | |
*** alecm has joined #zope3-dev | 17:41 | |
*** waa has quit IRC | 17:44 | |
*** waa has joined #zope3-dev | 17:44 | |
*** dlk has left #zope3-dev | 17:59 | |
*** tonico has joined #zope3-dev | 18:00 | |
*** zagy has joined #zope3-dev | 18:05 | |
ignas | are there any tutorials/examples of test layer usage to create nested functional test layers ? | 18:07 |
ignas | i have a multi module system and i want functional test layer for let's say timetables to depend on a layer for calendaring being set up first | 18:07 |
*** philiKON has quit IRC | 18:15 | |
*** philiKON has joined #zope3-dev | 18:16 | |
*** nathany has joined #zope3-dev | 18:22 | |
*** rocky has quit IRC | 18:26 | |
timte | What method is called when you do an adapter lookup with ISomeInterface(obj) ? | 18:26 |
timte | I thought it would be InterfaceBasePy.__call__, but it seems not. | 18:27 |
J1m | It is if you remove the C extensions. | 18:28 |
J1m | That method is also implemented in C and the C version is used by default. | 18:28 |
timte | oh ok | 18:29 |
timte | In adapter.txt it says that you can have the adapter factory return None and the adapter lookup won't choose that one. But I added a __call__ method to my adapter and it's never called. | 18:30 |
J1m | Is __call__ the adapter factory? | 18:31 |
J1m | Or is the class the factory? | 18:31 |
timte | I think class is the factory, but it will call __call__ to create the instance, right? | 18:31 |
J1m | wrong | 18:32 |
timte | __new__? | 18:32 |
J1m | The class itself is called. | 18:32 |
J1m | You can read up on the semantics of that in the Python docs. :) | 18:32 |
timte | doesn't that call the __call__ method? | 18:33 |
J1m | RTFM | 18:33 |
timte | ok ok ok :) | 18:33 |
*** vlado has quit IRC | 18:33 | |
ccomb | __new__ is called before __call__ | 18:33 |
ccomb | non | 18:33 |
ccomb | before __init__ | 18:33 |
J1m | If you want to create a factory that sometimes returns None and smetimes returns an instance, I recommend writing a function and registering that. | 18:33 |
J1m | Screwing around with __new__ is way too exotic for this use case. | 18:34 |
*** rocky has joined #zope3-dev | 18:34 | |
ccomb | an adapter can be either a class or a simple function, it just has to return a new object | 18:35 |
J1m | It can be any callable. | 18:35 |
J1m | It doesn't have to return a new object. | 18:35 |
ccomb | in case it is a class, this is the __call_ function which is called, no? | 18:36 |
J1m | It should either return None, or an object that provides the requested interface. | 18:36 |
J1m | no | 18:36 |
J1m | A __call__ method defined in a class statement is used when calling an instance of the class -- not the class. | 18:37 |
ccomb | ok | 18:37 |
J1m | You can register an instance as an adapter, in which case it's __call__ would be called when the adapter factory is invoked. | 18:37 |
J1m | For all intents and purposes, when a class is called, it's __init__ is called. | 18:38 |
J1m | anything beyond that is advanced and exotic. | 18:39 |
ccomb | just after __new__, right ? | 18:39 |
J1m | I'm not going to try to explain that to you -- or answer questions about it. You almost certainly do not want to know. | 18:39 |
ccomb | ok anyone can live without __new__. | 18:40 |
timte | J1m: thanks for explaining this, I'll use a function | 18:42 |
J1m | cool | 18:42 |
*** zagy has quit IRC | 18:51 | |
*** dunny has joined #zope3-dev | 18:51 | |
* mgedmin winces from looking at spurious apostrophes in its | 18:51 | |
* J1m is annoyed that english gets this wrong. :) | 18:53 | |
*** zagy has joined #zope3-dev | 19:00 | |
*** opetznick has quit IRC | 19:12 | |
*** dobee has quit IRC | 19:15 | |
*** tonico is now known as tonico|away | 19:24 | |
*** zagy has quit IRC | 19:25 | |
*** zagy has joined #zope3-dev | 19:26 | |
*** matthewrevell has quit IRC | 19:28 | |
*** jkakar has joined #zope3-dev | 19:37 | |
*** jkakar has quit IRC | 19:41 | |
*** jkakar has joined #zope3-dev | 19:41 | |
*** srichter has quit IRC | 19:50 | |
*** harobed has joined #zope3-dev | 20:02 | |
*** srichter has joined #zope3-dev | 20:04 | |
*** schwendinger has quit IRC | 20:05 | |
*** zagy has quit IRC | 20:14 | |
*** zagy has joined #zope3-dev | 20:14 | |
*** RaFromBRC has joined #zope3-dev | 20:22 | |
*** replaceafill has joined #zope3-dev | 20:26 | |
replaceafill | Hi. I was wondering. Is there any way to tell EditForm that file inputs should not be required even if my object interfaces says they are? | 20:27 |
ccomb | so you want something to be both required and not required | 20:30 |
replaceafill | ccomb: i want my objects to have the field required, but i want the editform to give the option to upload a file, but if the user doesn't upload that's ok | 20:31 |
ccomb | and what will be held by the file field? | 20:32 |
replaceafill | ccomb: but if i leave the file input empty, editform complains because in my interface it's required | 20:32 |
ccomb | can't you put a default value? | 20:33 |
replaceafill | the file field is the widget for a Bytes field | 20:33 |
*** oferw has joined #zope3-dev | 20:33 | |
replaceafill | when the object is edited it already has a value for the field | 20:34 |
replaceafill | i dont need a default for it | 20:34 |
ccomb | no idea | 20:35 |
replaceafill | I found a post by Martijn Faassen talking about this in the zope3-dev mailing list, but i couldn't find the solution for it | 20:35 |
*** jinty has quit IRC | 20:44 | |
mgedmin | hm | 20:44 |
mgedmin | I seem to remember that both fields and widgets have a required attribute | 20:44 |
replaceafill | mgedmin: that overrides the interface definition? | 20:45 |
mgedmin | I do not remember | 20:45 |
replaceafill | I found a post by mats.nordgren that uses the handle_edit_action method to do it | 20:46 |
mgedmin | I would probably change the schema to make the field not required | 20:46 |
*** jodok has quit IRC | 20:47 | |
mgedmin | and implement validation separately | 20:47 |
mgedmin | or use two different schemas: one for the object, one for the form | 20:47 |
replaceafill | mgedmin: hhmm i see | 20:47 |
*** flox has joined #zope3-dev | 20:48 | |
replaceafill | mgedmin: like overriding just that field from the schema, right? | 20:48 |
*** zagy has quit IRC | 20:50 | |
mgedmin | that is a possibility, but it will mess up your field order | 20:50 |
*** zagy has joined #zope3-dev | 20:51 | |
ccomb | Is there anything special to do to write an annotations? I'm always getting ForbiddenAttribute | 20:51 |
ccomb | I'm playing with zblog, blogEntry is marked as IAttributeAnnotatable in zcml | 20:52 |
ccomb | I'm getting an adapter : annotations = IAnnotations(self.context) | 20:52 |
replaceafill | ccomb: maybe it's a missing require directive | 20:52 |
replaceafill | ccomb: or the adapter should be trusted? | 20:52 |
ccomb | on which interface ? | 20:52 |
ccomb | yes, this is from an adapter, should I set it trusted ? | 20:53 |
replaceafill | dont know, im just saying that that's what i look for when i get ForbiddenAttribute errors | 20:53 |
ccomb | yes it works, thanks | 21:00 |
replaceafill | ccomb: what was it? just for curiousity :D | 21:00 |
ccomb | but is it secure? | 21:00 |
ccomb | I've added trusted="yes" in my zcml adapter declaration | 21:02 |
ccomb | <zope:adapter | 21:02 |
ccomb | factory=".category.AnnotationCategorizable" | 21:02 |
ccomb | provides=".interfaces.ICategories" | 21:02 |
ccomb | for=".interfaces.IAnnotationCategorizable" | 21:02 |
ccomb | trusted="yes" | 21:02 |
ccomb | /> | 21:02 |
ccomb | I'm trying to add category management to zblog | 21:02 |
ccomb | with two implementations, one in a category attribute, one in the annotations | 21:03 |
*** oferw has quit IRC | 21:05 | |
*** whit is now known as whit|lunch | 21:07 | |
*** henri_ has joined #zope3-dev | 21:08 | |
*** alecm has quit IRC | 21:09 | |
*** srichter has quit IRC | 21:12 | |
harobed | ccomb: tu es là ? | 21:16 |
ccomb | oui | 21:16 |
harobed | je suis en train d'expérimenter de mon coté | 21:16 |
harobed | tu me donneras ton code après | 21:16 |
*** schwendinger has joined #zope3-dev | 21:17 | |
*** SteveA has quit IRC | 21:19 | |
harobed | voici le code source de mon interface : http://pastebin.com/855318 | 21:20 |
harobed | sorry, it's bad channel | 21:20 |
*** opetznick has joined #zope3-dev | 21:21 | |
*** schwendinger_ has joined #zope3-dev | 21:22 | |
*** replaceafill_ has joined #zope3-dev | 21:25 | |
*** replaceafill has quit IRC | 21:25 | |
*** b_52Free has quit IRC | 21:28 | |
*** jodok has joined #zope3-dev | 21:28 | |
*** ignas has quit IRC | 21:31 | |
*** schwendinger has quit IRC | 21:38 | |
*** whit|lunch is now known as whit | 21:42 | |
*** srichter has joined #zope3-dev | 21:45 | |
*** ChanServ sets mode: +o srichter | 21:45 | |
*** b_52Free has joined #zope3-dev | 21:47 | |
*** replaceafill_ has quit IRC | 21:47 | |
*** mkerrin has quit IRC | 21:52 | |
*** whit has quit IRC | 21:54 | |
*** whit has joined #zope3-dev | 21:55 | |
*** srichter has quit IRC | 21:58 | |
*** SteveA has joined #zope3-dev | 22:06 | |
*** zagy has quit IRC | 22:09 | |
*** projekt01 has joined #zope3-dev | 22:09 | |
*** alecm has joined #zope3-dev | 22:11 | |
*** henri_ has left #zope3-dev | 22:18 | |
*** alecm has quit IRC | 22:20 | |
*** alecm has joined #zope3-dev | 22:20 | |
*** dobee has joined #zope3-dev | 22:33 | |
jodok | is there something like structured-text-header-level 2 in the zope.conf for z3? | 22:33 |
projekt01 | jodok, hi, what's that? | 22:34 |
jodok | hey projekt01 :) | 22:34 |
jodok | it defines where the rest parser starts when generating html | 22:34 |
jodok | e.g. H1 is the title of the page and rest should start at h2 | 22:34 |
projekt01 | I guess there is no configuration in zope.conf for specific packages. | 22:35 |
jodok | i'm grep'ing :) | 22:38 |
projekt01 | jodok, we used docutil outside z3 and there is a docutils.conf which you can define variabels for e.g. stylesheet-path etc. perhaps this is where you can take a look at | 22:39 |
*** opetznick has quit IRC | 22:40 | |
*** nathany has quit IRC | 22:45 | |
*** vlado has joined #zope3-dev | 22:49 | |
*** tomus has joined #zope3-dev | 23:04 | |
*** mgedmin has quit IRC | 23:04 | |
*** redir has joined #zope3-dev | 23:06 | |
*** b_52Free has quit IRC | 23:17 | |
*** ktwilight has quit IRC | 23:17 | |
*** lamike has joined #zope3-dev | 23:18 | |
*** RaFromBRC is now known as RaFromBRC|lunch | 23:19 | |
*** ktwilight has joined #zope3-dev | 23:21 | |
*** d2m has quit IRC | 23:24 | |
*** vlado has quit IRC | 23:24 | |
*** alga has quit IRC | 23:30 | |
*** jfroche has quit IRC | 23:30 | |
*** wrobel has quit IRC | 23:30 | |
*** grahal has quit IRC | 23:30 | |
*** ksmith99 has quit IRC | 23:30 | |
*** nouri has quit IRC | 23:30 | |
*** jfroche has joined #zope3-dev | 23:30 | |
*** grahal has joined #zope3-dev | 23:30 | |
*** b_52Free has joined #zope3-dev | 23:34 | |
*** nouri has joined #zope3-dev | 23:35 | |
*** alga has joined #zope3-dev | 23:35 | |
*** replaceafill has joined #zope3-dev | 23:46 | |
*** dobee has quit IRC | 23:47 | |
*** xenru has joined #zope3-dev | 23:51 | |
*** dobee has joined #zope3-dev | 23:52 | |
*** RaFromBRC|lunch is now known as RaFromBRC | 23:54 | |
*** dobee has quit IRC | 23:56 | |
*** rlo has joined #zope3-dev | 23:59 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!