*** benji has quit IRC | 00:01 | |
*** jinty has joined #zope3-dev | 00:02 | |
ccomb | hi, what or where is schemaless? I want to try z3c.formdemo but the buildout -N ends with an import error on schemaless. | 00:11 |
---|---|---|
lisppaste6 | ccomb pasted "schemaless import error" at http://paste.lisp.org/display/50004 | 00:13 |
*** timte has quit IRC | 00:15 | |
*** quodt_ has joined #zope3-dev | 00:15 | |
*** lucielejard has quit IRC | 00:15 | |
*** jinty_ has joined #zope3-dev | 00:18 | |
*** jinty_ has left #zope3-dev | 00:19 | |
*** schwendinger has quit IRC | 00:20 | |
*** RaFromBRC has quit IRC | 00:24 | |
*** dgreenfeld has quit IRC | 00:30 | |
*** hexsprite has quit IRC | 00:31 | |
*** quodt has quit IRC | 00:33 | |
*** jinty has quit IRC | 00:36 | |
*** J1m has quit IRC | 00:38 | |
*** stub has quit IRC | 00:41 | |
*** quodt has joined #zope3-dev | 00:41 | |
*** quodt__ has joined #zope3-dev | 00:44 | |
*** quodt has quit IRC | 00:44 | |
*** TresEquis has quit IRC | 00:53 | |
*** hazmat has joined #zope3-dev | 00:54 | |
*** ChanServ sets mode: +o hazmat | 00:54 | |
*** quodt_ has quit IRC | 01:00 | |
*** quodt has joined #zope3-dev | 01:00 | |
*** rmarianski has quit IRC | 01:02 | |
*** Ariel_Calzada has joined #zope3-dev | 01:03 | |
*** hazmat has quit IRC | 01:09 | |
*** quodt_ has joined #zope3-dev | 01:11 | |
*** reco has quit IRC | 01:12 | |
*** quodt has quit IRC | 01:15 | |
*** quodt has joined #zope3-dev | 01:15 | |
*** quodt__ has quit IRC | 01:17 | |
*** hazmat has joined #zope3-dev | 01:18 | |
*** ChanServ sets mode: +o hazmat | 01:18 | |
*** stub has joined #zope3-dev | 01:23 | |
*** nathany has quit IRC | 01:25 | |
*** bigkevmcd has quit IRC | 01:26 | |
*** bigkevmcd has joined #zope3-dev | 01:26 | |
*** quodt__ has joined #zope3-dev | 01:29 | |
*** bigkevmcd has quit IRC | 01:29 | |
*** niemeyer has quit IRC | 01:29 | |
*** quodt_ has quit IRC | 01:33 | |
*** quodt has quit IRC | 01:35 | |
*** MrTopf has quit IRC | 01:36 | |
*** aclark|away is now known as aclark | 01:40 | |
*** jsadjohnson has quit IRC | 01:48 | |
*** b52lap has joined #zope3-dev | 02:00 | |
*** b52laptop has quit IRC | 02:17 | |
*** Ariel_Calzada has quit IRC | 02:36 | |
*** alga has quit IRC | 02:37 | |
*** quodt__ has quit IRC | 02:41 | |
*** pbugni has quit IRC | 02:43 | |
*** salfield has quit IRC | 03:22 | |
*** b52lap has quit IRC | 03:36 | |
*** lucielejard has joined #zope3-dev | 03:48 | |
*** aclark is now known as aclark|nearby | 04:05 | |
*** hazmat has quit IRC | 04:08 | |
*** greenman has joined #zope3-dev | 04:24 | |
*** Theuni has quit IRC | 04:40 | |
*** aclark|nearby is now known as aclark | 04:41 | |
*** romanofski has quit IRC | 04:42 | |
*** philiKON has joined #zope3-dev | 04:44 | |
*** Theuni has joined #zope3-dev | 04:51 | |
*** alecm has quit IRC | 04:52 | |
*** alecm has joined #zope3-dev | 04:57 | |
*** greenman has quit IRC | 05:01 | |
*** alecm has quit IRC | 05:02 | |
*** alecm has joined #zope3-dev | 05:04 | |
*** stub has quit IRC | 05:23 | |
*** aclark is now known as aclark|away | 05:27 | |
*** alga has joined #zope3-dev | 05:29 | |
*** projekt01 has left #zope3-dev | 05:44 | |
*** philiKON has quit IRC | 05:48 | |
*** lucielejard has quit IRC | 06:24 | |
*** hexsprite has joined #zope3-dev | 06:30 | |
*** [1]Doc_Dan has joined #zope3-dev | 06:34 | |
*** Doc_Dan has quit IRC | 06:50 | |
*** [1]Doc_Dan is now known as Doc_Dan | 06:50 | |
*** alecm has quit IRC | 06:53 | |
*** afd__ has joined #zope3-dev | 07:00 | |
*** RaFromBRC has joined #zope3-dev | 07:05 | |
*** alecm has joined #zope3-dev | 07:23 | |
*** Jell-O-Fishi has quit IRC | 07:46 | |
*** dobee has joined #zope3-dev | 07:49 | |
*** RaFromBRC has quit IRC | 08:00 | |
*** alecm has quit IRC | 08:09 | |
*** sorin has joined #zope3-dev | 08:12 | |
*** sorin is now known as sorindregan | 08:12 | |
*** hdima has joined #zope3-dev | 08:19 | |
*** alga has quit IRC | 08:36 | |
*** philiKON has joined #zope3-dev | 08:36 | |
*** jukart has joined #zope3-dev | 08:40 | |
*** cursor has joined #zope3-dev | 08:43 | |
*** baijum has joined #zope3-dev | 08:43 | |
*** afd__ has quit IRC | 09:10 | |
baijum | srichter, Congrats for completing the egg releases ! | 09:11 |
baijum | Theuni, srichter: what's next step now for 3.4 tar ball release ? | 09:12 |
philiKON | baijum: update the externals on Zope3/branches/3.4 and run the tests, i suppose | 09:31 |
*** timte has joined #zope3-dev | 09:32 | |
baijum | philiKON: ah. ok, may be we will be required a bug day | 09:33 |
philiKON | i have no idea. depends on whether we have many open bugs for 3.4 | 09:33 |
baijum | philiKON: It look's like we still have some critical bugs marked: http://tinyurl.com/yvyeo5 | 09:35 |
*** rocky has quit IRC | 09:35 | |
*** greenman has joined #zope3-dev | 09:35 | |
baijum | sorry, I have to go now. | 09:35 |
*** afd__ has joined #zope3-dev | 09:39 | |
*** rocky has joined #zope3-dev | 09:54 | |
*** ghendi has joined #zope3-dev | 09:59 | |
*** dunny has joined #zope3-dev | 10:01 | |
*** pelle__ has joined #zope3-dev | 10:04 | |
*** yvl has joined #zope3-dev | 10:07 | |
* baijum is back | 10:09 | |
*** schwendinger has joined #zope3-dev | 10:10 | |
*** quodt has joined #zope3-dev | 10:15 | |
*** ignas has joined #zope3-dev | 10:17 | |
*** baijum has quit IRC | 10:18 | |
*** sorindregan has quit IRC | 10:20 | |
*** baijum has joined #zope3-dev | 10:23 | |
*** baijum has quit IRC | 10:25 | |
*** baijum has joined #zope3-dev | 10:26 | |
*** sorindregan has joined #zope3-dev | 10:26 | |
*** harobed has joined #zope3-dev | 10:43 | |
*** lisppaste6 has quit IRC | 10:45 | |
*** lisppaste6 has joined #zope3-dev | 11:13 | |
*** goschtl has joined #zope3-dev | 11:20 | |
*** agroszer has joined #zope3-dev | 11:26 | |
*** b52laptop has joined #zope3-dev | 11:44 | |
*** ignas has quit IRC | 11:47 | |
*** spython has joined #zope3-dev | 12:05 | |
*** dunny has quit IRC | 12:05 | |
spython | there are .. II/OO/OI/IO-BTrees but what is the "IF" in IFSet/IFTreeSet/IFBTree? | 12:08 |
*** malthe has joined #zope3-dev | 12:08 | |
*** schwendinger has quit IRC | 12:08 | |
philiKON | integer -> float | 12:08 |
spython | thanks | 12:09 |
*** mgedmin has joined #zope3-dev | 12:23 | |
*** romanofski has joined #zope3-dev | 12:23 | |
timte | you emacs gurus, is there some way to get classes and methods linkable so I can click or press M-whatever to get to the definition of the class/method? | 12:27 |
timte | if there is I'll switch to emacs :) | 12:28 |
baijum | timte, you can use Bicycle Repair Man ( http://bicyclerepair.sourceforge.net/ ) with emacs | 12:30 |
* baijum is not a guru ;) | 12:30 | |
philiKON | timte: or you can use CTAGS | 12:35 |
*** greenman has quit IRC | 12:35 | |
*** greenman has joined #zope3-dev | 12:38 | |
timte | ok, I will google on those | 12:38 |
mgedmin | ctags rule | 12:39 |
mgedmin | I don't know about M-whatever, but M-, jumps to a tag, iirc | 12:40 |
mgedmin | or is that M-.? | 12:40 |
* mgedmin uses vim | 12:40 | |
timte | do you use ctags with vim? | 12:41 |
mgedmin | yes | 12:41 |
* philiKON hasn't gotten ctags to work with emacs yet :/ | 12:41 | |
philiKON | then again, i haven't tried hard | 12:41 |
* baijum sometime use Bicycle Repair Man in Emacs | 12:43 | |
*** greenman has quit IRC | 12:44 | |
baijum | philiKON: I updated my local copy of 3.4 branch with svn:externals based on http://wiki.zope.org/zope3/StabilizeEggPackages All tests are passing. but there are some warnings in packages which are not yet officially released. Can I commit it now ? | 12:45 |
philiKON | sigh, yeah, projekt01's and srichter's refactoring made some 3.4.x eggs dependent on 3.5.x eggs | 12:46 |
philiKON | baijum: i think you can commit | 12:46 |
philiKON | then we can sort out the problem | 12:46 |
baijum | philiKON, ok | 12:47 |
malthe | can you make a browser:page view that has both a class and a template that's specified in zcml? | 12:48 |
malthe | I find that the template is ignored | 12:48 |
philiKON | sure you can | 12:48 |
malthe | cool, how? | 12:48 |
philiKON | um... just do it?!? | 12:48 |
philiKON | look at my book, for example | 12:48 |
malthe | introspecting my class there's no template attribute, nor 'index' | 12:48 |
philiKON | or pretty much any other example out there | 12:49 |
philiKON | <browser:page class="..." template="..." ... /> | 12:49 |
philiKON | in five, the template isn't called 'index' i think | 12:49 |
malthe | right exactly, but the template doesn't make it to the class | 12:49 |
malthe | I'm experimenting with calling the view "view" | 12:49 |
malthe | I wonder if that could have implications | 12:49 |
philiKON | when you look up the view, do you actually get an instance of the class you registered | 12:50 |
malthe | <Products.Five.metaclass.PortalView object at 0x6c468d0> | 12:50 |
malthe | so it is a metaclass around my class | 12:51 |
philiKON | no | 12:51 |
philiKON | don't be confused by the different dotted name | 12:51 |
philiKON | all that five does it create a subclass of your original class | 12:51 |
malthe | gotcha | 12:51 |
philiKON | s/five/the browser:page zcml handler/ | 12:51 |
philiKON | this class creation stuff happen sto be in a Products.Five.metaclass module | 12:52 |
malthe | right | 12:52 |
nouri | Look at __dict__ and you'll see if there's a template or not. | 12:53 |
malthe | there isn't | 12:53 |
nouri | And how it's called. | 12:53 |
instantfoo | hey, how's 3.4 going? | 12:54 |
philiKON | who needs 3.4 when you got eggs? | 12:54 |
instantfoo | :) | 12:54 |
malthe | philiKON: hmm never mind; it does seem to work now ––– I don't what happened. | 12:56 |
*** thruflo has joined #zope3-dev | 12:57 | |
malthe | thanks anyway | 12:57 |
nouri | malthe: It's in __class__.__dict__, then, or in your __class__.__bases__[something].__dict__ | 12:57 |
malthe | I must've had a competing directive somewhere without the template definition | 12:59 |
instantfoo | meh, I should really wipe my old 3.3.1 tarball install and run eggs | 12:59 |
*** mkerrin has joined #zope3-dev | 13:01 | |
*** chacha_chaudhry_ has joined #zope3-dev | 13:08 | |
*** chacha_chaudhry_ has left #zope3-dev | 13:10 | |
mgedmin | philiKON: talk to ignas when he appears on irc, he managet to get both emacs-style ctags and vim-style ctags work in emacs | 13:13 |
*** hexsprite has quit IRC | 13:13 | |
mgedmin | apparently vim-style ctags are much faster, because the tags file is sorted so you can do binary searches in it | 13:13 |
*** whit has quit IRC | 13:28 | |
malthe | philiKON: for the record –– calling a view "view" will cause problems when Plone needs to find the default view of an object. | 13:31 |
*** hexsprite has joined #zope3-dev | 13:45 | |
*** stub has joined #zope3-dev | 13:48 | |
*** Ariel_Calzada has joined #zope3-dev | 13:51 | |
*** hexsprite has quit IRC | 14:02 | |
*** amaron has joined #zope3-dev | 14:05 | |
*** whit has joined #zope3-dev | 14:07 | |
*** schwendinger has joined #zope3-dev | 14:07 | |
amaron | if i have forbidden attribute, how to find what setting to change in zcml in order to have that attribute enabled | 14:07 |
*** deo has joined #zope3-dev | 14:08 | |
amaron | ie. i have container and contained, i've set zcml to allow IReadContainer and IWriteContainer | 14:08 |
amaron | but i still have forbbidden attribute 'add' for that container | 14:08 |
baijum | Theuni, ping ? | 14:16 |
*** benji has joined #zope3-dev | 14:16 | |
*** schwendinger has quit IRC | 14:30 | |
*** amaron has quit IRC | 14:45 | |
*** lucielejard has joined #zope3-dev | 14:48 | |
*** malthe has quit IRC | 14:51 | |
*** malthe has joined #zope3-dev | 14:53 | |
*** amaron has joined #zope3-dev | 14:56 | |
*** yvl has quit IRC | 15:00 | |
*** jsadjohnson has joined #zope3-dev | 15:01 | |
*** stub has quit IRC | 15:02 | |
*** afd__ has quit IRC | 15:02 | |
*** J1m has joined #zope3-dev | 15:02 | |
*** aclark|away is now known as aclark | 15:03 | |
*** bigkevmcd has joined #zope3-dev | 15:05 | |
*** philiKON_ has joined #zope3-dev | 15:09 | |
*** alga has joined #zope3-dev | 15:10 | |
mgedmin | amaron: 'add' is not a method defined in IWriteContainer | 15:11 |
*** baijum has quit IRC | 15:15 | |
amaron | mgedmin: my 'add' happens when i want to add contained object to container | 15:16 |
amaron | i dont call it | 15:17 |
mgedmin | I think you may be confused by adding views | 15:17 |
amaron | it happens in formview | 15:17 |
mgedmin | IAdding has an add() method | 15:17 |
mgedmin | which is supposed to add the object to the container | 15:17 |
mgedmin | but the only API containers give you for adding objects is container[name] = object | 15:17 |
mgedmin | i.e. __setitem__ | 15:18 |
amaron | i see | 15:18 |
amaron | let me try | 15:18 |
*** ignas has joined #zope3-dev | 15:19 | |
*** niemeyer has joined #zope3-dev | 15:21 | |
amaron | mgedmin: that passes, now i need add function in container | 15:21 |
*** stub has joined #zope3-dev | 15:24 | |
*** philiKON has quit IRC | 15:27 | |
*** projekt01 has joined #zope3-dev | 15:28 | |
amaron | mgedmin: it works... i added... something :) | 15:29 |
amaron | to many interfaces, i dont know which permission and attribute is for which one | 15:30 |
*** redir has joined #zope3-dev | 15:35 | |
*** bigkev has joined #zope3-dev | 15:42 | |
*** bigkevmcd has quit IRC | 15:42 | |
*** bigkev is now known as bigkevmcd | 15:42 | |
*** rlo has joined #zope3-dev | 15:44 | |
*** schwendinger has joined #zope3-dev | 15:45 | |
*** hazmat has joined #zope3-dev | 15:48 | |
*** ChanServ sets mode: +o hazmat | 15:48 | |
*** redir has quit IRC | 15:52 | |
*** philiKON_ is now known as philiKON | 15:53 | |
*** TresEquis has joined #zope3-dev | 15:54 | |
*** stu1 has joined #zope3-dev | 15:56 | |
*** stub has quit IRC | 16:16 | |
*** rlo has quit IRC | 16:27 | |
*** redir has joined #zope3-dev | 16:27 | |
*** rmarianski has joined #zope3-dev | 16:29 | |
*** cursor has quit IRC | 16:37 | |
*** hdima has quit IRC | 16:38 | |
ignas | srichter: is it just me or you silently finished up packaging of all the zope3.4 eggs? | 16:40 |
ignas | srichter: and what else has to be done to get a Zope3.4 release out of the door? | 16:41 |
*** rlo has joined #zope3-dev | 16:41 | |
*** redir has quit IRC | 16:46 | |
philiKON | ignas: fix bugs and deprecation warnings? | 16:51 |
ignas | philiKON: hmm, like the ones related to 18n message ids? | 16:51 |
philiKON | yup | 16:51 |
philiKON | that was a pretty stupid change, imho | 16:52 |
philiKON | s/stupid/unnecessary/ | 16:52 |
philiKON | :) | 16:52 |
ignas | yes, let's be political correct ;) | 16:52 |
projekt01 | philiKON, this change was the needed for a separation of zope and zope.app | 16:56 |
ignas | projekt01: it was backwards incompatible, and it could have been done in a better way | 16:56 |
ignas | that would do both - separate zope from zope.app AND keep it backwards compatible | 16:56 |
projekt01 | incompatible, why? | 16:57 |
philiKON | projekt01: the zope i18n message id factory doesn't have to imported | 16:58 |
philiKON | you can create it with one line | 16:58 |
philiKON | _ = MessageFactory('zope') | 16:58 |
philiKON | so no need to move things around | 16:58 |
ignas | because zope.i18nmessageid package had no MessageFactory('Zope') in 3.4.1 | 16:58 |
ignas | so expecting it to be there in 3.4.2 is breaking backwards compatibility | 16:59 |
philiKON | and it doesn't need to | 16:59 |
philiKON | also, i think the 'zope' domain must die | 16:59 |
ignas | yes, that's just one more reason | 16:59 |
ccomb | speaking of i18n/l10n, before the 3.4 release I would like to make a full review of the french translation, what is the recommended way to do this? Should I search for every po file around and submit them to someone or what? | 17:00 |
philiKON | ccomb: launchpad | 17:00 |
ccomb | it's automatically taken into account? | 17:01 |
philiKON | i have n o idea what you mean by 'automatically' | 17:01 |
ccomb | I don't know how work all the machinery from launchpad to eggs | 17:02 |
philiKON | you don't | 17:02 |
philiKON | currently translations aren't egg-centric yet | 17:03 |
philiKON | they're still monolithic | 17:03 |
philiKON | (hence the one and only 'zope' domain) | 17:03 |
philiKON | for the 3.5 / 3.6 line we should start splitting up translations | 17:03 |
ccomb | ah ok | 17:03 |
projekt01 | I think global variables shoul be defined once e.g. MessageFactory('zope') | 17:03 |
projekt01 | philiKON, is the buildout zip issue fixed for windows? | 17:05 |
philiKON | it's a setuptools bug | 17:06 |
philiKON | and yes, it was fixed | 17:06 |
philiKON | but i'm not sure if it's released yet | 17:06 |
philiKON | projekt01: this global variable is completely meaningless. the instance itself isn't important. | 17:06 |
philiKON | and in this particular case, it caused a lot of confusion | 17:07 |
projekt01 | Ok | 17:08 |
philiKON | projekt01: also, i outlined the MessageFactory thing quite a while ago in http://wiki.zope.org/zope3/MakeZopeAppSmaller already, and the consensus was to recreate it in each package since it's a meaningless one-liner | 17:09 |
philiKON | you couldn't have known, though | 17:10 |
philiKON | so i forgive you :) | 17:10 |
philiKON | i just think we should clean up this mess | 17:10 |
philiKON | unfortunately, now it's really messed up | 17:10 |
philiKON | because all of a sudden, we have a zope.i18nmessageid that has a ZopeMessageFactoyr | 17:10 |
philiKON | so we can never take that back | 17:10 |
philiKON | i just wished you would've written proposals | 17:10 |
philiKON | you wrote the "Free Views" proposal, changed your mind based on feedback, and then never chnaged it | 17:11 |
*** aclark is now known as aclark|away | 17:15 | |
projekt01 | philiKON, should I join the next sprint and help cleanup? | 17:15 |
philiKON | sure, why not! | 17:16 |
projekt01 | Ok, will take a look if I can make it | 17:16 |
rlo | when and where is this sprint? | 17:22 |
philiKON | tuebingen | 17:24 |
philiKON | 9-11 november | 17:24 |
*** whitmo has joined #zope3-dev | 17:24 | |
*** whit has quit IRC | 17:24 | |
*** ccomb has quit IRC | 17:25 | |
*** nathany has joined #zope3-dev | 17:35 | |
*** pelle__ has quit IRC | 17:36 | |
*** pelle__ has joined #zope3-dev | 17:36 | |
*** ghendi has quit IRC | 17:36 | |
*** stu1 has quit IRC | 17:37 | |
*** sorindregan has quit IRC | 17:40 | |
*** goschtl has quit IRC | 17:41 | |
* rlo is in San Fransisco then... | 17:45 | |
*** pyqwer has joined #zope3-dev | 17:46 | |
nouri | mgedmin: Hey, I saw that you were the last one to touch the MultiCheckboxWidget in zope.app.form. | 17:47 |
mgedmin | could be | 17:47 |
nouri | mgedmin: Does this mean it actually works for you? | 17:47 |
mgedmin | I think so, yes | 17:47 |
mgedmin | I don't remember where I used it | 17:47 |
nouri | Because I have this issue, https://bugs.launchpad.net/zope3/+bug/158736 | 17:47 |
mgedmin | hmm | 17:48 |
* mgedmin never used :list suffixes in his life | 17:48 | |
mgedmin | no, I think I never used MultiCheckBoxWidget | 17:50 |
mgedmin | I fixed the missing <label> issue in some other widget (radio buttons?) and noticed in passing that MultiCheckBoxWidget also had no proper labels | 17:50 |
*** jinty has joined #zope3-dev | 17:50 | |
nouri | mgedmin: I see. Thanks for looking at it. | 17:51 |
mgedmin | nouri: could you clarify why the lack of the :list suffix makes the widget useless? | 17:51 |
nouri | mgedmin: Guess I should add this to the bugreport. When you get the value from request.form, it's a single item, not a list. | 17:51 |
mgedmin | so? | 17:51 |
nouri | MultiCheckboxWidget suggests that the value should be a list ;) | 17:52 |
mgedmin | you shouldn't use values directly from request.form if you use widgets | 17:52 |
nouri | What? | 17:52 |
mgedmin | request.form is an internal implementation detail, don't touch it | 17:52 |
mgedmin | if you use a widget, use the widget to get the value | 17:52 |
mgedmin | zope.app.form.utility.getWidgetsData(...) | 17:52 |
mgedmin | iirc | 17:52 |
mgedmin | zope.formlib is generally nicer | 17:52 |
nouri | Interesting, I'll look at that. | 17:52 |
nouri | I'm using formlib. | 17:53 |
mgedmin | yay | 17:53 |
mgedmin | also, there's z3c.form which is newer and supposedly better (for some people) than zope.formlib, but I just can't handle five-way adapters | 17:53 |
mgedmin | I see 'adapts(IFoo, IBar, None, None, None)' and my head explodes | 17:53 |
mgedmin | anyway | 17:54 |
*** spython has quit IRC | 17:54 | |
* jinty has had some good experiences with z3c.form so far | 17:59 | |
*** goschtl has joined #zope3-dev | 18:00 | |
*** davidstryker has joined #zope3-dev | 18:00 | |
*** stub has joined #zope3-dev | 18:01 | |
*** yvl has joined #zope3-dev | 18:03 | |
*** deo has quit IRC | 18:03 | |
srichter | mgedmin: I have to build more high-level APIs for this, so you can say: | 18:07 |
srichter | adapts(context=IFoo, field=IBar) | 18:08 |
* mgedmin likes that | 18:08 | |
*** davidstryker has left #zope3-dev | 18:08 | |
srichter | it knows the order and assigns None to the other values automatically | 18:08 |
philiKON | projekt01: https://bugs.edge.launchpad.net/zope3/+bug/158743 | 18:09 |
*** timte has quit IRC | 18:11 | |
*** quodt has quit IRC | 18:14 | |
projekt01 | philiKON, I have no idea how I can test this? | 18:16 |
philiKON | write tests that do imports? | 18:17 |
*** goschtl has quit IRC | 18:17 | |
philiKON | but really, we should revert the split up for the 3.4.x line | 18:17 |
J1m | nouri, extjs has made my life soooo much better. :) | 18:17 |
mgedmin | what's extjs? | 18:19 |
*** rmarianski_ has joined #zope3-dev | 18:19 | |
*** rmarianski has quit IRC | 18:19 | |
mgedmin | oh, *another* new javascript framework | 18:19 |
J1m | http://extjs.com/ | 18:19 |
mgedmin | yay | 18:19 |
mgedmin | and just after I learned jquery :( | 18:19 |
nouri | J1m: Hmm, are you suggesting I should use extjs instead of... formlib? | 18:19 |
J1m | It lets you right applications in much the way you'd write for a *real* GUI framework. | 18:20 |
J1m | That distinguishes it from many other JS libraries. | 18:20 |
projekt01 | J1m, if you like extjs, google for z3ext | 18:20 |
J1m | nouri, I do. :) | 18:20 |
*** jukart has quit IRC | 18:20 | |
projekt01 | J1m, but note, extjs is not obtrusive | 18:21 |
J1m | Pls remind me what that means? | 18:21 |
projekt01 | it doesn't fall back to a UI if no javascript is active, and doesnt support readers for blind people | 18:22 |
J1m | philiKON, cool, although http://z3ext.net/ doesn't work for me. | 18:22 |
J1m | projekt01, for lots of apps, I don't care. | 18:22 |
philiKON | J1m: i think that was projekt01 who suggested that :) | 18:22 |
J1m | I'd rather create separate apps. | 18:22 |
projekt01 | Yes at all, extjs is a great framework | 18:23 |
J1m | A sucky one (read traditional web app) for people who need it and a working one. :) | 18:23 |
J1m | projekt01, thanks for that link. :) | 18:23 |
*** malthe has joined #zope3-dev | 18:24 | |
J1m | nouri, I could see use for a little automation to support forms, but ext doesn't need it nearly as much as traditional web UIs do. | 18:24 |
J1m | projekt01, I;kk check out z3ext. | 18:25 |
nouri | Sounds good, I'll check it out when I'm done with this formlib form ;) | 18:25 |
J1m | I'll | 18:25 |
projekt01 | J1m, can you give Nikolay Kim the developer of z3ext commit rights? | 18:25 |
J1m | btw, extjs does allow some reasonable degredation. | 18:25 |
srichter | J1m: Nikolay is sleeping right now; I get to him when he gets up to fix the site | 18:25 |
J1m | projekt01, sure, if you vouch for him and if ge sends me a contributor agreement. | 18:26 |
J1m | And if he gets his site back up so I can check it out. ;) | 18:26 |
projekt01 | srichter, can you tell Nikolay to send a agreement to J1m | 18:27 |
srichter | projekt01: yep, I'll try to get a hold of him later | 18:27 |
J1m | You can create a content page and have ext build on the origibal content. | 18:27 |
*** faassen has joined #zope3-dev | 18:27 | |
projekt01 | J1m, (degradation) you can allways implement the extjs JS write generation part as HTML in templates. | 18:29 |
J1m | Right, I think that's what I just said. :) | 18:30 |
*** rcrafton has joined #zope3-dev | 18:31 | |
projekt01 | Ok | 18:31 |
*** rcrafton has quit IRC | 18:31 | |
*** whitmo is now known as whit | 18:33 | |
*** bigkevmcd has quit IRC | 18:37 | |
*** ktwilight has joined #zope3-dev | 18:37 | |
*** bung_vijay_ has joined #zope3-dev | 18:39 | |
*** niemeyer has quit IRC | 18:40 | |
*** goschtl has joined #zope3-dev | 18:41 | |
*** goschtl has quit IRC | 18:42 | |
*** projekt01 has quit IRC | 18:45 | |
*** yvl has quit IRC | 18:45 | |
*** TresEquis has quit IRC | 18:49 | |
*** ktwilight_ has quit IRC | 18:51 | |
*** dobee has quit IRC | 18:52 | |
*** jinty has quit IRC | 18:54 | |
*** afd__ has joined #zope3-dev | 18:55 | |
*** malthe has quit IRC | 18:55 | |
*** thruflo_ has joined #zope3-dev | 18:56 | |
*** thruflo has quit IRC | 19:03 | |
*** quodt has joined #zope3-dev | 19:11 | |
*** dobee has joined #zope3-dev | 19:12 | |
*** romanofski has quit IRC | 19:14 | |
*** bung_vijay_ has quit IRC | 19:18 | |
*** RaFromBRC has joined #zope3-dev | 19:23 | |
*** alecm has joined #zope3-dev | 19:28 | |
*** jinty has joined #zope3-dev | 19:29 | |
*** bigkevmcd has joined #zope3-dev | 19:41 | |
*** thruflo_ has left #zope3-dev | 19:45 | |
*** mgedmin has quit IRC | 19:46 | |
*** amaron has quit IRC | 19:46 | |
*** schwendinger has quit IRC | 19:47 | |
*** niemeyer has joined #zope3-dev | 19:48 | |
*** amaron has joined #zope3-dev | 19:58 | |
*** dobee has quit IRC | 20:06 | |
*** jodok has joined #zope3-dev | 20:09 | |
*** stub has quit IRC | 20:14 | |
*** ccomb has joined #zope3-dev | 20:28 | |
*** jinty has quit IRC | 20:33 | |
*** pbugni has joined #zope3-dev | 20:34 | |
*** pbugni is now known as pbugni|mtg | 20:36 | |
*** CSWookie has joined #zope3-dev | 20:37 | |
*** stub has joined #zope3-dev | 20:40 | |
*** harobed has quit IRC | 20:40 | |
*** amaron_ has joined #zope3-dev | 20:53 | |
*** amaron has quit IRC | 20:54 | |
*** jinty has joined #zope3-dev | 20:55 | |
*** dunny has joined #zope3-dev | 20:57 | |
*** dobee has joined #zope3-dev | 20:57 | |
*** pyqwer has quit IRC | 20:59 | |
*** ccomb has quit IRC | 21:04 | |
*** ignas has quit IRC | 21:04 | |
*** mkerrin has quit IRC | 21:05 | |
*** agroszer_ has joined #zope3-dev | 21:05 | |
*** stub has quit IRC | 21:05 | |
*** ccomb has joined #zope3-dev | 21:07 | |
*** stub has joined #zope3-dev | 21:08 | |
*** stub has joined #zope3-dev | 21:10 | |
*** norro has joined #zope3-dev | 21:11 | |
*** djk001 has joined #zope3-dev | 21:14 | |
*** agroszer has quit IRC | 21:16 | |
*** afd__ has quit IRC | 21:17 | |
djk001 | Can formlib handle nested objects? i.e., if a student object contained an address object (and specfied this in the schema), can formlib handle this, or do I have to make a special widget for the address object? | 21:18 |
benji | djk001: I've seen compound forms like that created with formlib, but I don't know the details; I wouldn't be suprised if the README.txt includes information on doing that | 21:18 |
philiKON | djk001: yes, it's possible | 21:20 |
djk001 | I checked the forms.txt and didn't see anything there | 21:20 |
benji | <shrug> | 21:20 |
djk001 | how do you do it? I keep getting "A system error has occurred" | 21:20 |
philiKON | you basically use the zope.schema.Object() field | 21:20 |
philiKON | "A system error has occurred" is not the error msg you want to be bothering us with :) | 21:21 |
philiKON | look at the console | 21:21 |
philiKON | that's where the actual traceback is | 21:21 |
philiKON | anyway, as i was sayinig: | 21:21 |
philiKON | you basically use the zope.schema.Object() field | 21:21 |
djk001 | yeah. that was pretty messy. | 21:21 |
philiKON | and then | 21:21 |
philiKON | you use the ObjectWidget | 21:21 |
*** pbugni|mtg is now known as pbugni | 21:21 | |
philiKON | but you need to tell the ObjectWidget which kind of class to use to create one of thos eobjects | 21:21 |
djk001 | OK. I had the address = Object(schema=IAddress) line, but I need to do something more? | 21:22 |
philiKON | yes | 21:22 |
philiKON | i just said that | 21:22 |
philiKON | :) | 21:22 |
djk001 | sorry, didn't know if the Object () call would setup for ObjectWidget for me or not. I'm just getting started with formlib | 21:23 |
*** faassen has quit IRC | 21:23 | |
philiKON | well, it would help if you looked at the traceback | 21:23 |
djk001 | k. 1 sec | 21:24 |
djk001 | Traceback (most recent call last): | 21:25 |
djk001 | File "/usr/local/Zope-3.3.1/lib/python/zope/publisher/publish.py", line 133, in publish | 21:25 |
djk001 | result = publication.callObject(request, obj) | 21:25 |
djk001 | File "/usr/local/Zope-3.3.1/lib/python/zope/app/publication/zopepublication.py", line 161, in callObject | 21:25 |
djk001 | return mapply(ob, request.getPositionalArguments(), request) | 21:25 |
djk001 | File "/usr/local/Zope-3.3.1/lib/python/zope/publisher/publish.py", line 108, in mapply | 21:25 |
djk001 | return debug_call(obj, args) | 21:25 |
djk001 | - traceback_info: <security proxied zope.app.publisher.browser.viewmeta.ContactEditForm instance at 0x996432c> | 21:25 |
djk001 | File "/usr/local/Zope-3.3.1/lib/python/zope/publisher/publish.py", line 114, in debug_call | 21:25 |
djk001 | return obj(*args) | 21:25 |
djk001 | File "/usr/local/Zope-3.3.1/lib/python/zope/formlib/form.py", line 769, in call | 21:25 |
djk001 | self.update() | 21:26 |
djk001 | File "/usr/local/Zope-3.3.1/lib/python/zope/formlib/form.py", line 732, in update | 21:26 |
djk001 | self.setUpWidgets() | 21:26 |
djk001 | File "/usr/local/Zope-3.3.1/lib/python/zope/formlib/form.py", line 802, in setUpWidgets | 21:26 |
djk001 | adapters=self.adapters, ignore_request=ignore_request | 21:26 |
djk001 | File "/usr/local/Zope-3.3.1/lib/python/zope/formlib/form.py", line 393, in setUpEditWidgets | 21:26 |
djk001 | widget = _createWidget(form_field, field, request, iface) | 21:26 |
djk001 | File "/usr/local/Zope-3.3.1/lib/python/zope/formlib/form.py", line 323, in _createWidget | 21:26 |
djk001 | return component.getMultiAdapter((field, request), iface) | 21:26 |
djk001 | File "/usr/local/Zope-3.3.1/lib/python/zope/component/_api.py", line 103, in getMultiAdapter | 21:26 |
philiKON | no no no no | 21:26 |
djk001 | raise ComponentLookupError(objects, interface, name) | 21:26 |
djk001 | ComponentLookupError: ((<zope.schema._field.Object object at 0x996eccc>, <zope.publisher.browser.BrowserRequest instance URL=http://localhost:8080/c2/edit.html>), <InterfaceClass zope.app.form.interfaces.IInputWidget>, u'') | 21:26 |
benji | djk001: please, please see the topic; no pasting | 21:26 |
philiKON | don't do this here | 21:26 |
djk001 | 127.0.0.1 - - [30/Oct/2007:15:22:54 -0400] "GET /c2/edit.html HTTP/1.1" 500 84 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.1) Gecko/20061228 Firefox/2.0.0.1 pango-text" | 21:26 |
djk001 | url: lisppaste6 | 21:26 |
djk001 | oops. how do you use that? | 21:26 |
philiKON | djk001: just go to the paste site, paste in your stuff, and give us the url | 21:28 |
philiKON | to look at it | 21:28 |
philiKON | just don't flood us here with crap | 21:28 |
djk001 | sorry | 21:28 |
* bigkevmcd belatedly hands round the life-jackets | 21:28 | |
*** alga has quit IRC | 21:32 | |
* benji practices his backstroke. | 21:32 | |
*** agroszer_ has quit IRC | 21:32 | |
hazmat | djk001, you need to setup a CustomWidgetFactory and ObjectWidget | 21:33 |
philiKON | yup | 21:33 |
hazmat | widget = CustomWidgetFactory( ObjectWidget, YourClass) and then in your formlib form.. pass in a custom_widget with that widget | 21:34 |
hazmat | be aware that the zope.app.form machinery creates and replaces subobjects on a value change, it doesn't modify in place | 21:35 |
djk001 | ok. I'll try that. thx. | 21:36 |
philiKON | the ObjectWidget that is | 21:36 |
philiKON | it's not really particular to the whole machinery | 21:36 |
*** pbugni has quit IRC | 21:36 | |
hazmat | well the formlib machinery expects a value back from the form, and then calls field.set.. so its a bit more than just the widget | 21:36 |
hazmat | er a value back from the widget | 21:36 |
philiKON | dang, you're right | 21:37 |
hazmat | i had to do some hacks on that when working with mapped sqlalchemy objects.. not pretty.. i've been meaning to try out z3c.form and see if things get nicer.. but its a bit of turnoff to manage all the stuff there to make a form | 21:37 |
hazmat | are there any examples of doing cookie auth with z3? | 21:38 |
philiKON | hazmat: my book :) | 21:39 |
hazmat | or a cookie credential extractor plugin in svn? | 21:39 |
hazmat | aha!, i left it at home.. | 21:39 |
philiKON | http://pypi.python.org/pypi/wc.cookiecredentials | 21:39 |
hazmat | philiKON, thanks | 21:39 |
*** reco has joined #zope3-dev | 21:41 | |
*** greenman has joined #zope3-dev | 21:56 | |
*** bigkevmcd has quit IRC | 21:56 | |
*** djk001 has left #zope3-dev | 22:06 | |
*** hazmat has quit IRC | 22:14 | |
*** timte has joined #zope3-dev | 22:17 | |
*** bigkevmcd has joined #zope3-dev | 22:18 | |
*** greenman has quit IRC | 22:37 | |
*** greenman has joined #zope3-dev | 22:40 | |
*** greenman has quit IRC | 22:44 | |
*** pbugni has joined #zope3-dev | 22:52 | |
*** reco has quit IRC | 22:59 | |
*** Ariel_Calzada has quit IRC | 23:09 | |
*** dunny has quit IRC | 23:18 | |
*** jinty has quit IRC | 23:22 | |
*** rlo has quit IRC | 23:31 | |
*** amaron_ has quit IRC | 23:34 | |
*** greenman has joined #zope3-dev | 23:49 | |
*** bigkevmcd has quit IRC | 23:52 | |
*** niemeyer has quit IRC | 23:58 | |
*** benji has quit IRC | 23:59 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!