*** greenman has quit IRC | 00:02 | |
*** philiKON_ has joined #zope3-dev | 00:07 | |
*** philiKON has quit IRC | 00:16 | |
*** basti__ has quit IRC | 00:29 | |
*** elro has quit IRC | 00:32 | |
*** regebro has quit IRC | 00:38 | |
*** sm has joined #zope3-dev | 00:46 | |
*** greenman has joined #zope3-dev | 00:48 | |
*** vimes656 has quit IRC | 00:49 | |
*** philiKON_ is now known as philiKON | 00:51 | |
*** timte has quit IRC | 00:52 | |
*** hazmat has joined #zope3-dev | 00:56 | |
*** ChanServ sets mode: +o hazmat | 00:56 | |
*** benji has quit IRC | 00:57 | |
*** junkafarian has quit IRC | 00:59 | |
*** lucielejard has quit IRC | 01:00 | |
*** yota has quit IRC | 01:09 | |
*** quodt has quit IRC | 01:11 | |
*** lurkymclurkleton has quit IRC | 01:11 | |
*** dobee has quit IRC | 01:19 | |
*** greenman_ has joined #zope3-dev | 01:26 | |
*** aclark is now known as aclark|away | 01:29 | |
*** jamur2 has quit IRC | 01:33 | |
*** b52lap has joined #zope3-dev | 01:38 | |
*** fairwinds has quit IRC | 01:39 | |
*** fairwinds has joined #zope3-dev | 01:40 | |
*** junkafarian has joined #zope3-dev | 01:43 | |
*** greenman has quit IRC | 01:43 | |
*** b52laptop has quit IRC | 01:54 | |
*** J1m has quit IRC | 01:57 | |
*** jpcw has quit IRC | 02:15 | |
*** MrSipan has quit IRC | 02:17 | |
*** philiKON has quit IRC | 02:18 | |
*** runyaga has joined #zope3-dev | 02:26 | |
*** tarek|away is now known as tarek | 02:29 | |
*** ccomb has quit IRC | 02:33 | |
*** nathany has quit IRC | 02:43 | |
*** ccomb has joined #zope3-dev | 02:48 | |
*** schwendinger has joined #zope3-dev | 02:54 | |
*** schwendinger has quit IRC | 02:58 | |
*** schwendinger_ has joined #zope3-dev | 02:58 | |
*** schwendinger has joined #zope3-dev | 03:04 | |
*** aclark|away is now known as aclark | 03:04 | |
*** mcdonc has quit IRC | 03:06 | |
*** seletz_ has quit IRC | 03:08 | |
*** seletz has joined #zope3-dev | 03:08 | |
*** reco_ has joined #zope3-dev | 03:10 | |
*** reco has quit IRC | 03:12 | |
*** reco_ has quit IRC | 03:13 | |
*** reco has joined #zope3-dev | 03:13 | |
*** malthe has quit IRC | 03:13 | |
*** kaeru_ is now known as kaeru | 03:15 | |
*** schwendinger_ has quit IRC | 03:22 | |
*** schwendinger_ has joined #zope3-dev | 03:26 | |
*** seletz has quit IRC | 03:30 | |
*** mcdonc has joined #zope3-dev | 03:32 | |
*** MrSipan has joined #zope3-dev | 03:44 | |
*** schwendinger has quit IRC | 03:44 | |
*** schwendinger_ has quit IRC | 03:54 | |
*** junkafarian has quit IRC | 03:58 | |
*** pcardune has quit IRC | 04:21 | |
*** MiUlEr has joined #zope3-dev | 04:28 | |
*** strichter has quit IRC | 04:39 | |
*** MiUlEr has quit IRC | 04:43 | |
*** MiUlEr has joined #zope3-dev | 04:43 | |
*** alga has quit IRC | 04:51 | |
*** seletz has joined #zope3-dev | 04:55 | |
*** malthe has joined #zope3-dev | 04:55 | |
*** fairwinds has quit IRC | 05:04 | |
*** mgedmin has quit IRC | 05:06 | |
*** malthe_ has joined #zope3-dev | 05:06 | |
*** MiUlEr has quit IRC | 05:13 | |
*** MiUlEr has joined #zope3-dev | 05:13 | |
*** MiUlEr has joined #zope3-dev | 05:15 | |
*** malthe has quit IRC | 05:22 | |
*** MiUlEr has quit IRC | 05:23 | |
*** MiUlEr has joined #zope3-dev | 05:23 | |
*** srichter has joined #zope3-dev | 05:23 | |
*** MiUlEr has quit IRC | 05:23 | |
*** MiUlEr has joined #zope3-dev | 05:24 | |
*** MiUlEr has joined #zope3-dev | 05:24 | |
*** MiUlEr has quit IRC | 05:37 | |
*** srichter has quit IRC | 05:41 | |
*** aaronv has quit IRC | 05:48 | |
*** sm has quit IRC | 05:59 | |
*** sm has joined #zope3-dev | 06:00 | |
*** aclark is now known as aclark|away | 06:07 | |
*** MiUlEr has joined #zope3-dev | 06:08 | |
*** MiUlEr has quit IRC | 06:13 | |
*** ktwilight has quit IRC | 06:16 | |
*** ktwilight has joined #zope3-dev | 06:17 | |
*** MiUlEr has joined #zope3-dev | 06:20 | |
*** srichter has joined #zope3-dev | 06:24 | |
*** MiUlEr has quit IRC | 06:42 | |
*** malthe_ has quit IRC | 07:04 | |
*** yota has joined #zope3-dev | 07:48 | |
*** seletz has quit IRC | 08:02 | |
*** timte has joined #zope3-dev | 08:06 | |
*** MrSipan has quit IRC | 08:06 | |
*** ChanServ sets mode: +o srichter | 08:14 | |
*** seletz has joined #zope3-dev | 08:17 | |
*** jayaraj has joined #zope3-dev | 08:20 | |
*** seletz has quit IRC | 08:20 | |
*** seletz has joined #zope3-dev | 08:21 | |
*** jukart has joined #zope3-dev | 08:22 | |
*** jukart has joined #zope3-dev | 08:23 | |
*** dobee has joined #zope3-dev | 08:31 | |
*** seletz_ has joined #zope3-dev | 08:34 | |
*** seletz has quit IRC | 08:52 | |
*** greenman_ has quit IRC | 08:52 | |
*** natea_ has joined #zope3-dev | 08:52 | |
*** seletz_ has quit IRC | 09:01 | |
*** yotaff has joined #zope3-dev | 09:10 | |
*** agroszer has joined #zope3-dev | 09:12 | |
*** natea_ has quit IRC | 09:17 | |
*** nyo has joined #zope3-dev | 09:18 | |
*** quodt has joined #zope3-dev | 09:32 | |
*** mustap has joined #zope3-dev | 09:39 | |
*** schwendinger has joined #zope3-dev | 09:45 | |
*** elro has joined #zope3-dev | 09:46 | |
*** basti__ has joined #zope3-dev | 09:56 | |
*** pyqwer has joined #zope3-dev | 09:59 | |
*** philiKON has joined #zope3-dev | 10:00 | |
*** goschtl has joined #zope3-dev | 10:06 | |
*** afd___ has joined #zope3-dev | 10:11 | |
*** tarek has quit IRC | 10:12 | |
*** tarek has joined #zope3-dev | 10:14 | |
*** philiKON has quit IRC | 10:21 | |
*** jpcw has joined #zope3-dev | 10:22 | |
*** toutpt has joined #zope3-dev | 10:33 | |
*** sm has quit IRC | 10:35 | |
*** philiKON has joined #zope3-dev | 10:39 | |
*** schwendinger has quit IRC | 10:41 | |
*** schwendinger_ has joined #zope3-dev | 10:41 | |
*** junkafarian has joined #zope3-dev | 10:52 | |
*** yvl has joined #zope3-dev | 10:55 | |
*** harobed__ has joined #zope3-dev | 11:01 | |
*** harobed_ has joined #zope3-dev | 11:02 | |
*** greenman has joined #zope3-dev | 11:19 | |
*** philiKON has quit IRC | 11:23 | |
*** junkafarian has quit IRC | 11:34 | |
*** benji has joined #zope3-dev | 11:43 | |
*** timte_ has joined #zope3-dev | 11:52 | |
*** b52lap has quit IRC | 11:58 | |
*** junkafarian has joined #zope3-dev | 12:01 | |
*** timte has quit IRC | 12:03 | |
*** greenman has quit IRC | 12:12 | |
*** ccomb has quit IRC | 12:20 | |
*** alga has joined #zope3-dev | 12:21 | |
*** flox has joined #zope3-dev | 12:36 | |
*** MJ has joined #zope3-dev | 12:58 | |
*** jpcw has quit IRC | 13:16 | |
*** aaronv has joined #zope3-dev | 13:20 | |
*** aclark|away is now known as aclark | 13:23 | |
*** toutpt has quit IRC | 13:29 | |
*** jpcw has joined #zope3-dev | 13:31 | |
*** fRiSi has joined #zope3-dev | 13:32 | |
fRiSi | srichter: hi stephan | 13:32 |
---|---|---|
fRiSi | is there a default way for providing default (example) values for your z3c.form fields and the validator knows that these defaults need to be replaced with "real" data? | 13:34 |
*** elro has quit IRC | 13:34 | |
*** Fubar^ has joined #zope3-dev | 13:38 | |
srichter | fRiSi: hey | 13:40 |
*** regebro has joined #zope3-dev | 13:41 | |
srichter | fRiSi: you can write a custom data converter for your field which interprets special values | 13:41 |
*** sunew has joined #zope3-dev | 13:50 | |
*** schwendinger_ has quit IRC | 13:58 | |
*** mkerrin has joined #zope3-dev | 14:02 | |
*** b52laptop has joined #zope3-dev | 14:03 | |
*** benji has quit IRC | 14:17 | |
*** mintsauce has joined #zope3-dev | 14:18 | |
*** alga_ has joined #zope3-dev | 14:32 | |
*** alga has quit IRC | 14:32 | |
*** tarek has quit IRC | 14:36 | |
*** tarek has joined #zope3-dev | 14:37 | |
* mintsauce is in a muddle with component names again..... | 14:39 | |
lisppaste6 | mintsauce pasted "traceback" at http://paste.lisp.org/display/67776 | 14:39 |
*** fairwinds has joined #zope3-dev | 14:41 | |
mintsauce | I've tied to copy the gocept demo and project into my code (http://svn.zope.org/gocept.registration/trunk/src/gocept/registration/?rev=84662), the first page and layers work fine, but when i submit i get that missing component error. | 14:41 |
mintsauce | registrations = zope.component.getUtility(gocept.registration.interfaces.IRegistrations) is the code it seems to have problems with ... | 14:42 |
afd___ | mintsauce: http://svn.zope.org/gocept.registration/trunk/src/gocept/registration/demo/application.zcml?rev=84662&view=markup | 14:43 |
afd___ | there's a <utility /> registration there | 14:43 |
afd___ | you need to do the same thing | 14:44 |
afd___ | but | 14:44 |
afd___ | I think you're supposed to create a Registrations object in the zodb | 14:44 |
afd___ | and register it for the IRegistrations interface | 14:45 |
afd___ | because Registrations is a persistent object | 14:45 |
mintsauce | yeah ... as it is it just points to the gocept code further down the directory structure? The demo should work with just the code it that directory? | 14:46 |
mintsauce | ahhhh | 14:46 |
* mintsauce feels pennies dropping | 14:46 | |
mintsauce | How would i then address that object in the utility zcml? | 14:47 |
afd___ | you don't | 14:47 |
afd___ | no zcml registration needed.. you go in the zmi to the Registration tab, and register it as an unnamed utility for the IRegistrations interface | 14:47 |
mintsauce | ok ... | 14:48 |
afd___ | this will make it so that when you do zope.component.getUtility(IRegistrations), you get that object | 14:48 |
*** hazmat has quit IRC | 14:48 | |
*** dunny has quit IRC | 14:49 | |
*** ccomb has joined #zope3-dev | 14:49 | |
*** rocky has quit IRC | 14:52 | |
mintsauce | afd___: first issue - i hace no IRegistrations in my Registration tab (Register a folder) | 14:59 |
afd___ | what about gocept.registration.interfaces.IRegistrations? | 15:00 |
mintsauce | no, but hang on a sec.... | 15:00 |
mintsauce | by which I mean, i think i've done something wrong, back in a bit, dont hang on tenterhooks in the meantime ;) | 15:01 |
*** toutpt has joined #zope3-dev | 15:02 | |
*** rocky has joined #zope3-dev | 15:11 | |
fRiSi | srichter: hi | 15:12 |
* fRiSi is back from lunch | 15:13 | |
fRiSi | http://docs.carduner.net/z3c.form/ seems to be down, srichter | 15:13 |
*** jsadjohnson has joined #zope3-dev | 15:13 | |
fRiSi | hi rocky ;-) | 15:13 |
*** schwendinger has joined #zope3-dev | 15:14 | |
*** benji has joined #zope3-dev | 15:14 | |
fRiSi | hey benji. you've talked about manuel? at dzugt. is there some repos or download so i can have a look at it? | 15:34 |
benji | fRiSi: I've not gotten it released yet; I'll try to do it in the next week and announce on zope-dev | 15:34 |
mintsauce | afd___: thought i'd done something wrong in build out - but no gocept.registration.interfaces.IRegistrations in the registrations tab anywhere .... | 15:35 |
fRiSi | if i understood you correctly, it also offers you to do run a specific part of a docfiletest, right? | 15:35 |
afd___ | mintsauce: then, that's a problem. Make sure zope loads the gocept.registration package | 15:36 |
mintsauce | To double check, added gocept.registrations package and requirements to buildout, rebuilt, gone to root level in zmi, clicked Registiration. | 15:36 |
mintsauce | hmmm .... importchecker only shows gocept.registration.interfaces | 15:37 |
*** projekt01 has joined #zope3-dev | 15:38 | |
srichter | fRiSi: I let Paul know | 15:40 |
fRiSi | thx srichter | 15:41 |
mintsauce | afd___: if i run bin/instance debug - import gocept.registration - i get no errors ... | 15:41 |
afd___ | mintsauce: then do it programatically. You only need to do this once, when you setup the site | 15:44 |
benji | fRiSi: there's nothing like that now; you may be remembering the idea to add isolation to doctests using it; that shouldn't be too hard | 15:44 |
afd___ | sm = context.getSiteManager() | 15:44 |
afd___ | sm['registrations'] = Registrations() | 15:45 |
afd___ | sm.registerUtility(sm['Registrations'], IRegistrations) | 15:45 |
fRiSi | benji: so what's the advantage of using manuel instead of sphinx? | 15:45 |
fRiSi | oh.. the readable output | 15:45 |
* fRiSi forgot about that | 15:46 | |
benji | right, manuel is about making nice docs that are also testable; it should be usable with sphinx as well | 15:46 |
*** ignas has joined #zope3-dev | 15:52 | |
*** lurkymclurkleton has joined #zope3-dev | 15:53 | |
*** goschtl has quit IRC | 15:55 | |
*** malthe has joined #zope3-dev | 15:56 | |
*** jamur2 has joined #zope3-dev | 15:58 | |
*** jamur2 has quit IRC | 15:59 | |
*** jamur2 has joined #zope3-dev | 15:59 | |
*** srichter has quit IRC | 16:04 | |
Theuni | benji: ping | 16:04 |
benji | hi, Theuni | 16:04 |
Theuni | if you don't mind, i'm gonna merge sebastian's testbrowser branch to the trunk. we'd like to change some more stuff and don't want that branch to continue developing. | 16:05 |
benji | I meant to review that branch. Darn. | 16:05 |
benji | Sure, have at it. | 16:05 |
Theuni | k. thanks. | 16:05 |
Theuni | We're gonna teach it some multi-window capabilities ... :) | 16:06 |
benji | interesting | 16:08 |
*** malthe is now known as malthe|away | 16:09 | |
*** jhauser has joined #zope3-dev | 16:09 | |
Theuni | benji: i'll make the versions a little less pinned for zc.testbrowser's library buildout, if you don't mind | 16:11 |
Theuni | otherwise it can't pickup newer setuptools, buildout ... | 16:11 |
benji | I'd prefer either pin the new versions or switch to using the KGS | 16:11 |
Theuni | less work, so i'll pin the new versions for now, although doing that on library packages ... well ... | 16:12 |
*** J1m has joined #zope3-dev | 16:13 | |
*** lucielejard has joined #zope3-dev | 16:17 | |
*** b52laptop has quit IRC | 16:29 | |
*** b52laptop has joined #zope3-dev | 16:45 | |
*** sp0cksbeard has joined #zope3-dev | 16:48 | |
*** sp0cksbeard has left #zope3-dev | 16:49 | |
pyqwer | projekt01: Hi, sorry for disturbing you - but do you know if there is some schema for Money available? | 16:49 |
projekt01 | no | 16:49 |
projekt01 | I think srichter implemented a curency package in z3c, but not sure | 16:50 |
pyqwer | projekt01: Ah, ok, I'll look at that. Othwerwise I'll have to do it on my own - schema.Decimal is inappropriate, btw. | 16:50 |
projekt01 | why? | 16:51 |
pyqwer | projekt01: Silly thing: If someone accidentally has a browser set to "EN" and inputs an amount of "12,25", the resulting Decimal is 1225. | 16:52 |
pyqwer | (Because numbers in english can be represented by 1,000.25) | 16:53 |
pyqwer | And the comma is ignored. | 16:53 |
projekt01 | are you sure? if so that's a bug in z3c.form data converter | 16:54 |
bigkevmcd | Or human error? | 16:54 |
pyqwer | projekt01: Yes, I am sure. | 16:54 |
pyqwer | projekt01: But it's not really an error, isn't it? | 16:54 |
projekt01 | Ok, then we need to fix this | 16:54 |
projekt01 | it is | 16:55 |
pyqwer | Why? English speaking people may input commas. | 16:55 |
pyqwer | Something like 100,000 is allowed, I think. | 16:55 |
bigkevmcd | yip | 16:55 |
bigkevmcd | as is 1,000 | 16:55 |
pyqwer | Right. | 16:55 |
bigkevmcd | which is commonly written like that | 16:55 |
pyqwer | Although, something like 1,00 is not, I assume. | 16:55 |
ktwilight | in belgium it's 1.000,00 ;) | 16:56 |
pyqwer | ktwilight: so it is in german/austria. | 16:56 |
projekt01 | the data converter whould convert the input like it converts the outout to the right value. For date e.g. 31/1/2008 or 1/31/2008 | 16:56 |
projekt01 | whould/should | 16:56 |
ktwilight | also why some banks have two columns instead. | 16:56 |
*** kursor has joined #zope3-dev | 16:57 | |
pyqwer | Well, for money, it's a little different. My bank requires to specify cents, so, somethin like "1000" is not allowed. | 16:57 |
pyqwer | Here in Austria, I have to write "1000,00". | 16:57 |
bigkevmcd | can't you capture [1000] [00] ? | 16:58 |
*** elro has joined #zope3-dev | 16:58 | |
pyqwer | bigkevmcd: You mean, making to input fields? | 16:58 |
bigkevmcd | two, yes | 16:58 |
ktwilight | that's what i meant too :) | 16:59 |
pyqwer | bigkevmcd: Hmmm, projekt01 suggested not to do that for usability reasons, moreover, I'd need to create a specific widget for z3c.form for that, which is maybe not even possible. | 16:59 |
*** sunew has quit IRC | 16:59 | |
pyqwer | I've seen both solutions at online banking systems. | 17:00 |
projekt01 | pyqwer, the DecimalDataConverter does the formatting, does this really not work? | 17:00 |
ktwilight | think of when you're doing international banking. in US doing online belgian banking, and due to the feature of autodetection formatting, you're screwed :) | 17:01 |
pyqwer | projekt01: I did not test that at low-level, I just entered 1000,25 in one of my z3c.form based forms (Decimal Schema) and the resulting value was 100025. | 17:02 |
ktwilight | minute though can be significant depending. | 17:02 |
projekt01 | probably we need to change the pattern for decimal and split on any separator for decimal part | 17:02 |
projekt01 | but I still think if you use the right sepearator for the right language is should work | 17:03 |
pyqwer | projekt01: Hmmm, I'm still unsure how to circumvent the problem by that. | 17:03 |
bigkevmcd | pyqwer: What locale was your browser set to at the time? | 17:03 |
pyqwer | bigkevmcd: To "EN". (And we forgot and thought it was set to "DE"). | 17:03 |
projekt01 | there is also a NumberParseError supported | 17:04 |
bigkevmcd | pyqwer: so, PEBKAC ? | 17:04 |
pyqwer | bigkevmcd: Some sort of ;-) | 17:04 |
projekt01 | Ah, I think that could be a bug in our Zope language handling | 17:05 |
projekt01 | I think we do not handle this correct in zope | 17:05 |
bigkevmcd | that would appear to be the correct fix | 17:05 |
bigkevmcd | rather than second-guessing | 17:05 |
pyqwer | Btw., (if there's anybody native english-speaking), how would one write a birthdate in english? | 17:06 |
*** sunew has joined #zope3-dev | 17:07 | |
bigkevmcd | dd/mm/yyyy | 17:07 |
bigkevmcd | or, more usually, dd/mm/yy | 17:07 |
projekt01 | I'm pretty sure that the fomatter can depend on the browser langauge settings and the negotiator depends on something else e.g. session | 17:08 |
*** jayaraj has quit IRC | 17:08 | |
projekt01 | this is because an adapter (don't know which on) reads the langauage settings not from INegotiator | 17:08 |
projekt01 | pyqwer, are you using sessions | 17:09 |
pyqwer | bigkevmcd: Hmmm, that's the next problem: In Austria, people would write, dd.mm.yyyy. | 17:09 |
pyqwer | projekt01: Yes, I use sessions. | 17:09 |
bigkevmcd | pyqwer: It's a common problem, and it's been solved... | 17:09 |
bigkevmcd | it just needs a bit of work | 17:09 |
pyqwer | bigkevmcd: How is that? | 17:10 |
bigkevmcd | that's what i18n is for | 17:10 |
bigkevmcd | and why browsers send language and locale information | 17:10 |
pyqwer | bigkevmcd: Hmmm, not really - for english I'd use the 'date' format 'short', which is M/d/yy. | 17:11 |
pyqwer | bigkevmcd: But for Austria, the format 'short' is dd/mm/yy - which is inappropriate. | 17:12 |
*** redir has joined #zope3-dev | 17:12 | |
pyqwer | bigkevmcd: If I set it to 'medium', it's dd/mm/yyyy for 'DE', but for 'EN', it's "MMM d, yyyy", which is totally inappropriate. | 17:12 |
bigkevmcd | pyqwer: but that's purely down to personal preference | 17:13 |
*** MJ is now known as MJ|lunch | 17:14 | |
pyqwer | bigkevmcd: Hmmm, but who would enter a birth date in english like 'SEP 5, 1970'? | 17:15 |
pyqwer | That's probably something no one will be able to manage, what do you think? | 17:15 |
*** fsufitch has joined #zope3-dev | 17:16 | |
fsufitch | hi everyone | 17:17 |
fsufitch | i have a question about file uploading to a zope instance | 17:17 |
*** redir has quit IRC | 17:18 | |
fsufitch | my application needs to be able to attach a file to a Message object; right now I'm using zope.schema.Bytes for the attribute related to the attachment, and formlib to render the input | 17:18 |
pyqwer | projekt01: I'm still don't understand why Zope / z3c.form should have a bug here: The locale was set to 'EN' and we accidentally input 1000,25 - whereas the comma was removed. The only thing that seems wrong to me is that something like 1000,25 is invalid for "EN", only something like "1000,025" is allowed. | 17:18 |
* benji really likes YYYY-MM-DD, but only very geeky Americans -- like him -- agree. | 17:18 | |
fsufitch | the problem is that the filename isn't kept, so when other users want to download it, they can't get the right file/mimetype | 17:19 |
* fsufitch is a very geeky American | 17:19 | |
pyqwer | benji: So, US/English people can then not tell out of a birthdate of e.g. 05/01/07 if someone is 101 years old or 1 year old? | 17:19 |
projekt01 | pyqwer, first you have to find out if the correct locale get used in the formatter | 17:20 |
*** romanofski has quit IRC | 17:20 | |
pyqwer | projekt01: But, why do you assume that the wrong locale was chosen here? | 17:21 |
fsufitch | anyway, do i have to use zope.app.file.interfaces.IFile along with zope.schema.Object ? if so, how do i manage the widget? if not, how can i just get the filename so i can write an adapter to do the download for me? | 17:21 |
pyqwer | projekt01: When I switched my browser to "DE" and input the same number, it was stored perfectly. | 17:21 |
benji | pyqwer: I'm not sure I understand the question, but the almost universal format used by normal people is MM/DD/YY | 17:21 |
projekt01 | if you say that an invalid value didn't raise an exception, then abad configured formatter is used | 17:22 |
pyqwer | benji: Hmmm, here in Austria (and probably germany) it's DD.MM.YYYY (so that one can tell if someone is > 100 years old). | 17:22 |
benji | yeah, MM/DD/YYYY isn't uncommon | 17:22 |
pyqwer | projekt01: Well, the question is, if "100,25" _is_ an invalid value for locale="EN". | 17:22 |
projekt01 | pyqwer, I see, don't know exactly | 17:23 |
*** kursor has quit IRC | 17:23 | |
*** schwendinger has quit IRC | 17:23 | |
pyqwer | benji: Yes, I thought so - but that format is not available in the 'EN'-locale, at least the counterpart of 'DE'-DD.MM.YYYY is the weird format "MMM d,yyyy". | 17:23 |
benji | right, people don't ever enter/write dates like that | 17:24 |
pyqwer | projekt01: I mean, to me this looks invalid, as I assume digits have to be grouped in groups of 3. | 17:24 |
pyqwer | (and then seperated by group delimiters, e.g. ',' for english, '.' for german). | 17:24 |
* benji wonders if ISO 8601 is reasonable for pyqwer. | 17:24 | |
projekt01 | pyqwer, but remember zope doesn't handle correct formatting if the INegotiatior returns a different language then the browser does | 17:25 |
*** kursor has joined #zope3-dev | 17:26 | |
projekt01 | because formatting doesn't depend on INegotiator which is a bug. That hits you if you use session based laguage switching | 17:26 |
fsufitch | my time is up here, if anyone has an answer to my question, they can find my contact info on launchpad.net. my username is the same as here | 17:28 |
fsufitch | thanks in advance! :) | 17:29 |
*** fsufitch has quit IRC | 17:29 | |
*** elro has quit IRC | 17:33 | |
*** tarek has quit IRC | 17:36 | |
*** elro has joined #zope3-dev | 17:37 | |
*** tarek has joined #zope3-dev | 17:42 | |
pyqwer | benji: ;-) ISO 8601, well... | 17:43 |
pyqwer | projekt01: Ah, I thought you meant if I use sessions at all. No, I don't use session-based language switching - didn't know that this is possible... | 17:45 |
projekt01 | z3c.language.* and friends offer session based language switching | 17:45 |
pyqwer | benji: Well, the problem is probably not ISO 8601 is unsuitable, the problem is that the english equivalent of DD.MM.YYYY in german is MMM d,yyyy which probably no one will be able to enter in my form. | 17:46 |
pyqwer | projekt01: Ah, I did not know that. | 17:46 |
benji | pyqwer: what if the form only accepted 8601, no matter what locale the user has? | 17:47 |
pyqwer | projekt01: I'll at first have a look at srichters z3c.currency and hope that he implemented a stronger checking. | 17:47 |
pyqwer | benji: Hmmm, yes, that's maybe also a possibility. | 17:47 |
pyqwer | So, that would be YYYY-MM-DD for the birthdate, then. | 17:48 |
*** elro has quit IRC | 17:48 | |
pyqwer | benji: Another options could be to use the "short" format for english (MM/DD/YY) and the "medium" format for german (DD.MM.YYYY), but I don't know how to switch between them in my schema. | 17:50 |
projekt01 | pyqwer, note: if you don't use a hard coded formatter pattern and you are using JS fancy widgets for date selection, your JS has to provide that formatter pattern too | 17:50 |
pyqwer | projekt01: Hmmm, true. | 17:50 |
projekt01 | I think zc.calendar or something offers the Mishoo calendar widget which is very smart implemented for doing formatting | 17:51 |
*** nathany has joined #zope3-dev | 17:51 | |
projekt01 | but I recommend to use a hard coded formatter pattern if possible and announce it a in the widget label | 17:52 |
projekt01 | then you can easy raise an exception/user error if the pattern doesn't fit | 17:53 |
pyqwer | projekt01: Yes, that's a good Idea. I'll have a look at it. | 17:56 |
*** redir has joined #zope3-dev | 17:57 | |
*** srichter has joined #zope3-dev | 17:58 | |
*** stub has joined #zope3-dev | 18:00 | |
*** nyo has quit IRC | 18:02 | |
*** jhauser has left #zope3-dev | 18:07 | |
*** mustap has quit IRC | 18:07 | |
pyqwer | srichter: Hi, I'm just trying out your z3c.currency package (btw., thanks for that!). However, when buildout fetches it it seems that the configure.zcml is not included, as the TextWidget cannot be looked up. Any clue why? | 18:08 |
*** rmarianski has joined #zope3-dev | 18:08 | |
*** malthe|away is now known as malthe | 18:08 | |
mintsauce | I'm (still) trying to use geocept.registration - should I be able to drop the package include into my buildout and setup.py and expect to see something in the zmi registrations? | 18:10 |
*** zagy has quit IRC | 18:11 | |
*** natea_ has joined #zope3-dev | 18:11 | |
*** ignas has quit IRC | 18:11 | |
*** ignas has joined #zope3-dev | 18:11 | |
*** jpcw has quit IRC | 18:12 | |
*** stub has quit IRC | 18:13 | |
*** stub1 has joined #zope3-dev | 18:13 | |
*** stub1 is now known as stub | 18:14 | |
*** MJ|lunch is now known as MJ | 18:14 | |
*** redir has quit IRC | 18:17 | |
*** sunew has quit IRC | 18:27 | |
*** sm has joined #zope3-dev | 18:28 | |
*** schwendinger has joined #zope3-dev | 18:30 | |
*** srichter has quit IRC | 18:34 | |
*** srichter has joined #zope3-dev | 18:34 | |
*** natea_ has quit IRC | 18:36 | |
*** lucielejard has quit IRC | 18:52 | |
*** seletz has joined #zope3-dev | 18:52 | |
*** reco has quit IRC | 18:55 | |
*** strichter has joined #zope3-dev | 18:58 | |
*** reco has joined #zope3-dev | 18:58 | |
*** afd___ has quit IRC | 19:01 | |
*** basti__ has quit IRC | 19:03 | |
*** jukart has quit IRC | 19:04 | |
*** pyqwer has quit IRC | 19:05 | |
*** srichter has quit IRC | 19:05 | |
*** projekt01 has quit IRC | 19:11 | |
*** schwendinger has quit IRC | 19:23 | |
*** schwendinger has joined #zope3-dev | 19:26 | |
*** mintsauce has quit IRC | 19:30 | |
*** quodt has quit IRC | 19:33 | |
*** schwendinger has quit IRC | 19:40 | |
*** dobee has quit IRC | 19:41 | |
*** harobed_ has quit IRC | 19:42 | |
*** harobed__ has quit IRC | 19:42 | |
*** schwendinger has joined #zope3-dev | 19:50 | |
*** Theuni has quit IRC | 19:51 | |
*** stub has quit IRC | 19:53 | |
*** toutpt has quit IRC | 19:54 | |
*** tarek has quit IRC | 19:57 | |
*** rmarianski has quit IRC | 19:57 | |
*** MJ has quit IRC | 19:57 | |
*** ignas has quit IRC | 20:01 | |
*** schwendinger has quit IRC | 20:04 | |
*** fRiSi has quit IRC | 20:05 | |
*** tarek has joined #zope3-dev | 20:09 | |
*** romanofski has joined #zope3-dev | 20:09 | |
*** yvl has quit IRC | 20:18 | |
*** redir has joined #zope3-dev | 20:26 | |
*** redir_ has joined #zope3-dev | 20:27 | |
*** redir has quit IRC | 20:27 | |
*** dobee has joined #zope3-dev | 20:31 | |
*** basti__ has joined #zope3-dev | 20:34 | |
*** mkerrin has quit IRC | 20:39 | |
*** Theuni has joined #zope3-dev | 20:40 | |
*** sunew has joined #zope3-dev | 20:42 | |
*** basti__ has quit IRC | 20:42 | |
*** davisagli has joined #zope3-dev | 20:42 | |
*** rmarianski has joined #zope3-dev | 20:47 | |
*** quodt has joined #zope3-dev | 20:47 | |
*** sunew has quit IRC | 20:53 | |
*** norro has joined #zope3-dev | 20:54 | |
*** mgedmin has joined #zope3-dev | 20:58 | |
*** VladDrac has quit IRC | 21:08 | |
*** lucielejard has joined #zope3-dev | 21:09 | |
*** VladDrac has joined #zope3-dev | 21:11 | |
*** tarek has quit IRC | 21:21 | |
*** tarek has joined #zope3-dev | 21:21 | |
*** redir_ is now known as redir | 21:28 | |
*** dobee has quit IRC | 21:30 | |
*** MrSipan has joined #zope3-dev | 21:39 | |
*** redir_ has joined #zope3-dev | 21:42 | |
*** sm has quit IRC | 21:45 | |
*** benji has quit IRC | 21:45 | |
*** zagy has joined #zope3-dev | 21:46 | |
*** sunew has joined #zope3-dev | 21:47 | |
*** redir has quit IRC | 21:47 | |
*** sp0cksbeard has joined #zope3-dev | 21:54 | |
*** schwendinger has joined #zope3-dev | 21:56 | |
*** dunny has joined #zope3-dev | 22:00 | |
*** b52laptop has quit IRC | 22:13 | |
*** Theuni has quit IRC | 22:20 | |
*** sm has joined #zope3-dev | 22:21 | |
*** sp0cksbeard has left #zope3-dev | 22:22 | |
*** b52laptop has joined #zope3-dev | 22:24 | |
*** elro has joined #zope3-dev | 22:25 | |
*** junkafarian has quit IRC | 22:28 | |
*** zagy has quit IRC | 22:30 | |
*** greenman has joined #zope3-dev | 22:38 | |
*** fcorrea has quit IRC | 22:53 | |
*** kursor has quit IRC | 22:53 | |
*** runyaga has quit IRC | 22:55 | |
*** agroszer has quit IRC | 23:02 | |
*** yota has quit IRC | 23:04 | |
*** zagy has joined #zope3-dev | 23:11 | |
*** J1m has quit IRC | 23:17 | |
*** J1m has joined #zope3-dev | 23:19 | |
*** dobee has joined #zope3-dev | 23:26 | |
*** sunew has quit IRC | 23:30 | |
*** basti__ has joined #zope3-dev | 23:32 | |
*** zagy has quit IRC | 23:37 | |
*** fcorrea has joined #zope3-dev | 23:40 | |
*** junkafarian has joined #zope3-dev | 23:41 | |
*** basti__ has quit IRC | 23:46 | |
*** pelle_ has joined #zope3-dev | 23:46 | |
*** J1m has quit IRC | 23:49 | |
*** J1m has joined #zope3-dev | 23:51 | |
*** basti__ has joined #zope3-dev | 23:55 | |
*** J1m_ has joined #zope3-dev | 23:57 | |
*** benji has joined #zope3-dev | 23:58 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!