IRC log of #zope3-dev for Friday, 2006-09-01

mgedminquick poll: should a zope.schema field for decimal.Decimal values be called Decimal or DecimalField?00:00
philiKONzope.schema.Decimal00:01
mgedminDecimal conflicts with the actual type (unlike, say, Float and float)00:01
philiKONhrm00:01
TheuniDecimal00:01
mgedminthere's a precedent, of sorts: InterfaceField00:01
Theunistill00:01
philiKONyeah, still00:01
Theunii'd prefer dealing with the conflict00:01
philiKONmgedmin, well, INterfaceField is not in zope.schema00:01
*** tvw has quit IRC00:01
mgedminok00:01
mgedminthis makes life easier for me, because I already have a patch that adds zope.schema.Decimal00:02
benjiDecimal (careful importing should be used to deconflict, IMHO)00:02
mgedmin;)00:02
Theunibenji: exactly00:02
mgedmindon't blame me when the users start complaining00:02
philiKONmgedmin, don't worry, svn will do that for us :)00:02
mgedminfoo_field = Decimal(min_value=decimal.Decimal("0.5"))00:02
Theunihehe00:02
* mgedmin has IRC logs for proof of innocence00:03
philiKONlol00:03
Theunino you're not innocent00:03
philiKONare you blackmailing us?00:03
Theuniwe're just guilty as well00:03
*** batlogg has quit IRC00:03
philiKONgood point00:03
* Theuni takes his guilt and puts it to the rest00:03
* Theuni shrugs00:03
* philiKON takes his guilt out the backyard and shoots it in the head00:04
Theuninow you have meta-guilt!00:04
philiKONnah, i'm not taht complex00:04
*** gumpa has left #zope3-dev00:08
mgedminif some_field.fromUnicode raises an exception, should it always be a ValueError?00:11
mgedmindecimal.Decimal("bad syntax") raises a decimal.InvalidOperation, which is a subclass of ArithmeticError00:11
mgedminfeels weird somehow00:11
philiKONwhat does IField.fromUnicode say?00:11
benjiyeah, you'd think it'd raise Value00:12
benjiError00:12
mgedminIFromUnicode.fromUnicode says nothing00:12
*** jhauser has quit IRC00:12
philiKONperhaps iFromUnicode should be clarified00:12
philiKON+1 on ValueError00:12
philiKONit's what i'd expect00:12
mgedmin+1 for clarification00:13
*** tvw has joined #zope3-dev00:14
*** timte has quit IRC00:15
*** mgedmin has quit IRC00:33
*** wrobel has quit IRC00:46
*** tvw_ has joined #zope3-dev00:55
*** benji has quit IRC00:57
*** tvw has quit IRC01:02
*** andrew_m has quit IRC01:26
*** jinty has joined #zope3-dev01:28
*** J1m has quit IRC01:33
*** rocky is now known as rocky|Zzz01:49
*** yota has quit IRC01:51
*** xenru has quit IRC02:29
*** xenru has joined #zope3-dev02:29
*** jinty has quit IRC02:46
*** alecm has joined #zope3-dev02:51
*** tvw_ has quit IRC03:18
*** philiKON has quit IRC04:00
*** projekt01 has quit IRC04:22
*** niemeyer has quit IRC05:27
*** alecm has quit IRC06:43
*** alecm has joined #zope3-dev07:06
*** jukart has joined #zope3-dev07:36
*** jukart has quit IRC07:53
*** eins has joined #zope3-dev08:13
*** jukart has joined #zope3-dev08:13
*** drzoltron has joined #zope3-dev08:19
*** drzoltron has left #zope3-dev08:23
*** dobee has joined #zope3-dev08:29
*** dobee has quit IRC08:52
*** wrobel has joined #zope3-dev08:53
*** baijum has joined #zope3-dev08:54
*** zagy has joined #zope3-dev09:00
*** flox has quit IRC09:02
*** dobee has joined #zope3-dev09:06
*** timte has joined #zope3-dev09:08
*** alecm has quit IRC09:19
*** tvw has joined #zope3-dev09:21
*** hdima has joined #zope3-dev09:21
*** romanofski has joined #zope3-dev09:26
*** flox has joined #zope3-dev09:38
*** batlogg has joined #zope3-dev09:54
*** mj has quit IRC09:57
*** xenru has quit IRC10:03
*** batlogg has quit IRC10:03
*** batlogg has joined #zope3-dev10:04
*** batlogg has quit IRC10:16
* baijum thinks irc through ssh tunnelling is cool10:17
*** batlogg has joined #zope3-dev10:19
*** Aiste has quit IRC10:29
*** flox has quit IRC10:31
*** SmokeyD has quit IRC10:34
*** flox has joined #zope3-dev10:34
*** philiKON has joined #zope3-dev10:49
*** dobee has quit IRC10:55
*** MJ has joined #zope3-dev11:01
*** xenru has joined #zope3-dev11:01
*** dobee has joined #zope3-dev11:02
*** dunny has joined #zope3-dev11:03
*** russf has joined #zope3-dev11:06
*** russf has quit IRC11:07
*** russf has joined #zope3-dev11:08
*** tvw_ has joined #zope3-dev11:09
*** tvw has quit IRC11:19
*** dobee has quit IRC11:19
*** Aiste has joined #zope3-dev11:28
*** tvw_ has quit IRC11:31
*** SmokeyD has joined #zope3-dev11:34
*** Aiste has quit IRC11:39
*** kobold has joined #zope3-dev11:47
*** jinty has joined #zope3-dev11:49
*** mexiKON has joined #zope3-dev11:52
*** philiKON has quit IRC12:00
*** mexiKON is now known as philiKON12:03
*** dobee has joined #zope3-dev12:03
*** ktwilight has quit IRC12:06
*** ktwilight has joined #zope3-dev12:25
*** Aiste has joined #zope3-dev12:27
*** faassen has joined #zope3-dev12:37
*** jhauser has joined #zope3-dev12:47
*** ignas has joined #zope3-dev13:16
ignashi13:20
*** dunny has quit IRC13:22
philiKONBjornT, you seem to know about browser encodings a lot13:24
philiKONwhen i have an Accept-Charset header like this:13:24
philiKONISO-8859-1,utf-8;q=0.7,*;q=0.713:24
philiKONdoes this know iso-8859-1 gets qualifier = 1.0?13:24
philiKONs/know/mean/13:24
BjornTphiliKON: i think so. i'm quite sure that * affects only encodings not explicitly mentioned.13:25
SmokeyDhi all, how can I generate a file and send it as a http request to the client in zope3? I am generating an xml file on the fly and do not want to store it in the filesystem of the server but just generate a link that allows the user to download the file.13:25
philiKONBjornT, ok, thx13:26
SmokeyDjust an action in a form and the action generates the xml file and sends it to the client13:26
SmokeyDI know how to generate the xml file, just not how to send it to the client13:26
*** projekt01 has joined #zope3-dev13:27
philiKONSmokeyD, uhm, write a browser view like you normally do?!?13:28
philiKONSmokeyD, do you have my book?13:28
SmokeyDyup13:28
*** danfairs has joined #zope3-dev13:28
philiKONthen read the "Advanced Views" chapter13:28
philiKONwhere we return PDF data to the client13:29
philiKONreturning xml data isn't that much different13:29
SmokeyDok, thanks. I'll look there13:29
philiKONof course, you can also geneerate the xml data in a zpt13:29
philiKONthen it becomes *really* easy13:29
*** timte has quit IRC13:30
SmokeyDYeah, I've got an html file that generates an html table. I want to use that same form to also generate an xml file and then send it to the client. But the easiest would be to create a new view for it?13:30
SmokeyD" html file" I mean a formlib form13:31
philiKONdifferent page form13:31
philiKONuse the same formlib form component13:31
philiKONbut a different template13:31
philiKONone that generates xml instead of html13:31
SmokeyDok, just have an action in the form that when clicked chages the template to the xml templatefile?13:32
philiKON?13:32
philiKONi thought you wanted to render form in xml13:32
philiKONwhat has that got todo with actions?13:32
SmokeyDI have a form with a template and it generates html data. From that form I want to give a link that allows the user to download the same data in xml13:33
philiKONah13:34
philiKONyeha, action sounds feasible13:34
SmokeyDok13:35
SmokeyDtanks13:35
ignascan i assume that zope.app.debug.debug.Debugger is used only for functional tests ?13:39
*** volvox has joined #zope3-dev13:40
philiKONignas, bin/debugzope uses it13:45
MJGrmbl, zope.app.form doesn't check for invariants13:45
philiKONMJ, right, it doesn't13:45
philiKONMJ, use formlib, dude13:45
MJI was already planning on adding a formlib-based UI13:45
MJbut the zope.app.form UI is a 'alpha-software' fallback13:45
MJWould have been nice ;)13:45
MJphiliKON: Pity about the default table layout. :)13:46
philiKONyou can always extend it in your own subclass to check for invariants13:46
MJIn the current project we have, of course, replaced it with a div layout.13:46
MJSure.13:46
philiKONtable layout?13:46
MJformlib's default page template uses a table layout to display widgets.13:46
MJSee pageform.pt13:47
philiKONMJ, see the "usual source" for teaching formlib to produce the same form layout as zope.app.form13:47
philiKONit involves using widget_macros or something like that13:47
MJSure.13:47
MJAs I said, we already supply our own template13:47
*** mkerrin has joined #zope3-dev13:47
philiKONk13:48
MJ(the invariants were for my personal project, z3wingdbg, btw)13:48
philiKONcool13:48
*** danfairs has quit IRC14:02
*** oferw has joined #zope3-dev14:05
*** mkerrin has quit IRC14:30
*** wrobel has quit IRC14:35
*** rocky|Zzz is now known as rocky14:49
koboldare there nice date and datetime widgets in zope3?14:50
SmokeyDkobold, yeas14:51
SmokeyDyes14:51
SmokeyDsee http://smokin:8091/++apidoc++/Code/zope/schema/interfaces/index.html14:51
SmokeyDwell, without the server part14:52
SmokeyD++apidoc++/Code/zope/schema/interfaces/index.html in your own zope installation14:52
koboldSmokeyD: I do not resolve smokin :)14:52
SmokeyDno of course, it's not accesible from the internet14:52
SmokeyD:)14:52
SmokeyDEvery zope3 installation contains the ++apidoc++14:52
koboldthose widgets are like TextLine and parse a string.14:52
SmokeyDyes they are14:53
SmokeyDbut they do check if it is a valid datetime which is entered14:53
koboldSmokeyD: I'm looking for a widget for a real UI. :)14:53
koboldsomething like two/three select boxes (day, month and year)14:53
SmokeyDOk, the you could use the List field14:53
SmokeyDthree actually14:54
koboldSmokeyD: but I want to store the result in one field, and I do not want to have a custom view for handling this.14:54
SmokeyDand create vocabularies for them which generate the data for the select boxes14:54
* kobold thinks that zope3 should have support for this out-of-the-box.14:54
SmokeyDyou could write your own widget and make it available14:55
koboldSmokeyD: yeah, I'll try to do so.14:55
SmokeyDcool14:55
koboldSmokeyD: I'm also looking for a field which should store date and month (but not year).. does it exist or I have to use the Date field?14:56
koboldI need it for a "name day" attribute.14:56
SmokeyDhmm, I don't know14:56
ignasanyone with commit rights and with some knowledge of Zope3 Debugger/HttpCaller ?15:00
philiKONignas, what do you need to know?15:00
ignasi want to patch it15:01
ignasas I think it is buggy15:01
*** jukart has quit IRC15:01
philiKONi suggest you write a bug report15:01
ignasi did15:01
philiKONurl?15:01
ignasi even fixed it and have a patch15:01
philiKONsounds great :)15:02
ignashttp://www.zope.org/Collectors/Zope3-dev/70515:03
ignashttp://paste.lisp.org/display/2509715:03
philiKONah.15:03
philiKONhmm, sorry, i'm wouldn't know15:04
*** mgedmin has joined #zope3-dev15:04
philiKONat least not w/o digging into the code15:04
philiKONgotta go :(15:04
philiKONplane to catch15:04
*** philiKON has quit IRC15:05
*** nathany has joined #zope3-dev15:06
BjornTignas: the patch looks correct. i don't want to commit it without looking closer at the issue, though. i could try to do it tonight or tomorrow if no one else does gets around doing so. it'd be even better if you could produce a test case to go with the fix :)15:12
ignasBjornT: well schooltool functional tests are failing without the fix ;)15:13
ignasbut it's just way too big for a testcase15:13
ignasdebugger has no unit tests which kind of complicates stuff15:14
BjornTyeah, i can imaging that producing a test case for it isn't easy.15:14
ignaswell it is when you have an application15:15
ignaswell ok15:15
ignasit takes some time15:15
ignasas i'd need at least 1 stub view with a strange name15:15
ignaswhere would one put a functional test for the Debugger/HTTPCaller ?15:16
ignasor a unit test for the debugger would be enough15:16
ignas?15:16
BjornTignas: for a simple unittest, i'd assume zope/app/debug/tests15:18
*** batlogg has quit IRC15:26
*** niemeyer has joined #zope3-dev15:28
*** benji has joined #zope3-dev15:34
*** alga has joined #zope3-dev15:35
*** russf has quit IRC15:59
*** batlogg has joined #zope3-dev16:03
*** jukart has joined #zope3-dev16:11
*** russf has joined #zope3-dev16:14
*** nathany has quit IRC16:25
*** J1m has joined #zope3-dev16:37
*** oferw has quit IRC16:40
*** eins has quit IRC16:47
*** baijum has quit IRC16:49
*** natea has joined #zope3-dev17:00
*** natea has joined #zope3-dev17:02
*** jukart has quit IRC17:18
*** batlogg has quit IRC17:21
*** sussi has joined #zope3-dev17:26
*** hdima has quit IRC17:29
*** natea_ has joined #zope3-dev17:30
*** natea has quit IRC17:38
*** romanofski has quit IRC17:40
*** natea_ is now known as natea|busy17:44
*** tvw has joined #zope3-dev17:44
*** gumpa has joined #zope3-dev17:57
*** zagy has quit IRC18:04
*** SmokeyD has quit IRC18:07
*** jukart has joined #zope3-dev18:10
*** alecm has joined #zope3-dev18:11
*** volvox has quit IRC18:15
*** SmokeyD has joined #zope3-dev18:22
*** tvw has quit IRC18:26
*** benji has quit IRC18:31
*** J1m has quit IRC18:31
*** benji has joined #zope3-dev18:31
*** dobee has quit IRC18:33
*** Aiste has quit IRC18:33
*** J1m has joined #zope3-dev18:34
koboldwhat is the easiest way to have a custom widget as sum of simple widgets (for example, three select box)?18:45
*** zbir has quit IRC18:46
*** zbir has joined #zope3-dev18:47
*** tvw has joined #zope3-dev18:49
*** projekt01 has quit IRC18:51
*** flox has quit IRC19:12
koboldnobody can help me with the complex widget (as sum of different simple widgets)?19:19
*** tvw has quit IRC19:28
*** zbir_ has joined #zope3-dev19:31
*** jukart has quit IRC19:34
*** alga has quit IRC19:38
*** ignas has quit IRC19:42
*** mgedmin has quit IRC19:49
*** zbir has quit IRC19:49
*** zbir has joined #zope3-dev19:49
*** zbir_ has quit IRC19:49
*** tvw has joined #zope3-dev19:51
*** MJ has quit IRC19:52
*** Aiste has joined #zope3-dev19:54
benjikobold: it sounds like you want zc.form.browser.combinationwidget or .unionwidget19:59
koboldbenji: is zc part of the standard zope319:59
kobold?19:59
benjinope, you can check it out from svn://svn.zope.org20:00
benjibrowsable here: http://svn.zope.org/20:00
koboldwhat zc stands for? zope components?20:00
benji"Zope Corporation"20:00
koboldbenji: is there any reason why this stuff isn't part of zope3?20:00
benjibecause there's too much in z3 already20:01
koboldI just do not want to use code that won't be maintained in the future...20:01
koboldbut if it is from zope corporation, I bet this won't happen..20:01
benjiat the moment all the zc packages are in use by ZC, and many are in use by other people20:01
*** faassen has quit IRC20:02
koboldbenji: sorry if I abuse of your knowledge, but do you have an idea if I need comination widget or union widget?20:03
*** gumpa is now known as gumpa-gone20:03
koboldI have the impression that zope3 lacks of detailed documentation, and it is not easy to learn from source code.20:03
benjiquite the contrary20:05
benjinearly all packages have detailed docs20:05
benjiand there are two books currently published if you prefer dead trees20:05
benjikobold: if you want a quick taste look at http://www.benjiyork.com/quick_start/20:07
koboldbenji: I already use zope3 in production, here.. the problem is that there are a lot of quick start but no documentation for advanced things20:07
benjifor the most part  the doctests are the documentation for advanced things20:08
*** zbir_ has joined #zope3-dev20:08
koboldbenji: yeah, you are right.. but I needed at least a hint on where to look for.20:08
benjiwhat are you looking for?20:08
koboldanyway, the combination widget is what I was looking for20:08
benjicool20:09
koboldyou already fixed my knowledge hole. :)20:09
benji:)20:09
koboldthanks a lot, really.. I've lost a few hours implementing hot water.20:09
* kobold goes back hacking on his zope3 project20:09
Theunihmm, hot water20:09
* Theuni gets his cup20:09
benjiwe hope to get all of the zc packages into pypi in the future, so people will be able to find them there20:09
* benji goes to the fridge for a Coke.20:10
SteveApypi is a very good thing20:20
SteveAan additional option is to register these packages in launchpad, and use that for bugtracking and perhaps internationalization.20:21
SteveAI think launchpad is good for a bunch of small interrelated things, because you can show they're related products by grouping them in a "project", and you can redirect bugs from one product to another20:22
benjialmost as good as a little Red Leicester20:22
SteveAif for example a bug reported in an add-on for rendering tables turns out to be a bug in some core zope infrastrcuture20:22
SteveAnow, obviously, I work on launchpad, so I rather biased about it20:23
SteveAbut, this kind of thing is what it's for :-)20:23
Theunihmm. bias.20:23
* Theuni gets his cup20:23
* benji suspects Theuni has been caught in a time warp20:24
*** zbir has quit IRC20:24
*** kobold has left #zope3-dev20:25
*** jhauser has quit IRC20:28
Theunihmm. timewarp20:30
* Theuni gets his cup20:30
*** zagy has joined #zope3-dev20:36
*** zbir has joined #zope3-dev20:39
*** russf has quit IRC20:46
*** russf has joined #zope3-dev20:46
*** elbixio has joined #zope3-dev20:48
*** elbixio has quit IRC20:50
*** zbir_ has quit IRC20:56
*** tvw_ has joined #zope3-dev20:58
*** yota has joined #zope3-dev20:59
*** russf_ has joined #zope3-dev21:00
*** russf has quit IRC21:02
*** russf has joined #zope3-dev21:03
*** zbir has quit IRC21:12
*** russf has quit IRC21:14
*** ktwilight has quit IRC21:15
*** kamalgill has joined #zope3-dev21:16
*** russf has joined #zope3-dev21:16
*** ktwilight has joined #zope3-dev21:17
*** tvw has quit IRC21:17
*** whit_ has joined #zope3-dev21:18
*** MJ has joined #zope3-dev21:30
*** russf has quit IRC21:47
*** tvw_ has quit IRC21:49
*** russf has joined #zope3-dev21:53
*** xenru has quit IRC21:58
*** tiredbones has quit IRC21:59
*** tiredbones has joined #zope3-dev22:03
*** russf_ has joined #zope3-dev22:05
*** russf has quit IRC22:05
*** kamalgill has left #zope3-dev22:25
*** batlogg has joined #zope3-dev22:26
*** natea has joined #zope3-dev22:31
*** natea|busy has quit IRC22:39
*** d2m has left #zope3-dev22:45
*** xenru has joined #zope3-dev22:47
*** niemeyer has quit IRC22:50
*** oferw has joined #zope3-dev23:05
*** alecm has quit IRC23:08
*** niemeyer has joined #zope3-dev23:12
*** xenru|clone has joined #zope3-dev23:13
*** romanofski has joined #zope3-dev23:14
oferwxenru|clone: hi :)23:15
xenru|cloneoferw: hi23:16
*** nouri has quit IRC23:17
*** nouri has joined #zope3-dev23:20
*** dokai has quit IRC23:24
*** dokai has joined #zope3-dev23:24
*** xenru has quit IRC23:26
*** alecm has joined #zope3-dev23:29
*** batlogg has quit IRC23:30
*** batlogg has joined #zope3-dev23:30
*** zagy has quit IRC23:35
*** batlogg has quit IRC23:53
*** batlogg has joined #zope3-dev23:53
*** oferw has quit IRC23:56

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!