IRC log of #zope3-dev for Monday, 2007-10-08

philiKONa login page needs just a view (browser page). this is implemented as one class, or if you're using a shortcut, simply just a single pagetemplate file00:00
philiKONamaron: custom login pages are explained in my book: http://worldcookery.com/00:01
philiKONalong with pretty much everything else you need to know about browser pages00:01
amaronphiliKON: which book is yours?00:01
amaronah00:01
*** mgedmin has quit IRC00:01
amaroncomany gave me a zope 3 developers handbook00:02
amaron*company00:02
philiKONthat's a bit outdated, unfortunately00:02
amaronyes, i saw many depricated warnings00:02
amaronbut, unfortunataly, management decided00:03
amaronafter few days of trying to learn00:03
amaronthat zope 3 is too complex00:03
philiKONthen management made a mistake :)00:03
philiKONah00:03
philiKONi thought you meant the mistake was buying that book ;)00:03
amaronthey also watched videos for turbogears and pylons...00:04
philiKONhave you see http://grok.zope.org ?00:04
philiKONit's a web framework on top of zope300:04
philiKONthat makes thigns much easier00:04
amaronah, nice, thank you00:05
philiKONif they want a video, here's one i made:00:05
philiKONhttp://www.archive.org/details/grok_todo_part100:05
amaronnow company doesnt want to use zope00:05
amaronbut i want00:05
amaronfor myself00:05
philiKONi see00:06
amaronthey wanned some complex backend for their product and services00:06
amaronand since i coulnt manage to do it fast00:06
amaroni told them that learning curve for learning zope 3 is slow00:07
amaronbut zope 3 has much more to offer than other frameworks00:07
amaronthey dont want to listen00:07
philiKONmaybe it's a steep learning curve. but an old book doesn't help either00:07
philiKONand you should show them grok00:08
philiKONit has a much better learning curve00:08
amaron"do with a framework u can learn fast"00:08
amaroni dont mind if they choose anything, zope3 looks very attractive00:09
amaroni'll learn it for myself, then find a job with zope 3 devel.00:10
*** norro has quit IRC00:15
*** ktwilight has joined #zope3-dev00:17
*** ktwilight_ has quit IRC00:20
*** projekt01 has joined #zope3-dev00:26
amaronphiliKON: i found todolist sample from your book, it clears alot for me00:26
amaronthanks00:27
philiKONit's not from my book00:27
amaronthis metal templating i didn't understand00:27
philiKONthat's explained in my book00:28
amaronok, i'll order your book :)00:29
amaronto bad there is not much clear information for zope 300:30
*** jodok has quit IRC00:32
*** wreutz has quit IRC01:26
*** regebro has left #zope3-dev02:02
*** Ariel_Calzada has quit IRC02:18
*** jfroche has quit IRC02:30
*** amaron has quit IRC02:31
*** gstratton_ has quit IRC02:36
*** greenman has quit IRC03:10
*** greenman has joined #zope3-dev03:30
*** salfield has quit IRC04:39
*** philiKON has quit IRC04:59
*** philiKON has joined #zope3-dev05:02
*** dunny has quit IRC05:03
*** philiKON has quit IRC05:32
*** stub has joined #zope3-dev05:38
*** quodt has quit IRC05:49
*** ousado has joined #zope3-dev05:59
*** ousado_ has quit IRC06:17
*** Ariel_Calzada has joined #zope3-dev06:39
*** ousado_ has joined #zope3-dev06:41
*** dunny has joined #zope3-dev06:57
*** ousado has quit IRC06:58
*** cursor has joined #zope3-dev06:59
*** dobee has joined #zope3-dev07:26
*** niemeyer has quit IRC07:27
*** greenman has quit IRC07:31
*** cursor has quit IRC07:33
*** regebr1 has joined #zope3-dev07:34
*** d2m has joined #zope3-dev08:34
*** cursor has joined #zope3-dev08:51
*** pelle_ has joined #zope3-dev08:52
*** zagy has joined #zope3-dev08:53
*** regebr1 has quit IRC08:58
*** jukart has joined #zope3-dev09:02
*** jodok has joined #zope3-dev09:11
*** schwendinger has quit IRC09:13
*** sorin has joined #zope3-dev09:21
*** sorin is now known as sorindregan09:21
*** hdima has joined #zope3-dev09:38
*** romanofski has joined #zope3-dev09:40
*** schwendinger has joined #zope3-dev09:41
romanofskimoin :)09:45
*** pelle_ has quit IRC09:48
*** pelle_ has joined #zope3-dev09:50
*** sorindregan has quit IRC10:07
*** sorindregan has joined #zope3-dev10:07
*** agroszer has joined #zope3-dev10:10
*** greenman has joined #zope3-dev10:17
*** sorindregan has quit IRC10:30
*** jfroche has joined #zope3-dev10:33
*** sorindregan has joined #zope3-dev10:37
*** thruflo has joined #zope3-dev10:40
*** reco has joined #zope3-dev10:48
*** sorindregan has quit IRC10:50
*** sorindregan has joined #zope3-dev10:50
*** bigkevmcd has joined #zope3-dev10:53
*** harobed has joined #zope3-dev10:54
*** reco_ has joined #zope3-dev11:03
*** reco has quit IRC11:12
*** jfroche has quit IRC11:12
*** jfroche_ has joined #zope3-dev11:13
*** gstratton_ has joined #zope3-dev11:16
*** norro has joined #zope3-dev11:24
*** afd_ has quit IRC11:30
*** davidstryker has joined #zope3-dev11:30
*** regebro has joined #zope3-dev11:31
*** davidstryker has left #zope3-dev11:31
*** sorindregan has quit IRC11:33
*** sorindregan has joined #zope3-dev11:33
*** reco_ has quit IRC11:35
*** jfroche_ has quit IRC11:35
*** jfroche has joined #zope3-dev11:36
*** baijum has joined #zope3-dev11:37
*** sorindregan has quit IRC11:38
*** ghendi has joined #zope3-dev11:40
*** sorindregan has joined #zope3-dev11:41
*** timte has joined #zope3-dev11:42
*** reco has joined #zope3-dev11:48
*** projekt01 has quit IRC11:51
*** projekt01 has joined #zope3-dev11:58
*** junkafarian has joined #zope3-dev12:01
*** thruflo is now known as youcantseeme12:01
*** junkafarian is now known as icanseeyou12:01
*** yvl has joined #zope3-dev12:02
*** youcantseeme is now known as behindthesofa12:02
*** icanseeyou is now known as junkafarian12:02
*** afd_ has joined #zope3-dev12:02
*** jfroche has quit IRC12:05
*** afd__ has joined #zope3-dev12:08
*** afd_ has quit IRC12:08
*** afd_ has joined #zope3-dev12:08
*** ignas has joined #zope3-dev12:11
*** sorindregan has quit IRC12:12
*** sorindregan has joined #zope3-dev12:12
*** dunny has quit IRC12:14
*** afd__ has quit IRC12:19
*** behindthesofa is now known as thruflo12:20
*** philiKON has joined #zope3-dev12:23
*** norro has quit IRC12:32
*** thruflo has quit IRC12:32
*** junkafarian has quit IRC12:34
*** sorindregan has quit IRC12:36
*** sorin has joined #zope3-dev12:39
*** sorin is now known as sorindregan12:40
*** MJ|nickcollision has joined #zope3-dev12:42
*** MJ|nickcollision is now known as MJ12:43
*** junkafarian has joined #zope3-dev12:52
*** malthe has quit IRC12:57
*** junkafarian has quit IRC13:04
*** naro has joined #zope3-dev13:08
*** norro has joined #zope3-dev13:11
*** cbcunc has joined #zope3-dev13:15
*** greenman has quit IRC13:18
*** mkerrin has joined #zope3-dev13:24
instantfoohmm, can you edit the "index" permission on a site manager? A user of mine needs access to a certain folder inside the sitemanager13:27
philiKONit's probably zope.ManageServices or something13:27
*** cbcunc has quit IRC13:29
instantfoook, will try13:29
*** reco has quit IRC13:29
*** MJ|nickcollision has joined #zope3-dev13:31
*** MJ has quit IRC13:31
philiKONinstantfoo: no, you use the debug skin and provoke an unauthorized. then it will tell you which permission exactly :)13:32
instantfooah13:33
*** d2m has quit IRC13:35
*** fcorrea has joined #zope3-dev13:35
*** pyqwer has joined #zope3-dev13:36
*** MJ|nickcollision is now known as MJ13:37
*** yvl has quit IRC13:38
instantfoohmm, i try to access http://localhost/++debug++errors/MySite/++etc++site/13:39
instantfooit asks for the password, i hit cancel, it doesn't do anything :)13:39
instantfooand if i type a wrong password it asks again13:40
instantfoophiliKON: i'm accessing it correctly, right?13:41
philiKONyou log in using an underprivileged user13:42
*** Doc_Dan has joined #zope3-dev13:48
*** greenman has joined #zope3-dev13:49
*** sorindregan has quit IRC13:49
*** sorindregan has joined #zope3-dev13:49
instantfoophiliKON: hmm i just get to this page where it says "unauthorized" :/13:50
instantfoohttp://tinyurl.com/2mblre13:51
*** ignas has quit IRC13:56
*** aclark|away is now known as aclark13:58
*** reco has joined #zope3-dev14:03
*** malthe has joined #zope3-dev14:12
*** sorin_ has joined #zope3-dev14:14
*** cbcunc has joined #zope3-dev14:22
*** jfroche has joined #zope3-dev14:27
*** Ariel_Calzada has quit IRC14:27
*** sorindregan has quit IRC14:27
*** alecm has joined #zope3-dev14:29
*** _wiwi_ is now known as Basti_14:46
*** faassen has joined #zope3-dev14:51
*** sorin_ is now known as sorindregan14:56
*** niemeyer has joined #zope3-dev15:02
*** MJ has quit IRC15:09
*** rcrafton has joined #zope3-dev15:14
*** greenman has quit IRC15:19
*** alecm_ has joined #zope3-dev15:22
*** whit has joined #zope3-dev15:22
*** alecm has quit IRC15:23
*** timte has quit IRC15:23
*** timte has joined #zope3-dev15:24
*** kleist has joined #zope3-dev15:54
*** kleist has quit IRC16:07
*** alecm_ has quit IRC16:10
*** quodt has joined #zope3-dev16:12
*** kleist has joined #zope3-dev16:14
*** cursor has quit IRC16:22
*** alecm has joined #zope3-dev16:28
*** jbonilla has joined #zope3-dev16:29
*** jbonilla has left #zope3-dev16:30
*** ignas has joined #zope3-dev16:37
*** J1m has joined #zope3-dev16:37
*** ignas has quit IRC16:39
*** ignas has joined #zope3-dev16:39
*** yvl has joined #zope3-dev16:39
*** thruflo has joined #zope3-dev16:40
*** pelle_ has quit IRC16:55
*** pelle_ has joined #zope3-dev16:55
*** alecm has quit IRC17:06
*** thruflo has left #zope3-dev17:11
*** rmarianski has joined #zope3-dev17:12
*** afd_ has quit IRC17:17
*** hdima has quit IRC17:18
*** afd_ has joined #zope3-dev17:18
*** ghendi has quit IRC17:20
*** afd__ has joined #zope3-dev17:20
*** Subdino has joined #zope3-dev17:22
*** ousado has joined #zope3-dev17:23
Subdinohi. I have a (ridiculously :$) tiny improvement for zodb pack code: in FileStorage/fspack.py, replace "if self.reachable.has_key(oid):" by "if oid in self.reachable:".17:23
Subdinothe latter is a bit faster than the former on fsIndex objects, because it does not try to unpack the value17:24
Subdino...or is it a bug in fsPack code...17:25
Subdinos/pack/Index/17:25
J1mThe former is also better style.17:27
J1mare you a contributor?17:27
J1mBTW, if I had time, I'd rewrite the pack code.17:28
Subdinonope, I'm not a contributor17:30
Subdinobut I had to put my hands in the packing code to understand why is happened to be slow in my case17:30
Subdino(discussed about it on #zope a few minutes ago)17:30
*** ousado_ has quit IRC17:31
Subdinomy discovery was that the second GC pass (findReachableAtPacktime) spends a lot of time doing disk seeks to walk the object tree17:32
*** cbcunc has quit IRC17:32
*** sorindregan has quit IRC17:33
*** nathany has joined #zope3-dev17:33
Subdinoand as we read whole file once in the first pass (buildPackIndex) I think it would be better to fetch the reference during that pass, so it is a linear read (except for undo objects)17:33
Subdinoand then a recursive read in the dict to find reachable, with no disk read involved17:34
Subdinoproblem is that current data structure is inflexible^Woptimised and refuses to store a list ;)17:34
*** regebro has quit IRC17:36
*** afd_ has quit IRC17:36
*** jsadjohnson_ has joined #zope3-dev17:37
*** jodok has quit IRC17:38
*** jsadjohnson_ has quit IRC17:38
*** regebro has joined #zope3-dev17:39
*** CSWookie has joined #zope3-dev17:43
*** junkafarian has joined #zope3-dev17:48
*** jfroche has quit IRC17:51
J1mYeah, that's why I want to reimplement the packing code. :)17:56
J1mNote that redoing it is ging to be tricky because the data structures one would want to create might not fit in memory.17:57
J1mSubdino, I can easily imagine having to create a secondary temprary database just to manage that the data structure.17:58
J1mAt least for large databases like the onces we deal with -- which aren't necessarily that large, depending on what you consider large.17:58
*** agroszer_ has joined #zope3-dev18:01
*** stub has quit IRC18:06
SubdinoJ1m: yep, I ran into the memory size problem when I tried the dumb way with a regular python dict as index18:08
*** stub has joined #zope3-dev18:09
SubdinoI think the 2nd pass can be made completely optionnal, actually18:09
J1mHow so?18:09
*** norro_ has joined #zope3-dev18:09
J1mYou mean if you opt out of gc?18:10
J1mYou could do reference counting GC without a second pass.18:10
*** junkafarian has quit IRC18:10
*** norro_ has quit IRC18:10
SubdinoJ1m: no, i mean that - to me - the secon dpass is not so important18:11
J1mI don't think you can do a reachability analysis without either a second pass or a data structure build on the first pass.18:11
J1mso you would like a way to opt out of gc.18:11
SubdinoI don't plan to remove any object from the site, so that pass is just a merge of the 2 dicts gathered in the first one18:11
J1mI do plan to add such an option.18:11
Subdinogreat :)18:11
J1mwhen I have time :/18:11
J1mI think it would be nice to be able to choose from a number of GC options: 1) no, 2) reference counting, 3) full.18:12
J1mwe also need a multi-db gc.18:13
*** alecm has joined #zope3-dev18:13
Subdinommmh, iirc in python it was chosen to only do refcounting implicitely, and smarter collection when explicitely asked18:13
*** baijum has quit IRC18:14
Subdinoapplied on zodb, I think the cheapest is getting rid of old revisions and then refcounting18:14
J1mSubdino, no, full gc is done by default.18:16
J1min python18:16
J1mIf using multi-dbs you need to disable individual db gc.18:16
J1mfor a single db, refcounting is a nice middle ground.18:17
*** MacYET has joined #zope3-dev18:31
*** timte has quit IRC18:32
*** jsadjohnson_ has joined #zope3-dev18:36
*** thruflo has joined #zope3-dev18:37
*** jsadjohnson_ has quit IRC18:37
*** schwendinger has quit IRC18:38
*** yvl has quit IRC18:40
*** djohnson has joined #zope3-dev18:40
*** stu1 has joined #zope3-dev18:41
*** djohnson has quit IRC18:41
*** reco has quit IRC18:43
*** agroszer_ has quit IRC18:52
*** pyqwer has quit IRC18:57
*** malthe is now known as malthe|away18:59
*** stub has quit IRC19:00
*** jukart has quit IRC19:04
*** alecm has quit IRC19:05
*** dobee has quit IRC19:05
*** jfroche has joined #zope3-dev19:13
*** projekt01 has quit IRC19:14
*** harobed has quit IRC19:20
*** jfroche has quit IRC19:42
*** cursor has joined #zope3-dev19:43
*** malthe|away has quit IRC19:45
*** ignas has quit IRC19:52
*** kleist has quit IRC19:53
*** J1m has quit IRC20:04
*** deo has joined #zope3-dev20:14
*** RaFromBRC has joined #zope3-dev20:17
*** timte has joined #zope3-dev20:20
*** dobee has joined #zope3-dev20:21
*** agroszer_ has joined #zope3-dev20:26
*** junkafarian has joined #zope3-dev20:27
*** jodok has joined #zope3-dev20:31
*** mkerrin has quit IRC20:36
*** norro has quit IRC20:38
*** agroszer has quit IRC20:40
*** naro has quit IRC20:43
*** thruflo has quit IRC20:43
*** thruflo has joined #zope3-dev20:44
*** ignas has joined #zope3-dev20:46
*** TheSkrill has joined #zope3-dev20:48
*** whit has quit IRC20:53
TheSkrillHello, I am new to zope3 and am wondering if zope3 comes with a pagination framework to help split up container views that have many children? Something to handle the next/previous links and such.20:55
*** J1m has joined #zope3-dev20:55
*** MacYET has left #zope3-dev20:56
*** J1m has quit IRC20:58
*** whit has joined #zope3-dev20:59
*** J1m has joined #zope3-dev21:01
*** thruflo has quit IRC21:01
*** J1m has quit IRC21:02
*** hazmat has joined #zope3-dev21:06
*** ChanServ sets mode: +o hazmat21:06
philiKONTheSkrill: nope. but maybe there's a library out there that can do this (z3c.*, plone.*, ...). either way, it's not that hard to do.21:20
faassenTheSkrill: there's a z3c.batching that might help?21:21
faassenbye!21:22
*** faassen has quit IRC21:22
TheSkrillthanks guys, i will look into the z3c.batching.21:22
TheSkrilli'm not worried about having to write one myself just that i would hate to code it then find that i could have used an included lib.21:23
*** edgordon has joined #zope3-dev21:24
*** philiKON has quit IRC21:26
*** philiKON has joined #zope3-dev21:27
*** supton has joined #zope3-dev21:37
*** agroszer_ has quit IRC21:43
*** J1m has joined #zope3-dev21:49
*** alecm has joined #zope3-dev21:52
*** alecm has quit IRC21:55
*** afd__ has quit IRC21:55
*** cursor has quit IRC22:01
*** ktwilight_ has joined #zope3-dev22:01
*** dunny has joined #zope3-dev22:05
*** J1m has quit IRC22:11
*** ktwilight has quit IRC22:15
*** tarek has joined #zope3-dev22:22
*** lucielejard has joined #zope3-dev22:24
*** J1m has joined #zope3-dev22:31
*** naro has joined #zope3-dev22:36
*** edgordon has quit IRC22:39
*** tarek has quit IRC22:39
*** tarek has joined #zope3-dev22:55
*** amaron has joined #zope3-dev23:07
amaronhello23:07
amaronphiliKON: i convinced management in my company to use zope3 as framework, and to buy your book for me and other developers to come23:10
philiKONamaron: good job :)23:10
amaron:)23:10
amaroni even mentioned i talked with you, and gave your book and site as reference23:11
* philiKON feels honoured23:13
*** edgordon has joined #zope3-dev23:14
amaronnow comes the hard part23:15
amaronto justify all those good things i said about zope323:15
TheSkrillcan anyone point me to a good example on making a non-persistent submit form (trying to make a contact form that just sends an email)?23:16
amaronit will be nice and interesting work23:16
philiKONamaron: dunno. what did you say?23:17
philiKONTheSkrill: basically, you'd use zope.formlib.form.Form as a base class23:17
philiKONTheSkrill: you need to define which form fields the form should have, by setting the form_fields attribute23:17
philiKONTheSkrill: and then you need define what should be done when you submit the form, by implementing an action23:18
philiKONTheSkrill: have you got my book?23:18
amaronphiliKON: well it was a long conversation about several python web framework and compared them with zope323:18
TheSkrillphiliKON: thanks.. what is the title of your book?23:18
philiKONTheSkrill: http://worldcookery.com23:18
TheSkrillyes.. I actually do have that book23:19
TheSkrillmay I say great job.. very good read23:19
WebMavenTheSkrill: first or 2nd edition?23:19
TheSkrill2nd23:20
WebMavenTheSkrill: good.23:20
philiKONTheSkrill: a form like the one you're describing is somewhere towards the end of the book. chapter 22 i believe23:20
philiKONthe example is about principal annotations23:20
TheSkrillphiliKON: awsome.. I will look for it.23:21
philiKONhey WebMaven23:21
WebMavenphiliKON: hey23:22
*** dobee has quit IRC23:25
TheSkrillphiliKON: I found it. i will give that section a read this evening. Thanks for the help (everyone included).23:26
philiKONnp23:26
*** TheSkrill has left #zope3-dev23:28
*** naro has left #zope3-dev23:29
*** RaFromBRC is now known as RaFromBRC|lunch23:33
*** gnosis has joined #zope3-dev23:40
*** timte has quit IRC23:41
*** gnosis has quit IRC23:43
*** lucielejard has quit IRC23:43
*** bigkevmcd has quit IRC23:48
*** jfroche has joined #zope3-dev23:51
*** spython has joined #zope3-dev23:53
*** greenman has joined #zope3-dev23:55
spythonHi, i have a local util with an OOBTree attribute.. when i add stuff to this attribute and restart the server, my added data is gone.. why?23:56
spythonthe util is still there after restart, along with its registration, but the attribute is clean :/23:56
philiKONspython: how do you stuff data in it?23:57
philiKONfrom a browser page?23:57
spythoni add stuff to it via...   getUtility(ILocalUtil).addFoo(foo)23:57
philiKONright. but where do you do this stuff? debug prompt? browser page? ...?23:58
spythona browser page23:58
philiKONhmmm23:58
philiKONthat should be alright then23:58
spythonit does get added when through the browser page, I can see stuff added in introspector23:59
spythonbut when i restart they're gone23:59

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