IRC log of #zope3-dev for Friday, 2007-09-21

*** pbugni has quit IRC00:01
*** regebro has joined #zope3-dev00:02
*** RaFromBRC has quit IRC00:04
*** RaFromBRC_ is now known as RaFromBRC00:04
*** jsadjohnson has joined #zope3-dev00:05
*** gstratton has quit IRC00:06
*** b52laptop has quit IRC00:07
*** pbugni_ has quit IRC00:07
*** b52laptop has joined #zope3-dev00:08
*** alga has quit IRC00:10
*** RaFromBRC has quit IRC00:22
*** RaFromBRC has joined #zope3-dev00:23
*** dobee has quit IRC00:45
*** mkerrin has joined #zope3-dev00:49
*** pelle_ has quit IRC00:54
*** mkerrin has quit IRC01:02
*** gstratton has joined #zope3-dev01:03
*** gstratton has quit IRC01:07
*** philiKON has quit IRC01:15
*** gstratton has joined #zope3-dev01:15
*** Ariel_Calzada has quit IRC01:29
*** regebro has left #zope3-dev01:34
*** dunny has joined #zope3-dev01:36
*** aclark|nearby is now known as aclark01:47
*** J1m has quit IRC01:48
*** jsadjohnson has quit IRC01:52
*** gstratton has quit IRC02:05
*** bao has joined #zope3-dev02:27
*** nathany has quit IRC02:40
*** jsadjohnson has joined #zope3-dev02:43
*** faassen has quit IRC02:57
*** greenman has joined #zope3-dev03:04
*** pbugni has joined #zope3-dev03:05
*** roym has joined #zope3-dev03:11
*** pbugni has quit IRC03:57
*** alecm has quit IRC03:59
*** RaFromBRC has quit IRC04:18
*** jsadjohnson_ has joined #zope3-dev04:29
*** bao has left #zope3-dev04:31
*** roym has quit IRC04:36
*** Ariel_Calzada has joined #zope3-dev05:15
*** stub has quit IRC05:16
*** stub has joined #zope3-dev05:19
*** b52laptop has quit IRC05:21
*** jsadjohnson has quit IRC05:25
*** greenman_ has joined #zope3-dev05:34
*** greenman has quit IRC05:34
*** ousado_ has quit IRC05:40
*** ousado_ has joined #zope3-dev05:40
*** niemeyer has quit IRC06:02
*** philiKON has joined #zope3-dev06:24
*** philiKON has quit IRC06:42
*** pbugni has joined #zope3-dev06:44
markusleistsrichter: ayt06:47
markusleistsrichter: will send you a small z3c.form patch by mail06:50
*** greenman has joined #zope3-dev07:14
*** greenman_ has quit IRC07:14
*** huajie has joined #zope3-dev07:18
*** jsadjohnson_ has quit IRC07:21
*** jsadjohnson has joined #zope3-dev07:21
*** junkafarian has quit IRC07:33
*** junkafarian has joined #zope3-dev07:34
*** edgordon_ has joined #zope3-dev07:44
*** dobee has joined #zope3-dev07:55
*** edgordon has quit IRC08:04
*** baijum has joined #zope3-dev08:08
*** jodok has joined #zope3-dev08:11
*** jsadjohnson has quit IRC08:17
*** jukart has joined #zope3-dev08:25
*** jan_cbv has joined #zope3-dev08:30
*** greenman_ has joined #zope3-dev08:32
*** greenman has quit IRC08:32
*** jamesh has joined #zope3-dev08:33
*** zagy has joined #zope3-dev09:00
*** dunny has quit IRC09:02
*** aclark is now known as aclark|away09:06
*** cursor has joined #zope3-dev09:08
*** philiKON has joined #zope3-dev09:13
*** huajie has quit IRC09:14
*** hdima has joined #zope3-dev09:16
*** agroszer has joined #zope3-dev09:24
*** pyqwer has joined #zope3-dev09:25
pyqwerDoes someone know what's the best way to install Zope3 as a Python library? Is it possible to do an easy_install?09:26
pyqwerI can currently run Zope3 but if I try to do an "import zope" from the Python command line, it fails.09:27
*** greenman_ has quit IRC09:30
*** philiKON has quit IRC09:43
*** chacha_chaudhry has joined #zope3-dev09:45
*** Ariel_Calzada has quit IRC09:48
romanofskimoin09:50
*** regebro has joined #zope3-dev09:55
*** timte has joined #zope3-dev09:55
*** philiKON has joined #zope3-dev09:57
*** ignas has joined #zope3-dev10:06
*** sureshvv has joined #zope3-dev10:17
*** rcrafton has quit IRC10:18
sureshvvAttributeError: 'BrowserRequest' object has no attribute 'set'10:19
sureshvvHow do I set something in the request?10:19
philiKONyou don't10:20
philiKONrequest is read only10:20
philiKONthe fact that the zope 2 request has a 'set' method is evi evil evil10:20
sureshvvok...10:22
sureshvvhow do I set a flag in a form that the .pt file can examine?10:22
sureshvvin the action method?10:23
sureshvvview attribute?10:24
sureshvvphiliKON... say something :)10:26
philiKONyes, set someting on the view object10:26
sureshvvok...10:27
*** pelle_ has joined #zope3-dev10:34
*** gstratton has joined #zope3-dev10:35
*** harobed has joined #zope3-dev10:36
*** jodok has quit IRC10:39
*** jan_cbv has quit IRC10:47
sureshvvZope thinks SimpleViewClass is the view class rather than my form10:51
*** pelle_ has quit IRC10:52
*** pelle_ has joined #zope3-dev10:55
*** cursor has quit IRC11:10
*** cursor has joined #zope3-dev11:16
sureshvvNeed some help with formlib11:18
sureshvvI have a .pt file with a form in it11:19
sureshvvat the top of the .pt file I test a view attribute11:19
sureshvvon submit I set the value of the attribute11:19
*** MJ has joined #zope3-dev11:19
sureshvvThe attribute value seems to change mid way in the .pt file11:20
sureshvvdoes this make sense?11:20
*** greenman has joined #zope3-dev11:41
*** baijum has quit IRC11:48
*** baijum has joined #zope3-dev11:50
*** jfroche has joined #zope3-dev11:51
*** mgedmin has joined #zope3-dev12:16
*** dunny has joined #zope3-dev12:23
*** malthe has joined #zope3-dev12:25
*** ThomasKarlRichte has joined #zope3-dev12:40
ThomasKarlRichtewhere can i find an introduction about how bootstrapping is working inside zope.app?12:41
wiggyin the source12:43
*** yvl has joined #zope3-dev12:49
*** chacha_chaudhry has quit IRC12:54
*** MrTopf has joined #zope3-dev12:58
*** MJ is now known as MJ|out12:59
*** faassen has joined #zope3-dev13:08
*** mkerrin has joined #zope3-dev13:13
*** yvl has quit IRC13:14
*** junkafarian is now known as Monty|farian13:16
*** salfield has joined #zope3-dev13:16
*** Monty|farian is now known as junkafarian13:30
sureshvvIs it ok to do self.request.response.redirect() inside a form action?13:32
*** jinty has joined #zope3-dev13:34
philiKONyup13:37
philiKONThomasKarlRichte: look at the code zopeproject generates, for instance13:37
philiKONThomasKarlRichte: in src/<package>/startup.py13:37
*** junkafarian has left #zope3-dev13:38
ThomasKarlRichtephileKON: thanx13:38
*** MJ|out is now known as MJ13:41
*** BjornT has quit IRC13:46
*** sureshvv has left #zope3-dev13:49
*** malthe has quit IRC13:55
*** b52laptop has joined #zope3-dev13:57
*** malthe has joined #zope3-dev14:00
*** alga has joined #zope3-dev14:04
*** rocky has quit IRC14:07
*** BjornT has joined #zope3-dev14:09
*** faassen has left #zope3-dev14:15
*** rocky has joined #zope3-dev14:21
*** rcrafton has joined #zope3-dev14:31
*** aclark|away is now known as aclark14:32
*** malthe has quit IRC14:35
*** deo has quit IRC14:35
*** malthe has joined #zope3-dev14:35
*** deo has joined #zope3-dev14:35
*** MrTopf_ has joined #zope3-dev14:37
*** ignas has quit IRC14:39
*** MrTopf has quit IRC14:45
*** romanofski has quit IRC14:47
*** ignas has joined #zope3-dev14:49
*** MJ is now known as MJ|lunch15:09
*** niemeyer has joined #zope3-dev15:10
*** benji has joined #zope3-dev15:16
*** jodok has joined #zope3-dev15:24
*** malthe has quit IRC15:25
*** MacYET has joined #zope3-dev15:25
*** jodok has quit IRC15:25
*** ghendi has joined #zope3-dev15:28
*** greenman has quit IRC15:39
*** markusleist has quit IRC15:46
*** salfield has quit IRC15:47
*** greenman has joined #zope3-dev15:48
*** ruda_porto has joined #zope3-dev15:49
*** MJ|lunch is now known as MJ15:53
*** MrTopf_ is now known as MrTopf16:06
*** ThomasKarlRichte has quit IRC16:11
* Cripps yawns16:14
*** malthe has joined #zope3-dev16:14
Crippsgood morning folk16:14
*** jsadjohnson has joined #zope3-dev16:14
*** greenman has quit IRC16:15
*** pbugni has quit IRC16:23
*** pelle__ has joined #zope3-dev16:24
*** hdima has quit IRC16:33
*** malthe is now known as malthe|away16:35
*** cursor has quit IRC16:40
*** pelle_ has quit IRC16:41
*** baijum has quit IRC16:50
*** rocky has quit IRC17:01
*** Ariel_Calzada has joined #zope3-dev17:05
*** redir has joined #zope3-dev17:15
*** gstratton has quit IRC17:17
redirI have to create an object to register it with an IntIds utility, correct? THis means that I cannot use the IntIds utility to create unique names for items does it not?17:17
*** ghendi has quit IRC17:23
*** gstratton has joined #zope3-dev17:25
*** nathany has joined #zope3-dev17:30
*** BjornT has quit IRC17:30
*** BjornT has joined #zope3-dev17:40
*** salfield has joined #zope3-dev17:43
*** MacYET has left #zope3-dev17:45
*** BjornT has quit IRC17:47
*** BjornT has joined #zope3-dev17:47
*** dobee has quit IRC17:48
philiKONredir: you have to *add* an object to a container to register it with intids18:01
philiKONnot only create18:01
philiKONthere's a difference18:01
philiKONcreate:  obj = MyKlass()18:01
philiKONadd:   container['obj'] = obj18:01
philiKONto answer your question, yes.18:01
*** jfroche has quit IRC18:03
*** edgordon_ has quit IRC18:11
*** zagy has quit IRC18:14
*** timte has quit IRC18:27
*** dobee has joined #zope3-dev18:30
*** stub has quit IRC18:39
*** pbugni has joined #zope3-dev18:39
*** MrTopf has quit IRC18:44
*** MrTopf has joined #zope3-dev18:46
*** edgordon has joined #zope3-dev18:46
*** MrTopf has quit IRC19:04
*** febb has joined #zope3-dev19:06
*** harobed has quit IRC19:07
redirTHanks philiKON19:19
*** aclark is now known as aclark|nearby19:20
*** MJ has quit IRC19:23
*** jukart has quit IRC19:28
*** jinty has quit IRC19:29
*** ruda_porto has quit IRC19:38
*** philiKON has quit IRC19:39
*** edgordon has quit IRC19:42
*** mgedmin has quit IRC19:52
*** jsadjohnson_ has joined #zope3-dev19:53
*** jsadjohnson has quit IRC19:55
*** edgordon has joined #zope3-dev20:00
*** RaFromBRC has joined #zope3-dev20:00
*** Ariel_Calzada has quit IRC20:02
*** jsadjohnson_ has quit IRC20:08
*** rocky has joined #zope3-dev20:11
*** agroszer_ has joined #zope3-dev20:12
*** mkerrin has quit IRC20:13
hazmatwhat recipe are folks using for a zope 3 instance.. zope3recipes or zope3instance20:23
hazmati was trying out zope3recipes, but it seems to have a bug in it, it references an undefined variable logger on error20:23
*** rocky has quit IRC20:24
*** agroszer has quit IRC20:25
*** ignas has quit IRC20:36
*** bigkevmcd has quit IRC20:46
*** Ariel_Calzada has joined #zope3-dev20:47
*** timte has joined #zope3-dev20:54
*** alecm has joined #zope3-dev20:55
*** jsadjohnson has joined #zope3-dev21:00
*** gstratton has quit IRC21:07
_tarek_I have a question about encodings in Zope 321:18
_tarek_i can see unicode() in Zope 3 code, and sometimes, unicode(xx, utf8), and sometimes unicode(xxx, getPreferredEncoding())21:19
_tarek_the thing is, for the unicode(xxx) it can brake, depending on the python encoding21:20
_tarek_what is the best practice ?21:20
_tarek_changing python default encoding or21:20
_tarek_always specify the encoding to use ?21:20
*** salfield has quit IRC21:22
*** alga has quit IRC21:26
*** philiKON has joined #zope3-dev21:33
_tarek_hi philiKON21:35
philiKONhi21:35
_tarek_i have a question about encoding in zope 3,21:35
_tarek_i had a bug on a unicode(xxx) call21:35
_tarek_and i've seen people around using sys.setdefaultaencoding to force to utf821:36
_tarek_when the ascii codec is the default and it brakes21:36
_tarek_but what would be the best practice in Zope 3 ?21:36
philiKONnever ever ever ever use sys.setdefaultencoding21:37
_tarek_use explicit unicode(xxx, 'utf8')21:37
_tarek_welel, or sitecustomize.py21:37
philiKONand just doing unicode(foo) is just plain ignorant21:37
philiKONno idea what sitecusotmize.py is21:37
philiKONbut anything that changes the global python setup is just evil21:37
_tarek_ok that's what i guess21:37
philiKONyou'll end up in deployment hell21:37
_tarek_i agree21:37
philiKONunicode(foo) is plain naive and ignorant21:37
philiKONalways do an explicit decoding21:37
philiKONeither with unicode(foo, 'utf-8)21:37
_tarek_another question,21:38
philiKONi prefer:  foo.decode('utf-8')21:38
_tarek_do i need to use getPrefereredEncoding ?21:38
_tarek_or 'uytf8' is fine21:38
philiKONwhat's getPreferredEncoding?21:38
_tarek_i grepped in z3 code and i found it in zope.app.applicationcontrol21:39
_tarek_(runtimeinfo)21:39
philiKONno idea what that is21:40
philiKONit all depends on where you're getting your data from21:41
philiKONwhat is this foo?21:41
_tarek_(zope 3's zope 2.11 dist)21:41
*** redir has quit IRC21:42
_tarek_actually it's a regular utf8 string so i know how to explicitely decode it. but i was wondering what was the right thing to do21:42
_tarek_thanks !21:42
philiKONsure, np21:43
_tarek_philiKON, to make sure I understand in this code: http://svn.zope.org/zope.formlib/trunk/src/zope/formlib/form.py?rev=75131&view=markup21:46
_tarek_if you grep for unicode(21:46
philiKONthat's fine21:46
_tarek_is that something that should be explicit21:46
philiKONno21:47
philiKONlabel must never ever be an 8bit string21:47
philiKONjust a 7bit ascii21:47
_tarek_ok21:47
_tarek_thx21:47
philiKONso it just be a str()21:47
philiKONbut it can't be    label = 'Föö'21:47
_tarek_k21:47
philiKONbut it can be    label = 'Foo'21:47
_tarek_like an id21:47
*** jukart has joined #zope3-dev21:48
*** philiKON has quit IRC21:50
*** pbugni has quit IRC21:59
*** fcorrea has joined #zope3-dev22:17
timteIf I want to put some info in a cookie I shouldn't use ISession, should I?22:18
*** ruda_porto has joined #zope3-dev22:18
srichtertimte: no you should :-)22:18
srichtertimte: it will not be a cookie itself, but the session is bound to a cookie22:18
timteif I set timeout in SessionDataContainer, will that actually set the cookie timeout in the client browser?22:23
*** jsadjohnson has left #zope3-dev22:27
fcorreaHello buildouters. I have a question about a recipe in special. There is this plone.recipie.command that is supposed to run a command through os.system. The point is: Do I need to insert something like [runsomething] in my [buildout] parts section or by just creating the [runsomething] it will run?22:32
*** febb has quit IRC22:32
benjiI'm not familiar with that recipe, but one way or another all actions start with a part.22:33
fcorreabenji: got it. So by putting it in the parts section will enforce it to run rigth?22:33
benjiyep22:34
fcorreacool. tks22:34
fcorreaI didn't try it yet :D22:35
*** _tarek_ has left #zope3-dev22:37
*** tarek has joined #zope3-dev22:37
*** pelle_ has joined #zope3-dev22:38
*** J1m has joined #zope3-dev22:40
*** greenman has joined #zope3-dev22:51
*** greenman has quit IRC22:54
*** jsadjohnson has joined #zope3-dev23:02
*** b52laptop has quit IRC23:07
*** greenman has joined #zope3-dev23:08
*** b52laptop has joined #zope3-dev23:08
*** pelle_ has quit IRC23:16
*** jpfarias has quit IRC23:41
*** niemeyer_ has joined #zope3-dev23:42
*** niemeyer has quit IRC23:57

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