*** povbot has joined #zope3-dev | 16:27 | |
*** afd_ has quit IRC | 16:27 | |
*** run|home has quit IRC | 16:30 | |
*** quodt has joined #zope3-dev | 16:31 | |
*** ignas has quit IRC | 16:31 | |
*** goschtl has joined #zope3-dev | 16:37 | |
*** ignas has joined #zope3-dev | 16:48 | |
*** jpcw2002_ has joined #zope3-dev | 16:53 | |
*** jpcw2002 has quit IRC | 17:02 | |
*** jpcw2002_ has left #zope3-dev | 17:03 | |
*** jpcw2002 has joined #zope3-dev | 17:14 | |
*** gimni has joined #zope3-dev | 17:17 | |
*** jayaraj has quit IRC | 17:23 | |
goschtl | hi is it possible to display a formlib action only if the user has a special permisson? | 17:24 |
---|---|---|
*** sm has joined #zope3-dev | 17:24 | |
*** jodok has quit IRC | 17:26 | |
*** reedobrien has joined #zope3-dev | 17:29 | |
*** sorindregan has quit IRC | 17:29 | |
*** jodok has joined #zope3-dev | 17:33 | |
mgedmin | yes... | 17:34 |
mgedmin | add a condition on the action | 17:34 |
mgedmin | that uses zope.security.checkPermission | 17:34 |
goschtl | mgedmin: ok i have found this | 17:34 |
goschtl | but i get an error i think this is an grok error i will as in grok channel thanks.... | 17:35 |
*** redir has quit IRC | 17:36 | |
*** J1m has joined #zope3-dev | 17:39 | |
*** baijum has quit IRC | 17:43 | |
*** rmarianski has joined #zope3-dev | 17:44 | |
*** philiKON_ is now known as philiKON | 17:49 | |
*** reco has quit IRC | 17:54 | |
*** reco has joined #zope3-dev | 17:54 | |
*** djohnson has joined #zope3-dev | 17:55 | |
*** stub has quit IRC | 17:55 | |
*** stub has joined #zope3-dev | 17:57 | |
*** timte has quit IRC | 18:06 | |
*** afd_ has joined #zope3-dev | 18:06 | |
*** tarek has joined #zope3-dev | 18:07 | |
*** nathany has joined #zope3-dev | 18:07 | |
*** srichter has quit IRC | 18:08 | |
*** zagy has quit IRC | 18:10 | |
*** srichter has joined #zope3-dev | 18:12 | |
*** ChanServ sets mode: +o srichter | 18:18 | |
*** whit has quit IRC | 18:20 | |
*** MJ has quit IRC | 18:20 | |
*** sunew has joined #zope3-dev | 18:21 | |
*** sunew has quit IRC | 18:22 | |
*** sunew has joined #zope3-dev | 18:22 | |
*** goschtl has quit IRC | 18:26 | |
*** regebro has quit IRC | 18:27 | |
*** projekt01 has quit IRC | 18:28 | |
*** ignas has quit IRC | 18:28 | |
*** whit has joined #zope3-dev | 18:35 | |
*** sunew has quit IRC | 18:35 | |
*** stub has quit IRC | 18:38 | |
*** reedobrien has quit IRC | 18:39 | |
*** maurits has quit IRC | 18:47 | |
*** stub has joined #zope3-dev | 18:55 | |
malthe | how to provide z3c.form.interfaces.ITerms for a Choice field? | 18:56 |
pyqwer | malthe: Hmmm, don't you use vocabularies? | 19:00 |
malthe | pyqwer: I need access to the form | 19:00 |
malthe | form data, really | 19:00 |
malthe | the vocab just give me a context | 19:00 |
*** gimni has quit IRC | 19:01 | |
pyqwer | That's true. | 19:01 |
malthe | i'm not really getting the idea I think | 19:01 |
pyqwer | But why do you need the form data in the vocabulary? | 19:01 |
pyqwer | Can you describe your use case? | 19:01 |
*** zagy has joined #zope3-dev | 19:01 | |
*** jukart has quit IRC | 19:01 | |
malthe | I present a search-field (textline), then display a list of results. | 19:02 |
malthe | in the same form; so sometimes there will be no results, sometimes plenty. | 19:02 |
malthe | but they depend on the form data | 19:02 |
philiKON | ick, vocabularies | 19:02 |
malthe | hehe | 19:02 |
philiKON | malthe: i think your question is typical for vocabularies | 19:03 |
philiKON | because they don't properly separate the data | 19:03 |
philiKON | and the representation of that data | 19:03 |
philiKON | searching the data isn't something the vocab should have to do | 19:03 |
pyqwer | malthe: I don't really get it - why not simply display the search results below the text line? | 19:03 |
malthe | true | 19:03 |
philiKON | look at plone's UberSelectWidget | 19:03 |
philiKON | it's a generic search thing for all sources | 19:03 |
malthe | pyqwer: well I'd like users to choose from them :-) | 19:03 |
philiKON | (sources being the better alternative to vocabularies) | 19:03 |
pyqwer | Ah, now I get it. | 19:04 |
malthe | philiKON: cool thanks | 19:04 |
philiKON | malthe: 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 source | 19:04 |
philiKON | (only the representation (terms) and the searching (queriable) adapters have to be customized each time) | 19:05 |
malthe | ah now I understand the solution | 19:05 |
malthe | the solution is that there is no Choice-based solution | 19:05 |
malthe | errr.. rather | 19:05 |
malthe | it needs a particular widget | 19:05 |
philiKON | no, it uses Choice | 19:05 |
philiKON | which is just the schema field | 19:05 |
*** toutpt has quit IRC | 19:05 | |
malthe | right | 19:05 |
philiKON | right, it's up to the widget | 19:05 |
malthe | good thing this is plone; I can just grab their widget | 19:06 |
pyqwer | Ok, I think I know how to do it: In your action handler, you write the search results in a session. | 19:06 |
philiKON | ugh, weird | 19:06 |
malthe | pyqwer: hehe yes that's good | 19:06 |
philiKON | pyqwer: you don't really do anything in the action handler | 19:06 |
philiKON | pyqwer: because it isn't called | 19:07 |
pyqwer | philiKON: Why so? If you press the "search" button, it will be called. | 19:07 |
philiKON | action handlers are only called when their respective button is pushed | 19:07 |
philiKON | but the search button isn't an action | 19:07 |
philiKON | it's part of the widget | 19:07 |
philiKON | at least that's hwo it should be | 19:07 |
philiKON | after all, you could have multiple choice fields on the same form | 19:08 |
pyqwer | Hmmm, 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 |
philiKON | once you hit the search button, it displays a list of possible matches | 19:10 |
philiKON | e.g. in a drop down box | 19:10 |
malthe | philiKON: thanks a bunch; later. | 19:10 |
philiKON | bye | 19:10 |
pyqwer | Ok, I think I got it now... | 19:11 |
pyqwer | philiKON: btw., did you have a look at my recursive translation patch? | 19:11 |
philiKON | pyqwer: yeah, i still have some comments | 19:14 |
philiKON | haven't finished those yet | 19:14 |
pyqwer | philiKON: Ok. What I don't know is the following: I needed to add an extra parameter to the translate() function. | 19:15 |
philiKON | yes, that's a problem | 19:15 |
pyqwer | This is only for preventing endless recursions. | 19:15 |
philiKON | i know | 19:15 |
pyqwer | Should this parameter be listed in the interface or not? | 19:15 |
philiKON | i sent my comments now | 19:15 |
philiKON | we mustn't change the interface | 19:15 |
philiKON | i can't spare much time for thinking about this now | 19:16 |
philiKON | perhaps there's a more elgant solution | 19:16 |
pyqwer | Yes, 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 |
philiKON | hmm, it's just the function | 19:17 |
philiKON | dunno | 19:17 |
philiKON | have to think about this | 19:18 |
philiKON | must go now | 19:18 |
pyqwer | The test does not fail. | 19:18 |
hazmat | isn't that how sourcequerieables are supposed to work? | 19:18 |
pyqwer | Ok, thanks for now! | 19:18 |
philiKON | hazmat: yup, that's what source queriables are for | 19:18 |
philiKON | hazmat: they are used by the widget | 19:18 |
philiKON | hazmat: the widget will typically adapt the source to two interfaces, ISourceQueriable and ITerms | 19:18 |
philiKON | the first one lets the widget search the data | 19:18 |
philiKON | the second one lets the widget show the results | 19:19 |
philiKON | small sources can simply be iterated over | 19:19 |
philiKON | and thus only ITerms is needed | 19:19 |
*** jsadjohnson has quit IRC | 19:19 | |
hazmat | right, but does z3c.form provide for sourcequeryable views? | 19:19 |
philiKON | dunno | 19:20 |
philiKON | note that the queriable adapters are specific for each source | 19:20 |
*** whit has quit IRC | 19:20 | |
philiKON | because ISource doesn't really specify searching capabilities | 19:20 |
philiKON | that's what ISourceQueriable is for | 19:20 |
hazmat | right. the zc.security package has some formlib based examples.. | 19:21 |
*** J1m has quit IRC | 19:22 | |
*** stub has quit IRC | 19:24 | |
*** whit has joined #zope3-dev | 19:26 | |
*** malthe has quit IRC | 19:28 | |
*** arnarl has quit IRC | 19:30 | |
*** J1m has joined #zope3-dev | 19:35 | |
*** redir has joined #zope3-dev | 19:40 | |
*** natea__ has quit IRC | 19:41 | |
*** eeeccomb has joined #zope3-dev | 19:41 | |
*** ignas has joined #zope3-dev | 19:43 | |
*** eeeccomb has quit IRC | 19:46 | |
*** dobee has quit IRC | 19:46 | |
hazmat | does anyone know the administrative contact for pypi | 19:48 |
*** eeeccomb has joined #zope3-dev | 19:50 | |
*** whit is now known as whit|out | 19:51 | |
*** b52lap has quit IRC | 19:53 | |
*** quodt has quit IRC | 19:55 | |
*** toko has quit IRC | 19:58 | |
*** jukart has joined #zope3-dev | 20:10 | |
*** zagy has quit IRC | 20:15 | |
*** alecm has joined #zope3-dev | 20:15 | |
*** RaFromBRC has joined #zope3-dev | 20:15 | |
*** reedobrien has joined #zope3-dev | 20:17 | |
*** mkerrin has quit IRC | 20:19 | |
*** jukart has quit IRC | 20:20 | |
*** eeeccomb has quit IRC | 20:23 | |
*** redir has quit IRC | 20:26 | |
*** jodok has quit IRC | 20:27 | |
*** quodt has joined #zope3-dev | 20:30 | |
*** zagy has joined #zope3-dev | 20:36 | |
*** djohnson has quit IRC | 20:39 | |
*** dobee has joined #zope3-dev | 20:42 | |
*** dobee has quit IRC | 20:42 | |
*** djohnson has joined #zope3-dev | 20:42 | |
*** dobee has joined #zope3-dev | 20:42 | |
*** jpcw2002 has left #zope3-dev | 20:49 | |
*** zagy has quit IRC | 20:51 | |
*** agroszer_ has joined #zope3-dev | 20:54 | |
*** mgedmin has quit IRC | 20:56 | |
*** agroszer has quit IRC | 21:07 | |
*** djohnson has quit IRC | 21:15 | |
*** djohnson has joined #zope3-dev | 21:17 | |
*** timte has joined #zope3-dev | 21:23 | |
*** tarek has quit IRC | 21:35 | |
*** b52laptop has joined #zope3-dev | 21:38 | |
*** dobee has quit IRC | 21:39 | |
*** ignas has quit IRC | 21:44 | |
*** djohnson has quit IRC | 21:51 | |
*** reco_ has joined #zope3-dev | 22:05 | |
*** reco has quit IRC | 22:21 | |
*** jpcw2002 has joined #zope3-dev | 22:23 | |
*** agroszer_ has quit IRC | 22:32 | |
*** bigkevmcd has quit IRC | 22:42 | |
*** bigkevmcd has joined #zope3-dev | 22:43 | |
*** timte has quit IRC | 22:52 | |
*** reco_ has quit IRC | 22:55 | |
*** reco has joined #zope3-dev | 22:56 | |
*** alga has quit IRC | 22:59 | |
*** greenman_ has joined #zope3-dev | 23:02 | |
*** chtp__ has quit IRC | 23:05 | |
*** RaFromBRC is now known as RaFromBRC|lunch | 23:07 | |
*** dunny has joined #zope3-dev | 23:08 | |
*** afd_ has quit IRC | 23:17 | |
*** malthe has joined #zope3-dev | 23:21 | |
*** whit|out is now known as whit | 23:23 | |
*** pyqwer has quit IRC | 23:26 | |
*** whit has quit IRC | 23:32 | |
*** whit has joined #zope3-dev | 23:33 | |
*** lucielejard has quit IRC | 23:39 | |
*** rcrafton has quit IRC | 23:40 | |
*** rcrafton has joined #zope3-dev | 23:40 | |
*** harobed has joined #zope3-dev | 23:51 | |
*** edgordon has quit IRC | 23:52 | |
*** sunew has joined #zope3-dev | 23:55 | |
*** RaFromBRC|lunch is now known as RaFromBRC | 23:59 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!