IRC log of #zope3-dev for Friday, 2007-07-06

*** goplus has left #zope3-dev00:02
*** RaFromBRC is now known as RaFromBRC|lunch00:03
*** pelle_ has quit IRC00:03
*** pelle_ has joined #zope3-dev00:05
*** norro has quit IRC00:18
X-screamanyone know of a proper way to work with/do changes on a deployed Z3 app?  First you'd want to test any changes before actually changing the running site..00:34
X-screammirrored instances? SVN? etc..00:34
X-screamZEO maybe?00:34
bigkevmcdX-scream: how do you deal with non-Z3 deployed apps currently?00:35
X-screamI don't.. I'm about to start planning and designing one. But I need to think of the future too :)00:35
iapstart with unit testing00:35
X-screamok00:36
X-screamthat seems reasonable :)00:36
iapthat should catch the stupid errors ;)00:36
X-screamif you get a webhost which gives you a shared zope instance, how would you restart the server to apply changes you make ?00:38
X-screamI'm kind of in an investigating phase here, got a big project coming up and I've been assigned to learn Z3 :)00:39
*** jfroche_ has joined #zope3-dev00:39
X-screamany suggestions on how to deal with the develop/commit&stage/deploy process of a live site is higly appreciated :)00:45
*** BjornT has quit IRC00:47
bigkevmcdIt can range from simple to complex, depending on the architecture of the application, and the hosting environment.00:47
*** pelle_ has quit IRC00:48
X-screamI guess that's a bit into the future, now I just need to study Z300:49
X-screamjust got Philipp's book 2nd ed.. very good so far00:49
*** RaFromBRC|lunch is now known as RaFromBRC00:51
*** rcrafton has quit IRC00:51
*** BjornT has joined #zope3-dev00:52
*** jfroche has quit IRC00:52
X-screambtw, you guys refer to zope 3 as Z3 right?00:52
X-screamor is that acronym already occupied :)00:52
*** natea|lunch is now known as natea|boston00:55
*** greenman has joined #zope3-dev00:56
*** goplus has joined #zope3-dev00:57
*** goplus has left #zope3-dev00:57
*** johnlr has quit IRC01:02
*** schwendinger|sle has quit IRC01:04
*** bigkevmcd has quit IRC01:04
*** twcook has joined #zope3-dev01:09
*** greenman_ has joined #zope3-dev01:09
*** greenman has quit IRC01:09
*** greenman_ has quit IRC01:10
*** bac is now known as bac_afk01:10
*** jodok has quit IRC01:15
*** jfroche_ has quit IRC01:17
*** pcardune has quit IRC01:21
*** jodok has joined #zope3-dev01:31
*** Ariel_Calzada has quit IRC01:34
*** jinty has joined #zope3-dev01:35
*** iap is now known as jap01:38
*** jap is now known as iap01:38
*** benji_ has joined #zope3-dev01:40
*** benji has quit IRC01:41
*** jodok has quit IRC01:49
*** derek_richardson is now known as derek|office01:49
*** jinty_ has joined #zope3-dev02:06
*** johnlr has joined #zope3-dev02:08
*** harobed has quit IRC02:12
*** lmiller has joined #zope3-dev02:20
*** benji_ has quit IRC02:20
*** jinty has quit IRC02:23
*** J1m has quit IRC02:34
*** redir has quit IRC02:55
*** jsadjohnson has quit IRC02:56
CSWookieIs there any tutorial/exemplars of z3c.configurator?03:08
CSWookies/Is/Are/03:08
*** natea|boston is now known as natea|dinner03:37
*** alecm has quit IRC03:59
*** pcardune has joined #zope3-dev04:07
*** natea|dinner_ has joined #zope3-dev04:30
*** hazmat has quit IRC04:38
*** natea|dinner has quit IRC04:39
*** jsadjohnson has joined #zope3-dev04:42
*** jsadjohnson has quit IRC04:58
*** niemeyer has quit IRC05:06
*** natea|dinner has joined #zope3-dev05:13
*** natea|dinner_ has quit IRC05:22
*** RaFromBRC has quit IRC05:24
*** alecm has joined #zope3-dev05:33
*** alecm has quit IRC05:33
*** natea|dinner_ has joined #zope3-dev05:44
*** natea|dinner has quit IRC05:51
*** frankpitt has joined #zope3-dev05:56
*** frankpitt has left #zope3-dev06:16
*** pcardune has quit IRC06:31
*** natea_ has joined #zope3-dev06:43
*** natea|dinner_ has quit IRC06:50
*** natea_ has quit IRC07:05
*** natea_ has joined #zope3-dev07:05
*** alecm has joined #zope3-dev07:24
*** cursor has joined #zope3-dev07:30
*** alecm has quit IRC07:38
*** alecm has joined #zope3-dev07:39
*** alecm_ has joined #zope3-dev07:40
*** alecm has quit IRC07:56
*** alecm has joined #zope3-dev07:56
*** jukart has joined #zope3-dev08:00
*** baijum has joined #zope3-dev08:01
*** alecm_ has quit IRC08:05
*** twcook has quit IRC08:12
*** cursor has quit IRC08:17
*** natea_ has quit IRC08:19
*** natea_ has joined #zope3-dev08:20
*** natea_ has quit IRC08:45
*** natea_ has joined #zope3-dev08:49
*** sorin has joined #zope3-dev08:52
*** d2m has joined #zope3-dev08:52
*** sorin is now known as sorindregan08:52
*** schwendinger|sle has joined #zope3-dev08:54
*** alecm_ has joined #zope3-dev08:56
*** alecm has quit IRC08:57
*** greenman has joined #zope3-dev08:58
*** ghendi has joined #zope3-dev09:10
*** jodok has joined #zope3-dev09:29
*** jodok has quit IRC09:37
*** jodok has joined #zope3-dev09:43
*** febb has joined #zope3-dev09:54
*** bigkevmcd has joined #zope3-dev09:59
*** alga has joined #zope3-dev09:59
*** philiKON has quit IRC10:00
*** schwendinger|sle is now known as schwendinger10:13
*** jinty_ has quit IRC10:14
*** theuni has joined #zope3-dev10:16
*** natea_ has quit IRC10:21
*** natea_ has joined #zope3-dev10:21
*** theuni has quit IRC10:28
*** theuni has joined #zope3-dev10:29
*** romanofski has joined #zope3-dev10:30
*** theuni has quit IRC10:31
*** Jell-O-Fishi has quit IRC10:31
*** theuni has joined #zope3-dev10:31
*** foxmjay has quit IRC10:34
*** dunny has joined #zope3-dev10:44
*** b52lap has joined #zope3-dev10:49
*** b52laptop has quit IRC10:53
*** b52lap has quit IRC10:55
*** lmiller has quit IRC10:57
*** baijum changes topic to "Zope 3.4.0b1 is out: http://www.zope.org/Products/Zope3/3.4.0b1 | Zope 3.4 bugs: http://tinyurl.com/yvyeo5 | bugs: https://bugs.launchpad.net/zope3/ | FAQ: http://wiki.zope.org/zope3/FAQ | wiki: http://wiki.zope.org/zope3 | paste: http://paste.lisp.org/new/zope3-dev | irc logs: http://zope3.pov.lt/irclogs/ | new buildbot : http://uter.gocept.com:3333/"10:59
*** alecm_ has quit IRC11:04
*** pelle_ has joined #zope3-dev11:05
*** jfroche has joined #zope3-dev11:08
*** jsadjohnson has joined #zope3-dev11:21
*** greenman has quit IRC11:22
*** jsadjohnson has left #zope3-dev11:27
*** greenman has joined #zope3-dev11:28
*** dunny has quit IRC11:30
*** stub has joined #zope3-dev11:35
*** dunny has joined #zope3-dev11:36
*** jodok has quit IRC11:36
*** jodok has joined #zope3-dev11:40
*** jodok has quit IRC11:45
*** jodok has joined #zope3-dev11:46
*** jodok has quit IRC11:47
*** jodok has joined #zope3-dev11:48
*** febb has quit IRC11:49
*** kobold has joined #zope3-dev11:50
*** norro has joined #zope3-dev11:51
*** MJ has joined #zope3-dev11:54
*** ktwilight_ has quit IRC11:56
*** ktwilight has joined #zope3-dev11:57
*** mgedmin has joined #zope3-dev12:09
*** ktwilight has quit IRC12:19
*** dobee has joined #zope3-dev12:19
*** ktwilight has joined #zope3-dev12:22
*** MJ is now known as MJ|sprint12:23
*** b52laptop has joined #zope3-dev12:24
*** gmat has joined #zope3-dev12:35
*** gmat has left #zope3-dev12:51
*** pandres has quit IRC12:51
*** jodok_ has joined #zope3-dev12:51
*** jodok has quit IRC12:52
*** Jell-O-Fishi has joined #zope3-dev12:55
*** twcook has joined #zope3-dev13:14
*** tarek has quit IRC13:16
*** mkerrin has joined #zope3-dev13:16
*** tarek has joined #zope3-dev13:21
*** dunny has quit IRC13:44
*** Jell-O-Fishi has quit IRC13:47
*** mgedmin has quit IRC14:03
*** kleist has joined #zope3-dev14:23
*** greenman has quit IRC14:47
*** chacha_chaudhry has joined #zope3-dev14:49
*** projekt01 has joined #zope3-dev14:53
*** bac_afk is now known as bac14:56
*** alecm has joined #zope3-dev15:00
*** niemeyer has joined #zope3-dev15:05
*** marianom has joined #zope3-dev15:07
*** natea_ has quit IRC15:10
*** natea_ has joined #zope3-dev15:10
*** timte has joined #zope3-dev15:12
*** chacha_chaudhry has quit IRC15:14
*** benji has joined #zope3-dev15:16
*** alecm has quit IRC15:16
dennis__if my request has  ?item=blah;more  , self.request.form breaks the item into "blah", and creates a new dictionary item "more" = "", i would expect that to happen only for item=blah&more, not for a semilcolon.  Is that a bug or my fault?15:18
norrodennis__ semicolon is a reserved character inside an URI15:21
d2mthe part following the semicolon should be considered as a parameter to the pathsegment15:23
dennis__hmm :) do you happen to remember the name of the encoding method so I can add ?item=<safely encoded value>15:23
dennis__makes sense actually since i could have & in my argument anyway15:23
theunid2m: even within the querystring?15:24
d2mhttp://www.ietf.org/rfc/rfc2396.txt >> 3.3. Path Component15:24
d2mtheuni: i see what you mean15:25
d2m3.4 says, "Within a query component, the characters ";", "/", "?", ":", "@",    "&", "=", "+", ",", and "$" are reserved."15:25
*** pcardune has joined #zope3-dev15:26
*** J1m has joined #zope3-dev15:30
dennis__does anyone remember how to escape this?15:30
theunithere's a function either in the cgi module or urlquote15:31
theuniit takes a mapping and gives you back a - correctly quoted - query string15:31
dennis__cgi.escape('foo;bar') give me 'foo;bar', so that wouldn't be enough15:33
dennis__but urllib.quote seems to make it 'foo%3Bbar'15:34
dennis__lemme try that :)15:34
theuniright, as i said: the method you're looking for takes a dictionary15:34
theuniotherwise you can't do this right.15:34
theuni    urlencode(query, doseq=0)15:35
theuni        Encode a sequence of two-element tuples or dictionary into a URL query string.15:35
theunithat's in urllib15:35
*** afd_ has joined #zope3-dev15:35
*** romanofski has quit IRC15:38
norrohow can i sort of /extend/ the apply action of my custom edit form properly?15:44
norroI want some further actions to be done right after the default formlib stuff happened15:44
*** pcardune has quit IRC15:46
*** rcrafton has joined #zope3-dev15:47
*** norro_ has joined #zope3-dev15:48
*** jodok has joined #zope3-dev15:56
*** redir has joined #zope3-dev15:56
*** norro has quit IRC16:03
d2mdennis__: look at cgi.parse_qls() for the inner workings of querystring parsing16:04
d2mcgi.parse_qsl() to be correct16:04
*** norro_ has quit IRC16:06
*** pcardune has joined #zope3-dev16:14
*** jodok_ has quit IRC16:15
*** b52laptop has quit IRC16:16
*** b52laptop has joined #zope3-dev16:17
*** gumpa has joined #zope3-dev16:19
*** jsadjohnson has joined #zope3-dev16:20
*** baijum has quit IRC16:22
*** jodok has quit IRC16:25
*** tarek_ has joined #zope3-dev16:29
dennis__brr i dont get it. My folder has an object "foo" and an object "foo;bar". If i check in the debug shell, they both have a different contents. But if I browse  to   foo%3Bbar  (zapi.absoluteURL generated uri) I get the contents for "foo" only, zope ignores anything following the %3b (encoded ";") including any view. So "foo%3Bbar/edit.html" gives me "foo/index.html"16:32
*** ghendi has quit IRC16:32
dennis__(its a wiki kind of thing, and people have added a name with a semicolon in it)16:32
*** mgedmin has joined #zope3-dev16:32
*** tarek has quit IRC16:40
*** pcardune has quit IRC16:46
*** richardkan has joined #zope3-dev16:49
*** richardkan has left #zope3-dev16:50
srichterdennis__: well, you need to make sure the names are somewhat restricted16:51
J1m';' has special meaning in URLs.16:52
dennis__yes but it's encoded, isn't that the point of encoding it?16:52
J1mI'm not sure escaping it changes that.16:52
srichtercorrect16:53
J1mI don't *think* encoding changes it's meaning, but I'm not sure.16:53
J1mYou have to be an RFC lawyer to be sure. :)16:53
srichterwell, in Konqueror it certainly does not16:53
dennis__i've solved my issues with funny chars by escaping everything properly, but now zope does received  /foo%3bbar/edit.html  and it traverses to  /foo/index.html16:53
srichtermy @@ get automatically encoded by Konqueror but are correctly handled by Zope16:53
dennis__srichter yeah that's true too16:54
J1mdennis, ; separates the normal path from url parameters.16:54
J1mso, technically, ';' ends the path part of the URL.16:55
dennis__so even escaping doesn't allow me to use certain chars anywhere in the uri .. argh16:57
dennis__is there a function which strips (since it can't escape/encode) "illegal" chars away from a given string? that's my best chance to resolve this with the least amount of changes17:00
theunistr.replace(';', '')17:01
dennis__sure, but then tomorrow someone adds "@" in the name, and then "+", and then "&", etc :) i trust a dedicated function/lib to do it better than myself :)17:02
*** pcardune has joined #zope3-dev17:09
dennis__"""For example, the reserved character "/", if used in the "path" component of a URI, has the special meaning of being a delimiter between path segments. If, according to a given URI scheme, "/" needs to be in a path segment, then the three characters "%2F" or "%2f" must be used in the segment instead of a raw "/".  """17:12
*** lisppaste6 has quit IRC17:14
dennis__for the @@ case I would interpret it that the browser should encode it since they are not used as their intended meaning, and zope of course unescapes them since it attaches a special meaning to it itself17:15
*** cursor has joined #zope3-dev17:21
dennis__hmpf no this won't work, have to work around this now :(17:21
*** lisppaste6 has joined #zope3-dev17:21
*** derek|office is now known as derek_richardson17:21
*** sorindregan has quit IRC17:27
*** philiKON has joined #zope3-dev17:33
*** schwendinger has quit IRC17:37
*** rocky has quit IRC17:39
*** philiKON has quit IRC17:43
*** Jell-O-Fishi has joined #zope3-dev17:43
*** philiKON has joined #zope3-dev17:50
*** schwendinger has joined #zope3-dev17:53
*** jhauser has joined #zope3-dev17:54
*** philiKON has quit IRC17:56
*** Ariel_Calzada has joined #zope3-dev18:00
*** tarek has joined #zope3-dev18:01
*** drzoltron has joined #zope3-dev18:04
drzoltronCould someone pls point me to a svn where I can get lovely.rest ?18:05
*** natea_ has quit IRC18:06
*** Jell-O-Squidy has joined #zope3-dev18:06
*** natea_ has joined #zope3-dev18:06
*** tarek_ has quit IRC18:06
*** Jell-O-Squidy has quit IRC18:08
*** dobee has quit IRC18:11
*** GuestBaha18 has joined #zope3-dev18:14
*** GuestBaha18 has quit IRC18:15
*** mgedmin has quit IRC18:24
*** dobee has joined #zope3-dev18:25
*** kleist has left #zope3-dev18:28
*** johnlr has quit IRC18:28
*** dobee has quit IRC18:37
*** natea_ has quit IRC18:39
*** richardkan has joined #zope3-dev18:40
*** Ariel_Calzada has quit IRC18:42
*** pelle_ has quit IRC18:46
*** sm has quit IRC18:48
*** sm has joined #zope3-dev18:49
*** projekt01 has quit IRC18:50
*** alecm has joined #zope3-dev18:53
*** richardkan has left #zope3-dev18:55
*** natea_ has joined #zope3-dev18:55
*** nathany has joined #zope3-dev19:04
*** Ariel_Calzada has joined #zope3-dev19:11
X-screamschemas fields have implied type constraints right? So if i have a "x = Int(...)" in my schema shouldn't I get an error when I do >>> foo.x = "bar"19:11
X-screamwhere foo is an instance of a class that implements my schema19:11
X-screamor how does this work, confused :)19:12
J1mThe schema system doesn't enforce anything on it's own.19:12
*** stub has quit IRC19:12
J1mIt is almost entorely specification.19:12
J1mYou can build tools on top of it that check.19:12
J1mThere are some tools like that already, such as the widget/form frameworks.19:13
J1mThere is also a SchemaFieldProperty that you can put in a class definition to enforce a field constraint.19:13
X-screamah19:14
X-screamI also saw a validate function...  >>> x = Int(...)  >>> x.validate('an error')19:15
X-screambut why can't I do obj.x.validate('meep')   if I have an Int field in obj...19:16
J1mright. Arguably, that is a wart.  The intent is that fields are purely specification.  We should probably have used adapters to provide validation.19:16
J1mbecause fields libe in the interface, not in the object that provides the interface.19:17
J1mlive19:17
X-screamah19:17
J1mobj.x is just an integer.19:17
X-screamyeah, 'int' object has no attribute 'validate'19:18
*** tarek has quit IRC19:19
*** schwendinger has quit IRC19:25
*** jukart has quit IRC19:30
*** alga has quit IRC19:33
*** schwendinger has joined #zope3-dev19:40
*** philiKON has joined #zope3-dev19:41
*** schwendinger has quit IRC19:48
*** mkerrin has quit IRC19:55
*** gumpa has quit IRC20:01
*** natea_ has quit IRC20:16
*** natea_ has joined #zope3-dev20:17
*** nathany has quit IRC20:27
*** RaFromBRC has joined #zope3-dev20:30
*** nathany has joined #zope3-dev20:31
*** cursor has quit IRC20:33
*** drzoltron has quit IRC20:33
*** cursor has joined #zope3-dev20:34
*** natea_ has quit IRC20:36
*** natea_ has joined #zope3-dev20:45
*** kobold has left #zope3-dev20:50
*** cursor has quit IRC20:52
*** natea_ has quit IRC20:54
*** natea_ has joined #zope3-dev20:54
*** MJ|sprint has quit IRC21:19
*** b52laptop has quit IRC21:25
*** nerdalert has joined #zope3-dev21:29
*** Ariel_Calzada has quit IRC21:44
*** pbugni-afk has joined #zope3-dev21:45
*** pbugni-afk is now known as pbugni21:45
*** dobee has joined #zope3-dev21:45
*** pandres has joined #zope3-dev21:53
*** natea_ has quit IRC21:55
*** natea_ has joined #zope3-dev21:55
*** theuni has quit IRC22:01
*** theuni has joined #zope3-dev22:02
*** dobee has quit IRC22:07
*** deo has joined #zope3-dev22:15
*** b52laptop has joined #zope3-dev22:29
*** theuni has quit IRC22:29
*** deo has quit IRC22:30
*** Ariel_Calzada has joined #zope3-dev22:33
*** dunny has joined #zope3-dev22:43
*** deo has joined #zope3-dev22:49
*** deo has quit IRC22:59
*** deo has joined #zope3-dev23:00
*** twcook has quit IRC23:03
*** lucielejard has joined #zope3-dev23:06
*** lucielejard has left #zope3-dev23:06
*** lucielejard has joined #zope3-dev23:11
*** pbugni has quit IRC23:27
*** danfairs has quit IRC23:27
*** natea_ has quit IRC23:53

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