IRC log of #zope3-dev for Wednesday, 2008-04-09

*** povbot has joined #zope3-dev16:27
*** afd_ has quit IRC16:27
*** run|home has quit IRC16:30
*** quodt has joined #zope3-dev16:31
*** ignas has quit IRC16:31
*** goschtl has joined #zope3-dev16:37
*** ignas has joined #zope3-dev16:48
*** jpcw2002_ has joined #zope3-dev16:53
*** jpcw2002 has quit IRC17:02
*** jpcw2002_ has left #zope3-dev17:03
*** jpcw2002 has joined #zope3-dev17:14
*** gimni has joined #zope3-dev17:17
*** jayaraj has quit IRC17:23
goschtlhi is it possible to display a formlib action only if the user has a special permisson?17:24
*** sm has joined #zope3-dev17:24
*** jodok has quit IRC17:26
*** reedobrien has joined #zope3-dev17:29
*** sorindregan has quit IRC17:29
*** jodok has joined #zope3-dev17:33
mgedminyes...17:34
mgedminadd a condition on the action17:34
mgedminthat uses zope.security.checkPermission17:34
goschtlmgedmin: ok i have found this17:34
goschtlbut i get an error i think this is an grok error i will as in grok channel thanks....17:35
*** redir has quit IRC17:36
*** J1m has joined #zope3-dev17:39
*** baijum has quit IRC17:43
*** rmarianski has joined #zope3-dev17:44
*** philiKON_ is now known as philiKON17:49
*** reco has quit IRC17:54
*** reco has joined #zope3-dev17:54
*** djohnson has joined #zope3-dev17:55
*** stub has quit IRC17:55
*** stub has joined #zope3-dev17:57
*** timte has quit IRC18:06
*** afd_ has joined #zope3-dev18:06
*** tarek has joined #zope3-dev18:07
*** nathany has joined #zope3-dev18:07
*** srichter has quit IRC18:08
*** zagy has quit IRC18:10
*** srichter has joined #zope3-dev18:12
*** ChanServ sets mode: +o srichter18:18
*** whit has quit IRC18:20
*** MJ has quit IRC18:20
*** sunew has joined #zope3-dev18:21
*** sunew has quit IRC18:22
*** sunew has joined #zope3-dev18:22
*** goschtl has quit IRC18:26
*** regebro has quit IRC18:27
*** projekt01 has quit IRC18:28
*** ignas has quit IRC18:28
*** whit has joined #zope3-dev18:35
*** sunew has quit IRC18:35
*** stub has quit IRC18:38
*** reedobrien has quit IRC18:39
*** maurits has quit IRC18:47
*** stub has joined #zope3-dev18:55
malthehow to provide z3c.form.interfaces.ITerms for a Choice field?18:56
pyqwermalthe: Hmmm, don't you use vocabularies?19:00
malthepyqwer: I need access to the form19:00
maltheform data, really19:00
malthethe vocab just give me a context19:00
*** gimni has quit IRC19:01
pyqwerThat's true.19:01
malthei'm not really getting the idea I think19:01
pyqwerBut why do you need the form data in the vocabulary?19:01
pyqwerCan you describe your use case?19:01
*** zagy has joined #zope3-dev19:01
*** jukart has quit IRC19:01
maltheI present a search-field (textline), then display a list of results.19:02
malthein the same form; so sometimes there will be no results, sometimes plenty.19:02
malthebut they depend on the form data19:02
philiKONick, vocabularies19:02
malthehehe19:02
philiKONmalthe: i think your question is typical for vocabularies19:03
philiKONbecause they don't properly separate the data19:03
philiKONand the representation of that data19:03
philiKONsearching the data isn't something the vocab should have to do19:03
pyqwermalthe: I don't really get it - why not simply display the search results below the text line?19:03
malthetrue19:03
philiKONlook at plone's UberSelectWidget19:03
philiKONit's a generic search thing for all sources19:03
malthepyqwer: well I'd like users to choose from them :-)19:03
philiKON(sources being the better alternative to vocabularies)19:03
pyqwerAh, now I get it.19:04
malthephiliKON: cool thanks19:04
philiKONmalthe: it may seem complicated at first with all the adapters involved, but with this it allows you to reuse the widget for pretty much any data source19:04
philiKON(only the representation (terms) and the searching (queriable) adapters have to be customized each time)19:05
maltheah now I understand the solution19:05
malthethe solution is that there is no Choice-based solution19:05
maltheerrr.. rather19:05
maltheit needs a particular widget19:05
philiKONno, it uses Choice19:05
philiKONwhich is just the schema field19:05
*** toutpt has quit IRC19:05
maltheright19:05
philiKONright, it's up to the widget19:05
malthegood thing this is plone; I can just grab their widget19:06
pyqwerOk, I think I know how to do it: In your action handler, you write the search results in a session.19:06
philiKONugh, weird19:06
malthepyqwer: hehe yes that's good19:06
philiKONpyqwer: you don't really do anything in the action handler19:06
philiKONpyqwer: because it isn't called19:07
pyqwerphiliKON: Why so? If you press the "search" button, it will be called.19:07
philiKONaction handlers are only called when their respective button is pushed19:07
philiKONbut the search button isn't an action19:07
philiKONit's part of the widget19:07
philiKONat least that's hwo it should be19:07
philiKONafter all, you could have multiple choice fields on the same form19:08
pyqwerHmmm, it seems I still don't get it how the widget should look like...19:09
philiKON<text field for search query> <search button>19:10
philiKONonce you hit the search button, it displays a list of possible matches19:10
philiKONe.g. in a drop down box19:10
malthephiliKON: thanks a bunch; later.19:10
philiKONbye19:10
pyqwerOk, I think I got it now...19:11
pyqwerphiliKON: btw., did you have a look at my recursive translation patch?19:11
philiKONpyqwer: yeah, i still have some comments19:14
philiKONhaven't finished those yet19:14
pyqwerphiliKON: Ok. What I don't know is the following: I needed to add an extra parameter to the translate() function.19:15
philiKONyes, that's a problem19:15
pyqwerThis is only for preventing endless recursions.19:15
philiKONi know19:15
pyqwerShould this parameter be listed in the interface or not?19:15
philiKONi sent my comments now19:15
philiKONwe mustn't change the interface19:15
philiKONi can't spare much time for thinking about this now19:16
philiKONperhaps there's a more elgant solution19:16
pyqwerYes, we must not change the interface. But is it really necessary to do so if I add some "private" parameter to a function?19:17
philiKONhmm, it's just the function19:17
philiKONdunno19:17
philiKONhave to think about this19:18
philiKONmust go now19:18
pyqwerThe test does not fail.19:18
hazmatisn't that how sourcequerieables are supposed to work?19:18
pyqwerOk, thanks for now!19:18
philiKONhazmat: yup, that's what source queriables are for19:18
philiKONhazmat: they are used by the widget19:18
philiKONhazmat: the widget will typically adapt the source to two interfaces, ISourceQueriable and ITerms19:18
philiKONthe first one lets the widget search the data19:18
philiKONthe second one lets the widget show the results19:19
philiKONsmall sources can simply be iterated over19:19
philiKONand thus only ITerms is needed19:19
*** jsadjohnson has quit IRC19:19
hazmatright, but does z3c.form provide for sourcequeryable views?19:19
philiKONdunno19:20
philiKONnote that the queriable adapters are specific for each source19:20
*** whit has quit IRC19:20
philiKONbecause ISource doesn't really specify searching capabilities19:20
philiKONthat's what ISourceQueriable is for19:20
hazmatright. the zc.security package has some formlib based examples..19:21
*** J1m has quit IRC19:22
*** stub has quit IRC19:24
*** whit has joined #zope3-dev19:26
*** malthe has quit IRC19:28
*** arnarl has quit IRC19:30
*** J1m has joined #zope3-dev19:35
*** redir has joined #zope3-dev19:40
*** natea__ has quit IRC19:41
*** eeeccomb has joined #zope3-dev19:41
*** ignas has joined #zope3-dev19:43
*** eeeccomb has quit IRC19:46
*** dobee has quit IRC19:46
hazmatdoes anyone know the administrative contact for pypi19:48
*** eeeccomb has joined #zope3-dev19:50
*** whit is now known as whit|out19:51
*** b52lap has quit IRC19:53
*** quodt has quit IRC19:55
*** toko has quit IRC19:58
*** jukart has joined #zope3-dev20:10
*** zagy has quit IRC20:15
*** alecm has joined #zope3-dev20:15
*** RaFromBRC has joined #zope3-dev20:15
*** reedobrien has joined #zope3-dev20:17
*** mkerrin has quit IRC20:19
*** jukart has quit IRC20:20
*** eeeccomb has quit IRC20:23
*** redir has quit IRC20:26
*** jodok has quit IRC20:27
*** quodt has joined #zope3-dev20:30
*** zagy has joined #zope3-dev20:36
*** djohnson has quit IRC20:39
*** dobee has joined #zope3-dev20:42
*** dobee has quit IRC20:42
*** djohnson has joined #zope3-dev20:42
*** dobee has joined #zope3-dev20:42
*** jpcw2002 has left #zope3-dev20:49
*** zagy has quit IRC20:51
*** agroszer_ has joined #zope3-dev20:54
*** mgedmin has quit IRC20:56
*** agroszer has quit IRC21:07
*** djohnson has quit IRC21:15
*** djohnson has joined #zope3-dev21:17
*** timte has joined #zope3-dev21:23
*** tarek has quit IRC21:35
*** b52laptop has joined #zope3-dev21:38
*** dobee has quit IRC21:39
*** ignas has quit IRC21:44
*** djohnson has quit IRC21:51
*** reco_ has joined #zope3-dev22:05
*** reco has quit IRC22:21
*** jpcw2002 has joined #zope3-dev22:23
*** agroszer_ has quit IRC22:32
*** bigkevmcd has quit IRC22:42
*** bigkevmcd has joined #zope3-dev22:43
*** timte has quit IRC22:52
*** reco_ has quit IRC22:55
*** reco has joined #zope3-dev22:56
*** alga has quit IRC22:59
*** greenman_ has joined #zope3-dev23:02
*** chtp__ has quit IRC23:05
*** RaFromBRC is now known as RaFromBRC|lunch23:07
*** dunny has joined #zope3-dev23:08
*** afd_ has quit IRC23:17
*** malthe has joined #zope3-dev23:21
*** whit|out is now known as whit23:23
*** pyqwer has quit IRC23:26
*** whit has quit IRC23:32
*** whit has joined #zope3-dev23:33
*** lucielejard has quit IRC23:39
*** rcrafton has quit IRC23:40
*** rcrafton has joined #zope3-dev23:40
*** harobed has joined #zope3-dev23:51
*** edgordon has quit IRC23:52
*** sunew has joined #zope3-dev23:55
*** RaFromBRC|lunch is now known as RaFromBRC23:59

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