*** povbot has joined #zope3-dev | 00:02 | |
newpers | i need to start selling all of my old books | 00:04 |
---|---|---|
newpers | or books i don't use | 00:04 |
newpers | out of curiousity, is anyone in here from the Phoenix area? | 00:04 |
* srichter just realized how cool viewlets are :-) | 00:04 | |
yota | ok, alpha french translation is done | 00:05 |
srichter | newpers: I am not, but I would be happy to come and give a talk or sprint there, if someone could cover flight and lodging costs | 00:06 |
srichter | yota: awesome! | 00:06 |
newpers | if you help me build this application that I'm working on, I'd be glad to | 00:06 |
newpers | heh | 00:07 |
yota | srichter: it's not, my work is totally buggy & stupid. I need to learn Zope3 in depth for a better translation | 00:07 |
srichter | yota: any translation is good; if people don't like it, they will complaina nd provide better suggestions :-) | 00:08 |
srichter | newpers: if you pay me for the development of the application :-) | 00:09 |
newpers | i'm debating | 00:09 |
yota | zope3 is great, we need absolutely the same quality with translation | 00:09 |
yota | I will send a report on the ml | 00:11 |
srichter | great | 00:11 |
srichter | yota: Zope 3 became good because of many iterations | 00:11 |
srichter | some parts of Zope 3 have been rewritten 3-4 times before 3.1 | 00:11 |
yota | with the list of msgid are difficult to translate | 00:12 |
yota | yes, totally agree with that, iteration is good | 00:12 |
srichter | I know, I have translated pure message strings myself | 00:13 |
*** Aiste has quit IRC | 00:15 | |
*** jhauser_ has joined #zope3-dev | 01:14 | |
*** VladDrac has quit IRC | 01:15 | |
*** anguenot has joined #zope3-dev | 01:23 | |
*** jhauser has quit IRC | 01:27 | |
*** yota has quit IRC | 01:38 | |
*** ksmith99 has quit IRC | 01:49 | |
*** projekt01 has joined #zope3-dev | 03:43 | |
projekt01 | srichter, ayt? | 03:46 |
srichter | projekt01: yep, just ot get off though :-) | 03:47 |
srichter | projekt01: I just checked in the new viewlet code | 03:47 |
projekt01 | me, too, I saw the commit | 03:47 |
srichter | I think it worked out really well | 03:48 |
projekt01 | Did you see the publisher bug reported in my mail? | 03:48 |
projekt01 | cool | 03:48 |
srichter | you should the read the README.txt | 03:48 |
srichter | no, please resend it; I have a look first thing in the morning | 03:49 |
srichter | ok, gotta go | 03:49 |
srichter | see ta | 03:49 |
projekt01 | I sent it to the zope3-dev list not to you | 03:50 |
projekt01 | Ok, see you tomorrow | 03:50 |
*** projekt01 has quit IRC | 03:51 | |
*** ksmith has joined #zope3-dev | 03:56 | |
ksmith | I'm trying to programmatically add content from a view, using zapi.createObject(self.context,'myproduct') doesn't seem to work | 03:57 |
ksmith | also tried zapi.createObject(None, 'myproduct'), is there something else I should be looking for? | 03:58 |
*** stub has joined #zope3-dev | 04:22 | |
*** roym has quit IRC | 05:09 | |
ksmith | I see, setitem :) | 05:17 |
*** yota has joined #zope3-dev | 07:35 | |
*** ksmith has quit IRC | 08:18 | |
*** zagy has joined #zope3-dev | 08:27 | |
*** strichter has joined #zope3-dev | 08:46 | |
*** srichter has quit IRC | 08:46 | |
*** _srichter has joined #zope3-dev | 08:54 | |
*** strichter has quit IRC | 08:54 | |
*** j-w has joined #zope3-dev | 09:19 | |
*** newpers has quit IRC | 10:01 | |
*** tarek has joined #zope3-dev | 10:07 | |
*** jhauser_ has quit IRC | 10:41 | |
*** jhauser has joined #zope3-dev | 10:41 | |
*** anguenot has quit IRC | 10:48 | |
*** mgedmin has joined #zope3-dev | 11:15 | |
*** Theuni has joined #zope3-dev | 11:16 | |
*** projekt01 has joined #zope3-dev | 11:42 | |
*** Alef has joined #zope3-dev | 11:44 | |
*** anguenot has joined #zope3-dev | 11:53 | |
*** anguenot has quit IRC | 11:55 | |
*** anguenot has joined #zope3-dev | 11:56 | |
*** vlado has joined #zope3-dev | 11:58 | |
*** alga has joined #zope3-dev | 12:04 | |
*** MJ has joined #zope3-dev | 12:10 | |
*** VladDrac has joined #zope3-dev | 12:12 | |
*** jack-e has joined #zope3-dev | 12:13 | |
*** Aiste has joined #zope3-dev | 12:17 | |
mgedmin | svn.zope.org spews BerkeleyDB errors again | 12:32 |
mgedmin | switch to a fsfs backend already! | 12:33 |
*** Theuni has quit IRC | 12:39 | |
*** Theuni has joined #zope3-dev | 12:40 | |
*** _projekt01 has joined #zope3-dev | 12:43 | |
*** jack-e has quit IRC | 12:45 | |
*** jack-e has joined #zope3-dev | 12:58 | |
*** _srichter is now known as srichter | 13:28 | |
*** ChanServ sets mode: +o srichter | 13:28 | |
*** _projekt01 has quit IRC | 13:31 | |
*** projekt01 has quit IRC | 13:32 | |
*** philiKON has joined #zope3-dev | 13:38 | |
*** projekt01 has joined #zope3-dev | 13:40 | |
*** philiKON is now known as philiCONF | 13:41 | |
srichter | philiCONF: did the Plone conference start today? | 13:41 |
philiCONF | yes | 13:41 |
srichter | philiCONF: is Jim there? | 13:41 |
philiCONF | yes | 13:41 |
philiCONF | just arrived | 13:41 |
srichter | philiCONF: could you ask him to fix the SVN repo please? | 13:41 |
srichter | it really hurts dev right now | 13:42 |
philiCONF | told him | 13:42 |
philiCONF | but he just got here | 13:42 |
projekt01 | srichter, did you read my bug report in the mail? Any idea where I can take a look for to fix this? | 13:51 |
*** jack-e has quit IRC | 13:53 | |
*** philiCONF has quit IRC | 13:56 | |
srichter | projekt01: probably your URL contains latin-1 and is not properly encoded | 13:57 |
srichter | I have a look | 13:57 |
*** Theuni has quit IRC | 13:57 | |
srichter | projekt01: a traceback might be nice or a list of all strings envolved | 13:57 |
projekt01 | srichter, the traceback is in the mail. There is not more then the error report from the error utility | 13:58 |
srichter | ok | 13:59 |
projekt01 | srichter, the methods are invoked in the following order: | 14:03 |
projekt01 | zope.publisher.publish.publish > zope.publisher.http.setResult > zope.publisher.browser._implicitResult > zope.publisher.browser.__insertBase | 14:03 |
*** jvts has quit IRC | 14:05 | |
*** Alef has quit IRC | 14:06 | |
*** Alef has joined #zope3-dev | 14:10 | |
*** stub has quit IRC | 14:20 | |
*** J1m has joined #zope3-dev | 14:23 | |
J1m | srichter, I fixed svn | 14:23 |
srichter | great thanks | 14:35 |
*** jack-e has joined #zope3-dev | 14:39 | |
mgedmin | yay! | 14:43 |
*** jinty has joined #zope3-dev | 14:47 | |
*** stub has joined #zope3-dev | 14:48 | |
*** baldtrol has joined #zope3-dev | 14:54 | |
*** jvts has joined #zope3-dev | 14:56 | |
projekt01 | srichter, why did you remove the zope.app.pagelet package? I was thinking we use a zope.app.viewlet package for the new implementation and deprecate the pagelet package? | 15:05 |
srichter | projekt01: because it had half of my refactorings in it | 15:06 |
srichter | if we revive one, it should be the one from the other branch | 15:06 |
projekt01 | which branch? | 15:07 |
*** niemeyer has joined #zope3-dev | 15:07 | |
*** wiggy is now known as wiggy_leiden | 15:08 | |
*** wiggy_leiden is now known as wiggy | 15:09 | |
projekt01 | Is the new viewlet implementation ready to use? Can I start refactoring the tiks repository? | 15:09 |
srichter | projekt01: yep | 15:11 |
srichter | all features are implemented | 15:11 |
*** Soulraven has joined #zope3-dev | 15:11 | |
projekt01 | cool, then it's Ok for me, hope nobody else was using pagelets ;-) | 15:11 |
srichter | btw, I noticed that your pageletchooser really provides the functionality of portlets | 15:12 |
srichter | projekt01: they will scream, if they did :-) | 15:12 |
projekt01 | Is there also a viewlet(s) directive? | 15:12 |
srichter | of course | 15:12 |
projekt01 | but not in the meta.zcml? | 15:13 |
srichter | there is no viewlets directive | 15:13 |
srichter | but a viewlet directive | 15:13 |
projekt01 | and what's about the viewlets directive? | 15:13 |
*** jack-e has quit IRC | 15:13 | |
projekt01 | for repeat them? | 15:13 |
srichter | there was never one | 15:13 |
srichter | you never had a pagelets directive either | 15:14 |
projekt01 | of corse | 15:14 |
*** jack-e has joined #zope3-dev | 15:14 | |
srichter | We can add it easily though | 15:14 |
projekt01 | how can you get more then one pagelet and repeat them? | 15:14 |
srichter | but should the region be part of the parent tag or be repeated all the time and what about the view attribute? | 15:15 |
*** Theuni has joined #zope3-dev | 15:15 | |
srichter | huh? | 15:15 |
projekt01 | does the viewlet directive return more then one viewlet and if you call them with name one return one? | 15:16 |
projekt01 | one return one/only return one | 15:16 |
srichter | no, the viewlet directive creates one unique viewlet | 15:17 |
projekt01 | Ah, sorry, I speak about the expression not about the directive ;-) | 15:17 |
projekt01 | It's Ok | 15:18 |
srichter | ah, the expressions are identical in their behavior as before | 15:18 |
projekt01 | Yup, I see, I try tomorrow to migrate the tiks skins and use the new viewlets | 15:19 |
projekt01 | I guess it should not be this different now with the manager implementation. | 15:20 |
*** Aiste has quit IRC | 15:24 | |
*** sashav has joined #zope3-dev | 15:25 | |
Soulraven | im having trouble seeing zope externally (http://www.zope-forum.org/forum/viewthread.php?FID=2&TID=4769) help would be VERY apriciated | 15:28 |
*** mgedmin has quit IRC | 15:30 | |
*** roym has joined #zope3-dev | 15:32 | |
roym | I have a schema field 'answer' with a vocabulary defined for it: | 15:32 |
roym | answer = Choice(title=u"Answers", vocabulary="MyVocabulary") | 15:32 |
roym | 15:32 | |
roym | However, when I use a <subwidget> decl, inside an editform: | 15:32 |
roym | <editform...> | 15:32 |
roym | <widget field="answer" class="anoobe.quiztaker.browser.widget.MyRadioWidget"/> | 15:32 |
roym | </editform> | 15:32 |
roym | the constructor for MyRadioWidget only seems to receive 3 args (not 4). | 15:32 |
roym | 15:32 | |
roym | I then have to have to define my __init__ as follows: | 15:32 |
roym | def __init__(self, field, request): | 15:32 |
roym | super(MyRadioWidget, self).__init__(field, field.vocabulary, request) | 15:32 |
roym | 15:32 | |
roym | How can I force the vocabulary to be passed in as an argument to the | 15:32 |
roym | subwidget. | 15:32 |
projekt01 | roym, did you use the right for attribute? | 15:34 |
projekt01 | roym, I mean did you register a view for the widget? | 15:34 |
roym | yes: | 15:35 |
roym | <zope:view | 15:35 |
roym | type="zope.publisher.interfaces.browser.IBrowserRequest" | 15:35 |
roym | for="zope.schema.interfaces.IChoice | 15:35 |
roym | anoobe.quiztaker.interfaces.IQuizTakerVocabularyTokenized" | 15:35 |
roym | provides="zope.app.form.interfaces.IDisplayWidget" | 15:35 |
roym | factory="zope.app.form.browser.itemswidgets.RadioWidget" | 15:35 |
roym | permission="anoobe.quiztaker.Public" | 15:35 |
roym | /> | 15:35 |
roym | sorry: factory="anoobe.quiztaker.browser.widget.MyRadioWidget" | 15:35 |
projekt01 | is MyRadioWidget a inherited RadioWidget? | 15:36 |
roym | as in: class MyRadioWidget(RadioWidget): | 15:37 |
projekt01 | what is defined in the interface for this field where is using the vocabulary? | 15:38 |
srichter | Soulraven: this is surely not a Zope issue; it must be a problem with your firewall or NAT table | 15:38 |
roym | the interface reads: answer = Choice(title=u"Answers", vocabulary="MyVocabulary") | 15:38 |
projekt01 | and the vocabulary? | 15:40 |
roym | <vocabulary | 15:40 |
roym | name="MyVocabulary" | 15:40 |
roym | factory="anoobe.quiztaker.qtmodule.QuizTakerVocabulary" | 15:40 |
roym | type="generic" | 15:40 |
roym | /> | 15:40 |
projekt01 | ok, use factory="zope.app.form.browser.RadioWidget" in the view directive and if this will work check the __init__ of MyRadioWidget | 15:41 |
projekt01 | super(MyRadioWidget, self).__init__(field, field.vocabulary, request) | 15:42 |
projekt01 | uses the super of ItemsEditWidgetBase | 15:43 |
projekt01 | which has a constructor like def __init__(self, field, vocabulary, request) | 15:43 |
projekt01 | that's not conform, right? | 15:44 |
roym | whats interesting is that if I use a radio widget in a custom form, all is fine (ie: it gets passed 4 args - including the vocabulary). | 15:45 |
roym | I am confused as to why the vocabulary is not passed in from the subwidget directive. | 15:45 |
projekt01 | roym, yes, this is really confusing, because Choice uses implicit a sequence. I allways run into this and don't remember how this exactly works the next time. | 15:46 |
roym | you are right about the call to super(...) needing 4 args. | 15:46 |
roym | should I just plan on having 2 different custom widgets (1 for the subwidget and 1 for the regular <form> usage) or is there a better way? | 15:48 |
projekt01 | take a look at the Choice, there you can see the implicit mechanism. Choice are something like a implicit sequence hook ;-( | 15:48 |
*** jack-e has quit IRC | 15:48 | |
roym | will do - thanks. | 15:49 |
projekt01 | no, you can use the RadioWidget as a Bool field widget, only the vocabulary of a Choice will start using the sequence. | 15:49 |
projekt01 | There is no need for two widget, it's only hard to understand how this Choice (vocabulary) sequence interacts | 15:50 |
roym | I need to read up on that - I always assumed Bool was for y/n schema fields only. | 15:50 |
*** mgedmin has joined #zope3-dev | 15:50 | |
projekt01 | RadioWidgets are not sequence widgets. | 15:51 |
*** mgedmin is now known as mgedmin|gprs | 15:51 | |
roym | are you saying that the value_type can be a Bool? | 15:53 |
projekt01 | It depends on your vocabulary what widget is used in the Choice sequence. | 15:54 |
roym | My vocabulary is multi-valued (ie >2) - would a Bool be applicable here? | 15:55 |
roym | are there any doc-tests or other docs that illustrate this point? | 15:56 |
projekt01 | take a look at itemswidgets.ChoiceDisplayWidget | 16:00 |
*** FarcePest has joined #zope3-dev | 16:01 | |
roym | projekt01: tks. | 16:06 |
projekt01 | np | 16:07 |
srichter | projekt01: btw, I am overall very happy with the outcome of the viewlet package | 16:08 |
srichter | only the mapping of variables using region fields does not feel quiet right yet; but it is the best I could think of so far | 16:08 |
projekt01 | srichter, yeah, btw, I guess the mapping is only used in some special usecases and not this often | 16:12 |
srichter | projekt01: right | 16:12 |
srichter | projekt01: though I came up with a really good one in the README.txt | 16:12 |
* projekt01 updating the trunk for take a look at the README.txt | 16:14 | |
*** jack-e has joined #zope3-dev | 16:15 | |
projekt01 | srichter, it's really a very good sample with the item as a Dict field. That's a really powerful and very good defined concept now! | 16:21 |
*** jack-e has left #zope3-dev | 16:24 | |
*** tvon has quit IRC | 16:24 | |
srichter | projekt01: I am glad you like it | 16:24 |
projekt01 | we can drink a beer a the neckar sprint together ;-) | 16:25 |
srichter | :-) OJ for me will be fine :-) | 16:25 |
srichter | projekt01: in the viewlet manager code I demonstrate how we could develop portlets | 16:26 |
projekt01 | where excatly? in the README or the manager.py? | 16:27 |
srichter | README.txt | 16:28 |
srichter | look for the "Viewlet Managers" section | 16:28 |
srichter | pretty much at the end | 16:28 |
*** efge has joined #zope3-dev | 16:28 | |
projekt01 | you mean by the sample which controls the column | 16:31 |
*** deo has joined #zope3-dev | 16:31 | |
srichter | yeah | 16:31 |
*** deo is now known as deo|conf | 16:33 | |
projekt01 | Ok, I see, it's cool, if you would use preferences then we could say show first column and second column. | 16:34 |
srichter | yep | 16:34 |
projekt01 | Yeah, that's what we need in the future for nice customable UI development | 16:35 |
*** stub has quit IRC | 16:39 | |
*** bradb has joined #zope3-dev | 16:43 | |
*** J1m has quit IRC | 16:59 | |
*** sashav has quit IRC | 17:00 | |
*** vlado has quit IRC | 17:14 | |
*** Theuni has quit IRC | 17:19 | |
*** clueck has joined #zope3-dev | 17:31 | |
*** niemeyer is now known as nie_visa_docs | 17:31 | |
*** jinty has quit IRC | 17:35 | |
*** Soulraven has quit IRC | 17:41 | |
*** alga has quit IRC | 17:42 | |
*** zagy_ has joined #zope3-dev | 17:49 | |
mgedmin|gprs | srichter, I've noticed that zope/app/viewlet/README.txt calls tempfile.mkdtemp, but doesn't clean it up later | 17:50 |
mgedmin|gprs | do you mind if I add a shutil.rmtree(temp_dir) at the end? | 17:50 |
srichter | no, not at all | 17:51 |
srichter | I just forgot to so that | 17:52 |
srichter | I just forgot to do that | 17:52 |
* mgedmin|gprs goes to the office now, will do that in 20 minutes, if srichter doesn't beat him to it | 17:52 | |
*** mgedmin|gprs has quit IRC | 17:52 | |
*** mgedmin has joined #zope3-dev | 18:06 | |
*** Aiste has joined #zope3-dev | 18:08 | |
*** zagy has quit IRC | 18:08 | |
*** MJ has quit IRC | 18:19 | |
*** deo|conf has quit IRC | 18:21 | |
*** MJ has joined #zope3-dev | 18:31 | |
*** j-w has quit IRC | 18:56 | |
*** MJ has quit IRC | 18:58 | |
*** nie_visa_docs is now known as niemeyer | 19:03 | |
*** regebro has joined #zope3-dev | 19:11 | |
*** sashav has joined #zope3-dev | 19:21 | |
*** roym` has joined #zope3-dev | 19:22 | |
*** jhauser has quit IRC | 19:23 | |
*** tarek has quit IRC | 19:27 | |
*** sashav has quit IRC | 19:43 | |
*** fcorrea has joined #zope3-dev | 19:49 | |
*** ex4 has joined #zope3-dev | 20:00 | |
*** roym` has quit IRC | 20:06 | |
*** clueck has quit IRC | 20:08 | |
*** jinty has joined #zope3-dev | 20:13 | |
*** SureshZ has joined #zope3-dev | 20:22 | |
srichter | projekt01: I think I fixed your publisher problem | 20:50 |
srichter | I'll have a checkin in a moment for you to try out | 20:50 |
*** regebro has quit IRC | 20:52 | |
srichter | projekt01: okay, chceked in; please let me know whether this fixes your problem | 20:59 |
srichter | I am 90% sure it does | 21:00 |
BjornT | srichter: even though your fix probably fixes the problem, i don't think it's a correct fix. the base URL should contain only ascii characters, if it doesn't, it's a bug somewhere else. | 21:09 |
BjornT | srichter: my guess is that self._app_server is a unicode string, even though it contains only ascii characters | 21:10 |
srichter | BjornT: in that case my fix is okay too, since it will just return an ASCII string | 21:11 |
srichter | note that Roger's problem was that he had a character outside ascii(128) | 21:11 |
BjornT | srichter: if base == u'foo', the encoded body will be converted to unicode, thus fail with a unicode error if the body contains non-ascii characters | 21:13 |
BjornT | srichter: sure, your fix fixes the problem, but i think that base = str(self.getBase()) also would fix it | 21:14 |
srichter | no, it would not | 21:14 |
srichter | see Roger's bug report | 21:14 |
BjornT | i've seen it | 21:14 |
srichter | > 'ascii' codec can't decode byte 0xc3 in position 891: ordinal | 21:16 |
srichter | > not in range(128) | 21:16 |
srichter | so clearly just str'ing it would not work | 21:16 |
BjornT | srichter: so, you think that self._base is more than 891 characters long? ;) | 21:18 |
srichter | probably not | 21:18 |
BjornT | if body is a normal string with non-ascii characters, body + u'foo' will fail with the same error | 21:19 |
srichter | if the problem still persists, then probably the body is still unicode somewhere, which is harder to track down | 21:19 |
BjornT | body + 'foo' will succeed, though | 21:19 |
srichter | oh, it might have been that then | 21:19 |
srichter | I see | 21:20 |
srichter | feel free to fix my fix :-) | 21:20 |
BjornT | srichter: as i said, my guess is that self._app_server is a unicode string, thus getURL() also returns a unicode string | 21:20 |
BjornT | srichter: i might fix it later if you don't, don't have time now :) | 21:21 |
srichter | ok | 21:21 |
*** fcorrea has quit IRC | 21:27 | |
srichter | BjornT: actually, if _app_server is a unicode string, it might contain decoded characters | 21:42 |
srichter | no? | 21:42 |
BjornT | srichter: i'd say, it should always be a normal string, since we have no logic for encoding it properly (there are more than one way of doing it). i think it's only unicode today by accident. | 21:46 |
*** mgedmin has quit IRC | 21:46 | |
srichter | ok, what about unicode object ids? | 21:46 |
srichter | BjornT: do you know what happens in those cases? | 21:46 |
BjornT | what do you mean with unicode object ids? | 21:46 |
SteveA | why should object ids have anything directly to do with URLs ? | 21:47 |
srichter | well, objects in the ZPDB have unicode obejct ids | 21:47 |
srichter | what happens with those? | 21:47 |
SteveA | you mean "object's unique names within containers" i think | 21:47 |
SteveA | more like object __names__ | 21:47 |
srichter | yes | 21:47 |
SteveA | um, __name__s | 21:47 |
srichter | I mean the object.__name__ values | 21:47 |
SteveA | so, even today, these need to be encoded somehow to appear as part of a URL | 21:48 |
SteveA | it is a presentation issue | 21:48 |
BjornT | oh, those are already encoded properly. the only thing getURL returns that aren't ensured to be ascii only, is self._app_server | 21:48 |
srichter | ok, I see | 21:48 |
*** SureshZ has quit IRC | 21:52 | |
*** VargR has joined #zope3-dev | 21:54 | |
*** anguenot has quit IRC | 21:55 | |
*** SureshZ has joined #zope3-dev | 21:56 | |
*** Alef has quit IRC | 22:11 | |
*** dman13 has joined #zope3-dev | 22:23 | |
*** SureshZ has quit IRC | 22:34 | |
*** sashav has joined #zope3-dev | 23:02 | |
*** tvon has joined #zope3-dev | 23:09 | |
*** baldtrol has left #zope3-dev | 23:12 | |
*** sashav has quit IRC | 23:15 | |
*** benji_york has joined #zope3-dev | 23:22 | |
*** fdrake has joined #zope3-dev | 23:32 | |
*** efge has quit IRC | 23:39 | |
fdrake | srichter: do you know of any zpkg issues that need to be dealt with soon? | 23:43 |
fdrake | I'm planning to release zpkg 1.0 "soonish." | 23:44 |
*** VargR has quit IRC | 23:44 | |
*** clueck has joined #zope3-dev | 23:55 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!