IRC log of #zope3-dev for Tuesday, 2007-01-09

*** ofer has quit IRC00:04
*** RaFromBRC|lunch is now known as RaFromBRC00:11
*** schwendinger has joined #zope3-dev00:15
*** schwendinger has quit IRC00:23
*** gumpa_ has quit IRC00:28
*** jodok has quit IRC00:31
*** rocky is now known as rocky|Zzz00:44
*** timte has quit IRC00:45
*** grahal has joined #zope3-dev00:51
*** xenru has joined #zope3-dev01:05
*** alecm has quit IRC01:06
*** harobed has quit IRC01:07
*** norro has quit IRC01:16
*** projekt01 has joined #zope3-dev01:16
*** projekt01 has quit IRC01:19
*** J1m has quit IRC01:35
*** d2m has quit IRC01:47
*** jfroche has quit IRC02:14
*** nathany has quit IRC02:29
*** marcin_ant has joined #zope3-dev02:57
*** marcin_ant has quit IRC03:17
*** marcin_ant has joined #zope3-dev03:17
*** wrobel has quit IRC03:19
*** niemeyer has quit IRC03:23
*** yota has quit IRC03:55
*** marcin_ant has quit IRC03:57
*** philiKON has quit IRC04:32
*** alga has quit IRC04:51
*** stub has joined #zope3-dev05:10
*** RaFromBRC has quit IRC05:16
*** Bhaskar has joined #zope3-dev05:33
*** baijum has joined #zope3-dev06:18
*** xenru has quit IRC07:20
*** Bhaskar has quit IRC07:29
*** jkakar has quit IRC07:50
*** dobee has joined #zope3-dev08:13
*** dlk has joined #zope3-dev08:15
*** zagy has quit IRC08:21
*** sureshvv has joined #zope3-dev08:30
*** zagy has joined #zope3-dev08:38
*** d2m has joined #zope3-dev08:53
*** baijum_ has joined #zope3-dev09:02
*** baijum_ has left #zope3-dev09:03
*** BjornT has joined #zope3-dev09:09
*** schwendinger has joined #zope3-dev09:23
romanofskimoin09:34
*** srichter has joined #zope3-dev09:42
*** opetznick has joined #zope3-dev09:44
*** hdima has joined #zope3-dev09:50
*** __mac__2 has joined #zope3-dev09:52
*** matthewrevell has joined #zope3-dev09:52
*** matthewrevell_ has joined #zope3-dev09:55
*** HakTom has joined #zope3-dev09:56
*** ChanServ sets mode: +o srichter09:56
*** jinty has joined #zope3-dev09:58
*** __mac__2 has quit IRC09:58
*** yota has joined #zope3-dev09:59
*** matthewrevell has quit IRC10:03
*** flame__ has joined #zope3-dev10:06
*** timte has joined #zope3-dev10:07
*** flame__ has left #zope3-dev10:07
*** wrobel has joined #zope3-dev10:09
timteI 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-dev10:14
*** kobold has joined #zope3-dev10:19
*** harobed has quit IRC10:24
*** matthewrevell_ is now known as matthewrevell10:28
*** harobed has joined #zope3-dev10:31
*** HakTom has quit IRC10:45
*** jodok has joined #zope3-dev10:47
*** b_52Free has quit IRC10:58
*** b_52Free has joined #zope3-dev10:59
*** philiKON has joined #zope3-dev11:00
*** kobold has quit IRC11:04
*** jfroche has joined #zope3-dev11:05
*** tarek has joined #zope3-dev11:43
*** ktwilight has joined #zope3-dev11:51
*** philiKON has quit IRC11:53
*** deo has joined #zope3-dev11:58
*** ktwilight_ has quit IRC12:04
*** dunny has quit IRC12:13
*** timte has quit IRC13:03
*** tonico|away is now known as tonico13:04
*** timte has joined #zope3-dev13:08
*** J1m has joined #zope3-dev13:17
*** niemeyer has joined #zope3-dev13:22
niemeyerGood morning13:23
*** ignas has joined #zope3-dev13:28
*** oferw has joined #zope3-dev13:34
*** sureshvv has left #zope3-dev13:49
*** jinty has quit IRC13:55
*** rocky|Zzz is now known as rocky13:56
*** jinty has joined #zope3-dev13:57
*** Aiste has quit IRC14:01
*** stub has quit IRC14:01
*** mkerrin has joined #zope3-dev14:02
*** mgedmin has joined #zope3-dev14:07
*** mkerrin has quit IRC14:07
*** nathany has joined #zope3-dev14:08
*** waa has joined #zope3-dev14:17
*** jinty has quit IRC14:20
WebMavenniemeyer: hello14:20
niemeyerWebMaven: Hi14:20
WebMavenniemeyer: have you used ZAlchemy to combine SQLAlchemy with Zope3?14:21
*** jinty has joined #zope3-dev14:21
niemeyerWebMaven: Nope.. we were using SQLAlchemy before we migrated into the Zope 3 transaction system.14:22
WebMavenniemeyer: sorry, I didn't quite understand that.14:23
WebMavenniemeyer: could you explain further?14:24
*** waa_ has joined #zope3-dev14:24
*** J1m has quit IRC14:25
niemeyerWebMaven: IOW, we didn't need ZAlchemy by the time we were using SQLAlchemy.14:25
niemeyerWebMaven: If we were using SQLAlchemy now, we'd need it.14:25
*** Aiste has joined #zope3-dev14:25
WebMavenAh, 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
WebMavenHmm. OK.14:27
*** waa__ has joined #zope3-dev14:31
*** waa__ has quit IRC14:32
*** waa has quit IRC14:33
niemeyerWebMaven: Correct14:35
*** waa_ has quit IRC14:43
WebMavenniemeyer: OK. Well, thanks for answering my question.14:43
WebMavenniemeyer: Do you know anyone else who might have a little experience with ZAlchemy?14:44
niemeyerWebMaven: I don't :(14:45
WebMavenOK, thanks anyway.14:46
*** vlado has joined #zope3-dev14:46
*** schwendinger has quit IRC14:48
*** schwendinger has joined #zope3-dev14:52
*** oferw has quit IRC15:02
*** harobed has quit IRC15:27
*** nathany has quit IRC15:35
*** waa has joined #zope3-dev15:45
*** philiKON has joined #zope3-dev15:53
*** daniele has quit IRC15:53
*** baijum has quit IRC15:56
*** tonico has quit IRC16:02
*** reco has joined #zope3-dev16:06
*** reco has quit IRC16:07
*** reco has joined #zope3-dev16:07
*** dobee has quit IRC16:42
*** dobee has joined #zope3-dev17:03
*** hdima has quit IRC17:04
*** matthewrevell has quit IRC17:05
*** matthewrevell has joined #zope3-dev17:08
*** alga has joined #zope3-dev17:11
*** rmarianski has joined #zope3-dev17:12
*** dobee has quit IRC17:17
*** waa has quit IRC17:23
*** zagy has quit IRC17:23
*** waa has joined #zope3-dev17:24
*** dobee has joined #zope3-dev17:30
*** J1m has joined #zope3-dev17:31
*** mkerrin has joined #zope3-dev17:34
*** alecm has joined #zope3-dev17:41
*** waa has quit IRC17:44
*** waa has joined #zope3-dev17:44
*** dlk has left #zope3-dev17:59
*** tonico has joined #zope3-dev18:00
*** zagy has joined #zope3-dev18:05
ignasare there any tutorials/examples of test layer usage to create nested functional test layers ?18:07
ignasi 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 first18:07
*** philiKON has quit IRC18:15
*** philiKON has joined #zope3-dev18:16
*** nathany has joined #zope3-dev18:22
*** rocky has quit IRC18:26
timteWhat method is called when you do an adapter lookup with ISomeInterface(obj) ?18:26
timteI thought it would be InterfaceBasePy.__call__, but it seems not.18:27
J1mIt is if you remove the C extensions.18:28
J1mThat method is also implemented in C and the C version is used by default.18:28
timteoh ok18:29
timteIn 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
J1mIs __call__ the adapter factory?18:31
J1mOr is the class the factory?18:31
timteI think class is the factory, but it will call __call__ to create the instance, right?18:31
J1mwrong18:32
timte__new__?18:32
J1mThe class itself is called.18:32
J1mYou can read up on the semantics of that in the Python docs. :)18:32
timtedoesn't that call the __call__ method?18:33
J1mRTFM18:33
timteok ok ok  :)18:33
*** vlado has quit IRC18:33
ccomb__new__ is called before __call__18:33
ccombnon18:33
ccombbefore __init__18:33
J1mIf 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
J1mScrewing around with __new__ is way too exotic for this use case.18:34
*** rocky has joined #zope3-dev18:34
ccomban adapter can be either a class or a simple function, it just has to return a new object18:35
J1mIt can be any callable.18:35
J1mIt doesn't have to return a new object.18:35
ccombin case it is a class, this is the __call_ function which is called, no?18:36
J1mIt should either return None, or an object that provides the requested interface.18:36
J1mno18:36
J1mA __call__ method defined in a class statement is used when calling an instance of the class -- not the class.18:37
ccombok18:37
J1mYou can register an instance as an adapter, in which case it's __call__ would be called when the adapter factory is invoked.18:37
J1mFor all intents and purposes, when a class is called, it's __init__ is called.18:38
J1manything beyond that is advanced and exotic.18:39
ccombjust after __new__, right ?18:39
J1mI'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
ccombok anyone can live without __new__.18:40
timteJ1m: thanks for explaining this, I'll use a function18:42
J1mcool18:42
*** zagy has quit IRC18:51
*** dunny has joined #zope3-dev18:51
* mgedmin winces from looking at spurious apostrophes in its18:51
* J1m is annoyed that english gets this wrong. :)18:53
*** zagy has joined #zope3-dev19:00
*** opetznick has quit IRC19:12
*** dobee has quit IRC19:15
*** tonico is now known as tonico|away19:24
*** zagy has quit IRC19:25
*** zagy has joined #zope3-dev19:26
*** matthewrevell has quit IRC19:28
*** jkakar has joined #zope3-dev19:37
*** jkakar has quit IRC19:41
*** jkakar has joined #zope3-dev19:41
*** srichter has quit IRC19:50
*** harobed has joined #zope3-dev20:02
*** srichter has joined #zope3-dev20:04
*** schwendinger has quit IRC20:05
*** zagy has quit IRC20:14
*** zagy has joined #zope3-dev20:14
*** RaFromBRC has joined #zope3-dev20:22
*** replaceafill has joined #zope3-dev20:26
replaceafillHi. 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
ccombso you want something to be both required and not required20:30
replaceafillccomb: 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 ok20:31
ccomband what will be held by the file field?20:32
replaceafillccomb: but if i leave the file input empty, editform complains because in my interface it's required20:32
ccombcan't you put a default value?20:33
replaceafillthe file field is the widget for a Bytes field20:33
*** oferw has joined #zope3-dev20:33
replaceafillwhen the object is edited it already has a value for the field20:34
replaceafilli dont need a default for it20:34
ccombno idea20:35
replaceafillI found a post by Martijn Faassen talking about this in the zope3-dev mailing list, but i couldn't find the solution for it20:35
*** jinty has quit IRC20:44
mgedminhm20:44
mgedminI seem to remember that both fields and widgets have a required attribute20:44
replaceafillmgedmin: that overrides the interface definition?20:45
mgedminI do not remember20:45
replaceafillI found a post by mats.nordgren that uses the handle_edit_action method to do it20:46
mgedminI would probably change the schema to make the field not required20:46
*** jodok has quit IRC20:47
mgedminand implement validation separately20:47
mgedminor use two different schemas: one for the object, one for the form20:47
replaceafillmgedmin: hhmm i see20:47
*** flox has joined #zope3-dev20:48
replaceafillmgedmin: like overriding just that field from the schema, right?20:48
*** zagy has quit IRC20:50
mgedminthat is a possibility, but it will mess up your field order20:50
*** zagy has joined #zope3-dev20:51
ccombIs there anything special to do to write an annotations?  I'm always getting ForbiddenAttribute20:51
ccombI'm playing with zblog,  blogEntry is marked as IAttributeAnnotatable in zcml20:52
ccombI'm getting an adapter :  annotations = IAnnotations(self.context)20:52
replaceafillccomb: maybe it's a missing require directive20:52
replaceafillccomb: or the adapter should be trusted?20:52
ccombon which interface ?20:52
ccombyes, this is from an adapter, should I set it trusted ?20:53
replaceafilldont know, im just saying that that's what i look for when i get ForbiddenAttribute errors20:53
ccombyes it works, thanks21:00
replaceafillccomb: what was it? just for curiousity :D21:00
ccombbut is it secure?21:00
ccombI've added trusted="yes" in my zcml adapter declaration21:02
ccomb<zope:adapter21: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
ccombI'm trying to add category management to zblog21:02
ccombwith two implementations, one in a category attribute, one in the annotations21:03
*** oferw has quit IRC21:05
*** whit is now known as whit|lunch21:07
*** henri_ has joined #zope3-dev21:08
*** alecm has quit IRC21:09
*** srichter has quit IRC21:12
harobedccomb: tu es là ?21:16
ccomboui21:16
harobedje suis en train d'expérimenter de mon coté21:16
harobedtu me donneras ton code après21:16
*** schwendinger has joined #zope3-dev21:17
*** SteveA has quit IRC21:19
harobedvoici le code source de mon interface : http://pastebin.com/85531821:20
harobedsorry, it's bad channel21:20
*** opetznick has joined #zope3-dev21:21
*** schwendinger_ has joined #zope3-dev21:22
*** replaceafill_ has joined #zope3-dev21:25
*** replaceafill has quit IRC21:25
*** b_52Free has quit IRC21:28
*** jodok has joined #zope3-dev21:28
*** ignas has quit IRC21:31
*** schwendinger has quit IRC21:38
*** whit|lunch is now known as whit21:42
*** srichter has joined #zope3-dev21:45
*** ChanServ sets mode: +o srichter21:45
*** b_52Free has joined #zope3-dev21:47
*** replaceafill_ has quit IRC21:47
*** mkerrin has quit IRC21:52
*** whit has quit IRC21:54
*** whit has joined #zope3-dev21:55
*** srichter has quit IRC21:58
*** SteveA has joined #zope3-dev22:06
*** zagy has quit IRC22:09
*** projekt01 has joined #zope3-dev22:09
*** alecm has joined #zope3-dev22:11
*** henri_ has left #zope3-dev22:18
*** alecm has quit IRC22:20
*** alecm has joined #zope3-dev22:20
*** dobee has joined #zope3-dev22:33
jodokis there something like structured-text-header-level 2 in the zope.conf for z3?22:33
projekt01jodok, hi, what's that?22:34
jodokhey projekt01 :)22:34
jodokit defines where the rest parser starts when generating html22:34
jodoke.g. H1 is the title of the page and rest should start at h222:34
projekt01I guess there is no configuration in zope.conf for specific packages.22:35
jodoki'm grep'ing :)22:38
projekt01jodok, 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 at22:39
*** opetznick has quit IRC22:40
*** nathany has quit IRC22:45
*** vlado has joined #zope3-dev22:49
*** tomus has joined #zope3-dev23:04
*** mgedmin has quit IRC23:04
*** redir has joined #zope3-dev23:06
*** b_52Free has quit IRC23:17
*** ktwilight has quit IRC23:17
*** lamike has joined #zope3-dev23:18
*** RaFromBRC is now known as RaFromBRC|lunch23:19
*** ktwilight has joined #zope3-dev23:21
*** d2m has quit IRC23:24
*** vlado has quit IRC23:24
*** alga has quit IRC23:30
*** jfroche has quit IRC23:30
*** wrobel has quit IRC23:30
*** grahal has quit IRC23:30
*** ksmith99 has quit IRC23:30
*** nouri has quit IRC23:30
*** jfroche has joined #zope3-dev23:30
*** grahal has joined #zope3-dev23:30
*** b_52Free has joined #zope3-dev23:34
*** nouri has joined #zope3-dev23:35
*** alga has joined #zope3-dev23:35
*** replaceafill has joined #zope3-dev23:46
*** dobee has quit IRC23:47
*** xenru has joined #zope3-dev23:51
*** dobee has joined #zope3-dev23:52
*** RaFromBRC|lunch is now known as RaFromBRC23:54
*** dobee has quit IRC23:56
*** rlo has joined #zope3-dev23:59

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