*** sashav has quit IRC | 00:13 | |
*** hazmat has quit IRC | 00:13 | |
*** sashav has joined #zope3-dev | 00:13 | |
*** alga has quit IRC | 00:30 | |
*** mgedmin has quit IRC | 00:31 | |
*** niemeyer has quit IRC | 00:31 | |
*** jhauser_ has quit IRC | 00:42 | |
*** gintas has quit IRC | 00:44 | |
*** hazmat has joined #zope3-dev | 00:49 | |
*** tziade_ has joined #zope3-dev | 00:55 | |
*** tziade_ is now known as tarek_ | 00:55 | |
*** mexiKON has joined #zope3-dev | 01:44 | |
*** tarek_ has quit IRC | 02:04 | |
*** philiKON has quit IRC | 02:07 | |
Damascene | weird. for half a second http://www.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/FrontPage/Zope3Book looked like a default plone setup heh. | 02:51 |
---|---|---|
Damascene | i wonder if it's some weird IE or squid caching issue on my end | 02:51 |
*** hazmat has quit IRC | 03:49 | |
*** sashav has quit IRC | 03:53 | |
*** Fosten has joined #zope3-dev | 06:11 | |
*** d2m has quit IRC | 07:22 | |
zagy | moin | 08:50 |
*** Theuni has joined #zope3-dev | 09:25 | |
*** hdima has joined #zope3-dev | 09:32 | |
Damascene | wow people are awake! | 09:39 |
Damascene | oh wait, probably in europe... | 09:39 |
*** jhauser has joined #zope3-dev | 09:41 | |
*** sashav has joined #zope3-dev | 09:57 | |
*** zagy_ has joined #zope3-dev | 10:14 | |
*** zagy has quit IRC | 10:18 | |
*** zagy__ has joined #zope3-dev | 10:26 | |
*** zagy_ has quit IRC | 10:34 | |
*** tav_ has joined #zope3-dev | 10:36 | |
*** tav has quit IRC | 10:38 | |
*** mooded has joined #zope3-dev | 10:45 | |
*** tav_ has quit IRC | 11:02 | |
*** tav has joined #zope3-dev | 11:27 | |
*** jack-e has joined #zope3-dev | 11:29 | |
*** MalcolmC has joined #zope3-dev | 11:29 | |
*** Theuni has quit IRC | 12:40 | |
*** mooded has left #zope3-dev | 12:49 | |
*** mgedmin has joined #zope3-dev | 13:04 | |
*** sashav has quit IRC | 13:07 | |
mexiKON | srichter, webdav is hosed on the trunk | 13:12 |
srichter | ok | 13:13 |
srichter | why? | 13:13 |
mexiKON | when i do cadaver http://localhost:8080 | 13:13 |
mexiKON | a) it asks me for credentials (it shouldn't do taht) | 13:13 |
mexiKON | b) when i give them a zope.Manager account, it throws an error | 13:13 |
mexiKON | Traceback (most recent call last): | 13:13 |
mexiKON | File "/Users/philipp/dev/Zope3/src/zope/app/publication/zopepublication.py", line 296, in handleException | 13:13 |
mexiKON | name = zapi.getDefaultViewName(exception, request) | 13:13 |
mexiKON | File "/Users/philipp/dev/Zope3/src/zope/app/publisher/browser/__init__.py", line 76, in getDefaultViewName | 13:13 |
mexiKON | context, request) | 13:13 |
mexiKON | ComponentLookupError: ("Couldn't find default view name", None, <zope.publisher.http.HTTPRequest instance URL=http://localhost:8080>) | 13:13 |
srichter | please file a bug report | 13:17 |
*** gintas has joined #zope3-dev | 13:22 | |
mexiKON | srichter, http://collector.zope.org/Zope3-dev/369 | 13:23 |
srichter | thanks | 13:23 |
*** regebro has joined #zope3-dev | 13:52 | |
regebro | Good moo.. afternoon, everybody! | 13:52 |
*** gintas has quit IRC | 13:52 | |
regebro | Is there a way to get a list of checkboxes as a Widget for some sort of List field or so? | 13:53 |
regebro | The multiple selection listbox aint exactly a favourite... ;-) | 13:53 |
mgedmin | I see a MultiCheckBoxWidget | 13:57 |
mgedmin | I haven't used it, though | 13:57 |
jhauser | look for which fields this is registered | 13:57 |
jhauser | I remember it is subtable dependand on the dataformat of the field and vocab or something | 13:58 |
regebro | Well, too subtle for me obviously... | 14:00 |
regebro | The registration is done in ZCML right= | 14:00 |
regebro | It doesn't seem to be registered at all. :-/ | 14:01 |
mgedmin | I think it is usable with Set fields, but is not registered as the default widget | 14:02 |
mgedmin | you have to explicitly use a CustomWidgetFactory to choose it | 14:02 |
mgedmin | or perhaps a CustomSequenceWidgetFactory? | 14:03 |
* mgedmin shrugs | 14:03 | |
regebro | OK, too complicated. I don't have the time to learn that. Thanks anyway. | 14:03 |
mgedmin | zope 3 widgets need love | 14:03 |
mgedmin | everyone abandons them because they're too complicated | 14:03 |
* mgedmin included | 14:03 | |
mgedmin | :( | 14:03 |
regebro | So obviously we need to do something about that... | 14:04 |
BjornT | regebro: if you use an addform or editform, you can use <widget field="..." class="..."> to use another widget for a specific field | 14:04 |
regebro | Aha! | 14:04 |
regebro | So I then make the editform statement into a complex statement (instead of ending it with /> ), right? | 14:06 |
BjornT | yeah | 14:06 |
regebro | testing......nah. Didn't work. (This is Five). | 14:08 |
regebro | Incompatible root metatypes. Gah. It will have to wait. | 14:09 |
mgedmin | regebro, a possible simple solution is to keep using the multiselection listbox and render the checkboxes manually in the page template | 14:14 |
regebro | Anything is possible. Howver, anything that takes more than five minutes is currently out of the question. ;) | 14:14 |
mgedmin | a <tal:repeat > should take five minutes, assuming you already are using the listbox widget and want to replace it with checkboxes | 14:15 |
*** niemeyer has joined #zope3-dev | 14:20 | |
*** jack-e is now known as jack-e|away | 14:28 | |
*** alga has joined #zope3-dev | 14:33 | |
*** J1m has joined #zope3-dev | 14:37 | |
regebro | mgedmin: No, I'm using an editform. Creating a special form takes more than five minutes. But thanks for your help anyway. | 14:39 |
*** gintas has joined #zope3-dev | 14:46 | |
*** regebro has quit IRC | 14:46 | |
*** zagy__ is now known as zagy | 14:58 | |
*** mgedmin has quit IRC | 15:01 | |
*** Theuni has joined #zope3-dev | 15:16 | |
*** vlado has joined #zope3-dev | 15:33 | |
*** tvon has quit IRC | 15:34 | |
Damascene | looking at the zwiki code, i'm not sure what this means. " IWikiPageHierarchy(page) " page is a part of his container's items. is he somehow casting the page using an Interface? I didn't think interfaces could be treated as constructors at all? | 15:36 |
J1m | srichter, ayt? | 15:40 |
srichter | yeah | 15:40 |
*** gintas has quit IRC | 15:40 | |
J1m | Do we now set __parent__ on adapters automatically? | 15:40 |
srichter | good question | 15:41 |
srichter | parent is set on views during traversal | 15:41 |
J1m | ah | 15:41 |
J1m | k | 15:41 |
srichter | but I am not sure about adapters; they must because otherwise security would not work | 15:41 |
J1m | No | 15:42 |
J1m | adapters are rarely proxied | 15:42 |
srichter | some are; the trusted="true" attribute is used fairly frequently now | 15:42 |
srichter | actually. every time an adapter involves annotations, which is common in end user applications, I would think | 15:43 |
J1m | True | 15:43 |
J1m | But these typically get zope.Public | 15:43 |
J1m | Or, I imagine that their factiries set __parent__ | 15:43 |
srichter | I simply do not know but I guess they would | 15:44 |
J1m | hm | 15:45 |
J1m | The TrustedAdapterFactory sets __parent__ | 15:46 |
*** sashav has joined #zope3-dev | 15:51 | |
Damascene | if an adapter creates an instance (with the implementation details of an interface inside) for a single interface. does a multiadapter create a single instance with multiple adapters's methods implemented in a single instance (the adapted result). | 16:25 |
J1m | No, a multiple adapter adapts multiple objects to a single interface. | 16:26 |
*** mgedmin has joined #zope3-dev | 16:37 | |
*** hazmat has joined #zope3-dev | 16:44 | |
*** gintas has joined #zope3-dev | 16:52 | |
mgedmin | can I use test levels with doctests? | 16:59 |
J1m | I don't know | 16:59 |
mgedmin | I would like some longer-taking doctests to run only if I run test.py --all | 16:59 |
*** srichter has quit IRC | 17:01 | |
*** ChanServ sets mode: +o tav | 17:06 | |
Damascene | odd, i don't see where this vocabulary was defined. vocabulary = "SourceTypes". i did a find [zope3dir] | xargs grep -i "sourcetypes" and only find references to it, but not the actual list or how it was generated? | 17:06 |
mgedmin | Damascene, src/zope/app/renderer/configure.zcml, line 9 | 17:07 |
Damascene | mgedmin: ugh, yeah i see it now in my find combo haha. thanks | 17:08 |
*** hdima has quit IRC | 17:14 | |
*** mexiKON is now known as philiKON | 17:20 | |
*** GaryPoster has joined #zope3-dev | 17:21 | |
mgedmin | grr, http://www.zope.org/Collectors/Zope3-dev/360 bugs me again | 17:28 |
*** tvon has joined #zope3-dev | 17:35 | |
*** vlado has quit IRC | 17:49 | |
*** srichter has joined #zope3-dev | 18:07 | |
*** srichter has quit IRC | 18:08 | |
philiKON | J1m, your changing createObject breaks backward compatability | 18:17 |
*** srichter has joined #zope3-dev | 18:17 | |
J1m | How so? | 18:17 |
*** ChanServ sets mode: +o srichter | 18:17 | |
philiKON | x3 code will still do zapi.createObject(None, ...) | 18:17 |
philiKON | never mind | 18:18 |
philiKON | i just now saw the BBB | 18:18 |
philiKON | i thought i had seen that there wasn't any BBB :) | 18:18 |
Damascene | philiKON: curiously enough does your book cover the workflow, from end to finish of a project? i.e. for instnace, the zwiki page looks great, but it isn't clear how to get it published on a public site. i tried throwing up ++skin++wiki to no avail (just shows a blank page) but i'm presuming skins are the proper way to publish a page for public consumption? | 18:19 |
srichter | Damascene: the book online (and now on the shelves) covers workflows as well | 18:20 |
mgedmin | I find skins useful when I want to override a standard zope page in my application | 18:21 |
philiKON | srichter, we're not talking about workflow :) | 18:21 |
mgedmin | e.g. have a nice 404 error page | 18:21 |
philiKON | Damascene, yes, my book takes a project from day 1 (designing interfaces) up to deployment issues like security | 18:21 |
mgedmin | I do not think you need skins if you only want to publish a new content type | 18:21 |
philiKON | Damascene, i don't cover deployment explicitly because a) i don't think we've explored that enough yet and b) i didn't have enough time left to do it | 18:21 |
philiKON | Damascene, as for skins, mgedmin is right; they determine the look and feel of a whole site or section of a site, not of a certain content type | 18:22 |
Damascene | philiKON: right, i just want some general guidance. for instance, i'd like to manage my site internally using some dns name:8080 via web. but for public users i use apache to rewrite the url from public_dns.com:80 -> name:8080 internally including the ++skin++ tags. | 18:22 |
Damascene | my way "appears" to work, but i'm not sure if that's the way it was supposed to be done. | 18:23 |
philiKON | that's a good way to do it | 18:23 |
philiKON | if you want two different skins, one for the public apache-served view and one for your maangement view | 18:23 |
Damascene | yeah | 18:23 |
Damascene | i figure i stil have http-basic auth protection if they do directly go into the host, etc. | 18:23 |
Damascene | (although i'd prefer something a bit better heh, but i'll live with that for now). :) | 18:24 |
philiKON | in the book i discuss cookie authentication as an example of an alternate authentication method | 18:24 |
Damascene | philiKON: hmm so you talk about sessions somehow? | 18:25 |
philiKON | no, sessions are not in x3.0 | 18:25 |
philiKON | they were added for 3.1 | 18:25 |
Damascene | philiKON: hm. well i'm not sure how cookie auth will work then? that's relying entirely on the client? the server has to keep some kind of state of an authenticating cookie 'id' of sorts (to me that's a session of sorts). | 18:25 |
philiKON | no, the server doesn't keep any state | 18:26 |
philiKON | it doesn't have to if the authenticated client always provides a cookie | 18:26 |
Damascene | well, what's to stop me from forging a cookie then? or full credentials are stored in the cookie and the server checks every time? | 18:27 |
* philiKON looks | 18:27 | |
philiKON | i set two cookies, zope_user and zope_pass | 18:28 |
philiKON | this is just very very simple of course | 18:28 |
philiKON | but not any less secure than simple-auth | 18:28 |
Damascene | okay, so the credentials are stored in the cookies themselves and passed/read/checked for every req. | 18:28 |
philiKON | yes | 18:29 |
Damascene | yeah it's about the same level of security as simple-auth | 18:29 |
philiKON | it serves as an example of doing alternate authentication | 18:29 |
Damascene | okay no big deal! | 18:29 |
philiKON | problem is that i can't just include 1000 line examples in the book | 18:29 |
Damascene | jus curious if a hidden nugget of session snuck in there haha. | 18:29 |
Damascene | actaully i'm more interested in general concepts with light examples. | 18:29 |
philiKON | i tried to keep a balance of both in the book | 18:30 |
philiKON | it's up to you to tell me if i succeeded :) | 18:30 |
*** tvon has left #zope3-dev | 18:30 | |
Damascene | hehe... well lately i've been on a money saving spree. so i'll probably check it out at the local bookstore first. if i end up reading too much of it there, i'll probably buy it haha. ;) | 18:31 |
* philiKON hopes it makes it to a local bookstore | 18:31 | |
Damascene | well, barnes and nobles. :) | 18:32 |
philiKON | still, i doubt they have every book ever written in some god-forsaken european country | 18:33 |
philiKON | :) | 18:33 |
Damascene | well, maybe i can call them up then and ask them to stock it hah | 18:34 |
*** jhauser_ has joined #zope3-dev | 18:36 | |
*** regebro has joined #zope3-dev | 18:36 | |
regebro | Hi! Moral support needed... ;) | 18:36 |
regebro | What should I do of these options: | 18:36 |
*** rejj has quit IRC | 18:37 | |
regebro | 1. Make widgets for searching amonts users, and widgets for displaying a calendar, and add support to Five for overriding widgets. or... | 18:37 |
regebro | 2. Just make a big ugly temaplate with all this is a big heap. | 18:38 |
regebro | What would YOU have done? | 18:38 |
philiKON | regebro, you want my answer? ;) | 18:38 |
regebro | yes, very much. :) | 18:38 |
philiKON | (searching among users => vocabulary + vocabulary widget) | 18:38 |
*** rejj has joined #zope3-dev | 18:38 | |
philiKON | regebro, well, in the interest of Five but also in the interest of the flexibility of your app, i would say #1 | 18:38 |
*** Theuni has quit IRC | 18:39 | |
regebro | Oh, I forgot: I am under heavy time pressure, and the reason I have a hard time deciding, is that I cna't clearly see which of these will be faster. | 18:39 |
philiKON | i just thought about the time issue | 18:40 |
philiKON | i wouldn't know it either | 18:40 |
* philiKON looks at five | 18:40 | |
philiKON | regebro, Five seems not to be missing much for widget overriding, i think | 18:40 |
regebro | OK, in that case I'll probably go with #1, if it's not clear #2 will be much faster. | 18:41 |
Damascene | philiKON: Five is only for zope 2 -> zope 3 migration projects? Otherwise, for new development, stright up zope 3 makes the most sense? | 18:41 |
regebro | philiKON, no I think it might only be the CustomWidgetMixin that needs transferring to ExtensionClasses.Base. | 18:41 |
philiKON | Damascene, well, Five is a) for migrating z2-based software and b) when you start a new project and want to use e.g. Plone, CPS, or Silva (or even plain CMF) but also want to use cool z3 technology | 18:42 |
philiKON | regebro, CustomWidgetMixin? | 18:42 |
regebro | Well, Damascene, it's for when you have to use Zope2, but wants Zope3 stuff. | 18:42 |
regebro | philiKON, yeah, wasn't that the name? | 18:42 |
philiKON | there's CustomWidgetFactory, but not sure what that has got to do with it | 18:43 |
regebro | philiKON: Hang on. | 18:43 |
philiKON | regebro, i think we just need to implement the <widget> subdirective to <editform> and <addform> | 18:43 |
philiKON | yes, CustomWidgetFactory is used there, but i dont' see why it needs to be an ExtensionClass | 18:43 |
philiKON | regebro, let's head over to #z3-base | 18:44 |
regebro | OK. | 18:44 |
*** jhauser has quit IRC | 18:48 | |
*** tvon has joined #zope3-dev | 18:56 | |
*** benji_york has joined #zope3-dev | 18:56 | |
*** J1m has quit IRC | 18:57 | |
regebro | Aha! I'm trying to switch out a default widget for a custom widget. But this custom widget (MultiCheckBoxWidget) wants a vocabulary as a parameter. | 19:17 |
regebro | However, if I do nothing, the attendees_widget on my view will be a CustomeWidgetFactory, that when called will try to call the Widget without this parameter. | 19:17 |
regebro | How do I fix that? /confused | 19:18 |
mgedmin | use CustomSequenceWidgetFactory | 19:20 |
mgedmin | I think | 19:20 |
mgedmin | no, that won't work | 19:21 |
mgedmin | ok, here's what I do | 19:21 |
mgedmin | foo_widget = CustomWidgetFactory(RadioWidgetFactory) | 19:21 |
mgedmin | def RadioWidgetFactory(field, request): | 19:22 |
mgedmin | return RadioWidget(field, field.vocabulary, request) | 19:22 |
regebro | OK, that makes sense. | 19:22 |
regebro | Although... the field doesn't have a vocabulary... maybe it does.. I'll try.. Think less, test more. ;) | 19:24 |
mgedmin | regebro, I copied the ChoiceInputWidget function | 19:25 |
mgedmin | and replaced zapi.getAdapter with the specific widget that I wanted to get | 19:25 |
regebro | I didn't even understand what that means. ;) | 19:26 |
*** MalcolmC has quit IRC | 19:47 | |
regebro | Yes! I have a MultiCheckBoxField! mgedmin, philiKON, thanks! | 19:55 |
philiKON | regebro, youre welcome | 20:01 |
*** gintas has quit IRC | 20:03 | |
regebro | Does anybody have a step by step example of making your own fields? | 21:07 |
mgedmin | 1. look at zope 3 source code | 21:07 |
mgedmin | 2. make your own field | 21:07 |
mgedmin | 3. profit | 21:07 |
regebro | Hehe. :) | 21:08 |
regebro | I'm on 1. now. Whoho! | 21:08 |
Damascene | can we skip to 3? | 21:09 |
mgedmin | ok, for step 3 you should all send $5 to me | 21:09 |
mgedmin | because I have done steps 1 and 2 ;) | 21:09 |
*** jdz_ has joined #zope3-dev | 21:11 | |
regebro | Well, I'm on 2 now. ;) | 21:15 |
regebro | The field interfaces are for the parameters, right... | 21:15 |
regebro | Questions: Can I get the other fields data from the Widget somehow? | 21:15 |
mgedmin | no | 21:16 |
mgedmin | you're not supposed to do that | 21:16 |
mgedmin | as far as I know | 21:16 |
regebro | Hm... | 21:16 |
regebro | OK, My brain is mush. | 21:24 |
regebro | 'widgets and fields are defintely a bit complex... | 21:25 |
* mgedmin nods, sadly | 21:25 | |
regebro | I'll be back tomorrow. See ya! :) | 21:25 |
mgedmin | see you | 21:25 |
*** regebro has quit IRC | 21:27 | |
*** gintas has joined #zope3-dev | 21:27 | |
*** J1m has joined #zope3-dev | 21:55 | |
*** Fosten has quit IRC | 21:56 | |
*** deo has quit IRC | 22:16 | |
*** tvon has quit IRC | 22:21 | |
*** deo has joined #zope3-dev | 22:28 | |
*** tziade_ has joined #zope3-dev | 22:43 | |
*** tvon has joined #zope3-dev | 23:01 | |
*** niemeyer has quit IRC | 23:18 | |
*** nut has joined #zope3-dev | 23:29 | |
*** gintas has quit IRC | 23:45 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!