oferw | :) | 00:18 |
---|---|---|
*** hazmat has joined #zope3-dev | 00:31 | |
*** ChanServ sets mode: +o hazmat | 00:31 | |
*** oferw has quit IRC | 00:31 | |
*** admp has quit IRC | 00:43 | |
*** hazmat has quit IRC | 00:43 | |
*** j1m has quit IRC | 00:52 | |
*** hazmat has joined #zope3-dev | 01:05 | |
*** ChanServ sets mode: +o hazmat | 01:05 | |
*** yota has quit IRC | 01:11 | |
*** hazmat has quit IRC | 01:11 | |
*** benji has quit IRC | 01:11 | |
*** senra has quit IRC | 01:17 | |
*** rocky|new-baby has quit IRC | 01:22 | |
*** alecm has quit IRC | 01:33 | |
*** kamalgill has left #zope3-dev | 01:39 | |
*** natea has quit IRC | 02:11 | |
*** hazmat has joined #zope3-dev | 02:14 | |
*** ChanServ sets mode: +o hazmat | 02:14 | |
*** jinty has joined #zope3-dev | 02:16 | |
*** natea has joined #zope3-dev | 02:17 | |
*** hazmat has quit IRC | 02:52 | |
*** hazmat has joined #zope3-dev | 04:21 | |
*** ChanServ sets mode: +o hazmat | 04:21 | |
*** senra has joined #zope3-dev | 04:26 | |
*** hazmat has quit IRC | 04:45 | |
*** hazmat has joined #zope3-dev | 05:01 | |
*** ChanServ sets mode: +o hazmat | 05:01 | |
*** mexiKON has joined #zope3-dev | 05:15 | |
*** hazmat has quit IRC | 05:26 | |
*** philiKON has quit IRC | 05:32 | |
*** senra has quit IRC | 05:39 | |
*** senra has joined #zope3-dev | 06:09 | |
*** senra has quit IRC | 06:09 | |
*** niemeyer has quit IRC | 06:45 | |
*** jinty has quit IRC | 07:09 | |
*** RaFromBRC has quit IRC | 09:08 | |
*** yota has joined #zope3-dev | 09:25 | |
*** hazmat has joined #zope3-dev | 09:33 | |
*** ChanServ sets mode: +o hazmat | 09:33 | |
*** hazmat has quit IRC | 09:50 | |
*** natea has quit IRC | 09:51 | |
*** tarek has joined #zope3-dev | 10:08 | |
*** hazmat has joined #zope3-dev | 10:12 | |
*** ChanServ sets mode: +o hazmat | 10:12 | |
*** hazmat has quit IRC | 10:13 | |
*** Theuni has joined #zope3-dev | 10:16 | |
*** oferw has joined #zope3-dev | 10:36 | |
*** efrerich has joined #zope3-dev | 10:39 | |
*** oferw has quit IRC | 11:01 | |
*** mexiKON is now known as philiKON | 11:35 | |
*** dunny has quit IRC | 11:39 | |
*** Theuni has quit IRC | 12:02 | |
*** volvox has joined #zope3-dev | 13:12 | |
*** tarek has quit IRC | 13:19 | |
*** volvox has quit IRC | 13:25 | |
*** volvox has joined #zope3-dev | 13:26 | |
*** agroszer has joined #zope3-dev | 13:27 | |
*** natea has joined #zope3-dev | 13:34 | |
*** dunny has joined #zope3-dev | 13:38 | |
*** dunny has quit IRC | 13:46 | |
*** rocky|new-baby has joined #zope3-dev | 14:11 | |
*** natea has quit IRC | 14:31 | |
*** jannur has joined #zope3-dev | 14:31 | |
*** natea has joined #zope3-dev | 14:32 | |
*** stub has joined #zope3-dev | 14:36 | |
*** zbir has joined #zope3-dev | 14:46 | |
*** agroszer has quit IRC | 14:46 | |
*** agroszer has joined #zope3-dev | 14:46 | |
*** Theuni has joined #zope3-dev | 14:49 | |
*** Theuni has quit IRC | 15:04 | |
*** jannur has quit IRC | 15:18 | |
*** rocky|new-baby has quit IRC | 16:07 | |
*** benji has joined #zope3-dev | 16:11 | |
*** admp has joined #zope3-dev | 16:15 | |
*** admp has quit IRC | 16:28 | |
*** jannur has joined #zope3-dev | 16:37 | |
*** rocky|new-baby has joined #zope3-dev | 16:38 | |
*** senra has joined #zope3-dev | 16:42 | |
*** agroszer has quit IRC | 17:06 | |
*** stub has quit IRC | 17:23 | |
*** tarek has joined #zope3-dev | 17:25 | |
*** roym has joined #zope3-dev | 17:39 | |
*** jannur has quit IRC | 17:42 | |
*** tarek has quit IRC | 17:43 | |
roym | what is the python code equivalent for the tal syntax: "contextObj/@@viewOne"? | 17:44 |
roym | I'm forced to use a nocall: like so... | 17:50 |
roym | <metal:block tal:define="viewOne nocall:contextObj/@@viewOne" | 17:50 |
roym | tal:content="python:viewOne('arg1')"/> | 17:50 |
roym | Just wondered if there a direct way to refer to the view method | 17:50 |
roym | in python. | 17:50 |
srichter | getMultiAdapter((contextObj, request), name="viewOne") | 17:51 |
roym | can I use getMultiAdapter in a page template? Wouldn't I have to do some sort of import for that? that has seemed kind of messy. | 17:52 |
srichter | no, you do this in you view code | 17:58 |
srichter | you should *never* use a Python expression inside TAL | 17:58 |
roym | srichter: thanks. I keep falling into the trap of doing too much in TAL. | 18:29 |
senra | srichter: Well, if you should *never* use python in tal, why not deprecate it ? Or maybe never is too strong | 18:34 |
*** BjornT_ has joined #zope3-dev | 18:45 | |
*** BjornT has quit IRC | 18:46 | |
*** BjornT_ is now known as BjornT | 18:46 | |
senra | My point: an available mechanism carries an implicit allowance of use | 18:47 |
benji | senra, at best it's an escape hatch, at worst, an attractive neusance | 18:56 |
senra | benji: ok, but that means s/never/seldom/ | 18:58 |
benji | more like, s/never/only unless it saves you from dieing a painful death/ | 18:59 |
senra | And, then these life-or-death choices must be clear for new comers, otherwise they' ll start using the emergency exit on a daily basis ;o) | 19:00 |
benji | right, that's the definition of "attractive neusance" | 19:01 |
senra | so we' re on the same boat here, rowing in sync =) | 19:01 |
benji | it would seem so | 19:05 |
srichter | I never use Python in ZPT | 19:12 |
srichter | I would vote +1 for removing it, but we recently had this discussion already on the mailing lists | 19:13 |
benji | 100% agreed srichter | 19:13 |
srichter | wanting to use Python in ZPT is the best indicator that you are doing your templating incorrectly | 19:13 |
senra | I' m not saying I' m against it though | 19:14 |
srichter | living without Python in TAL before viewlets came around was a bit tougher, since macros did not have access to a view class | 19:14 |
senra | Is there a "How to avoid using Python Expressions in TAL and become a respected community member" somewhere, or is this information still scattered around the net? | 19:16 |
srichter | no, it's one of those Zen things :-) | 19:16 |
senra | Furthermore, is this true just for z3, or zope2 dwellers could benefit from this also ? | 19:16 |
senra | Ok | 19:16 |
*** efrerich has quit IRC | 19:17 | |
srichter | if Zope 2 people use views like Zope 3 does (via Five), they have the same benefits | 19:17 |
srichter | I ahve also heard that viewlets are now integrated in Zope 2 for the next release | 19:17 |
senra | I just bought Zope3: Developer's Handbook (congratz), I' ll start to educate myself from there ;o) | 19:17 |
srichter | senra: if you have used push-based templating before, you will notice that you can use TAL + view classes as pure push as well | 19:18 |
srichter | I more and more use TAL this way | 19:19 |
senra | I also posses Philipps book by the way. | 19:19 |
srichter | my view class provides the data in TAL friedly formats (i.e. dicts and lists) | 19:19 |
senra | srichter: That is a good hint, I will experiment with that and get the feeling of it. | 19:19 |
srichter | note that those TAL friendly data blocks often also specify things like "isSelected", odd versus even, etc | 19:21 |
*** jannur has joined #zope3-dev | 19:24 | |
srichter | does anyone here know a lot about Zope catalogs and indices? | 19:44 |
senra | I guess "a lot" is very intimidating, but for Andreas Jung ... I certainly do not qualify. | 19:47 |
srichter | I have a dictionary of questions and answers of the following structure: | 19:48 |
*** j1m has joined #zope3-dev | 19:48 | |
srichter | {'q1': 'This is answer one', 'q2': 'This is answer two.'} | 19:48 |
j1m | srichter, any news on the releases? Need any help? | 19:48 |
srichter | j1m: I am doing them this weekend for sure; I goit all the info from Tim I need | 19:49 |
j1m | cool | 19:49 |
srichter | j1m: I just got stuck with some client work :-( | 19:49 |
*** efrerich has joined #zope3-dev | 19:49 | |
j1m | Nothing wrong w client work. :) | 19:49 |
srichter | :-) that's true too | 19:49 |
srichter | Paid Zope 3 work is good news | 19:49 |
srichter | j1m: maybe you can help me quickly | 19:50 |
j1m | k | 19:50 |
srichter | I have custom questions that a client must answer | 19:50 |
srichter | so I store the answers ina dictionary as follows: | 19:50 |
srichter | {'q1': 'This is answer one', 'q2': 'This is answer two.'} | 19:50 |
srichter | now I need to be able to say: Do a text search on q1 | 19:50 |
srichter | Clearly I do not want to create a text index for each question | 19:51 |
srichter | since the amout and names of the questions differ among objects | 19:51 |
srichter | any idea? | 19:51 |
srichter | or can the SetIndex and ValueIndex classes do text searches as well? | 19:52 |
j1m | I don't know what you mean by "do a text search on q1." | 19:52 |
srichter | I want to say: Return all objects whose answer to 'q1' satisfies X | 19:53 |
srichter | for example: return all objects where the answer to 'q1' contains 'answer one' | 19:53 |
srichter | currently I am using a set index to index the questions as follows: (' | 19:54 |
srichter | currently I am using a set index to index the questions as follows: ('q1', 'This is answer one') | 19:54 |
srichter | setting | 19:54 |
srichter | item = ('q1', 'This is answer one') | 19:55 |
srichter | I want to query: | 19:55 |
j1m | OK. So the answers are open ended. How many answers do you expect per question? | 19:55 |
srichter | one answer per question | 19:55 |
srichter | but the amount and names of the questions differ | 19:55 |
j1m | How mant "objects" will there be (that have an answer to a particular question)? | 19:56 |
j1m | many | 19:56 |
srichter | not many | 19:57 |
srichter | at the very most 200, I would think | 19:57 |
srichter | let me give you some context | 19:57 |
j1m | so why not just do linear sub-string search? | 19:57 |
srichter | I am developing an application for handling job applications | 19:57 |
j1m | Why bother with an index? | 19:58 |
srichter | ok, that would be my solution B | 19:58 |
srichter | but the query syntax for the text index is very nice :-) | 19:58 |
srichter | I can say things like: "X and Y" or "X*" | 19:58 |
j1m | ok, then build a text index. | 19:58 |
j1m | If the amount of data is small, it doesn't make much difference one way or another. | 19:59 |
j1m | You could even create the index on the fly. | 19:59 |
srichter | how can I say: Look only in the answer for 'q1' with a text index? | 19:59 |
j1m | BTW, you could use a shared lexicon. | 19:59 |
j1m | build an index just for q1. | 20:00 |
j1m | You don't necessarily need to use a catalog. | 20:00 |
srichter | index on the fly... that sounds like a really good idea | 20:00 |
srichter | what is a shared lexicon? | 20:00 |
srichter | ok, I am going with building an index on the fly; that seems scalable enough for now | 20:01 |
srichter | if I need something better later, I can revisit the issue | 20:01 |
srichter | thanks a lot | 20:01 |
j1m | a text index actually indexes both words and documents. The lexicon keeps track of all words and assigns them word ids. | 20:01 |
j1m | You could save a little work by managing a lexiom tha's shared among text indexes. | 20:02 |
srichter | I see | 20:02 |
srichter | ok, that makes sense | 20:02 |
srichter | this gives me enough options to work with | 20:02 |
srichter | thanks again | 20:02 |
j1m | yw | 20:04 |
*** j1m has quit IRC | 20:21 | |
*** volvox has quit IRC | 20:48 | |
*** volvox has joined #zope3-dev | 20:57 | |
natea | srichter, are you interested in participating in Google Summer of Code? | 21:09 |
natea | Plone Foundation has been selected as a mentoring organization | 21:09 |
natea | which means that students can submit proposals and if accepted, receive $4,500 from Google | 21:10 |
srichter | natea: sure | 21:20 |
natea | great! you need to submit a proposal by Monday, May 8 | 21:21 |
natea | detailing what you'd like to work on | 21:21 |
srichter | natea: oh, I thought as mentor | 21:21 |
*** oferw has joined #zope3-dev | 21:21 | |
natea | well, mentor's don't get paid ;) | 21:21 |
natea | and right now we have more mentors than we have students | 21:21 |
srichter | natea: I won't have time to work on a particular project | 21:21 |
srichter | natea: if I think of something good I'll write a proposal | 21:22 |
natea | not even for $4,500 and a free trip to Plone Conf? ;) | 21:22 |
*** dunny has joined #zope3-dev | 21:22 | |
srichter | natea: mmh, I'll think of something :-) | 21:22 |
natea | have a look at some of the ideas already posted: http://plone.org/events/summer-of-code/2006 | 21:23 |
srichter | natea: ok, I was just about to ask that | 21:23 |
srichter | natea: today I thought about reviving a query language for Zope | 21:23 |
natea | and that might give you some ideas of what you'd you'd like to work on | 21:23 |
*** volvox has quit IRC | 21:23 | |
srichter | with hurry.query and some other trickery we could create a pretty efficient query language | 21:24 |
natea | btw, i agree that you'd be better suited as a mentor than a student, | 21:24 |
natea | but since you still have the student status, it's best if you apply as a student | 21:24 |
natea | mentors can't do projects - only students can | 21:24 |
srichter | ok | 21:25 |
natea | not sure who would be *your* mentor though ;) | 21:25 |
srichter | (this would be funny, since I would act as both; I am probably going to mentor Paul Cardune to create a doctest based assignment verifier) | 21:25 |
srichter | depending on the task Jim, Guido or someone else | 21:26 |
natea | for which oss project? | 21:26 |
natea | python? | 21:26 |
srichter | yeah, python | 21:27 |
srichter | natea: can you ask the plone developers what they would like me to work on, if I am doing a project? | 21:27 |
srichter | there are certainly several suggestions that fall into my area of expertise | 21:28 |
natea | sure, i'll ask on plone.devel | 21:28 |
natea | or you can post the question yourself | 21:28 |
srichter | (I'll note though that I am not going to touch Zope 2 code; all pure Zope 3 with someone helping me with the Five stuff) | 21:28 |
srichter | yeah, how long does the proposal have to be? | 21:29 |
natea | sure, that's what i expected ;) | 21:29 |
natea | the proposal you submit to google? | 21:29 |
srichter | yeah | 21:29 |
natea | http://code.google.com/soc/studentfaq.html#look_like | 21:29 |
natea | 7500 character limit | 21:30 |
srichter | not too bad | 21:30 |
srichter | natea: btw, what would you think of a Zope query system + language? | 21:37 |
natea | not quite sure what that would entail | 21:37 |
srichter | I think I have a strategy for index-based and ad-hoc object seach | 21:37 |
natea | are you thinking something that would be an alternative to portal_catalog? | 21:37 |
natea | or just another way of talking to the catalog? | 21:38 |
srichter | no, more something that uses the catalog to do queries | 21:38 |
srichter | right | 21:38 |
srichter | have you looked at hurry.query? | 21:38 |
natea | no | 21:38 |
srichter | it allows you to say things like: Text(('catalog-1', 'fulltext-index'), '*foo*') or Eq(('catalog-2', 'foo-attr'), 'value') | 21:39 |
philiKON | natea, pong | 21:39 |
natea | Stephan, msg sent | 21:39 |
srichter | ok, thanks | 21:40 |
natea | philiKON, are you still a student? | 21:40 |
philiKON | yep | 21:40 |
natea | srichter, cc'ed you on it | 21:40 |
philiKON | sorry, no time for SoC | 21:40 |
philiKON | :) | 21:40 |
srichter | natea: thanks | 21:40 |
natea | you already knew my q ;) | 21:40 |
philiKON | o'course ;) | 21:40 |
srichter | natea: did you BCC me? because the E-mail has no other recipient | 21:43 |
natea | srichter, it was sent to the nntp groups plone.user and plone.devel | 21:44 |
natea | with you cc'ed | 21:44 |
srichter | ok | 21:45 |
philiKON | see y'all | 21:46 |
srichter | bye | 21:46 |
natea | bye philiKON | 21:47 |
*** senra has quit IRC | 21:48 | |
*** senra has joined #zope3-dev | 21:48 | |
*** Egon has joined #zope3-dev | 22:21 | |
*** pcardune has quit IRC | 22:31 | |
*** jannur has quit IRC | 22:33 | |
*** efrerich has quit IRC | 22:38 | |
*** dunny has quit IRC | 22:40 | |
*** dunny has joined #zope3-dev | 23:01 | |
*** whit has quit IRC | 23:23 | |
*** oferw has quit IRC | 23:29 | |
*** hazmat has joined #zope3-dev | 23:30 | |
*** ChanServ sets mode: +o hazmat | 23:30 | |
*** oferw has joined #zope3-dev | 23:41 | |
*** senra has left #zope3-dev | 23:49 | |
*** rodsenra has joined #zope3-dev | 23:53 | |
*** BjornT_ has joined #zope3-dev | 23:57 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!