| *** pcardune has joined #zope3-dev | 00:17 | |
| pcardune | Does anyone know where I might find the multiadapter implementation used with the "page" directive? | 00:23 | 
|---|---|---|
| flox | pcardune: zope.app.publisher | 00:36 | 
| pcardune | flox: I guess I was looking in the right place, but not looking hard enough | 00:37 | 
| flox | look at the meta.zcml, i guess | 00:37 | 
| flox | or browser/meta.zcml | 00:37 | 
| pcardune | aha, this is very interesting. Thanks flox | 00:38 | 
| flox | np | 00:49 | 
| *** dunny__ has joined #zope3-dev | 00:59 | |
| *** rocky has quit IRC | 01:02 | |
| *** flox is now known as flox|away | 01:11 | |
| *** rocky has joined #zope3-dev | 01:21 | |
| *** dunny__ is now known as dunny | 01:25 | |
| *** pcardune has quit IRC | 02:00 | |
| *** dobee_ has quit IRC | 02:04 | |
| *** RaFromBRC has joined #zope3-dev | 02:14 | |
| *** vlado has joined #zope3-dev | 02:20 | |
| *** pcardune has joined #zope3-dev | 03:00 | |
| *** rocky has quit IRC | 03:08 | |
| *** yota has quit IRC | 03:21 | |
| *** rocky has joined #zope3-dev | 03:22 | |
| *** pcardune has quit IRC | 03:29 | |
| *** MiUlEr has quit IRC | 03:36 | |
| *** flox|away has quit IRC | 03:36 | |
| xenru|clone | hi there! | 03:39 | 
| xenru|clone | I found that zope.app.rdb moved to zope.rdb | 03:39 | 
| *** xenru|clone is now known as xenru | 03:40 | |
| xenru | I hope this is Ok, and I can update psycopgda | 03:42 | 
| *** whit has joined #zope3-dev | 04:16 | |
| *** rocky is now known as rocky|Zzz | 04:29 | |
| *** dunny_ has joined #zope3-dev | 04:33 | |
| *** ktwilight has quit IRC | 04:39 | |
| *** ktwilight has joined #zope3-dev | 04:40 | |
| *** MiUlEr has joined #zope3-dev | 04:40 | |
| *** dunny__ has joined #zope3-dev | 04:42 | |
| *** whit_ has joined #zope3-dev | 04:46 | |
| *** dunny has quit IRC | 04:51 | |
| *** whit has quit IRC | 04:55 | |
| *** SmokeyD is now known as SmokeyD|gone | 04:58 | |
| *** dunny_ has quit IRC | 05:04 | |
| *** whit has joined #zope3-dev | 05:15 | |
| *** whit has quit IRC | 05:16 | |
| *** whit_ has quit IRC | 05:26 | |
| *** pcardune has joined #zope3-dev | 05:51 | |
| *** baijum has joined #zope3-dev | 06:32 | |
| *** _srichter has joined #zope3-dev | 06:42 | |
| *** baijum has quit IRC | 06:43 | |
| *** wei123 has joined #zope3-dev | 06:54 | |
| *** strichter has quit IRC | 06:57 | |
| *** wei123 has quit IRC | 07:04 | |
| *** baijum has joined #zope3-dev | 07:46 | |
| *** baijum has quit IRC | 08:09 | |
| *** peter_ has joined #zope3-dev | 08:20 | |
| *** MJ has quit IRC | 08:45 | |
| *** pcardune has quit IRC | 09:33 | |
| *** baijum has joined #zope3-dev | 10:08 | |
| *** batlogg has quit IRC | 10:19 | |
| *** baijum has quit IRC | 10:32 | |
| *** SmokeyD|gone is now known as SmokeyD | 10:45 | |
| *** MJ has joined #zope3-dev | 11:01 | |
| *** baijum has joined #zope3-dev | 11:20 | |
| *** baijum has quit IRC | 11:43 | |
| *** baijum has joined #zope3-dev | 11:44 | |
| *** jukart has joined #zope3-dev | 11:44 | |
| *** baijum has quit IRC | 11:55 | |
| *** jukart has quit IRC | 11:57 | |
| *** batlogg has joined #zope3-dev | 11:59 | |
| *** dobee has joined #zope3-dev | 12:00 | |
| *** mgedmin has joined #zope3-dev | 12:03 | |
| *** peter_ has quit IRC | 12:29 | |
| *** stub has joined #zope3-dev | 12:34 | |
| *** mgedmin has quit IRC | 12:38 | |
| *** mgedmin has joined #zope3-dev | 12:38 | |
| *** jukart has joined #zope3-dev | 12:44 | |
| *** yota has joined #zope3-dev | 12:51 | |
| SmokeyD | hi all good morning | 13:07 | 
| SmokeyD | or whatever it is at your places :) | 13:07 | 
| SmokeyD | When 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 itself | 13:08 | 
| SmokeyD | I saw that IInputWidget has an attribute "visible" | 13:08 | 
| SmokeyD | But I don't see any attribute in IFormField that I could set, | 13:11 | 
| romanofski | moin | 13:15 | 
| SmokeyD | moin | 13:15 | 
| *** batlogg has quit IRC | 13:20 | |
| *** stub has quit IRC | 13:31 | |
| *** jukart has quit IRC | 13:37 | |
| *** dunny__ has quit IRC | 13:49 | |
| *** SteveA has quit IRC | 13:49 | |
| *** stub has joined #zope3-dev | 14:17 | |
| *** timte has joined #zope3-dev | 14:25 | |
| *** stub has quit IRC | 14:39 | |
| *** batlogg has joined #zope3-dev | 14:48 | |
| *** zagy has joined #zope3-dev | 14:49 | |
| *** scherand has joined #zope3-dev | 15:07 | |
| *** jukart has joined #zope3-dev | 15:16 | |
| *** stub has joined #zope3-dev | 15:56 | |
| *** _srichter has quit IRC | 16:12 | |
| *** roym has joined #zope3-dev | 16:16 | |
| SmokeyD | Ok, 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 | 
| SmokeyD | How do I access the data submitted in a form inheriting from forms.EditFormBase? | 16:39 | 
| SmokeyD | I can access the fields and stuff, but where is the actual value, filled in in the input field by the user? | 16:39 | 
| dobee | SmokeyD: you have to define method as an action, this method will be called with the action and a data dictionary | 16:50 | 
| dobee | the data dictionary contains the values | 16:51 | 
| SmokeyD | yeah, I did that already. But how do I gat an actual value from the data dictionary | 16:51 | 
| SmokeyD | gat=get | 16:51 | 
| dobee | data.get('fieldname') | 16:52 | 
| SmokeyD | ok, i'll check. Thanks. | 16:53 | 
| *** peter_ has joined #zope3-dev | 18:04 | |
| *** nathany has joined #zope3-dev | 18:11 | |
| *** peter_ has quit IRC | 18:18 | |
| *** peter_ has joined #zope3-dev | 18:23 | |
| *** stub has quit IRC | 18:23 | |
| SmokeyD | dobee, I really don't get it. The data dictionary, what is it? The update() function in zope.formlib.form.FormBase defines data={} | 18:41 | 
| SmokeyD | it passes it on to the actions | 18:41 | 
| SmokeyD | and in the edit action in EditFormBase it is passed to applyChanges | 18:42 | 
| SmokeyD | there it is called with data.get(name, form_field) | 18:42 | 
| SmokeyD | if I do this in my own form I get just the formfield back | 18:43 | 
| SmokeyD | I'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 them | 18:44 | 
| SmokeyD | the database is mysql, which I approach through sqlalchemy | 18:44 | 
| SmokeyD | What I've got is on http://deadbeefbabe.org/paste/1430 | 18:46 | 
| *** scherand has quit IRC | 18:58 | |
| *** Bernulf has joined #zope3-dev | 19:13 | |
| *** peter_ has quit IRC | 19:28 | |
| *** mgedmin has quit IRC | 19:40 | |
| *** philiKON has joined #zope3-dev | 20:08 | |
| *** philiKON has joined #zope3-dev | 20:13 | |
| dobee | SmokeyD: still there? | 20:26 | 
| dobee | SmokeyD: take a look at this for sqlalchemy in zope3 http://svn.zope.org/z3c.zalchemy/trunk | 20:27 | 
| dobee | SmokeyD: afaik the fields must exist at class level in order to let formlib extract the data from the request | 20:29 | 
| dobee | the form_fields attribute | 20:30 | 
| *** _srichter has joined #zope3-dev | 20:48 | |
| *** _srichter is now known as srichter | 21:08 | |
| *** ChanServ sets mode: +o srichter | 21:08 | |
| *** dunny__ has joined #zope3-dev | 21:14 | |
| *** cursor has joined #zope3-dev | 21:39 | |
| *** russf has joined #zope3-dev | 22:03 | |
| *** russf has quit IRC | 22:33 | |
| *** romanofski has quit IRC | 22:37 | |
| *** flox has joined #zope3-dev | 22:53 | |
| *** flox is now known as flox|away | 22:53 | |
| *** flox|away is now known as flox | 22:53 | |
| *** jukart has quit IRC | 22:59 | |
| *** cursor has quit IRC | 23:02 | |
| *** rocky|Zzz is now known as rocky | 23:02 | |
| SmokeyD | thanks dobee, I'll look at it. I didn't know this existed :) | 23:03 | 
| dobee | SmokeyD: but you have to write your interfaces anyway, i think this is always a must in zope3 | 23:04 | 
| SmokeyD | Isn't it possible to create the interfaceon the fly? | 23:05 | 
| SmokeyD | Just create schema fields and make the formvielfs from them? | 23:05 | 
| SmokeyD | Hmm, typing isn't my strong point:) | 23:06 | 
| dobee | you can create schema fields for forms which do not exist on the context | 23:07 | 
| dobee | what means on the fly? you need a class attribute form_fields | 23:09 | 
| SmokeyD | yeah of course. | 23:10 | 
| SmokeyD | What I mean is this: | 23:10 | 
| SmokeyD | Normally you create an schema where you define all attributes to be edited by the form | 23:11 | 
| SmokeyD | you create the form_fields from this interface/schema | 23:11 | 
| *** timte has quit IRC | 23:11 | |
| SmokeyD | I 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 them | 23:12 | 
| dobee | this should work | 23:14 | 
| *** zagy has quit IRC | 23:15 | |
| dobee | like in the form.txt examples | 23: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 | 
| SmokeyD | ok, I missed it in there. Sorry | 23:16 | 
| SmokeyD | But that is indeed my idea | 23:16 | 
| *** zagy has joined #zope3-dev | 23:16 | |
| *** zagy has quit IRC | 23:31 | |
| SmokeyD | Where does this come from: | 23:48 | 
| SmokeyD | from zope.lifecycleevent import ObjectModifiedEvent | 23:48 | 
| SmokeyD | if I include this in my form, I get the error no module named lifecycleevent | 23:49 | 
| SmokeyD | It's an event (don't know to much about them, just that they exists and I never used them yet) | 23:49 | 
| SmokeyD | but that's all I know | 23:49 | 
| *** flox has quit IRC | 23:51 | |
| SmokeyD | I guess I'm just looking at a newer source than my own Zope3 version | 23:53 | 
| SmokeyD | :) | 23:53 | 
| SmokeyD | In my forms.py the event is still called zope.app.event.objectevent.ObjectModifiedEvent | 23:54 | 
| dobee | SmokeyD: this is zope 3.3 | 23:54 | 
| SmokeyD | yup I found out :) I was using the svn.zope.org source to look through the source | 23:54 | 
| SmokeyD | it is easier than doing it on my own machine | 23:54 | 
| SmokeyD | this is the disadvantage though :) | 23:54 | 
| SmokeyD | I'll take the right source :)\ | 23:55 | 
| dobee | you can use http://svn.zope.org/Zope3/branches/3.2/ | 23:56 | 
| SmokeyD | Yeah, I found it | 23:57 | 
| SmokeyD | thanks | 23:57 | 
Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!