*** foxmjay has joined #zope3-dev | 00:09 | |
*** foxmjay has left #zope3-dev | 00:09 | |
*** regebro has left #zope3-dev | 00:09 | |
*** sm-afk is now known as sm-lunch | 00:18 | |
*** greenman has quit IRC | 00:18 | |
*** rocky has quit IRC | 00:25 | |
*** febb has quit IRC | 00:37 | |
*** RaFromBRC has quit IRC | 00:42 | |
*** jpfarias has joined #zope3-dev | 00:44 | |
*** pelle_ has quit IRC | 00:47 | |
*** pelle_ has joined #zope3-dev | 00:53 | |
*** pelle_ has quit IRC | 00:53 | |
*** RaFromBRC has joined #zope3-dev | 00:53 | |
*** jukart has joined #zope3-dev | 00:53 | |
*** RaFromBRC has quit IRC | 01:02 | |
*** replicant has quit IRC | 01:07 | |
*** junkafarian has joined #zope3-dev | 01:16 | |
*** jbonilla_ has joined #zope3-dev | 01:19 | |
*** _srichter has joined #zope3-dev | 01:34 | |
*** hazmat has joined #zope3-dev | 01:35 | |
*** ChanServ sets mode: +o hazmat | 01:35 | |
*** strichter has quit IRC | 01:35 | |
*** junkafarian has quit IRC | 01:39 | |
*** _srichter is now known as srichter | 01:40 | |
*** ChanServ sets mode: +o srichter | 01:47 | |
*** mgedmin has quit IRC | 01:56 | |
*** J1m_ has quit IRC | 02:04 | |
*** edgordon has joined #zope3-dev | 02:07 | |
*** edgordon has quit IRC | 02:17 | |
*** fdrake has quit IRC | 02:21 | |
*** rcrafton_ has quit IRC | 02:23 | |
*** rcrafton has joined #zope3-dev | 02:25 | |
*** hazmat has quit IRC | 02:26 | |
*** MrTopf has quit IRC | 02:37 | |
*** rcrafton has quit IRC | 02:43 | |
*** rcrafton has joined #zope3-dev | 02:48 | |
*** agroszer_ has quit IRC | 02:53 | |
*** yvl has quit IRC | 03:05 | |
*** jbonilla_ has quit IRC | 03:07 | |
*** rcrafton has quit IRC | 03:07 | |
*** Rolando_ has quit IRC | 03:07 | |
*** gstratton___ has quit IRC | 03:09 | |
*** greenman has joined #zope3-dev | 03:15 | |
*** Ariel_Calzada has joined #zope3-dev | 03:41 | |
*** Ariel_Calzada has quit IRC | 03:45 | |
*** Ariel_Calzada has joined #zope3-dev | 03:45 | |
*** philiKON has quit IRC | 03:53 | |
*** fdrake has joined #zope3-dev | 04:03 | |
*** aclark|away is now known as aclark | 04:17 | |
*** Ariel_Calzada has quit IRC | 04:18 | |
*** b52laptop has quit IRC | 04:25 | |
*** hazmat has joined #zope3-dev | 04:56 | |
*** ChanServ sets mode: +o hazmat | 04:56 | |
*** huajie has joined #zope3-dev | 05:01 | |
*** replicant has joined #zope3-dev | 05:07 | |
*** aclark is now known as aclark|away | 05:12 | |
*** ousado has joined #zope3-dev | 05:13 | |
*** hazmat has quit IRC | 05:16 | |
*** ousado_ has quit IRC | 05:22 | |
*** projet01_ has left #zope3-dev | 06:02 | |
*** gstratton_ has joined #zope3-dev | 06:03 | |
*** rcrafton has joined #zope3-dev | 06:05 | |
*** gstratton_ has quit IRC | 06:07 | |
*** jsadjohnson has quit IRC | 06:10 | |
*** jsadjohnson has joined #zope3-dev | 06:11 | |
*** Ariel_Calzada has joined #zope3-dev | 06:16 | |
*** rcrafton has joined #zope3-dev | 06:18 | |
*** fdrake has quit IRC | 06:35 | |
*** fdrake has joined #zope3-dev | 06:41 | |
*** WebMaven has quit IRC | 06:42 | |
*** rcrafton has quit IRC | 06:48 | |
*** stub has joined #zope3-dev | 06:59 | |
*** replicant has quit IRC | 07:04 | |
*** alecm has quit IRC | 07:32 | |
*** niemeyer has quit IRC | 07:46 | |
*** srichter has quit IRC | 07:48 | |
*** baijum has joined #zope3-dev | 07:49 | |
*** jukart has joined #zope3-dev | 08:15 | |
*** jukart has quit IRC | 08:15 | |
*** sm-lunch is now known as sm | 08:19 | |
*** jukart has joined #zope3-dev | 08:40 | |
*** jodok has joined #zope3-dev | 08:45 | |
*** markusleist has quit IRC | 08:46 | |
*** greenman has quit IRC | 08:57 | |
*** huajie has quit IRC | 09:01 | |
*** hdima has joined #zope3-dev | 09:09 | |
*** zagy has joined #zope3-dev | 09:20 | |
*** huajie has joined #zope3-dev | 09:20 | |
*** jfroche has joined #zope3-dev | 09:22 | |
*** hazmat has joined #zope3-dev | 09:24 | |
*** ChanServ sets mode: +o hazmat | 09:24 | |
*** timte has joined #zope3-dev | 09:40 | |
*** jsadjohnson has quit IRC | 09:41 | |
*** regebro has joined #zope3-dev | 09:48 | |
regebro | I there really no simple method to create a vocabulary from a dict or a key/value list included in Zope3? I can't find one... | 09:49 |
---|---|---|
*** schwendinger has quit IRC | 09:49 | |
zagy | regebro: it's easier to create a source | 09:51 |
zagy | even though what meaning has the key/value? | 09:51 |
regebro | how can that be easier? :-) | 09:52 |
zagy | regebro: with zc.sourcefactory | 09:52 |
wiggy | which doesn't vibe with zope 2 due to egg dependencies | 09:53 |
regebro | zagy: OK, but even so that's an external module, I still must say that I don't see why this isn't a part of the Vocabulary itself. I'll probably need to fix that. :-) | 09:54 |
regebro | And I need it with Zope2. | 09:54 |
*** MrTopf has joined #zope3-dev | 09:55 | |
zagy | oh well... vocabularies are sort of deprecated | 09:55 |
*** pelle_ has joined #zope3-dev | 09:55 | |
wiggy | sort of but not really | 09:55 |
zagy | but I don't know much of the integration into zope 2 | 09:55 |
regebro | oh? | 09:55 |
regebro | So, what should I use? | 09:55 |
zagy | yes, the not really is the problem :) | 09:55 |
wiggy | there is a rumour that they are deprected | 09:55 |
wiggy | but in reality they aren't | 09:55 |
zagy | there is a comment in the code at least ;) | 09:55 |
wiggy | a comment doesn't count | 09:56 |
zagy | yes :) | 09:56 |
regebro | I need to fill a choice field with perfectly simple and easy list of keys and values. | 09:56 |
wiggy | and imho it should be removedd | 09:56 |
wiggy | regebro: vocabularies are fine | 09:56 |
wiggy | and much easier | 09:56 |
zagy | not necessaryliy, but they should be cleaned up | 09:56 |
regebro | I know this was complicated a couple of years ago. I'm rather stunned it's *still* complicated. | 09:56 |
zagy | because it's all a big mess there right now | 09:56 |
wiggy | regebro: it hasn't changed at all | 09:57 |
zagy | IMHO it is *much* easier to build sources when you use the zc.sourcefactory | 09:57 |
wiggy | and sources have not gotten any documentation | 09:57 |
regebro | I have the vocabulary.py of Zope 3.3 up now. There is no comment, and it's not messy in any way. :-) | 09:57 |
regebro | It just seriously lacks a fromDictionary(cls...) method. :-) | 09:57 |
zagy | the zope.schema.Choice is the messy part | 09:57 |
wiggy | zagy: the problem is that zc.sourcefactory pulls in lots of zope.* eggs, which conflict with the ones in zope2 | 09:57 |
wiggy | zagy: which breaks your entire instance | 09:57 |
zagy | wiggy: yeah, I don't know much about the zope 2 integration at all | 09:58 |
regebro | zagy: Oh. Should I do something else there? I'm not religiously stuck with Choice fields, or any other stuff. I just wanna use formlib in the ends. | 09:58 |
zagy | regebro: no, there is no other way | 09:58 |
wiggy | schema.Choice with vocabularies works fine | 09:58 |
regebro | ok | 09:58 |
zagy | yes it does | 09:59 |
regebro | Hmmm. I wonder if I can monkey-patch in a class method. Never done that before. :-) | 09:59 |
wiggy | you can | 10:00 |
wiggy | you can do it in an instance as well but that's a lot more tricky | 10:00 |
zagy | wiggy: btw: theuni wrote a mail regarding the vocabs/sources to zope3-dev | 10:00 |
zagy | wiggy: you might want to join in :) | 10:00 |
wiggy | zagy: I know, I added that to svn | 10:00 |
wiggy | slightly modified | 10:00 |
wiggy | it's still very far from proper documentation | 10:00 |
zagy | the current situation is undocumentable ;) | 10:01 |
wiggy | everything is documentable | 10:02 |
wiggy | it just takes a lot of effort | 10:02 |
*** schwendinger has joined #zope3-dev | 10:07 | |
*** naro has joined #zope3-dev | 10:11 | |
regebro | zagy: I don't understand why you don't like vocabularies. | 10:13 |
regebro | Vocabularies are just sources where you can say "hey, give me the term for value " | 10:14 |
zagy | right, and I don't care about the terms | 10:15 |
zagy | i have values | 10:15 |
regebro | Which seems to be a highly practical thing to be able to do. | 10:15 |
zagy | and maybe titles for values | 10:15 |
regebro | Well, admittedly, I don't have much use of the tokens. | 10:16 |
zagy | see, me neither | 10:16 |
zagy | for widgets you'll need them | 10:16 |
wiggy | at some point you need widgets | 10:16 |
zagy | sure | 10:17 |
zagy | in zc.sourcefactory there are adapters to create tokens | 10:17 |
regebro | zagy: Well if you use them for widgets (I'll admit I don't know why) then there you go. | 10:17 |
zagy | well, maybe I just like the more general concept of the sources better :) | 10:18 |
regebro | But if you have a source where you can ask for the term by it's value, and the term has a token, then that's an ITokenizedVocabulary. :-) Which we agreed is needed. | 10:19 |
zagy | >>> terms = zope.component.getMultiAdapter( | 10:20 |
zagy | ... (source, request), zope.app.form.browser.interfaces.ITerms) | 10:20 |
regebro | I agree the separate handling of vocabularies and sources in the Choice field today is a bit weird. | 10:20 |
wiggy | zagy: it all sounds like a more complex dance than just using vocabularies | 10:20 |
zagy | wiggy: the framework is more complex, but the sources are easy, and that's what counts for me | 10:21 |
wiggy | until I see useful documentation including simple examples I'm sticking with vocabularies :) | 10:21 |
zagy | if you look at http://svn.zope.org/zc.sourcefactory/trunk/src/zc/sourcefactory/README.txt?rev=76570&view=auto | 10:21 |
wiggy | I looked at zc.sourcefactory | 10:21 |
regebro | zagy: Well, that code might be a good idea to stick in the Choice field. | 10:22 |
wiggy | but until zope2 and zope.* egg dependencies are resolved I just can't use it | 10:22 |
zagy | yes, that's okay | 10:22 |
zagy | I'm not saying everybody must use sources | 10:22 |
zagy | only the current situation is very frustrating | 10:22 |
regebro | An adapter between an ITokenizedVocabulary and the above should just return the vocabulary, and all is fine. :-) | 10:22 |
zagy | because the Choice field is actually not doing what it's saying in the interface | 10:23 |
regebro | zagy: I agree. Because there is no easy way to create vocabularies/sources from a dictionary. :-) Quite frustrating. | 10:23 |
zagy | heh | 10:23 |
zagy | the problem of course also is that a Choice field doesn't require a vocab/source to be iterable | 10:24 |
zagy | a widget might need that | 10:24 |
regebro | But anyway, my monkey-patch worked. I'll probably add the fromDictionary method to the vocabulary some time in the future. :-) | 10:24 |
zagy | but that's a different story then :) | 10:24 |
regebro | zagy: Yeah, it should complain about that. | 10:25 |
wiggy | SimpleVocabulary makes creating vocabs from a dictionary quite simple | 10:25 |
wiggy | still wants a list of terms though, but a generator or list comprehension can create those easily | 10:25 |
wiggy | http://code.simplon.biz/svn/zope/simplon.plone.currency/trunk/simplon/plone/currency/vocabulary.py does that | 10:26 |
regebro | wiggy: Sure, but that doesn't look too pretty in a schema definition. | 10:26 |
wiggy | the schema definition just uses the named vocab | 10:27 |
wiggy | vocabulary="simplon.plone.currency.currencies", | 10:27 |
wiggy | for that one | 10:27 |
wiggy | there is zcml to tie them together | 10:27 |
regebro | Eh, yeah, so I then need to create a named vocabulary and tie it together with zcml. | 10:28 |
regebro | "Crossing the stream to get water" as they say in Sweden. | 10:29 |
wiggy | there's that aspect | 10:29 |
regebro | I'll make a named vocablary if I need to use it more than once. | 10:30 |
*** markusleist has joined #zope3-dev | 10:36 | |
*** MrTopf has quit IRC | 10:42 | |
*** malthe has joined #zope3-dev | 10:58 | |
*** elro has joined #zope3-dev | 11:07 | |
*** MJ has joined #zope3-dev | 11:11 | |
*** zagy_ has joined #zope3-dev | 11:16 | |
*** zagy has quit IRC | 11:16 | |
*** thruflo has joined #zope3-dev | 11:22 | |
*** schwendinger has quit IRC | 11:29 | |
*** edgordon has joined #zope3-dev | 11:31 | |
*** zagy_ is now known as zagy | 11:42 | |
wiggy | what's the z3 file widget of choice? | 11:45 |
wiggy | for formlib that is | 11:45 |
wiggy | wow, still nothing useful as far as I can see | 11:52 |
*** Jell-O-Fishi has quit IRC | 11:53 | |
naro | wiggy: you mean file upload widget ? | 11:54 |
wiggy | yes | 11:54 |
naro | I know only FileWidget from zope/app/form/browser/textwidgets.py | 11:55 |
wiggy | my notes say 'the FileWidget returns a string instead of an IFile instance, which means it will always fail schema validation for IFile in formlib" | 11:56 |
wiggy | that makes it somewhat useless | 11:57 |
naro | ah | 11:57 |
wiggy | I have a proper file widget and field in Reflecto, I'll split that out | 11:57 |
*** elro_ has joined #zope3-dev | 12:03 | |
*** hdima has quit IRC | 12:06 | |
*** philiKON has joined #zope3-dev | 12:07 | |
*** goschtl has joined #zope3-dev | 12:14 | |
*** elro has quit IRC | 12:26 | |
*** greenman has joined #zope3-dev | 12:31 | |
edgordon | is there something trick to getting product-configs to load in zopeproject apps? | 12:36 |
edgordon | i can't get z3c.extfile's hashdir to load | 12:36 |
wiggy | what type of config | 12:39 |
edgordon | the one in zope.config | 12:39 |
*** b52laptop has joined #zope3-dev | 12:40 | |
edgordon | <product-config z3c.extfile>storage-dir=/somepath</product-config> | 12:40 |
wiggy | I've never used that | 12:40 |
edgordon | never used z3c.extfile, or never used <product-config> | 12:41 |
wiggy | both | 12:42 |
edgordon | well, don't | 12:42 |
edgordon | i got it to work using a os.environ var, but that just seems sorta clumsy | 12:42 |
wiggy | if it's an area that sucks I'll probably have to at some point | 12:42 |
wiggy | I always run into those | 12:42 |
philiKON | edgordon: product-config? | 12:44 |
philiKON | zope.config? | 12:44 |
philiKON | what are you talking about? | 12:45 |
edgordon | sorry, i meant zope.conf | 12:45 |
edgordon | http://svn.zope.org/z3c.extfile/trunk/src/z3c/extfile/README.txt?rev=75760&view=markup | 12:45 |
philiKON | i have no idea how it does this | 12:46 |
philiKON | well, i do have one idea | 12:46 |
philiKON | which is a hack | 12:47 |
*** jinty has joined #zope3-dev | 12:47 | |
philiKON | but apparently it has a wsgi middleware | 12:47 |
edgordon | yeah, i couldn't get the wsgi stuff in ini file to work either. and the eviro variable works | 12:48 |
edgordon | its fine. i can move on. just weird that it is done that way | 12:48 |
philiKON | show me your ini file | 12:49 |
philiKON | you likely got that wrong | 12:49 |
philiKON | the README.txt is weird | 12:49 |
philiKON | and it references zope.paste | 12:49 |
philiKON | which i'm going to let die | 12:49 |
edgordon | well, i already removed all the paste stuff | 12:49 |
edgordon | cause it didn't work | 12:50 |
philiKON | ok | 12:50 |
edgordon | btw phil, i was talking to andy from reportlab yesterday and mentioned your book | 12:51 |
edgordon | he was unaware of your chapter on it, and really had no clue about z3 | 12:52 |
*** MJ is now known as MJ|out | 12:52 | |
edgordon | so, he is gonna pick it up | 12:52 |
*** hdima has joined #zope3-dev | 12:52 | |
philiKON | cool | 12:53 |
philiKON | edgordon: http://paste.plone.org/17058 | 12:53 |
philiKON | edgordon: i hope that his stomach won't turn upside down when he sees my reportlab code :/ | 12:54 |
edgordon | LookupError: No section 'extfile' (prefixed by 'filter') found in config /home/edgordon/python/referralcare/deploy.ini | 12:56 |
*** mkerrin has joined #zope3-dev | 12:56 | |
philiKON | ah | 12:56 |
philiKON | http://paste.plone.org/17059 | 12:57 |
philiKON | it needs to be [filter:extfile] | 12:57 |
philiKON | sorry | 12:57 |
*** elro has joined #zope3-dev | 12:57 | |
edgordon | ok, yeah, that starts | 12:58 |
*** MJ|out is now known as MJ | 13:05 | |
*** elro_ has quit IRC | 13:16 | |
*** malthe is now known as malthe|away | 13:17 | |
*** junkafarian has joined #zope3-dev | 13:33 | |
*** yvl has joined #zope3-dev | 13:40 | |
*** dobee has joined #zope3-dev | 13:50 | |
*** deo has joined #zope3-dev | 14:01 | |
*** alga has joined #zope3-dev | 14:03 | |
thruflo | is there any actual difference between the following two page template snippets: | 14:18 |
thruflo | <script type="text/javascript" src="base/js/prototype.js" | 14:18 |
thruflo | tal:attributes="src string:${context/++resource++base/js/prototype.js}"> | 14:18 |
thruflo | </script> | 14:18 |
thruflo | and | 14:18 |
*** fdrake has left #zope3-dev | 14:18 | |
thruflo | <script type="text/javascript" src="/++resource++base/js/prototype.js}"> | 14:18 |
thruflo | </script> | 14:18 |
thruflo | ? | 14:18 |
*** jsadjohnson has joined #zope3-dev | 14:18 | |
*** malthe|away is now known as malthe | 14:19 | |
junkafarian | second one you have a trailing } :P | 14:19 |
thruflo | yeah, ignoring the typo ;) | 14:19 |
thruflo | but in terms of rending engine / how the ++resource++ gets evaluated...? | 14:20 |
thruflo | s/rendering | 14:20 |
*** ignas has joined #zope3-dev | 14:23 | |
thruflo | i'll take that as a no... | 14:23 |
*** MJ is now known as MJ|lunch | 14:26 | |
*** elro has quit IRC | 14:32 | |
*** philiKON has quit IRC | 14:38 | |
*** J1m has joined #zope3-dev | 14:39 | |
*** philiKON has joined #zope3-dev | 14:39 | |
*** WebMaven has joined #zope3-dev | 14:41 | |
*** MJ|lunch is now known as MJ | 14:44 | |
*** kleist has joined #zope3-dev | 14:48 | |
*** greenman has quit IRC | 14:51 | |
*** kleist has quit IRC | 14:52 | |
*** greenman has joined #zope3-dev | 14:52 | |
*** kleist has joined #zope3-dev | 14:52 | |
*** ThomasKarlRichte has joined #zope3-dev | 14:54 | |
*** greenman has quit IRC | 14:59 | |
*** tomus has joined #zope3-dev | 15:01 | |
*** WebMaven has quit IRC | 15:06 | |
*** niemeyer has joined #zope3-dev | 15:07 | |
*** benji has joined #zope3-dev | 15:15 | |
*** WebMaven has joined #zope3-dev | 15:18 | |
*** huajie has quit IRC | 15:19 | |
*** gstratton has joined #zope3-dev | 15:19 | |
*** yvl has quit IRC | 15:23 | |
*** malthe_ has joined #zope3-dev | 15:32 | |
*** Rolando has joined #zope3-dev | 15:33 | |
*** jsadjohnson has quit IRC | 15:36 | |
*** harobed has joined #zope3-dev | 15:39 | |
*** malthe has quit IRC | 15:40 | |
*** b52lap has joined #zope3-dev | 15:43 | |
*** elro has joined #zope3-dev | 15:44 | |
*** rcrafton has joined #zope3-dev | 15:57 | |
*** b52laptop has quit IRC | 15:59 | |
*** srichter has joined #zope3-dev | 16:00 | |
*** ChanServ sets mode: +o srichter | 16:00 | |
*** yvl has joined #zope3-dev | 16:01 | |
benji | who yvl | 16:01 |
benji | yvl: how do you spell your last name? (thunderbird helpfully destroys it for me) | 16:02 |
* CrippsFX grumbles at python | 16:03 | |
yvl | Justas Sadzevičius | 16:04 |
CrippsFX | When I try to run zope I get an error for: zopeinst/lib/python/ship/app/reports/houselist/browser/browser.py ... it says "syntax error in line 6" ... line 6 is an import statement for ship.app.reports.houselist.houses.House ... which python -c "import py_compile;py_compile.compile(r'houses.py')" returns no error for ... nor does it return an error for py_compile.compile(r'browser/browser.py') ... any suggestions on what could be going on her | 16:06 |
CrippsFX | e? I can supply a full traceback and some src if needed ... | 16:06 |
benji | yvl: thanks! | 16:06 |
*** jsadjohnson has joined #zope3-dev | 16:09 | |
timte | CrippsFX: paste... | 16:13 |
*** elro_ has joined #zope3-dev | 16:13 | |
CrippsFX | timte: kk. Give me a few moments | 16:15 |
*** dobee has quit IRC | 16:17 | |
CrippsFX | timte: I'm going to paste the full traceback first, then I'm going to annotate with the trouble source files. | 16:17 |
baijum | srichter, Congratulations to you all for http://apidoc.zope.org/++apidoc++/ ! | 16:18 |
*** jodok has quit IRC | 16:18 | |
lisppaste6 | CrippsFX pasted "Syntax Error? -- Traceback" at http://paste.lisp.org/display/48349 | 16:18 |
lisppaste6 | CrippsFX annotated #48349 with "The trouble browser.py" at http://paste.lisp.org/display/48349#1 | 16:19 |
lisppaste6 | CrippsFX annotated #48349 with "The associated ../houses.py" at http://paste.lisp.org/display/48349#2 | 16:20 |
CrippsFX | timte: kk ... that's what I've got. | 16:20 |
timte | CrippsFX: have no idea, perhaps some invisible weird character | 16:24 |
CrippsFX | timte: yeah ... that's what I was thinking too ... | 16:25 |
CrippsFX | grr ... what's the line for vimrc that highlights whitespace at the end of lines? | 16:26 |
wiggy | :syntax off | 16:28 |
CrippsFX | :P | 16:28 |
wiggy | vim itself doesn't do that | 16:28 |
*** edgordon has quit IRC | 16:29 | |
CrippsFX | hm ... I used to have a "script" in my vimrc that would do that for me ... helpful for keeping files clean. I guess I'll have to search the blag-o-blag to try and find it again :/ | 16:29 |
wiggy | the simplest way: | 16:31 |
wiggy | set hlsearch | 16:31 |
*** elro has quit IRC | 16:31 | |
wiggy | / $ | 16:31 |
benji | yvl: it appears PyPI doesn't like your name :( | 16:31 |
yvl | ouch | 16:31 |
benji | would it be sinful to replace "č" with "c" | 16:31 |
benji | (I hope I typed that right) | 16:31 |
wiggy | penalty of death | 16:31 |
yvl | I could live with that :) | 16:32 |
benji | I'll do that for now and see if I can persuade PyPI later | 16:32 |
yvl | thanks, benji | 16:32 |
*** mgedmin has joined #zope3-dev | 16:34 | |
timte | CrippsFX: I have that feature enabled in my vim, but have no idea what config has enabled it :) | 16:36 |
benji | yvl, srichter: http://pypi.python.org/pypi/zc.testbrowser | 16:43 |
benji | I'm writing an email for zope3-dev now | 16:43 |
*** dobee has joined #zope3-dev | 16:45 | |
*** dobee has quit IRC | 16:45 | |
gstratton | srichter: http://fuhm.net/super-harmful/ | 16:45 |
*** djfroofy has joined #zope3-dev | 16:46 | |
regebro | now... date widgets for formlib? anybody know of any good ones? | 16:47 |
yvl | benji, thanks :)) | 16:47 |
regebro | Could probably hack the ones I used for CalZope, but the code is horrid... | 16:47 |
*** djfroofy has quit IRC | 16:47 | |
regebro | And I don't like the js library I used either... | 16:47 |
*** baijum has quit IRC | 16:48 | |
benji | regebro: zc.datetimewidget; I don't know that it qualifies as "good", but perhaps "decent" | 16:49 |
regebro | ok thanks, I'll check it out. | 16:49 |
*** pelle_ has quit IRC | 16:54 | |
*** elro_ is now known as elro | 16:58 | |
*** rocky has joined #zope3-dev | 17:02 | |
regebro | benji: Asch, requires zc.resourceLibrary which doesn't work under 2.9. But thanks anyway. | 17:03 |
benji | darn | 17:04 |
benji | it probably wouldn't be hard to make that an optional requirement, if you want to tackle it | 17:04 |
*** jsadjohnson has quit IRC | 17:04 | |
regebro | benji: If it's easier than writing my own widget... :-) | 17:05 |
*** philiKON has quit IRC | 17:05 | |
benji | I suspect it would be easier than writing your own. | 17:07 |
*** tomus has quit IRC | 17:11 | |
CrippsFX | okay ... I'm out for the weekend. Cheers guys. | 17:27 |
*** tarek has joined #zope3-dev | 17:36 | |
*** hdima has quit IRC | 17:38 | |
Theuni | CrippsFX: the feature is 'list' | 17:40 |
Theuni | you have to ':set list' and eventuall also configure the 'listchars' variable | 17:40 |
regebro | hmmm. benji: how does the datetimewidget get it's javascript inserted into the template in z3? (Because it doesn't happen in z2). | 17:40 |
Theuni | CrippsFX: for me that is: | 17:40 |
Theuni | set list | 17:40 |
Theuni | set listchars=tab:>-,trail:',eol:$ | 17:40 |
benji | regebro: via zc.resourcelibrary | 17:41 |
regebro | Ah, OK. | 17:41 |
*** Ariel_Calzada has quit IRC | 17:41 | |
*** ruda_porto has joined #zope3-dev | 17:53 | |
*** kleist has left #zope3-dev | 17:55 | |
*** jodok has joined #zope3-dev | 17:55 | |
*** mkerrin has quit IRC | 18:01 | |
*** ruda_porto has quit IRC | 18:03 | |
*** MrTopf has joined #zope3-dev | 18:05 | |
*** faassen has joined #zope3-dev | 18:11 | |
*** goschtl has quit IRC | 18:14 | |
*** MrTopf has quit IRC | 18:17 | |
*** rcrafton has quit IRC | 18:21 | |
*** cursor has joined #zope3-dev | 18:24 | |
*** rcrafton has joined #zope3-dev | 18:26 | |
*** malthe_ has quit IRC | 18:29 | |
*** mkerrin has joined #zope3-dev | 18:35 | |
*** edgordon has joined #zope3-dev | 18:35 | |
*** yvl has quit IRC | 18:37 | |
*** markusleist has quit IRC | 18:37 | |
*** stu1 has joined #zope3-dev | 18:39 | |
*** mkerrin has quit IRC | 18:44 | |
*** rcrafton has quit IRC | 18:45 | |
*** yvl has joined #zope3-dev | 18:47 | |
*** edgordon_ has joined #zope3-dev | 18:47 | |
*** ignas has quit IRC | 18:48 | |
*** mkerrin has joined #zope3-dev | 18:49 | |
*** edgordon has quit IRC | 18:49 | |
*** febb has joined #zope3-dev | 18:52 | |
*** MJ has quit IRC | 18:53 | |
regebro | benji: Nah, zc.datetimewidget was to complicated. I just moved the widgets I made for Nuxeo to a separate product. | 18:56 |
benji | glad you got something that'll work for you | 18:57 |
regebro | It just worked(tm) but it has no tests, so I written in the readme to only use it if you need datetime widgets under Zope2. :-) | 18:57 |
*** stub has quit IRC | 18:58 | |
regebro | So now there is a p4a.datetimewidgets too, until I get time to replace the Zope2 publisher with zope.publisher. :-) | 18:58 |
regebro | Now, next question: How can I make an Integer field that can be empty? Or can't I? | 19:00 |
rocky | benji: hey, did you do a release or something of the new test browser stuff? | 19:01 |
benji | yep! I sent an email to zope3-dev about it this morning. | 19:02 |
*** jinty has quit IRC | 19:02 | |
regebro | (Ignore me. I wrote "required=False" in the wrong field. | 19:02 |
*** edgordon_ has quit IRC | 19:03 | |
*** sm is now known as sm-sprint | 19:06 | |
* mgedmin extends http://mg.pov.lt/restview/ to do syntax higlighting of doctest blocks with pygments | 19:07 | |
*** junkafarian has quit IRC | 19:07 | |
*** zagy has quit IRC | 19:08 | |
*** Rolando has quit IRC | 19:13 | |
*** edgordon has joined #zope3-dev | 19:15 | |
*** agroszer has joined #zope3-dev | 19:17 | |
*** jodok has quit IRC | 19:17 | |
*** jukart has quit IRC | 19:18 | |
*** MJ has joined #zope3-dev | 19:22 | |
*** b52lap has quit IRC | 19:23 | |
*** jodok has joined #zope3-dev | 19:25 | |
*** harobed has quit IRC | 19:34 | |
*** sm-sprint is now known as sm | 19:36 | |
* mgedmin releases restview as an egg | 19:37 | |
* mgedmin returns back to reading z3c.form documentation with restview | 19:38 | |
*** alecm has joined #zope3-dev | 19:38 | |
*** jodok has quit IRC | 19:40 | |
mgedmin | you know what's missing on http://apidoc.zope.org/? A big search field on the front page | 19:43 |
sm | wow.. a lot of cool stuff releasing today | 19:43 |
sm | anyone for a rename to api.zope.org ? | 19:46 |
deo | +1 | 19:47 |
*** alecm has quit IRC | 19:48 | |
*** elro has quit IRC | 19:50 | |
*** aclark|away is now known as aclark | 19:54 | |
*** TresEquis has joined #zope3-dev | 19:54 | |
*** elro has joined #zope3-dev | 19:58 | |
*** hazmat has quit IRC | 19:59 | |
*** jukart has joined #zope3-dev | 20:03 | |
*** zagy has joined #zope3-dev | 20:13 | |
*** ThomasKarlRichte has quit IRC | 20:15 | |
*** dtremea has joined #zope3-dev | 20:15 | |
*** deo has quit IRC | 20:16 | |
*** dtremea is now known as deo | 20:16 | |
*** BjornT has quit IRC | 20:23 | |
*** stu1 has quit IRC | 20:24 | |
*** dobee has joined #zope3-dev | 20:27 | |
*** markusleist has joined #zope3-dev | 20:29 | |
*** dobee has quit IRC | 20:32 | |
*** dobee has joined #zope3-dev | 20:33 | |
*** dobee has quit IRC | 20:34 | |
*** thruflo has quit IRC | 20:37 | |
*** naro has quit IRC | 20:38 | |
*** jodok has joined #zope3-dev | 20:41 | |
*** spython has joined #zope3-dev | 20:41 | |
*** elro has quit IRC | 20:43 | |
spython | hi, I've created a PAU and it's using a session credentials plugin and a PrincipalFolder (no code so far) | 20:44 |
*** b52laptop has joined #zope3-dev | 20:44 | |
mgedmin | sm: I'd wait until apidoc is more user-friendly before renaming | 20:45 |
spython | what would a subscriber look like that appends some groups to a principal created with this PAU | 20:45 |
spython | i tried the listening to IAuthenticatedPrincipal but apparently my subscriber doesn't activate | 20:46 |
*** faassen has quit IRC | 20:46 | |
spython | (well, the subscriber is my code of course, but adding pau stuff was all point-n-click :)) | 20:46 |
*** mkerrin has quit IRC | 20:47 | |
sm | why ? | 20:48 |
*** philiKON has joined #zope3-dev | 20:48 | |
* mgedmin doesn't find apidoc useful, sadly | 20:48 | |
mgedmin | it's too hard to find stuff in it | 20:49 |
mgedmin | say, I want to remember how to use zope.formlib | 20:49 |
mgedmin | I go to http://apidoc.zope.org/ | 20:49 |
mgedmin | I don't know where to go next | 20:49 |
sm | I agree with you about the search field.. needs one global search field always visible in the sidebar | 20:50 |
mgedmin | I probably want the .txt files from zope.formlib, which are probably somewhere in the "Book" | 20:50 |
mgedmin | or perhaps I should look at code browser and navigate to zope/formlib? | 20:50 |
mgedmin | the Find button in the code browser | 20:50 |
mgedmin | doesn't appear to work | 20:50 |
mgedmin | so, at this point apidoc to me is a promising tool, but it's not the best solution for learning zope | 20:51 |
* sm tackles the easy stuff first.. let's make "I go to ..." easier :) | 20:52 | |
mgedmin | and exposing it under api.zope.org seems to me to be a way of endorsing the tool before it's ready | 20:52 |
*** rcrafton has joined #zope3-dev | 20:52 | |
* mgedmin catches himself whining again :( | 20:52 | |
sm | I'm not saying publicise it | 20:52 |
sm | that's ok, we're just kicking around ideas | 20:52 |
febb | hey philiKON. how are you? | 20:53 |
philiKON | good, thanks | 20:53 |
spython | ok, how do i create a subscriber that listens to any event? i want to see what events are fired | 20:53 |
febb | great. not catching planes this time. ! uh? :) | 20:53 |
sm | mgedmin: I don't think we can harm the image of zope docs much.. don't worry about that :) | 20:54 |
mgedmin | spython: zope.event.subscribers.append(lambda event: sys.stdout.write(str(event)+'\n')) | 20:55 |
mgedmin | except don't use lambda | 20:55 |
sm | other issue: I am still waiting for google to show FoliageSprint in search results. The bot has been by several times, made a google sitemap and everything | 20:56 |
sm | can't think of anything else to do but forget about it and check in a few weeks | 20:56 |
spython | mgedmin: hmm, not sure how to use that code :) can't i just write a handler foo(event) and configure it to listen to a certain event (which, i dont know..) | 20:58 |
*** jsadjohnson has joined #zope3-dev | 20:59 | |
mgedmin | hm, googling for cache:http://wiki.zope.org/zope3/FoliageSprint shows that that page is not indexed | 21:00 |
*** jsadjohnson has quit IRC | 21:00 | |
sm | yes | 21:00 |
*** jsadjohnson has joined #zope3-dev | 21:00 | |
sm | nothing I do seems to change that, so far | 21:00 |
*** jsadjohnson has quit IRC | 21:00 | |
sm | it's just that page afaik | 21:01 |
mgedmin | spython: you can | 21:02 |
mgedmin | but you wanted to listen to any event | 21:02 |
mgedmin | and one way to do that is to add your handler to the zope.event.subscribers list | 21:02 |
*** tarek_ has joined #zope3-dev | 21:02 | |
mgedmin | or you could register it in zcml as a handler for "*", I think | 21:02 |
spython | so, i just add that where i e.g create my site? but don't use lambda of course | 21:03 |
spython | ehm, that didn't make any sense | 21:05 |
spython | wait, I'll try <subscriber for="*" handler=".foo.bar" /> | 21:05 |
*** philiKON has quit IRC | 21:05 | |
*** jsadjohnson has joined #zope3-dev | 21:06 | |
spython | worked, high 5 mgedmin \O_ | 21:06 |
*** jsadjohnson has quit IRC | 21:06 | |
*** tarek has quit IRC | 21:06 | |
spython | :O | 21:06 |
*** jsadjohnson has joined #zope3-dev | 21:06 | |
mgedmin | I forgot one thing apidoc is really useful for: zcml reference | 21:08 |
*** jsadjohnson has quit IRC | 21:08 | |
*** philiKON has joined #zope3-dev | 21:08 | |
*** jukart has quit IRC | 21:12 | |
spython | yeah, 95% of the time i use it for zcml :) | 21:12 |
*** supton has joined #zope3-dev | 21:16 | |
*** malthe has joined #zope3-dev | 21:17 | |
*** philiKON has quit IRC | 21:17 | |
*** jodok has quit IRC | 21:20 | |
*** jodok has joined #zope3-dev | 21:26 | |
*** Ariel_Calzada has joined #zope3-dev | 21:27 | |
*** BjornT has joined #zope3-dev | 21:27 | |
*** RaFromBRC has joined #zope3-dev | 21:33 | |
*** cursor has quit IRC | 21:34 | |
*** alga has quit IRC | 21:35 | |
*** fcorrea has joined #zope3-dev | 21:40 | |
*** jbonilla has joined #zope3-dev | 21:43 | |
*** yvl has quit IRC | 21:50 | |
*** edgordon has quit IRC | 22:04 | |
*** febb has quit IRC | 22:05 | |
*** sm is now known as sm-afk | 22:08 | |
*** zagy has quit IRC | 22:09 | |
*** elro has joined #zope3-dev | 22:11 | |
*** elro_ has joined #zope3-dev | 22:18 | |
*** elro_ has quit IRC | 22:20 | |
supton | schema question: how can I declare an Object field on an interface IFoo like this: \n related = schema.Object(schema=IFoo) | 22:25 |
supton | ? | 22:25 |
supton | this does not work since the identifier IFoo is not known to the interpreter within the code block for IFoo itself | 22:26 |
supton | is there a way to do this in python? | 22:26 |
*** alecm has joined #zope3-dev | 22:28 | |
*** yvl has joined #zope3-dev | 22:28 | |
mgedmin | zope.app.container.constraints have the same problem | 22:31 |
mgedmin | you can't declare that the container contains IMyItem and item is contained in IMyContainer | 22:31 |
*** elro has quit IRC | 22:31 | |
mgedmin | and the solution there was to use strings, e.g. contained('my.package.interfaces.IMyContainer') | 22:32 |
mgedmin | I don't know if schema.Object would support that, though | 22:32 |
mgedmin | (if not, then perhaps someone ought to implement support for it) | 22:33 |
supton | it appears I need to define the interface, and then add an Object field after it is defined. what a pain | 22:52 |
*** jbonilla has quit IRC | 22:53 | |
*** sm-afk is now known as sm | 22:55 | |
*** rocky has left #zope3-dev | 22:57 | |
mgedmin | is it worth it? | 22:58 |
*** jsadjohnson has joined #zope3-dev | 22:59 | |
mgedmin | I sometimes just use foo = Field() # but really Object(schema=IFoo) | 22:59 |
*** jsadjohnson has quit IRC | 22:59 | |
*** elro has joined #zope3-dev | 23:01 | |
*** Ariel_Calzada has quit IRC | 23:03 | |
*** junkafarian has joined #zope3-dev | 23:09 | |
*** greenman has joined #zope3-dev | 23:11 | |
*** WebMaven has quit IRC | 23:13 | |
*** hazmat has joined #zope3-dev | 23:15 | |
*** ChanServ sets mode: +o hazmat | 23:15 | |
*** amit_am has joined #zope3-dev | 23:26 | |
*** amit_am has left #zope3-dev | 23:27 | |
*** philiKON has joined #zope3-dev | 23:31 | |
*** junkafarian has quit IRC | 23:32 | |
*** malthe has quit IRC | 23:33 | |
*** malthe has joined #zope3-dev | 23:48 | |
*** jukart has joined #zope3-dev | 23:52 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!