IRC log of #zope3-dev for Sunday, 2009-01-25

*** aaronv has joined #zope3-dev00:03
*** afd_ has quit IRC00:22
*** pcardune has joined #zope3-dev00:37
*** fairwinds has joined #zope3-dev00:40
*** MrTopf has quit IRC00:45
*** vimes656 has quit IRC01:00
*** aaronv has quit IRC01:16
*** tarek has quit IRC01:18
*** povbot has joined #zope3-dev01:25
*** tarek has joined #zope3-dev01:39
*** pcardune has quit IRC01:41
*** tarek has quit IRC01:47
*** dunny has quit IRC01:47
*** junkafarian has quit IRC01:48
*** junkafarian has joined #zope3-dev02:02
*** yota has quit IRC02:07
*** timte has quit IRC02:09
*** davisagli has left #zope3-dev02:32
*** replicant has quit IRC02:55
*** davisagli_ has joined #zope3-dev02:57
*** replicant has joined #zope3-dev03:00
*** davisagli_ has quit IRC03:15
*** replicant has quit IRC03:18
*** binbrain has joined #zope3-dev03:29
binbraindo I somehow misunderstand what the allowed_attributes arg for a browser:page is used for, I can never get it to work03:29
binbrainisn't it supposed to allow me to specify methods in my view that are accessible in template03:30
*** reco has quit IRC03:53
*** junkafarian has quit IRC03:54
*** JaRoel|4D has quit IRC03:57
*** davisagli has joined #zope3-dev04:01
*** davisagli_ has joined #zope3-dev04:12
*** kaeru has joined #zope3-dev04:17
*** davisagli has quit IRC04:22
*** davisagli has joined #zope3-dev04:34
*** davisagli_ has quit IRC04:43
*** davisagli_ has joined #zope3-dev05:08
*** davisagli has quit IRC05:17
*** whit has joined #zope3-dev05:22
*** davisagli_ has left #zope3-dev05:49
*** hazmat has joined #zope3-dev05:51
*** ChanServ sets mode: +o hazmat05:51
*** redir has quit IRC06:10
*** kaeru has quit IRC06:21
*** fairwinds has quit IRC06:34
*** davisagli has joined #zope3-dev06:47
*** kaeru has joined #zope3-dev07:19
*** andycat has joined #zope3-dev07:40
*** nyo has joined #zope3-dev08:19
*** nyo has quit IRC08:54
*** nyo1 has joined #zope3-dev08:54
*** nyo1 is now known as nyo08:55
*** nyo has quit IRC09:13
*** nyo1 has joined #zope3-dev09:13
*** nyo1 is now known as nyo09:13
*** afd_ has joined #zope3-dev09:15
*** ARiKA has quit IRC09:16
*** Mebibyte has joined #Zope3-Dev09:16
*** nyo has quit IRC09:33
*** nyo has joined #zope3-dev09:35
*** davisagli has left #zope3-dev09:40
*** jukart has joined #zope3-dev09:46
*** nyo has quit IRC09:53
*** nyo1 has joined #zope3-dev09:53
*** nyo1 is now known as nyo09:53
*** agroszer has joined #zope3-dev10:00
*** nyo has quit IRC10:01
*** nyo1 has joined #zope3-dev10:01
*** nyo1 is now known as nyo10:01
*** nyo has quit IRC10:10
*** nyo1 has joined #zope3-dev10:10
*** nyo1 is now known as nyo10:10
*** dunny has joined #zope3-dev10:43
*** pelle_ has joined #zope3-dev10:47
*** kaeru has quit IRC10:47
*** nyo has quit IRC10:47
*** pelle_ has quit IRC10:48
*** afd_ has quit IRC10:48
*** afd_ has joined #zope3-dev10:50
*** jukart has quit IRC10:52
*** nyo has joined #zope3-dev10:54
*** jukart has joined #zope3-dev10:58
*** quodt has joined #zope3-dev11:04
*** pelle_ has joined #zope3-dev11:13
*** tarek has joined #zope3-dev11:21
*** nyo has quit IRC11:23
*** nyo1 has joined #zope3-dev11:23
*** nyo1 is now known as nyo11:23
*** jukart has quit IRC11:29
*** jukart has joined #zope3-dev11:31
*** junkafarian has joined #zope3-dev11:33
*** pcardune has joined #zope3-dev11:47
*** zagy has joined #zope3-dev12:02
*** tarek has joined #zope3-dev12:03
*** ccomb has joined #zope3-dev12:15
*** nyo has quit IRC12:21
*** vimes656 has joined #zope3-dev12:25
*** jukart has quit IRC12:28
*** junkafarian_ has joined #zope3-dev12:30
*** junkafarian has quit IRC12:42
*** basti__ has joined #zope3-dev12:48
*** malthe is now known as malthe|away12:48
*** basti__ has quit IRC12:51
*** quodt has quit IRC12:54
*** agroszer has quit IRC12:56
*** dunny has quit IRC13:22
*** vimes656_ has joined #zope3-dev13:23
*** vimes656 has quit IRC13:23
*** pcardune has quit IRC13:29
*** nyo has joined #zope3-dev13:32
*** junkafarian has joined #zope3-dev13:37
*** markusleist has joined #zope3-dev13:39
*** agroszer has joined #zope3-dev13:48
*** junkafarian_ has quit IRC13:52
*** yota has joined #zope3-dev14:07
*** fairwinds has joined #zope3-dev14:09
*** nyo has quit IRC14:15
*** nyo1 has joined #zope3-dev14:15
*** nyo1 is now known as nyo14:15
*** jhauser has joined #zope3-dev14:16
*** afd_ has quit IRC14:19
*** afd_ has joined #zope3-dev14:20
*** agroszer has quit IRC14:28
*** vimes656 has joined #zope3-dev14:39
*** vimes656_ has quit IRC14:39
*** pelle_ has quit IRC14:43
*** afd_ has quit IRC14:47
*** kaeru has joined #zope3-dev15:07
*** junkafarian has quit IRC15:09
*** JaRoel|4D has joined #zope3-dev15:15
*** junkafarian has joined #zope3-dev15:17
*** davisagli has joined #zope3-dev15:41
*** sm has quit IRC16:06
*** nyo has quit IRC16:21
*** nyo1 has joined #zope3-dev16:21
*** nyo1 is now known as nyo16:21
*** MrTopf has joined #zope3-dev16:59
*** nyo has quit IRC17:14
*** nyo1 has joined #zope3-dev17:14
*** nyo1 is now known as nyo17:14
*** afd_ has joined #zope3-dev17:16
*** MrTopf_ has joined #zope3-dev17:26
*** aaronv has joined #zope3-dev17:31
*** aaronv has quit IRC17:40
*** aaronv has joined #zope3-dev17:41
*** nyo1 has joined #zope3-dev17:42
*** nyo has quit IRC17:42
*** nyo1 is now known as nyo17:42
*** MrTopf has quit IRC17:44
*** jukart has joined #zope3-dev18:13
*** kaeru has quit IRC18:13
*** philiKON has joined #zope3-dev18:18
*** jukart has quit IRC18:39
*** nyo has quit IRC18:40
*** nyo has joined #zope3-dev18:42
*** nyo has quit IRC18:46
*** nyo1 has joined #zope3-dev18:46
*** nyo1 is now known as nyo18:46
*** jukart has joined #zope3-dev18:52
*** MrTopf_ is now known as MrTopf19:01
*** junkafarian_ has joined #zope3-dev19:05
*** davisagli has left #zope3-dev19:07
*** whit has quit IRC19:10
*** reco has joined #zope3-dev19:19
*** junkafarian has quit IRC19:19
*** tiredbones has joined #zope3-dev19:22
*** J1m has quit IRC19:22
*** J1m has joined #zope3-dev19:23
*** nyo has quit IRC19:31
*** reco has quit IRC19:32
*** reco has joined #zope3-dev19:32
*** nyo has joined #zope3-dev19:40
*** rocky1 is now known as rocky19:48
tiredbonesIt has been awhile since i tried using Zope3, but I would likr to try i again. I've been all over the net for current install instruction, the zope wiki even implies that their documentation is out dated. So could someone point me to some current install instruction?19:50
*** quodt has joined #zope3-dev19:50
afd_tiredbones: ZopeProject bootstraps a Zope 3 application for you, also providing a skeleton to build your application19:52
afd_so you should install ZopeProject, create a new app skeleton and work inside that19:52
afd_tiredbones: http://code.google.com/p/z3ergo/source/browse/#svn/LearningJourney might help you, there a PDF there also19:53
tiredbonesafd_ I'll give it a try. thnks19:54
VladDracand/or look at grok19:56
*** bigkevmcd has joined #zope3-dev19:59
tiredbonesafd_ I wanted to read this info,  "LearningJourney-AZope3Introduction-en.pdf", but the file is to big to display. So how does one read it?20:02
tiredbonesVladDrac, do you have a pointer for grok?20:03
VladDracgrok.zope.org20:03
tiredbonesthanks20:04
*** nyo has quit IRC20:06
*** nyo1 has joined #zope3-dev20:06
*** nyo1 is now known as nyo20:06
*** J1m has quit IRC20:17
afd_tiredbones: the text files that generated that file are in the docs/ folder20:17
*** aaronv has quit IRC20:19
tiredbonesthk afd_20:20
*** basti__ has joined #zope3-dev20:21
*** nyo has quit IRC20:33
*** nyo has joined #zope3-dev20:37
tiredbonesafd_, i don't see anything at that site that helps with installing Zope3.20:37
*** philiKON_ has joined #zope3-dev20:40
*** MrTopf has quit IRC20:42
*** philiKON has quit IRC20:42
*** pelle_ has joined #zope3-dev20:44
*** jukart has quit IRC20:52
*** pelle__ has joined #zope3-dev21:09
*** brandon_rhodes has joined #zope3-dev21:13
*** nyo has quit IRC21:14
*** nyo has joined #zope3-dev21:15
*** vimes656_ has joined #zope3-dev21:16
*** pelle_ has quit IRC21:23
afd_tiredbones: http://pypi.python.org/pypi/zopeproject21:24
*** zagy has quit IRC21:25
*** vimes656 has quit IRC21:33
*** nyo1 has joined #zope3-dev21:37
*** nyo has quit IRC21:37
*** nyo1 has quit IRC21:38
*** vimes656_ has quit IRC21:40
*** vimes656 has joined #zope3-dev21:40
*** tarek has quit IRC21:47
*** tarek has joined #zope3-dev21:48
*** iham is now known as iham|away21:48
*** gc_basti has joined #zope3-dev22:08
*** tarek has quit IRC22:13
*** basti__ has quit IRC22:25
*** dunny has joined #zope3-dev22:27
*** sunew has joined #zope3-dev22:32
*** nyo has joined #zope3-dev22:32
*** sunew has quit IRC22:32
*** tarek has joined #zope3-dev22:37
*** pelle__ has quit IRC22:44
*** yota has quit IRC22:52
*** Theuni has joined #zope3-dev23:09
*** vimes656_ has joined #zope3-dev23:10
*** nyo1 has joined #zope3-dev23:16
*** tarek has quit IRC23:17
*** tarek has joined #zope3-dev23:18
*** vimes656 has quit IRC23:18
*** tarek has quit IRC23:19
*** sparcd has joined #zope3-dev23:22
sparcdI'm trying to run through a tutorial on creating a Principal Source Plug-in, however it refers to things that aren't there23:22
sparcdcan anyone point me in the right direction? I'm finding docs about Zope 3 very thin on the ground23:23
*** tarek has joined #zope3-dev23:26
afd_sparcd: just implement the plugin as a persistent object inside the PAU, then add the plugin in its list of active plugins23:26
afd_http://apidoc.zope.org/++apidoc++/Interface/zope.app.authentication.interfaces.IAuthenticatorPlugin/index.html23:26
afd_that's what you need to implement in the plugin23:26
sparcdafd_: thanks for that, I was hoping for more of a tutorial as I'm still just stabbing in the dark here23:27
*** gc_basti has quit IRC23:27
afd_sparcd: there's not much to it. You could also read the sources of zope.app.authentication.principalfolder23:28
sparcdafd_: ok, I'll take a look at the principal folder23:29
afd_the only "catch" that's not very obvious at first is that the principalfolder is a container for "internal principals", which just store information of users and are a completely different thing from a zope principal23:29
*** bigkevmcd has quit IRC23:30
sparcdafd_: basically what I want to do is add a 'Client' (folder) than contains 'Client Members' (object) that can be used to login23:30
sparcdI guess I use the PrincipalFolder idea and call it Client23:31
sparcdafd_: how do I add one of the 'Principal Folders' to my instance out of the box?23:31
afd_sparcd: you could use the default implementation and store the extra data that you need in IPrincipalAnnotation23:32
sparcdso I'd need to create a plugin within the pau that looks up client members in the site?23:32
afd_sparcd: that was for the question before23:33
sparcdafd_: I don't want users to have to navigate to the pau to add clients and client members23:33
afd_Code to show you how to add a principal folder: http://code.google.com/p/z3ergo/source/browse/LearningJourney/src/learningjourney/app/event.py23:33
afd_there's also code to show you how to implement a registration system, if you look around that codebase23:34
*** nyo has quit IRC23:34
*** natea_ has joined #zope3-dev23:34
*** nyo1 has quit IRC23:35
sparcdafd_: I've tried adding a principal folder to my pau and entered a new user, but I can't now log in as that user23:35
afd_sparcd: did you select that plugin as active for the pau?23:36
*** run|home has quit IRC23:36
sparcdyes23:36
*** tarek has quit IRC23:37
sparcdand selected the zope basic realm credentials23:37
afd_try to enable the session plugin, to see if it makes a difference23:37
*** tarek has joined #zope3-dev23:38
sparcdok23:38
sparcdafd_: maybe cos I have zope.Member role required to access the site23:39
sparcdafd_: do I add this inside my ++etc++site ?23:41
afd_sparcd: no, you should grant that role in your site root23:42
sparcdafd_: I'm finding this damn near impossible to understand23:44
sparcdI've been working with Zope2 and Plone for years and this is baffling me23:44
afd_sparcd: it's not that hard23:44
sparcdi have added a principal and can't log in with those details23:44
afd_++etc++site is a shortcut to the local components registry, where local utilities are registered23:45
sparcdI have started from scratch now, so I am just trying to use the built in Principal Folder23:45
sparcdafd_: so I can ignore ++etc++site for the moment?23:46
afd_you don't need to make role grants there, because normal users don't need access there23:46
afd_yes23:46
afd_you need to grant that role in the site23:46
*** nyo has joined #zope3-dev23:46
afd_for example, you can add a folder to the zope root and click the "Make Site" button23:46
sparcdok I have done that23:47
sparcdnow :-)23:47
sparcdand then I add my pau into that folder?23:47
afd_now you'll have two ++etc++site, one for the zope root and one for this site23:47
sparcdyeah that's right23:47
afd_when inside the folder, click on the "manage site" button23:47
afd_this takes you to the corresponding ++etc++ site section23:47
sparcdyup, now it's turned brown and into the ++etc++ folder23:48
afd_once there, you can add a pau23:48
afd_very important, you need to register that pau as a utility from the Registration button23:48
sparcdclick on the 'Register this object' button23:48
afd_yes23:48
sparcdI then get an error23:49
afd_what error?23:49
sparcdComponentLookupError: (<zope.app.publisher.browser.viewmeta.AddAuthenticationRegistration object at 0x2a9e1f0>, <InterfaceClass zope.formlib.namedtemplate.INamedTemplate>, 'default')23:49
afd_are you on zope 2?23:49
*** elro_ has joined #zope3-dev23:49
sparcdno, Zope 323:49
sparcdeggs/zope.component-3.5.1-py2.4.egg/zope/component/_api.py", line 91, in getAdapter23:49
afd_seems like zope.formlib's configure.zcml is not loaded23:49
sparcdI'll just check that23:49
sparcdadded it to my configure.zcml23:50
sparcdah ha, got a textarea box now23:50
sparcdwith a comment23:51
afd_and a dropdown23:51
sparcdno dropdown23:51
sparcdI get it if I try to register anything else23:52
sparcda drop down, just not on pau23:52
sparcdwhen I click 'Register' it registers as zope.app.security.interfaces.IAuthentication utility23:52
afd_that's ok23:53
afd_that's what we want23:53
afd_now you need to add a new plugin inside the pau, the principal container23:53
afd_this will be your users23:53
afd_source23:53
sparcdyup done that now23:54
sparcdadded a user23:54
*** basti__ has joined #zope3-dev23:54
sparcdI get this error when I go to my new site folder not logged in: TypeError: ('Could not adapt', <zope.publisher.browser.BrowserRequest instance URL=http://localhost:8080/hammerhead>, <InterfaceClass zope.session.interfaces.ISession>)23:55
sparcdadded zope.session to my configure.zcml23:56
sparcdwoohoo, now logged in as new user23:57
sparcdnow on to my big question, if I want to add content to my site that can act as a 'member', do I need to create a plugin like the Principal Folder that finders the members in my site?23:57
sparcdfinders=finds23:58

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