*** mkerrin has quit IRC | 00:27 | |
*** tvon has joined #zope3-dev | 01:04 | |
*** tvon|desk has joined #zope3-dev | 01:06 | |
*** mohsen has joined #zope3-dev | 01:14 | |
*** [apoirier] has quit IRC | 01:28 | |
*** yota has quit IRC | 01:56 | |
*** SteveA has joined #zope3-dev | 02:06 | |
*** projekt01 has left #zope3-dev | 02:17 | |
*** mohsen has quit IRC | 02:32 | |
*** d2m has quit IRC | 02:52 | |
*** SteveA has quit IRC | 02:58 | |
*** SteveA has joined #zope3-dev | 03:05 | |
*** gumpa_ has quit IRC | 03:19 | |
*** tvon has quit IRC | 04:15 | |
*** tvon has joined #zope3-dev | 04:19 | |
*** tvon has quit IRC | 04:36 | |
*** C8N has left #zope3-dev | 04:42 | |
*** SteveA has quit IRC | 04:49 | |
*** tvon has joined #zope3-dev | 05:30 | |
*** BjornT has joined #zope3-dev | 05:59 | |
jbb666 | trying to access an attribute on my class from a view I got ForbiddenAttribute... how do I enable access to this particular method? Sometihng in ZCML?? | 06:10 |
---|---|---|
jbb666 | ahhh... <allow attributes=""> does the trick | 06:16 |
*** jbb666 has quit IRC | 06:18 | |
*** BjornT has quit IRC | 06:30 | |
*** SureshZ has joined #zope3-dev | 07:43 | |
*** RaFromBRC has joined #zope3-dev | 07:48 | |
*** kaczordek has joined #zope3-dev | 07:53 | |
*** viyyer has joined #zope3-dev | 08:04 | |
*** viyyer has quit IRC | 08:06 | |
*** viyyer has joined #zope3-dev | 08:09 | |
*** d2m has joined #zope3-dev | 09:03 | |
*** hdima has joined #zope3-dev | 09:26 | |
*** SureshZ has left #zope3-dev | 09:28 | |
*** RaFromBRC has quit IRC | 09:35 | |
*** Aiste has quit IRC | 09:36 | |
*** BjornT has joined #zope3-dev | 09:37 | |
*** Theuni has joined #zope3-dev | 09:40 | |
*** yota has joined #zope3-dev | 09:56 | |
*** Aiste has joined #zope3-dev | 10:09 | |
*** Theuni has quit IRC | 10:21 | |
*** Theuni has joined #zope3-dev | 10:23 | |
*** BjornT has quit IRC | 10:29 | |
*** andrew_m has joined #zope3-dev | 10:32 | |
*** SteveA has joined #zope3-dev | 10:41 | |
*** lunatik has joined #zope3-dev | 10:54 | |
*** tarek_ has joined #zope3-dev | 11:04 | |
*** stub has joined #zope3-dev | 11:15 | |
*** BjornT has joined #zope3-dev | 11:50 | |
*** stub has quit IRC | 11:51 | |
*** stub has joined #zope3-dev | 12:03 | |
*** mexiKON has joined #zope3-dev | 12:17 | |
*** philiKON has quit IRC | 12:30 | |
*** vlado has joined #zope3-dev | 12:35 | |
*** lunatik is now known as lunatik|pasla | 12:42 | |
*** vlado has quit IRC | 12:45 | |
* VladDrac bought a zope3 book! | 12:50 | |
VladDrac | (unfortunately, srichters book was sold out (which is good news as well of course) | 12:51 |
*** stub has quit IRC | 12:52 | |
*** mkerrin has joined #zope3-dev | 12:58 | |
*** stub has joined #zope3-dev | 12:58 | |
*** ignas has joined #zope3-dev | 13:12 | |
*** BjornT has quit IRC | 13:19 | |
*** vlado has joined #zope3-dev | 13:25 | |
*** kaczordek has quit IRC | 13:43 | |
*** faassen has joined #zope3-dev | 13:45 | |
*** regebro has joined #zope3-dev | 13:53 | |
*** stub has quit IRC | 13:56 | |
*** srichter has quit IRC | 14:09 | |
*** mooded has joined #zope3-dev | 14:23 | |
*** alga has joined #zope3-dev | 14:26 | |
*** physiKON has joined #zope3-dev | 14:28 | |
*** vlado has quit IRC | 14:36 | |
*** vlado has joined #zope3-dev | 14:36 | |
*** mooded has quit IRC | 14:40 | |
*** vlado has quit IRC | 14:42 | |
*** vlado_ has joined #zope3-dev | 14:42 | |
*** ignas has quit IRC | 14:43 | |
*** mohsen has joined #zope3-dev | 14:52 | |
*** tarek_ has quit IRC | 14:52 | |
*** bskahan has joined #zope3-dev | 14:52 | |
*** physiKON has quit IRC | 15:05 | |
*** srichter has joined #zope3-dev | 15:24 | |
*** ChanServ sets mode: +o srichter | 15:25 | |
srichter | mkerrin: now I am ready to chat with you :-) | 15:25 |
mkerrin | strichter: just got file upload working which is pretty much every thing I need at the moment | 15:29 |
srichter | cool | 15:29 |
srichter | does it work in active and passive mode? | 15:29 |
mkerrin | seems to, you mean active = data channel set up with PORT command | 15:30 |
mkerrin | then yes | 15:30 |
srichter | active means that it does not open a separate connection | 15:31 |
srichter | passive: a new connection on a different port is creeted | 15:31 |
mkerrin | ah - active state then probable won't work. | 15:33 |
srichter | can you test it? | 15:33 |
mkerrin | I will try now. | 15:34 |
srichter | cool | 15:35 |
*** MacYET has joined #zope3-dev | 15:39 | |
MacYET | morning | 15:39 |
*** lunatik|pasla is now known as lunatik | 15:39 | |
*** sashav has joined #zope3-dev | 15:41 | |
srichter | MacYET: hi | 15:42 |
MacYET | hi | 15:42 |
MacYET | no panic, no questions today :) | 15:42 |
srichter | MacYET: I am panicing, because this means you are not working with Z3 today. ;-) | 15:43 |
MacYET | hehe | 15:44 |
MacYET | i am currently fine | 15:45 |
srichter | yipee :-) | 15:45 |
*** lunatik has left #zope3-dev | 15:45 | |
mkerrin | srichter: active does seem to work but I have found out that multiple uploads is a bit shaky - it just hangs - another problem to fix | 15:47 |
srichter | ok | 15:48 |
srichter | I remember having this problem too, when I rewrote ZServer's FTP server | 15:48 |
srichter | it has something to do with getting the server back into the correct state | 15:48 |
* MacYET looks at stealing the i18n machinery | 15:49 | |
mkerrin | ok - I will double check that | 15:51 |
mkerrin | I have a patch against twisted.protocols.ftp I am about to send to the twisted guys - this is why I didn't upload the code yesterday | 15:52 |
mkerrin | has a lot of FTP commands that modify the filesystem aren't implemented in twisted. | 15:53 |
mkerrin | yet | 15:53 |
srichter | MacYET: what part for which project? :-) | 15:54 |
srichter | mkerrin: make a twisted bug report | 15:55 |
SteveA | i'm using the zope3 ftp server in production | 15:55 |
srichter | SteveA: yeah, ZServer's FTP server was pretty solid | 15:55 |
SteveA | however, i had to make some modifications in the channel/server subclasses i use | 15:55 |
MacYET | srichter: replacement for placelesstranslationservice | 15:55 |
SteveA | there are bugs open on these | 15:55 |
srichter | SteveA: we are talking about twisted integration | 15:56 |
SteveA | as it gives up on long uploads / downloads | 15:56 |
SteveA | the reason i persisted with the zserver one is that the twisted ftp server was rather ropey | 15:56 |
srichter | in fact the twisted guys will have a look at our filesystem code to rewrite their FTP server | 15:56 |
srichter | SteveA: yes, it sucks! | 15:56 |
SteveA | well... | 15:57 |
srichter | SteveA: but there has been recent work done on it and they will work on it to make it work well for Zope 3 | 15:57 |
srichter | MacYET: oh, I see | 15:57 |
SteveA | i think andrew bennetts is contributing a uss of the sftp server with certain support to twisted | 15:57 |
SteveA | and he was talking about generalizing it to an ftp server | 15:57 |
SteveA | so, do talk to andrew | 15:57 |
srichter | look, I just now that "spiv" is working on it, which is andrew afaik | 15:58 |
srichter | we are in pretty good contact with the twsited developers these days | 15:59 |
SteveA | i work with andrew | 16:00 |
SteveA | and he's here in australia at the UDU conference right now | 16:00 |
SteveA | so, if there's stuff you want to arrange, i can pass on a message, or work it into our schedule perhaps | 16:00 |
srichter | oh, that sounds good :-) | 16:01 |
srichter | itamar and I already posted a bug report on what should/needs to be done | 16:01 |
srichter | I think andrew acknowledged the report already and agrees | 16:01 |
srichter | so it's a matter of doing it now! | 16:01 |
srichter | if you could give him some time for this, that would be awesome!!! | 16:02 |
srichter | :-) | 16:02 |
srichter | mkerrin: is working on getting FTP going with what twisted has now, so that we have a starting point | 16:02 |
SteveA | i'll talk with andrew about it | 16:04 |
srichter | thanks a lot! | 16:04 |
mkerrin | I should have the twisted bug / patch / tests later tonight | 16:04 |
SteveA | he has a very busy schedule, though | 16:04 |
*** __gotcha has joined #zope3-dev | 16:05 | |
srichter | I am willing to help but I need some guidance | 16:06 |
srichter | itamar told me that the SMTP server is supposed to look very similar, but does thinks right | 16:06 |
srichter | (i.e. uses deferred's and a command pool for correct pipelining | 16:07 |
mkerrin | I just figured out all this deferred stuff yesterday - a moment of clarity | 16:07 |
*** stub has joined #zope3-dev | 16:08 | |
mkerrin | I wil take a look at the SMTP server - maybe I next project | 16:09 |
srichter | btw, don't worry about checking in your code, even though your changes to twisted are still pending | 16:10 |
srichter | I have done the same :-) | 16:10 |
srichter | You need to apply patches from issue 999 and 1000 to twisted trunk right now to get the HTTP server working correctly | 16:11 |
mkerrin | right - I will check it in then | 16:13 |
*** Aiste has quit IRC | 16:13 | |
*** MacYET_ has joined #zope3-dev | 16:19 | |
*** viyyer has quit IRC | 16:23 | |
*** MacYET has quit IRC | 16:26 | |
*** alga has quit IRC | 16:28 | |
*** niemeyer has joined #zope3-dev | 16:30 | |
*** Aiste has joined #zope3-dev | 16:32 | |
*** sashav has quit IRC | 16:34 | |
MacYET_ | can the i18n machinery of z3 handle multiple catalog files per domain? | 16:45 |
*** J1m has joined #zope3-dev | 16:47 | |
*** SteveA has quit IRC | 16:47 | |
srichter | MacYET_: I am not sure, but I think it does | 16:49 |
* MacYET_ detex that the PTS implementation sucks | 16:51 | |
*** stub has quit IRC | 16:52 | |
srichter | MacYET_: it is based on old code :-) | 16:52 |
MacYET_ | i know | 16:53 |
hdima | MacYET_: AFAIK catalog file name == domain name, so multiple catalog files per domain is not supported | 16:56 |
hdima | MacYET_: see zope/app/i18n/metaconfigure.py | 17:01 |
MacYET_ | tnx | 17:02 |
srichter | I guess we need to check the zope.i18n code to see whether multiple files can be specified | 17:06 |
hdima | so many TODO's... :-) | 17:06 |
srichter | eek, message catalogs are not utilities :-( | 17:07 |
srichter | hdima: MacYET_: looking at the code, I am pretty sure you can have multiple POs per language/domain | 17:09 |
srichter | because the identifier of the catalog is its path name not the language-domain pair | 17:09 |
hdima | you can have multiple languages in one domain, but you can't have multiple POs for one language | 17:14 |
srichter | yes you can, just not iun the same locales structure | 17:15 |
srichter | i.e., you can have | 17:15 |
srichter | zope/app/locales/de/LC_MESSAGES/zope.po | 17:15 |
srichter | and | 17:15 |
srichter | myapp/locales/de/LC_MESSAGES/zope.po | 17:16 |
hdima | but: domain = domain_file[:-3], so domain always will be 'zope' | 17:17 |
VladDrac | srichter: just sorta finished your book - nice work :) | 17:20 |
MacYET_ | got already what i wanted to know :) | 17:21 |
VladDrac | erm wait | 17:21 |
VladDrac | not your book | 17:21 |
VladDrac | I ordered your book, and finished philipp's book | 17:21 |
VladDrac | sorry :) | 17:21 |
VladDrac | (already know your book - nice work as well :) | 17:21 |
hdima | I think it's not so hard to change catalogs working for multiple files like: zope.mo, zope.1.mo, zope.2.mo... | 17:21 |
srichter | hdima: but the translatation domain stores by getIdentifier() | 17:21 |
srichter | VladDrac: thanks :-) | 17:22 |
srichter | hdima: I think for a single locales dir structure this is not necessary | 17:22 |
srichter | I think the two use cases would be, if app X wants to add to an existing locale | 17:23 |
srichter | like zope.app.locales and myappX.locales | 17:23 |
hdima | srichter: but in registerTranslations() 'domains' dict can store domains only for one file per language | 17:25 |
srichter | right | 17:25 |
srichter | but you can call registerTranslations() multiple times on different directory structures | 17:25 |
*** C8N has joined #zope3-dev | 17:26 | |
C8N | oy | 17:27 |
hdima | Aaa... you right. :-) | 17:27 |
srichter | :-) | 17:27 |
srichter | I vaguely remember this actually being one of the inital use cases | 17:27 |
hdima | I didn't seen on the whole thing, only registerTranslations() code... :) | 17:28 |
srichter | yeah, that's why I also checked zope.i18n | 17:30 |
hdima | BTW, I'll want to think someday about i18n documentation, so you'll can have for example online help in many languages | 17:32 |
srichter | hdima: wow, that will be a very challenging task | 17:34 |
srichter | and we really need to get this right ;-) | 17:34 |
hdima | For example I've already translated zope/interface/README.txt to russian, but don't know how to handle it... :) | 17:34 |
hdima | definitely | 17:35 |
hdima | so many ideas... :-) | 17:35 |
srichter | I think you could add it as README.ru.txt for now | 17:35 |
srichter | in fact, for TXT files this might be a nice pattern | 17:36 |
srichter | I use the same pattern for translations of my book in the SVN repository | 17:36 |
hdima | maybe better solution will be directory structure like: ru/README.txt? | 17:37 |
*** SureshZ has joined #zope3-dev | 17:37 | |
srichter | but then this dir would only contain a few files at most; usually only one, which would be overkill | 17:37 |
hdima | but that about human.txt and adapter.txt? :-) | 17:39 |
hdima | maybe then: docs/README.txt, docs/README.ru.txt... | 17:40 |
srichter | so, right, zope.interface is almost an exception by having 3 TXT files | 17:40 |
C8N | menschlich.txt? :D | 17:40 |
srichter | no, make it human.ru.txt and adapter.ru.txt | 17:41 |
srichter | an extra docs dir is an idea | 17:41 |
srichter | but I think the idea is to keep the dir structure flat | 17:41 |
srichter | and the README.txt file should be immediately recognizable | 17:41 |
C8N | i think that most distros will include 2 doc languages or less | 17:42 |
srichter | here is what I would suggest for now: leave README.ru.txt right beside README.txt; when(ever) we will have more translations, then we can change that decision | 17:42 |
srichter | C8N: I agree | 17:42 |
C8N | so i don't think the cluttering justify adding a dir | 17:42 |
* srichter notes that hdima is the most reponsible/responsive translator of all (not even the Germans are that organized ;-) | 17:43 | |
VladDrac | what's the current state of PAS in zope3? How does it relate to the "traditional" zope3 security mechanisms? | 17:43 |
hdima | Another one idea: we can add extra dir (i18n/ for example) with translated docs for other languages | 17:44 |
hdima | thanks :) | 17:44 |
*** jbb666 has joined #zope3-dev | 17:44 | |
* C8N admires the quantity of spare time hdima seems to have ;) | 17:44 | |
hdima | C8N: :) | 17:45 |
srichter | VladDrac: it is finished and will be released in Zope 3.1 | 17:45 |
C8N | hdima: you mean, one dir with *all* doc files? | 17:46 |
srichter | VladDrac: it is in spirit similar to the previous pluggable auth utility, except that it allows you also to plug in authentication mechanisms, not just data backends | 17:46 |
jbb666 | w | 17:46 |
jbb666 | oh this is not my shell ;) | 17:47 |
C8N | hdima: or one i18n dir for every module? | 17:47 |
srichter | hdima: I do not understnad what you mean above... | 17:47 |
C8N | jbb666: ;) | 17:47 |
hdima | C8N: original docs will be in top level dir, only docs for other languages (like russian :) will be in i18n dir for each module | 17:47 |
C8N | dir() | 17:47 |
C8N | oh, this is not my prompt ;) | 17:47 |
hdima | :) | 17:48 |
srichter | hdima: right, but I still think this is overkill for now | 17:48 |
srichter | since russian is the only other attempted translation | 17:49 |
C8N | hdima: dunno. i'll wait to see if the clutter becomes annoying. i'll use the srichter solution(tm) by now | 17:49 |
hdima | ok :)) | 17:49 |
srichter | hdima: BTW, are you using Zope 3 in a real world project? | 17:49 |
jbb666 | j1m: had a question about keyword indexes... they seem to follow a different interface (Ikeywordquerying) from the other indexes... is there plans to have it implement IIndexSearch | 17:49 |
srichter | hdima: something we have to think much harder about is how to translate interfaces, so that api doc becomes useful | 17:50 |
VladDrac | srichter is it available in zope3 trunk? | 17:50 |
hdima | srichter: not yet, now I'm not the web developer | 17:50 |
srichter | VladDrac: of course: zope.app.authentication | 17:50 |
srichter | hdima: I see | 17:50 |
hdima | srichter: but I want to use Z3 for my site :) | 17:51 |
srichter | ah, cool, can I see it? | 17:51 |
VladDrac | srichter ah, that's PAS? | 17:51 |
* VladDrac expected some package named pas ;) | 17:51 | |
jbb666 | does Z3 have support for product installation simiilar to what portal_quickinstaller does? for example my application uses a catalog and several app-specific indexes. i'd like them to be automatically installed | 17:51 |
hdima | srichter: hlabs.spb.ru (now on Zope2) | 17:52 |
*** Aiste has quit IRC | 17:52 | |
srichter | VladDrac: services do not exist anymore; we used to call it PAU, but that's gone now too, since it was not clear enough | 17:52 |
VladDrac | ok | 17:52 |
srichter | jbb666: no, but you can write a subscriber to a certain event and set up all you stuff | 17:53 |
srichter | jbb666: in zwiki I demonstrate how to set up something when creating an isntance of the application | 17:53 |
jbb666 | ok | 17:53 |
* jbb666 looks | 17:53 | |
J1m | jbb666, srichter I don't like that approach anymore | 17:55 |
J1m | I prefer using instalation scripts | 17:55 |
J1m | see zope/app/generations/README.txt | 17:56 |
srichter | installation scripts in the sense of new generations? | 17:56 |
J1m | and the initial generation | 17:57 |
J1m | srichter, this changed a few months back | 17:57 |
J1m | You can now provide an installation script that is run if there wasn't a prior generation for the app | 17:57 |
srichter | so you basically create a generation for you own app | 17:57 |
J1m | This is much cleaner than writing startup subscribers | 17:57 |
J1m | yes | 17:58 |
srichter | I see | 17:58 |
jbb666 | ok so this section entitiled Initial Setup is what would apply here.... | 17:58 |
J1m | jbb666, MacYET_ wrote the original keyword index | 17:58 |
J1m | yes | 17:59 |
J1m | jbb666, the section "Installation" | 17:59 |
jbb666 | hah, didnt make it that far yet ;) | 17:59 |
MacYET_ | no | 17:59 |
J1m | jbb666, I think the keyword index needs to be updated to work with the catalog | 18:00 |
MacYET_ | i didnot :) | 18:00 |
jbb666 | j1m: ok i was playing with keyword index this weekend and managed to get it working TTW addable and stuff for fun ;) | 18:00 |
J1m | cool | 18:00 |
J1m | MacYET_, hm | 18:00 |
MacYET_ | or did i? :=) | 18:00 |
jbb666 | the only real problem i can see is this apply method doesn't really map to KeywordIndex's search method which expects a 2nd argument which is the either 'and' or 'or' | 18:00 |
* MacYET_ starts svn blame | 18:00 | |
J1m | I thought you checked it in a year or two ago | 18:00 |
J1m | blame won't help | 18:00 |
J1m | It's been moved around too much. | 18:01 |
MacYET_ | right...hiding traces | 18:01 |
C8N | eheheh | 18:02 |
MacYET_ | michel and chrism worked on it | 18:02 |
MacYET_ | Unkeywordindex | 18:02 |
MacYET_ | in 1999...long before my time | 18:02 |
J1m | jbb666, you'll need to implement apply and call search from apply | 18:03 |
jbb666 | yup thats what i did... and had it just use 'and' as default... not sure if that makes the most sense but it got my app working ;) | 18:03 |
J1m | Note that the query can be whatever you want, including a data structure that has and/or info. | 18:04 |
*** hdima has left #zope3-dev | 18:04 | |
J1m | It's up to applications to construct queries, so you'll need to document what you expect. | 18:04 |
*** efge has joined #zope3-dev | 18:08 | |
*** zagy has quit IRC | 18:10 | |
*** MacYET_ has quit IRC | 18:17 | |
*** Aiste has joined #zope3-dev | 18:26 | |
*** ignas has joined #zope3-dev | 18:33 | |
*** alga has joined #zope3-dev | 18:33 | |
srichter | mkerrin: are you still there? | 18:36 |
regebro | Uhm. Ehm. Hum. I've grepped around a bit, but I completely fail to understand how you translate the labels of fields in schemas. | 18:44 |
regebro | I get an error message telling me I haven't specified a domain, for example, but can't figure out how to specify the domain.... :?: | 18:44 |
*** __gotcha has quit IRC | 18:46 | |
*** vlado_ has quit IRC | 18:46 | |
srichter | regebro: in you ZCML file, inside the configure element add the attribute: i18n_domain="<name>" | 18:46 |
regebro | aha, so like <configure xmlns="yaddayadda" i18n_domain="calendar">? I'll try that. | 18:48 |
srichter | yep | 18:49 |
srichter | that will definitely stop the complaining | 18:49 |
regebro | Yup, it did. One of my two complaints disaapeared! | 18:50 |
srichter | so, you probably have another ZCML file that needs it | 18:50 |
srichter | note that one declaration per subtree is sufficient | 18:50 |
regebro | Yeah, I have two separate products. | 18:51 |
*** niemeyer has quit IRC | 18:51 | |
regebro | But nothing actually *happened* though, which is probably a Five-bug... | 18:51 |
regebro | Thanks, I'll continue to grok around and see. | 18:51 |
srichter | what do you mean with "nothing happened"? | 18:53 |
*** niemeyer has joined #zope3-dev | 18:54 | |
mkerrin | strichter: hey I am a bit stuck at the moment with some stuff at work - can I get back to up in a hour | 18:55 |
mkerrin | you in a hour | 18:55 |
srichter | mkerrin: I won't be here, but we can chat tomorrow | 18:56 |
regebro | srichter: I mean nothing got translated. I kinda expected that. ;) I'm looking into it. | 18:59 |
*** yota has quit IRC | 18:59 | |
srichter | regebro: you should really read my book's chapter on I18n :-) | 19:00 |
srichter | you have to use the <i18n:registerTranslations="path/to/locales" /> to register your translations | 19:00 |
regebro | Well, I browsed through it and it didn't help. :) But I was looking at info on forms. | 19:01 |
srichter | it will pick up all compiled translations from there | 19:01 |
regebro | srichter, nono you missed a keyword above: Five. | 19:01 |
srichter | Five does not support this directive? | 19:01 |
regebro | It doesn't seem so. But it might soon. :) | 19:01 |
regebro | Or, I do something wrong. I don't know yet. | 19:02 |
srichter | also, you need to check what ZPT version is used | 19:02 |
regebro | Oh? How do I check that? | 19:02 |
srichter | you have to use the one that looks up the translation domain as a utiloty (of course) | 19:02 |
regebro | Yes, and there is no such utility. | 19:03 |
srichter | make sure that the zope.app.pagetemplate.egenine.ZopeContext engine is used | 19:03 |
regebro | Which again, is kinda expected. :) | 19:03 |
*** mohsen has quit IRC | 19:04 | |
regebro | I don't think that's possible, this is Five, and hence Zope2 ZPTs. :) | 19:04 |
srichter | I can;t believe Martijn has not worked on I18n yet | 19:04 |
srichter | so what does Zope 2's translate() do? | 19:04 |
srichter | can you paste that method here? | 19:04 |
srichter | it should be only a couple of lines | 19:05 |
regebro | I don't know what it does, or even where it is, or if it's used... | 19:05 |
regebro | but if you wonder if i18n:translate() works, then yes it does. | 19:05 |
regebro | But it works in the normal Zope2 way, which in CPS means Localizer. | 19:06 |
*** yota has joined #zope3-dev | 19:06 | |
srichter | I see | 19:06 |
regebro | But the forms machinery does not use i18n:translate. | 19:06 |
srichter | hold on, I am trying to find the right module in the Zope 2 path | 19:06 |
regebro | srichter: My initial reaction is to provide and set up ITranslationDomain utilities for all domains in Localizer. | 19:09 |
regebro | That should pretty much solve it. | 19:09 |
srichter | ok | 19:10 |
regebro | Hmm. Or no, not localize, all domains defined in translation_service actually. This may be CPS-specific, I'll ask efge. | 19:10 |
srichter | yeah, he wrote the GTS, right> | 19:12 |
srichter | the GTS hooks into all this correctly | 19:12 |
regebro | srichter, ok, we had a quick chat, I'll try making ITranslationDomain utilities for the TranslationService product. Should work. | 19:15 |
*** mgedmin has joined #zope3-dev | 19:16 | |
*** GaryPoster has joined #zope3-dev | 19:26 | |
mexiKON | regebro, i have some i18n support sitting in my Five sandbox | 19:27 |
mexiKON | regebro, but before it can be checked in, we need to branch 1.0 and merge my restructuring branch | 19:27 |
regebro | ah, ok mexiKON, how did you do your i18n support? | 19:28 |
mexiKON | i have registered a small "translation service" class that looks up i18n domains the z3 way and defers translation to that | 19:30 |
GaryPoster | Hey srichter. Hopefully quick question. I was surprised that there was not an adapter from IPrincipal to IAnnotations so I wrote one quickly and was about to hook up the tests when I saw that there was an abortive one in zope/app/principalannotations/__init__.py: AnnotationsForPrincipal. I don't like that it tries to stash the utility rather than look it up, and I also don't like that it is not hooked up :-). Do you know anything about this? I'm te | 19:30 |
regebro | mexiKON, ok, will you then use the Zope3 ITranslationDomains as well? | 19:31 |
mexiKON | yes | 19:32 |
mexiKON | that's the idea | 19:32 |
regebro | OK. That could work too, but I would need to register my translations twice (which isn't really a problem). | 19:32 |
regebro | However, I need this *now*, and not next week... | 19:32 |
mexiKON | well, i think in five we want a switch to explictly enable i18n through five | 19:33 |
mexiKON | i think there can always only be one i18n service registered with the ZPT engine | 19:33 |
regebro | Ah, ok: clarification. | 19:34 |
regebro | i18n:yaddayadda works fine. | 19:35 |
mexiKON | of course. there just isn't any translation happening | 19:35 |
regebro | Because it's CPS, and Zope2 ZPTs and everything like that. | 19:35 |
regebro | Non, it translates. | 19:35 |
mexiKON | well, because of CPS provides a translation service | 19:35 |
mexiKON | s/of// | 19:35 |
regebro | Yes. But the form machinery of Zope3 doesn't use i18n:translate="" | 19:36 |
mexiKON | right | 19:36 |
regebro | it uses zope.i18n.translate() | 19:36 |
mexiKON | you need to provide explicit message ids in your schemas | 19:36 |
regebro | That's all that needs fixing. | 19:36 |
mexiKON | _() | 19:36 |
mexiKON | i don't think so | 19:36 |
mexiKON | i think we want to do it the z3 way | 19:36 |
GaryPoster | srichter: J1m said that my last line came out as "I'm t" for some reason. :-) It was supposed to be " I'm tempted to rip it out and put mine in, actually hooked up." | 19:36 |
mexiKON | regebro, let's take this to #z3-base | 19:37 |
*** mexiKON is now known as philiKON | 19:37 | |
regebro | We can't do it the Z3-way, becuase we need compatibility with CPS. | 19:37 |
regebro | ok. | 19:37 |
J1m | srichter, ayt? | 19:51 |
*** SureshZ has left #zope3-dev | 20:02 | |
*** SureshZ has joined #zope3-dev | 20:03 | |
*** hazmat has joined #zope3-dev | 20:11 | |
*** hazmat_ has joined #zope3-dev | 20:28 | |
*** hazmat has quit IRC | 20:28 | |
*** faassen has quit IRC | 20:32 | |
*** zagy has joined #zope3-dev | 20:46 | |
*** regebro has quit IRC | 21:07 | |
*** bskahan has quit IRC | 21:24 | |
*** efge has left #zope3-dev | 21:28 | |
*** SureshZ has left #zope3-dev | 21:32 | |
*** SureshZ has joined #zope3-dev | 21:49 | |
*** RaFromBRC has joined #zope3-dev | 21:51 | |
*** mgedmin has quit IRC | 21:55 | |
*** RaFromBRC has quit IRC | 21:57 | |
*** RaFromBRC has joined #zope3-dev | 21:58 | |
*** deo has joined #zope3-dev | 22:00 | |
*** SureshZ has quit IRC | 22:01 | |
*** ignas has quit IRC | 22:01 | |
*** SureshZ has joined #zope3-dev | 22:03 | |
*** MacYET has joined #zope3-dev | 22:13 | |
*** RaFromBRC is now known as RaFromBRC|mtg | 22:16 | |
*** MacYET has quit IRC | 22:35 | |
*** SureshZ has quit IRC | 22:48 | |
*** Aiste has quit IRC | 23:08 | |
*** alga has quit IRC | 23:09 | |
srichter | J1m: now I am | 23:16 |
jbb666 | short sleep ;) | 23:16 |
srichter | jbb666: no, just other things to do in life :-) | 23:17 |
srichter | GaryPoster: feel free to fix it | 23:17 |
GaryPoster | srichter: cool, already did | 23:18 |
srichter | the reason the original one was not hooked up is because it did not work right, afaik | 23:18 |
GaryPoster | right, it didn't look like it would. | 23:18 |
srichter | GaryPoster: do you know what Jim wanted from me? | 23:20 |
J1m | I wanted you to talk to Gary :) | 23:20 |
srichter | LOL, ok :-) | 23:21 |
srichter | J1m: how is you adapter registry rewrite going? | 23:23 |
*** SureshZ has joined #zope3-dev | 23:23 | |
*** Aiste has joined #zope3-dev | 23:27 | |
J1m | srichter, slow | 23:29 |
J1m | I spent most of the weekend getting savepoints implemented | 23:30 |
J1m | in time for 2.8b1 | 23:30 |
srichter | i see | 23:32 |
*** jbb666 has quit IRC | 23:45 | |
* C8N cheers J1m | 23:46 | |
*** Theuni has quit IRC | 23:49 | |
*** tonico has quit IRC | 23:57 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!