IRC log of #zope3-dev for Sunday, 2006-08-06

*** pcardune has joined #zope3-dev00:17
pcarduneDoes anyone know where I might find the multiadapter implementation used with the "page" directive?00:23
floxpcardune: zope.app.publisher00:36
pcarduneflox: I guess I was looking in the right place, but not looking hard enough00:37
floxlook at the meta.zcml, i guess00:37
floxor browser/meta.zcml00:37
pcarduneaha, this is very interesting.  Thanks flox00:38
floxnp00:49
*** dunny__ has joined #zope3-dev00:59
*** rocky has quit IRC01:02
*** flox is now known as flox|away01:11
*** rocky has joined #zope3-dev01:21
*** dunny__ is now known as dunny01:25
*** pcardune has quit IRC02:00
*** dobee_ has quit IRC02:04
*** RaFromBRC has joined #zope3-dev02:14
*** vlado has joined #zope3-dev02:20
*** pcardune has joined #zope3-dev03:00
*** rocky has quit IRC03:08
*** yota has quit IRC03:21
*** rocky has joined #zope3-dev03:22
*** pcardune has quit IRC03:29
*** MiUlEr has quit IRC03:36
*** flox|away has quit IRC03:36
xenru|clonehi there!03:39
xenru|cloneI found that zope.app.rdb moved to zope.rdb03:39
*** xenru|clone is now known as xenru03:40
xenruI hope this is Ok, and I can update psycopgda03:42
*** whit has joined #zope3-dev04:16
*** rocky is now known as rocky|Zzz04:29
*** dunny_ has joined #zope3-dev04:33
*** ktwilight has quit IRC04:39
*** ktwilight has joined #zope3-dev04:40
*** MiUlEr has joined #zope3-dev04:40
*** dunny__ has joined #zope3-dev04:42
*** whit_ has joined #zope3-dev04:46
*** dunny has quit IRC04:51
*** whit has quit IRC04:55
*** SmokeyD is now known as SmokeyD|gone04:58
*** dunny_ has quit IRC05:04
*** whit has joined #zope3-dev05:15
*** whit has quit IRC05:16
*** whit_ has quit IRC05:26
*** pcardune has joined #zope3-dev05:51
*** baijum has joined #zope3-dev06:32
*** _srichter has joined #zope3-dev06:42
*** baijum has quit IRC06:43
*** wei123 has joined #zope3-dev06:54
*** strichter has quit IRC06:57
*** wei123 has quit IRC07:04
*** baijum has joined #zope3-dev07:46
*** baijum has quit IRC08:09
*** peter_ has joined #zope3-dev08:20
*** MJ has quit IRC08:45
*** pcardune has quit IRC09:33
*** baijum has joined #zope3-dev10:08
*** batlogg has quit IRC10:19
*** baijum has quit IRC10:32
*** SmokeyD|gone is now known as SmokeyD10:45
*** MJ has joined #zope3-dev11:01
*** baijum has joined #zope3-dev11:20
*** baijum has quit IRC11:43
*** baijum has joined #zope3-dev11:44
*** jukart has joined #zope3-dev11:44
*** baijum has quit IRC11:55
*** jukart has quit IRC11:57
*** batlogg has joined #zope3-dev11:59
*** dobee has joined #zope3-dev12:00
*** mgedmin has joined #zope3-dev12:03
*** peter_ has quit IRC12:29
*** stub has joined #zope3-dev12:34
*** mgedmin has quit IRC12:38
*** mgedmin has joined #zope3-dev12:38
*** jukart has joined #zope3-dev12:44
*** yota has joined #zope3-dev12:51
SmokeyDhi all good morning13:07
SmokeyDor whatever it is at your places :)13:07
SmokeyDWhen I want to get a widget to be hidden in a form, where should I set this. On the schema field, form field or the widget itself13:08
SmokeyDI saw that IInputWidget has an attribute "visible"13:08
SmokeyDBut I don't see any attribute in IFormField that I could set,13:11
romanofskimoin13:15
SmokeyDmoin13:15
*** batlogg has quit IRC13:20
*** stub has quit IRC13:31
*** jukart has quit IRC13:37
*** dunny__ has quit IRC13:49
*** SteveA has quit IRC13:49
*** stub has joined #zope3-dev14:17
*** timte has joined #zope3-dev14:25
*** stub has quit IRC14:39
*** batlogg has joined #zope3-dev14:48
*** zagy has joined #zope3-dev14:49
*** scherand has joined #zope3-dev15:07
*** jukart has joined #zope3-dev15:16
*** stub has joined #zope3-dev15:56
*** _srichter has quit IRC16:12
*** roym has joined #zope3-dev16:16
SmokeyDOk, I didn't figure out my last question (gave up on it for now, don't need it yet), but here's another one:16:38
SmokeyDHow do I access the data submitted in a form inheriting from  forms.EditFormBase?16:39
SmokeyDI can access the fields and stuff, but where is the actual value, filled in in the input field by the user?16:39
dobeeSmokeyD:  you have to define method as an action, this method will be called with the action and a data dictionary16:50
dobeethe data dictionary contains the values16:51
SmokeyDyeah, I did that already. But how do I gat an actual value from the data dictionary16:51
SmokeyDgat=get16:51
dobeedata.get('fieldname')16:52
SmokeyDok, i'll check. Thanks.16:53
*** peter_ has joined #zope3-dev18:04
*** nathany has joined #zope3-dev18:11
*** peter_ has quit IRC18:18
*** peter_ has joined #zope3-dev18:23
*** stub has quit IRC18:23
SmokeyDdobee, I really don't get it. The data dictionary, what is it? The update() function in zope.formlib.form.FormBase defines data={}18:41
SmokeyDit passes it on to the actions18:41
SmokeyDand in the edit action in EditFormBase it is passed to applyChanges18:42
SmokeyDthere it is called with data.get(name, form_field)18:42
SmokeyDif I do this in my own form I get just the formfield back18:43
SmokeyDI'm trying to create my own form on the fly by not using a schema but creating my own Fields form a database and creating formfields from them18:44
SmokeyDthe database is mysql, which I approach through sqlalchemy18:44
SmokeyDWhat I've got is on http://deadbeefbabe.org/paste/143018:46
*** scherand has quit IRC18:58
*** Bernulf has joined #zope3-dev19:13
*** peter_ has quit IRC19:28
*** mgedmin has quit IRC19:40
*** philiKON has joined #zope3-dev20:08
*** philiKON has joined #zope3-dev20:13
dobeeSmokeyD: still there?20:26
dobeeSmokeyD: take a look at this for sqlalchemy in zope3 http://svn.zope.org/z3c.zalchemy/trunk20:27
dobeeSmokeyD: afaik the fields must exist at class level in order to let formlib extract the data from the request20:29
dobeethe form_fields attribute20:30
*** _srichter has joined #zope3-dev20:48
*** _srichter is now known as srichter21:08
*** ChanServ sets mode: +o srichter21:08
*** dunny__ has joined #zope3-dev21:14
*** cursor has joined #zope3-dev21:39
*** russf has joined #zope3-dev22:03
*** russf has quit IRC22:33
*** romanofski has quit IRC22:37
*** flox has joined #zope3-dev22:53
*** flox is now known as flox|away22:53
*** flox|away is now known as flox22:53
*** jukart has quit IRC22:59
*** cursor has quit IRC23:02
*** rocky|Zzz is now known as rocky23:02
SmokeyDthanks dobee, I'll look at it. I didn't know this existed :)23:03
dobeeSmokeyD:  but you have to write your interfaces anyway, i think this is always a must in zope323:04
SmokeyDIsn't it possible to create the interfaceon the fly?23:05
SmokeyDJust create schema fields and make the formvielfs from them?23:05
SmokeyDHmm, typing isn't my strong point:)23:06
dobeeyou can create schema fields for forms which do not exist on the context23:07
dobeewhat means on the fly? you need a class attribute form_fields23:09
SmokeyDyeah of course.23:10
SmokeyDWhat I mean is this:23:10
SmokeyDNormally you create an schema where you define all attributes to be edited by the form23:11
SmokeyDyou create the form_fields from this interface/schema23:11
*** timte has quit IRC23:11
SmokeyDI want to create the form_fields not by reading an interface but by creating the fields directly in the form class by instantiating zope.schema fields, and creating the form fields from them23:12
dobeethis should work23:14
*** zagy has quit IRC23:15
dobeelike in the form.txt examples23:15
dobee    >>> class MyForm(form.EditForm):23:15
dobee    ...     form_fields = form.Fields(23:15
dobee    ...         schema.TextLine(__name__='name', title=u"Who?"),23:15
dobee    ...         IDescriptive['title'],23:15
dobee    ...         )23:15
dobee    ...     actions = ()23:15
SmokeyDok, I missed it in there. Sorry23:16
SmokeyDBut that is indeed my idea23:16
*** zagy has joined #zope3-dev23:16
*** zagy has quit IRC23:31
SmokeyDWhere does this come from:23:48
SmokeyDfrom zope.lifecycleevent import ObjectModifiedEvent23:48
SmokeyDif I include this in my form, I get the error no module named lifecycleevent23:49
SmokeyDIt's an event (don't know to much about them, just that they exists and I never used them yet)23:49
SmokeyDbut that's all I know23:49
*** flox has quit IRC23:51
SmokeyDI guess I'm just looking at a newer source than my own Zope3 version23:53
SmokeyD:)23:53
SmokeyDIn my forms.py the event is still called zope.app.event.objectevent.ObjectModifiedEvent23:54
dobeeSmokeyD: this is zope 3.323:54
SmokeyDyup I found out :) I was using the svn.zope.org source to look through the source23:54
SmokeyDit is easier than doing it on my own machine23:54
SmokeyDthis is the disadvantage though :)23:54
SmokeyDI'll take the right source :)\23:55
dobeeyou can use http://svn.zope.org/Zope3/branches/3.2/23:56
SmokeyDYeah, I found it23:57
SmokeyDthanks23:57

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