*** sashav has quit IRC | 01:09 | |
*** lunatik has joined #zope3-dev | 01:28 | |
*** MiUlEr has joined #zope3-dev | 01:32 | |
*** yota has quit IRC | 01:42 | |
*** MiUlEr has quit IRC | 02:08 | |
*** tiredbones has joined #zope3-dev | 02:17 | |
*** peaceman_ has quit IRC | 03:42 | |
*** sashav has joined #zope3-dev | 04:14 | |
*** sashav has quit IRC | 04:15 | |
*** vlado has quit IRC | 04:33 | |
*** projekt01 has joined #zope3-dev | 04:44 | |
*** projekt01 has left #zope3-dev | 04:55 | |
*** bskahan has quit IRC | 05:15 | |
*** sashav has joined #zope3-dev | 06:00 | |
*** peaceman has joined #zope3-dev | 10:07 | |
*** sashav has joined #zope3-dev | 10:27 | |
*** peaceman has quit IRC | 10:35 | |
*** MJ has quit IRC | 11:42 | |
*** MJ has joined #zope3-dev | 11:57 | |
*** PythIRC has joined #zope3-dev | 12:05 | |
*** lunatik has left #zope3-dev | 13:02 | |
*** yota has joined #zope3-dev | 13:06 | |
*** vlado has joined #zope3-dev | 13:07 | |
*** drzoltron_ has joined #zope3-dev | 13:24 | |
drzoltron_ | HI ! | 13:24 |
---|---|---|
drzoltron_ | How do I build a series of .cpt's and .cpy's in z3 ? | 13:24 |
*** xenru has joined #zope3-dev | 13:56 | |
*** MJ has quit IRC | 13:57 | |
*** MJ has joined #zope3-dev | 13:59 | |
*** projekt01 has joined #zope3-dev | 14:06 | |
*** xenru has quit IRC | 14:08 | |
*** drzoltron_ has quit IRC | 14:17 | |
*** peaceman has joined #zope3-dev | 14:42 | |
*** sashav has quit IRC | 15:26 | |
*** MJ has quit IRC | 15:33 | |
*** sashav has joined #zope3-dev | 15:56 | |
*** sashav has quit IRC | 16:27 | |
*** sashav has joined #zope3-dev | 16:27 | |
*** sashav_ has joined #zope3-dev | 16:44 | |
*** mgedmin has joined #zope3-dev | 17:08 | |
*** sashav has quit IRC | 17:08 | |
*** roym has joined #zope3-dev | 17:18 | |
roym | Folks, Quite frequently, when I try to add object to the site manager, | 17:31 |
roym | I get errors of the following sort. Any ideas as to what I might be | 17:31 |
roym | missing (I am using the latest version of trunk and have created a | 17:31 |
roym | brand-new zope instance). | 17:31 |
roym | 17:31 | |
roym | ... | 17:31 |
roym | File "/usr/local/Zope3-trunk/src/zope/interface/adapter.py", line | 17:31 |
roym | 481, in queryMultiAdapter | 17:31 |
roym | return factory(*objects) | 17:31 |
roym | File "/usr/local/Zope3-trunk/src/zope/app/component/metaconfigure.py", | 17:31 |
roym | line 387, in __call__ | 17:31 |
roym | return proxify(self.factory(*objects), self.checker) | 17:31 |
roym | TypeError: __init__() takes exactly 4 arguments (3 given) | 17:31 |
projekt01 | romy, this looks like a error from a widget used on a field. | 17:35 |
projekt01 | romy, try to print out the *objects and you see what objects are involved | 17:36 |
mgedmin | it's amazing to see how many ways the word 'utility' is misspelt in doc/CHANGES.txt | 17:40 |
roym | projekt01: the last set of values for objects is: (<zope.schema._field.Choice object at 0x44cf8acc>, <zope.publisher.browser.BrowserRequest instance URL=http://michelle:8080/++etc++site/default/pluggable-auth-utility/group-folder/addRegistration.html>) | 17:52 |
roym | do I need to do a make clean before building zope trunk? is it possible that the pyc code is stale? | 17:54 |
*** mgedmin has quit IRC | 17:55 | |
roym | did a make clean and re-ran; didn't make a difference! | 17:56 |
*** sashav_ has quit IRC | 18:00 | |
roym | a search on google brings up this issue exactly once: | 18:09 |
roym | http://mail.zope.org/pipermail/zope3-dev/2004-April/010721.html | 18:09 |
roym | According to the post, it was fixed in CVS in 2004... surely the | 18:10 |
roym | svn version is more than upto-date - or am I wrong in assuming that? | 18:10 |
projekt01 | roym, the svn trunk should work | 18:11 |
*** MJ has joined #zope3-dev | 18:11 | |
projekt01 | Can you explain when exactly fails? I guess if you will call a view? right? | 18:12 |
projekt01 | roym, there is a mess in lookup a choice vocabulary for a field. What did you call? the group folders addRegistration? | 18:14 |
roym | Here are the steps: | 18:16 |
roym | 1) In my 'default' site management folder, I am adding a pluggable | 18:16 |
roym | auth utility. | 18:16 |
roym | 2) In this utility, I then succcesfully add a 'principal folder'. | 18:16 |
roym | 3) The error happens when I try to register the principal folder. | 18:16 |
projekt01 | roym, how did you activate the PAU? unnamed? | 18:21 |
*** bradb has left #zope3-dev | 18:21 | |
roym | no, it was named "pluggable-auth-utility" | 18:22 |
roym | If I revisit the PAU, I see that it now has the contents - so it looks like the error | 18:22 |
projekt01 | You mean the name of the PAU use int he folder or the activation name? | 18:22 |
roym | the contents view name is "pluggable-auth-utility" | 18:23 |
roym | I am not sure what the registration name is. How do I find out? | 18:23 |
roym | ah - I see that it is <no name> | 18:24 |
roym | from .../++etc++site/default/++registrations++/@@index.html | 18:24 |
roym | Is this bad? | 18:24 |
projekt01 | No, that's OK, this is called the registration name, the PAU is allways "unnamed" | 18:25 |
projekt01 | Let me checkout the trunk and follow your sample | 18:26 |
roym | thanks a lot. | 18:27 |
projekt01 | roym, if you go to the configuration view of the PAU, do you see a field on the left side with a word "principal" inside? | 18:32 |
roym | The 4 that I see are: | 18:34 |
roym | Group Folder/HTTP Basic-Auth Plugin/Principal Folder/Session Credentials Plugin | 18:35 |
projekt01 | and in the field "Authenticator Plugins | 18:35 |
roym | the same 4 appear... | 18:36 |
projekt01 | are you sure? | 18:37 |
roym | I just realized that this may be my error... | 18:37 |
roym | In my etc/overrides.zcml, I have the following: | 18:37 |
roym | <configure package="zope.app.form.browser"> | 18:38 |
roym | <view | 18:38 |
roym | type="zope.publisher.interfaces.browser.IBrowserRequest" | 18:38 |
roym | for="zope.schema.interfaces.IChoice" | 18:38 |
roym | provides="zope.app.form.interfaces.IInputWidget" | 18:38 |
roym | factory="zope.app.form.browser.itemswidgets.RadioWidget" | 18:38 |
roym | permission="anoobe.quiztaker.Public" | 18:38 |
roym | /> | 18:38 |
projekt01 | For what will use a RadioWidget? | 18:39 |
roym | I was hoping to use the RadioWidget to force exactly one choice to be selected by the user. | 18:39 |
projekt01 | If you like to use a Radio widget you can register the RadioWidget for a Choice like | 18:40 |
projekt01 | for="...IChoice IMyOwnVocabulary" | 18:40 |
projekt01 | a sequence is used in this case, but you need a own vocabulary | 18:40 |
projekt01 | e.g. IMyVocabulary | 18:40 |
projekt01 | And in the field you can use your own voabulary like myAttr = Choice (vocabulary=IMyOwnVocabulary) | 18:41 |
roym | I see: so you are saying that the adapter chosen becomes specific to the combination of (IChoice,IBrowserRequest and the Vocabulary) rather than just (IChoice and IBrowserRequest). | 18:43 |
projekt01 | Yup, that's your missing 4 th argument where I told before | 18:43 |
roym | Thankyou - that was a very educational experience. | 18:44 |
*** sashav has joined #zope3-dev | 18:44 | |
projekt01 | Ok, have a nice weekend. | 18:45 |
*** Aiste has joined #zope3-dev | 19:11 | |
*** xenru has joined #zope3-dev | 19:11 | |
*** tiredbones has quit IRC | 19:19 | |
*** d2m has quit IRC | 19:23 | |
*** d2m has joined #zope3-dev | 19:35 | |
*** tiredbones has joined #zope3-dev | 20:25 | |
*** xenru has quit IRC | 20:50 | |
*** MiUlEr has joined #zope3-dev | 20:58 | |
*** MiUlEr has quit IRC | 22:07 | |
*** mgedmin has joined #zope3-dev | 22:30 | |
*** xenru has joined #zope3-dev | 22:49 | |
*** sashav_ has joined #zope3-dev | 23:06 | |
*** sashav has quit IRC | 23:08 | |
*** sashav_ has quit IRC | 23:46 | |
*** sashav has joined #zope3-dev | 23:48 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!