IRC log of #zope3-dev for Thursday, 2005-09-29

*** mgedmin has quit IRC00:05
*** projekt01 has quit IRC00:13
*** bradb_ has joined #zope3-dev00:14
*** projekt01 has joined #zope3-dev00:15
*** projekt01 has quit IRC00:24
*** _projekt01 has joined #zope3-dev00:24
*** bradb has quit IRC00:28
*** bradb_ is now known as bradb00:30
*** benji_york has quit IRC00:46
*** bradb has left #zope3-dev00:50
*** bskahan has joined #zope3-dev00:54
VladDracohw well00:57
* VladDrac 's got everything to work basically00:57
VladDracthanks to json :)00:57
VladDracthat is, the json implementation01:09
VladDraczope3 now supports amf, hurray :)01:09
yotajson server will be integrate in zope 3 in the future ?01:15
mnemocwhat is recommended for ajax on zope3?01:17
*** yota has quit IRC01:18
VladDracyota I don't know01:21
VladDracmnemoc: I know the z3ecm people are looking at ajax integration01:21
VladDracunfortunately my customer has chosen Flex (amf) in stead of Ajax01:21
*** benji_york has joined #zope3-dev01:41
*** _projekt01 has quit IRC02:03
*** povbot` has joined #zope3-dev02:28
*** benji_york has quit IRC02:28
*** bskahan has quit IRC02:28
*** andres has quit IRC02:28
*** jack-e has quit IRC02:28
*** povbot has quit IRC02:28
*** benji_york has joined #zope3-dev02:30
*** bskahan has joined #zope3-dev02:30
*** jack-e has joined #zope3-dev02:30
*** tarek has quit IRC02:37
*** jack-e has quit IRC02:39
*** benji_york has quit IRC02:39
*** bskahan has quit IRC02:39
*** stub has joined #zope3-dev02:40
*** benji_york has joined #zope3-dev02:41
*** bskahan has joined #zope3-dev02:41
*** jack-e has joined #zope3-dev02:41
*** jack-e has quit IRC02:45
*** benji_york has quit IRC02:45
*** bskahan has quit IRC02:45
*** bskahan has joined #zope3-dev02:46
*** kaczordek has joined #zope3-dev03:08
*** srichter has quit IRC03:31
*** srichter has joined #zope3-dev03:32
*** SureshZ has left #zope3-dev03:36
*** newpers has joined #zope3-dev04:03
*** MiUlEr has joined #zope3-dev04:43
*** jinty has quit IRC05:03
*** kevc has quit IRC05:14
*** roym has quit IRC05:15
*** ChanServ sets mode: +o srichter05:24
newpersis 256 mb or ram enough for running zope?05:28
newpersof05:28
newpersalso, is it better to go through apache?05:28
*** niemeyer has quit IRC05:29
*** MJ has quit IRC05:38
mnemocnewpers: imo if you don't need apache for anything else, use pound to do the rewrite05:47
newpersthanks05:48
mnemocnp05:49
newpersnow i have to decide if i want zope to be developed on my windows or linux machine.  windows machine has 1GB of RAM.  linux machine has 256MB.05:50
newpersi've never really developed on windows before05:50
*** newpers has quit IRC06:31
*** MJ has joined #zope3-dev06:55
*** tekNico has joined #zope3-dev07:06
*** tekNico has left #zope3-dev07:06
*** tarek has joined #zope3-dev07:34
*** tarek has quit IRC08:09
*** sashav has quit IRC08:25
*** jvts has joined #zope3-dev09:21
*** stub has quit IRC09:38
*** yota has joined #zope3-dev09:44
*** sashav has joined #zope3-dev09:57
*** tekNico has joined #zope3-dev10:13
*** tekNico has quit IRC10:15
*** tekNico has joined #zope3-dev10:17
*** projekt01 has joined #zope3-dev10:33
*** dobee has joined #zope3-dev10:55
*** tarek has joined #zope3-dev11:12
*** dobee_ has joined #zope3-dev11:29
*** dobee has quit IRC11:40
*** dobee has joined #zope3-dev11:44
*** vinsci has quit IRC11:49
*** stub has joined #zope3-dev12:03
*** Theuni has joined #zope3-dev12:04
*** anguenot has joined #zope3-dev12:05
*** ignas has quit IRC12:06
*** vinsci|2 has joined #zope3-dev12:06
*** dobee_ has quit IRC12:10
*** faassen has joined #zope3-dev12:13
*** vinsci|2 is now known as vinsci12:17
*** zagy_ has quit IRC12:22
*** zagy has joined #zope3-dev12:22
*** roym has joined #zope3-dev12:37
roymCan someone point me to a working sample (for trunk) of a file-based12:39
roymauthentication plugin. Stephan points out that the code in the book is12:39
roymnot going to work w/trunk.12:39
roymw/the zmi, that is...12:41
*** mgedmin has joined #zope3-dev12:48
*** ignas has joined #zope3-dev12:57
*** regebro has joined #zope3-dev12:59
*** alga has joined #zope3-dev13:01
*** d2m has quit IRC13:16
*** d2m_ has joined #zope3-dev13:17
*** d2m_ is now known as d2m13:17
VladDrachmmm sqlos is still not 3.1-ready?13:26
*** vlado has joined #zope3-dev13:38
VladDracok, it "loads" :)13:47
*** philiKON has joined #zope3-dev13:49
*** bskahan has quit IRC13:54
VladDracphilikon heya13:55
srichterroym: just apply the steps I took to the new pluggable authentication service; there is plenty of documentation in zope.app.authentication13:58
*** alga has quit IRC14:07
philiKONhi VladDrac14:10
*** srichter has quit IRC14:12
VladDracis anyone actually *using* sqlos?14:16
VladDracit feels more like a proof of concept14:16
VladDraceven if I get it to work with 3.1 I wonder if it'll be of any real use14:16
*** jinty has joined #zope3-dev14:16
philiKONVladDrac, sidnei @ enfoldsystem is using it in production14:18
roymsrichter: my understanding is that any registered implentation of IAuthenticatorPlugin will show up in the adding view for a PAU - correct?14:18
VladDracphil hmm ok14:18
VladDracI wonder if he's using he same code as on codespeak :)14:18
philiKONroym, if you have a browser:addMenuItem defined for it...14:19
roymphiliKON: thanks.14:19
philiKONVladDrac, you can ask him on #z3-base...14:19
philiKONwhen he shows up14:19
*** sashav_ has joined #zope3-dev14:30
VladDrachurray14:32
VladDracit works14:32
VladDracsomewhat14:32
*** _projekt01 has joined #zope3-dev14:33
VladDracbut okay, I can't say I trust this code (in a Zope 3.1) environment to actually use it14:33
VladDracbesides it's really minimal, it doesn't even support relations14:33
*** sashav_ has quit IRC14:34
*** anguenot has quit IRC14:40
*** sashav has quit IRC14:47
*** projekt01 has quit IRC14:50
*** niemeyer has joined #zope3-dev14:53
*** mgedmin has quit IRC14:56
*** srichter has joined #zope3-dev14:58
roymI am trying to debug a authorization failue (for a user from a15:03
roymprincipal folder).15:03
roym15:03
roymI can see there is a method called15:03
roymIPrincipalRoleMap::getPrincipalsForRole(role_id)?15:03
roym15:03
roymHow would I get an instance of PrincipalRoleMap... is there a15:03
roymPrincipalRoleMap for each authentication plugin or does it15:03
roymexist on a site level?15:03
*** _projekt01 has quit IRC15:04
*** fcorrea has joined #zope3-dev15:29
*** anguenot has joined #zope3-dev15:30
*** benji_york has joined #zope3-dev15:31
roymaha - found it: principalRoleManager = zope.app.securitypolicy.principalrole.principalRoleManager15:34
roymprincipalRoleManager.getRolesForPrincipal('myrole')15:34
roymseems like it is global to the application rather than site-wide??15:34
*** MrTopf has joined #zope3-dev15:35
*** ChanServ sets mode: +o srichter15:35
*** sashav has joined #zope3-dev15:46
philiKONroym, you want to adapt context to IPrincipalRoleManager to get local stuff, too15:53
philiKONdon't ever import any globals... in the component architecture, you look up stuff15:54
*** alga has joined #zope3-dev16:10
*** andres_ is now known as andres16:10
*** mgedmin has joined #zope3-dev16:16
*** andres has quit IRC16:23
*** kaczordek has quit IRC16:26
*** anguenot has quit IRC16:32
*** sashav has quit IRC16:36
*** menomc has joined #zope3-dev16:46
*** mnemoc has quit IRC16:46
*** menomc is now known as mnemoc16:49
*** niemeyer has quit IRC16:53
*** niemeyer has joined #zope3-dev16:57
*** stub has quit IRC17:05
*** jinty has quit IRC17:09
*** regebro has quit IRC17:09
*** bradb has joined #zope3-dev17:14
*** dobee has quit IRC17:17
*** vlado_ has joined #zope3-dev17:28
*** vlado has quit IRC17:31
*** alga has quit IRC17:44
*** fdrake has joined #zope3-dev17:44
fdrakeA decision to require Python 2.4.x for Zope 3.2 has been made, right?17:50
fdrakeI recall seeing something that looked like a very casual proclamation from Jim.17:51
*** jinty has joined #zope3-dev17:52
*** vlado_ has quit IRC17:53
*** vlado has joined #zope3-dev17:53
*** MiUlEr has quit IRC18:01
philiKONfdrake, afaik yes18:01
philiKONbut please don't hold me for this :)18:02
*** philiKON has quit IRC18:04
fdrakeyeah, well, I'm going to update the Makefile in Zope 3; zope.app.container.constraints now uses @syntax18:05
*** vlado has quit IRC18:06
*** vlado has joined #zope3-dev18:07
*** niemeyer is now known as nie_lunch18:08
*** tarek has quit IRC18:14
*** vlado_ has joined #zope3-dev18:15
*** vlado has quit IRC18:16
*** sashav has joined #zope3-dev18:17
*** tarek has joined #zope3-dev18:19
faassenis there a way to get the ip address of a request in Zope 3?18:28
faassenhm, it's in environ, I hope..18:30
*** tiredbones has quit IRC18:32
*** bradb_ has joined #zope3-dev18:36
*** bradb has quit IRC18:48
*** bradb_ is now known as bradb18:49
*** nie_lunch is now known as niemeyer18:50
*** MrTopf has quit IRC18:56
*** vlado_ has quit IRC19:12
*** ChrisW_ has joined #zope3-dev19:28
ChrisW_Jim around?19:35
*** tarek has quit IRC19:35
ChrisW_anyone around?19:35
* mgedmin snores19:35
ChrisW_riiight :-S19:35
ChrisW_is Jim in europse right now?19:35
fdrakeyes19:36
ChrisW_hey Fred :-)19:36
fdrakehey Chris19:36
ChrisW_me and Jens have a really nasty question for him relating to a tiny change he made for 2.8, which breaks some stuff in really obscure ways19:36
ChrisW_Jens has been doing the inten19:36
ChrisW_sse19:36
ChrisW_stare at screen thing for 2 days now19:36
ChrisW_it's to do with the application of class security info19:37
fdrakeah, yeah, that'll get him to have a really nasty question  :-)19:37
ChrisW_Jim made something work, which didn't used to work, but it's not clear that it should work19:37
fdrakethat happens sometimes19:37
ChrisW_so we're wondering if we should just make it no twork again19:37
ChrisW_but it's haaard19:37
ChrisW_Jens mailed to zope-dev@zope.org about it but had no reply from Jim19:38
fdrakeif its Zope 2, I'm not the one to ask  :-)19:38
ChrisW_where is he anywho?19:38
fdrakesomewhere in Europe; he doesn't clear his itinerary with me19:38
fdrakemaybe Germany?19:38
ChrisW_oh right, thought he'd a left there by now19:39
fdrakethe sprint was last week, right?19:39
ChrisW_oh well, if anyone sees him, please direct him towards Jens' question on zope-dev@zope.org19:39
faassenI think he's in France,19:44
faassenat Nuxeo.19:44
ChrisW_ah yes, the evil ZC/Nuxeo plot that ZEA are always talking about ;-)19:47
*** andres has joined #zope3-dev19:50
andresI currently try to implement IZopeDublinCore for my sqlos based Classes, but always get an error like 'Error type: zope.security.interfaces.ForbiddenAttribute ... title'19:52
andresbut even when i do an <require attributes="title" permission"zope.somepermissionihave"... this doesnt change.19:53
andresI have a stack trace at: http://abc.pastebin.com/37789319:54
*** tiredbones has joined #zope3-dev19:54
*** anguenot has joined #zope3-dev19:54
*** anguenot has quit IRC19:54
*** anguenot_ has joined #zope3-dev19:55
*** anguenot has joined #zope3-dev19:55
*** tvon has quit IRC19:58
*** dobee has joined #zope3-dev19:59
mgedmincanWrite(dc, 'title') (and also dc.title = something) needs <require set_attributes="title" permission="..." />20:02
mgedmincanAccess(dc, 'title') (and also something = dc.title) needs <require attributes="title" permission="..." />20:02
mgedminwrite access versus read access20:03
mgedmindifferent permission directives20:03
andresmgedmin, thanks.20:04
VladDracwhat's the correct way to "unwrap" a proxy?20:09
VladDracgrepping like a madman on the zopesource20:09
VladDracperhaps someone knows right away :)20:09
mgedminremoveSecurityProxy(something)20:09
mgedminfrom zope.security.proxy import removeSecurityProxy20:09
mgedminIIRC20:09
VladDractx20:10
*** tvon has joined #zope3-dev20:11
VladDracyeah!20:12
VladDracthat did th etrick20:12
VladDracmy returnvalues weren't properly serialized20:12
VladDracthey turned out to be Proxies in stead of the real values20:12
VladDracAMF integration is working very nicely now :)20:12
* mgedmin does not know what AMF means20:12
VladDracneither do I actually20:13
VladDracit's a lame protocol invented by Macromedia people to have their "RIA" toolkit "Flex" communicatie with servers20:13
VladDracit's like soap/xmlrpc/json20:13
mgedminFlash is evil20:13
VladDracand zope3 now can handle it :)20:13
VladDracit is20:14
*** tvon has quit IRC20:17
VladDracbut at least I'll be able to communicate with it in a relatively clean environment20:17
*** tvon has joined #zope3-dev20:19
*** ChrisW_ has quit IRC20:19
andresmgedmin, sorry for asking that stupid: what is, when i want to set it in code, but not over the zmi? (as this is not writable)20:26
*** tvon has quit IRC20:28
*** whit has joined #zope3-dev20:28
*** srichter has quit IRC20:29
*** tvon has joined #zope3-dev20:30
*** faassen has quit IRC20:31
mgedminandres, I do not understand your question20:36
andresI want to set the title attribute in code, but i dont want, that it can be changed in the zmi20:37
*** tekNico has left #zope3-dev20:37
andresbecause the title attribute is composed out of mulitple values out of a sql database.20:37
andresSo it absolutely makes no sense to be able to set them in zmi or any other form.20:38
andresbut if i dont have <require set_attribute="title" permission=whatever/> i cant set it in code.20:38
andresmgedmin, is it understandeable this way?20:42
mgedminI think I see20:47
mgedminin that case you may argue that there's a bug in the container view20:48
mgedmin"C:\Python24\Lib\site-packages\zope\app\container\browser\contents.py", line 169, _extractContentInfo20:48
mgedminif info['retitleable'] = canWrite(dc, 'title') raises ForbiddenAttributeError20:49
mgedminperhaps the container view ought to catch it and say that info['retitleable'] = False20:49
mgedminperhaps canWrite should do that (but I think not)20:49
*** mkerrin has joined #zope3-dev20:49
mgedminor perhaps there should be a special permission, zope.Never, you could specify in the permission declaration20:49
SteveAi used WEGSND for that ;-)20:51
SteveA"what even god should not do", a hang-over from zope220:51
SteveAand believe me, zope2 gives me a hangover20:51
SteveAi think the permissions system should have tokens 'public' and 'forbidden'20:52
SteveAso, zope.Public is deprecated, and becomes just 'public'20:52
SteveAand there's a 'forbidden' too, doing what you want zope.Never to do20:52
SteveAthese are special tokens, rather than permissions as such.20:52
*** alga has joined #zope3-dev20:55
andresmgedmin, thanks, so its ok, that i didnt understand that...20:58
andresi will try tomorow... But now i go home... worked long enough.21:00
andresOr propably not...21:18
andresBack again.21:18
andresmgedmin, SteveA do you suggest filling a bugreport?21:18
*** anguenot has quit IRC21:26
roym`Folks, I have a user "student9" added to the site (in a pluggable21:26
roym`folder) and have granted him a role of "xaq.Student" - I find that the21:26
roym`access to "/MyFolder" keeps failing w/Unauthorized error... Am I missing21:26
roym`the obvious?21:26
roym`21:26
roym`>>> pp(zope.app.securitypolicy.zopepolicy.settingsForObject(dd))21:26
roym`[(u'MyFolder',21:26
roym`  {'principalPermissions': [],21:26
roym`   'principalRoles': [{'principal': 'pauthpfstudent9',21:26
roym`                       'role': 'xaq.Student',21:26
roym`                       'setting': PermissionSetting: Allow},],21:26
roym`   'rolePermissions': []}),21:26
roym` ('global settings',21:26
roym`  {'principalPermissions': [],21:26
roym`   'principalRoles': [],21:26
roym`   'rolePermissions': [{'permission': 'xaq.View',21:26
roym`                        'role': 'xaq.Student',21:26
roym`                        'setting': PermissionSetting: Allow},]21:26
*** niemeyer_ has joined #zope3-dev21:28
andresmgedmin, the solution with catching the error and setting to false works well.21:32
*** fdrake has left #zope3-dev21:38
*** niemeyer has quit IRC21:43
andresmgedmin, the solution with catching the error and setting to false works well.21:44
*** whit is now known as whit|lunch21:47
* mgedmin heard that the first time too21:48
andresWhat have you heard the first time? That error?21:50
benji_yorkandres, I think he was saying that you (apparently) repeated yourself (I saw the same thing)22:00
andresoh, okay... I didnt noticed that. Sorry all.22:01
benji_yorkNP22:01
*** mkerrin has quit IRC22:10
*** dobee has quit IRC22:22
*** tarek has joined #zope3-dev22:35
*** whit has joined #zope3-dev22:38
tarekhi all, i have a question about zope.app.publisher.xmlrpc22:46
tarekis it possible to list xmlrpc methods published by an  object ?22:48
tarekfrom the rpc client (introspection)22:49
yotahi tarek ;)22:50
*** whit|lunch has quit IRC22:50
tarekhi yota22:50
*** niemeyer_ is now known as niemeyer23:07
*** whit_ has joined #zope3-dev23:19
*** whit_ is now known as whit|biz23:20
*** alga has quit IRC23:21
*** mgedmin has quit IRC23:23
*** projekt01 has joined #zope3-dev23:25
*** benji_york has quit IRC23:29
*** projekt01 has quit IRC23:30
*** whit has quit IRC23:31
*** sureshvv has joined #zope3-dev23:35
*** ignas has quit IRC23:37
*** MiUlEr has joined #zope3-dev23:46
VladDractarek: I don't think so23:57
tarekVladDrac: oki thanks23:57
VladDractarek but xmlrpc methods are essentially views, it shouldn't be to hard to list them23:57
VladDracpossibly using another view :)23:57
tarekyup, that what i thaught of23:57
* VladDrac 's been diving into the xmlrpc code last few days23:58
tarekoh good to know23:58
tarekare you comming at neckar ?23:58
VladDracdeveloping another rpc (amf), the implementation is very similar to xmlrpc23:58
VladDracneckar?23:58
tarekthe sprint23:58
VladDracprobbaly not :) When/where? (france?)23:59
tarekno germany, next week23:59

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