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

*** alecm has joined #zope3-dev00:24
*** norro has quit IRC00:37
*** alecm_ has quit IRC00:40
*** malthe has joined #zope3-dev00:42
*** philiKON_ has quit IRC00:48
*** hexsprite has quit IRC01:01
*** afd_ has quit IRC01:07
*** afd_ has joined #zope3-dev01:07
*** gstratton_ has joined #zope3-dev01:31
*** gstratton has quit IRC01:39
*** pelle_ has quit IRC01:50
*** malthe has quit IRC01:51
*** gstratton_ has quit IRC02:40
*** gstratton has joined #zope3-dev02:42
*** quodt has quit IRC02:56
*** alecm has quit IRC03:38
*** alecm has joined #zope3-dev03:38
*** alecm_ has joined #zope3-dev03:42
*** alecm has quit IRC03:42
*** b52laptop has quit IRC04:10
*** benji has joined #zope3-dev04:10
*** huajie has joined #zope3-dev04:22
*** Ariel_Calzada has quit IRC04:41
*** alecm has joined #zope3-dev05:38
*** alecm_ has quit IRC05:54
*** [1]Doc_Dan has joined #zope3-dev06:39
*** hexsprite has joined #zope3-dev06:48
*** Doc_Dan has quit IRC06:57
*** [1]Doc_Dan is now known as Doc_Dan06:57
*** hexsprite has quit IRC07:20
*** baijum has joined #zope3-dev07:34
*** romanofski has joined #zope3-dev07:52
romanofskimoin :)07:53
*** d2m has joined #zope3-dev08:07
*** markusleist has quit IRC08:14
*** zagy has quit IRC08:31
*** cursor has joined #zope3-dev08:46
*** Jell-O-Fishi has quit IRC08:47
*** jukart has joined #zope3-dev08:55
*** timte has quit IRC08:59
*** andres has quit IRC08:59
*** zagy has joined #zope3-dev09:07
*** sorin has joined #zope3-dev09:11
*** sorin is now known as sorindregan09:12
*** philiKON has joined #zope3-dev09:12
*** alecm has quit IRC09:12
*** schwendinger has joined #zope3-dev09:18
*** schwendinger has quit IRC09:20
*** jfroche has joined #zope3-dev09:24
*** schwendinger has joined #zope3-dev09:29
*** timte has joined #zope3-dev09:32
*** dobee has joined #zope3-dev10:02
*** afd_ has quit IRC10:08
*** malthe has joined #zope3-dev10:15
*** pelle_ has joined #zope3-dev10:19
*** afd_ has joined #zope3-dev10:20
*** davidstryker has joined #zope3-dev10:23
*** davidstryker has left #zope3-dev10:24
*** harobed has joined #zope3-dev10:29
*** ccomb has joined #zope3-dev10:43
*** quodt has joined #zope3-dev10:46
timteIs there a recipe that copies a file to the bin directory?10:53
*** quodt has quit IRC11:00
*** quodt has joined #zope3-dev11:12
*** regebro has joined #zope3-dev11:12
*** malthe has quit IRC11:19
*** bigkevmcd has joined #zope3-dev11:21
*** gstratton has quit IRC11:29
*** ignas has joined #zope3-dev11:34
* baijum updated his Zope component architecture article (now a book!) : http://www.muthukadan.net/docs/zca.pdf11:44
*** salfield has quit IRC12:01
*** MJ has joined #zope3-dev12:02
*** afd_ has quit IRC12:05
*** afd_ has joined #zope3-dev12:06
*** harobed has quit IRC12:14
*** thruflo has joined #zope3-dev12:27
*** dunny has quit IRC12:28
*** mkerrin has joined #zope3-dev12:32
*** b52laptop has joined #zope3-dev12:39
*** BjornT has joined #zope3-dev12:40
*** edgordon has joined #zope3-dev12:47
*** salfield has joined #zope3-dev12:47
*** malthe has joined #zope3-dev12:50
*** MJ has quit IRC12:53
*** MJ has joined #zope3-dev12:57
*** deo has joined #zope3-dev13:00
*** huajie has quit IRC13:35
*** Ariel_Calzada has joined #zope3-dev13:39
maltheanyone mind taking a look at http://paste.plone.org/17463 ––– what kind of test machinery would not allow this?13:40
philiKONmalthe: your adapter factory returns None13:44
philiKONthat is treated like failed adaption13:44
malthedoh –– stupid example then; I'm trying to scale down a multi-adapter registration that really does fail.13:45
philiKONyou're adapting from Interface to INterface... possible, but a stupid example :)13:47
malthephiliKON: yes indeed; hopefully (or actually not) I'll be able to construct an example that really does demonstrate that something's fishy.13:50
philiKONi'd be surprised :)13:50
* philiKON afk13:50
maltheyes it's very unlikely13:50
malthewe shall see shortly13:51
*** chacha_chaudhry has joined #zope3-dev13:51
*** rocky has joined #zope3-dev13:51
*** ignas has quit IRC13:52
*** zagy_ has joined #zope3-dev13:57
malthephiliKON: I've located the source of my issue ––– I'm running this setUp-method to set up five.intid –– http://paste.plone.org/1746613:58
malthethat appearently screws things uo13:58
malthemust leave; i'll check back in a bit13:59
*** malthe has quit IRC13:59
*** projekt01 has joined #zope3-dev14:06
*** hexsprite has joined #zope3-dev14:10
*** regebro has left #zope3-dev14:14
*** MJ is now known as MJ|lunch14:14
*** zagy has quit IRC14:15
*** benji has quit IRC14:16
*** zagy_ has quit IRC14:18
*** zagy has joined #zope3-dev14:18
*** afd_ has quit IRC14:24
*** edgordon_ has joined #zope3-dev14:27
*** bigkevmcd has quit IRC14:28
*** niemeyer has joined #zope3-dev14:28
*** pelle_ has quit IRC14:29
*** edgordon has quit IRC14:30
*** pelle_ has joined #zope3-dev14:41
*** Aiste_ has quit IRC14:42
*** jsadjohnson has joined #zope3-dev14:43
*** mgedmin has joined #zope3-dev14:43
*** Aiste has joined #zope3-dev14:46
*** chacha_chaudhry has quit IRC14:47
*** tarek has joined #zope3-dev14:51
*** MJ|lunch is now known as MJ14:56
jsadjohnsonGood morning.15:01
*** Ariel_Calzada has quit IRC15:02
*** afd_ has joined #zope3-dev15:07
*** malthe has joined #zope3-dev15:11
malthephiliKON: sorry –– had to depart; anyway, appearently there's something in the test setup that messes up the ca15:13
*** benji has joined #zope3-dev15:16
*** regebro has joined #zope3-dev15:17
*** pyqwer has joined #zope3-dev15:21
jsadjohnsonAnyone familiar with PAU?15:22
*** hexsprite has quit IRC15:24
*** edgordon has joined #zope3-dev15:29
*** xbeanx has joined #zope3-dev15:30
*** edgordon_ has quit IRC15:30
*** Doc_Dan has quit IRC15:32
*** stub has joined #zope3-dev15:39
*** edgordon has quit IRC15:42
*** malthe has quit IRC15:51
*** jsadjohnson has left #zope3-dev15:58
*** hexsprite has joined #zope3-dev15:58
*** whit has joined #zope3-dev15:59
*** xbeanx has left #zope3-dev16:04
*** Doc_Dan has joined #zope3-dev16:04
*** philiKON_ has joined #zope3-dev16:06
*** malthe has joined #zope3-dev16:09
*** stub has quit IRC16:10
*** rcrafton has joined #zope3-dev16:17
*** hexsprite has quit IRC16:20
*** philiKON has quit IRC16:23
*** zagy_ has joined #zope3-dev16:25
*** zagy has quit IRC16:25
*** cursor has quit IRC16:27
*** J1m has joined #zope3-dev16:28
*** edgordon has joined #zope3-dev16:29
*** chacha_chaudhry has joined #zope3-dev16:29
*** goschtl has joined #zope3-dev16:30
*** agroszer has joined #zope3-dev16:35
*** Doc_Dan has quit IRC16:39
*** alga has joined #zope3-dev16:54
*** ignas has joined #zope3-dev16:56
*** pelle_ has quit IRC17:03
*** harobed has joined #zope3-dev17:04
*** baijum has quit IRC17:11
*** alga has quit IRC17:20
*** sorindregan has quit IRC17:22
*** malthe has quit IRC17:31
*** malthe has joined #zope3-dev17:32
*** aclark|away is now known as aclark17:35
*** MacYET has joined #zope3-dev17:39
*** MacYET has left #zope3-dev17:39
*** MacYET has joined #zope3-dev17:39
MacYEThi, is it possible to get hold of the zodb root object within a doctest?17:40
zagy_getRootFolder()17:40
*** zagy_ is now known as zagy17:40
MacYETthis also applies to zope2? :)17:40
* zagy points to the channel name17:41
*** markusleist has joined #zope3-dev17:41
*** chacha_chaudhry has quit IRC17:42
*** MacYET has left #zope3-dev17:45
*** malthe has quit IRC17:55
*** RaFromBRC has joined #zope3-dev18:01
*** alecm has joined #zope3-dev18:03
*** WebMaven has joined #zope3-dev18:04
*** djk001 has joined #zope3-dev18:05
*** hazmat has quit IRC18:08
*** rmarianski has joined #zope3-dev18:08
*** replicant has joined #zope3-dev18:08
*** hazmat has joined #zope3-dev18:08
*** ChanServ sets mode: +o hazmat18:08
*** rmarianski has quit IRC18:09
*** rmarianski has joined #zope3-dev18:09
*** afd__ has joined #zope3-dev18:10
*** zagy has quit IRC18:12
djk001Hello.  I have a question on using the Object Field in Schemas.I set a property to be an Object and set the schema.  In the implmentation I validate it with a field property.  However, when I assign that property and object that implments the schema.  I get the wrong type error.  So how do you use the schema attribute from the object field???18:20
*** bigkev has joined #zope3-dev18:21
*** bigkev is now known as bigkevmcd18:23
*** deo has quit IRC18:25
*** norro has joined #zope3-dev18:27
hazmatis there any way to turn off the zope 3 security policy globally?18:30
*** goschtl has quit IRC18:30
hazmati've removed the root security proxy from the app publication, but security proxies seem to be injected in multiple places18:31
ignashazmat: zc.configure and "exclude" it?18:31
ignasoh18:31
ignassecutity proxies18:31
ignasthese are 2 separate things18:31
ignassecurity proxy is one thing18:31
hazmatwell configuring a permissive policy would also work...18:31
ignaswhile security policy is another one18:31
ignasso just set permissions Zope.view on everything ;)18:32
ignasand give Zope.view to unauthenticated users18:32
ignasyou might have to grant Zope.manage and etc. to unauthenticated users if you are using vanilla Zope3 objects like BTrees though18:33
hazmatunfortunately that doesn't seem to work in this case18:35
hazmatincidentally neither does the ZOPE_WATCH_CHECKERS environment18:36
hazmatvariable18:36
ignas  <grant18:36
ignas    role="zope.Manager"18:36
ignas    principal="zope.anybody"18:36
ignas    />18:36
ignas?18:36
ignaseveryone should be able to do *anything*18:37
ignasanything includes packing ZODB, and shutting down the server ;)18:37
*** reco has joined #zope3-dev18:38
*** reco has joined #zope3-dev18:38
djk001Any Help on my schema issue?  I'd like to validate that what I assign to a property of a class is actually an instance of the correct interface?  It looked like schemas were the correct way to do this, but it doesn't seem to work without using real inheritace.18:39
*** timte has quit IRC18:39
*** rcrafton has quit IRC18:40
hazmatignas, unfortunately not in this case..18:40
ignaslisppaste6: url18:41
lisppaste6To use the lisppaste bot, visit http://paste.lisp.org/new/zope3-dev and enter your paste.18:41
ignaspost your principals.zcml in here18:41
ignasand the unauthenticated error traceback that you are getting if you get any18:42
hazmat  <grant role="zope.Manager"18:42
hazmat         principal="zope.Anybody" />18:42
ignasemm "anybody" not Anybody18:42
hazmatignas, it gets swallowed up ( part of the menu_item.avaiable() check18:42
ignasmight help18:42
hazmatthats the principle zopeproject is using by default..18:43
*** rcrafton has joined #zope3-dev18:43
ignascould you post whole principals.zcml to lisppaste please18:43
ignasand zope.Anybody is a group by default18:43
ignasnot unauthenticated principal iirc18:44
ignasand i am not sure how nested groups work18:44
hazmatah..18:44
lisppaste6hazmat pasted "security policy" at http://paste.lisp.org/display/4962718:48
hazmati just tried switching the security policy to zope.security.simplepolicies.PermissivePolicy18:49
hazmatstill doesn't have an effect18:49
ignashmm18:49
ignasare you logged in as someone when testing it?18:49
hazmati have some sort of security proxy rock, which won't let me do anything afaics18:49
hazmatno, i'm anonymous18:49
ignasthen you should try putting a pdb in the menu_item part that discards the exception18:50
ignasand looking at what it is telling18:50
ignaslike - what is the principal18:51
ignaswhat is the permission18:51
ignasand maybe just maybe the exception is not Unauthorized18:51
hazmati'm just trying a getitem.. on a container18:51
hazmatits ForbiddenAttribute18:51
ignasbut something like forbidden attribute18:51
ignasforbidden attribute means that either security context for the object is not set up right18:51
ignas(missing __parent__)18:51
ignasor that <class> for the object18:52
ignashas no <allow> <require> covering that atrribute18:52
ignas<allow interface="zope.app.container.interfaces.IReadContainer" /> in the <class> declaration should solve the problem18:53
*** tarek has quit IRC18:53
ignasdjk001: i would like to help, but i don't really understand the problem, maybe you could paste a doctest that reproduces the problem?18:54
*** dobee has quit IRC18:56
hazmatignas, thanks!! that fixed it18:57
djk001I would have to paste a bunch of code also.  Basically, I have and interface18:58
djk001def IAddress(Interface):18:58
djk001  that was one field18:58
djk001city = TextLine()18:58
djk001and an Address class that implements it18:58
djk001def Adress(Persistent):18:59
ignasi am more interested in the assignment/verification part of it18:59
djk001implments(IAddress)18:59
djk001OK18:59
ignasso if you could post the real code to lisppaste618:59
*** MJ has quit IRC18:59
djk001just send lisppaste6 a message?18:59
ignasno19:00
ignasgo to the url19:00
ignaslisppaste6: url19:00
lisppaste6To use the lisppaste bot, visit http://paste.lisp.org/new/zope3-dev and enter your paste.19:00
ignasand post the code in there19:00
djk001K.  thanks19:00
*** pyqwer has quit IRC19:03
*** projekt01 has quit IRC19:03
mgedmindjk001: _def_ Address(Persistent):?  That's not a class, that's a function!19:05
* benji does that all the time.19:05
*** malthe has joined #zope3-dev19:13
lisppaste6djk pasted "Schema Issue" at http://paste.lisp.org/display/4963019:14
djk001The docstring contains the error I'm getting19:14
djk001I saw a thread about what seems to be the same issue come up when defining a List schema and using a PersistentList to implement it19:15
*** harobed has quit IRC19:22
mgedminthat's a strange error19:22
mgedminwhere does the empty list come from?19:22
* mgedmin can reproduce19:24
djk001I create a persistentList in the __init__ function19:24
djk001sorry, nevermind19:24
mgedminokay19:24
mgedminthe fix is to add a __init__ to Address and assign a valid value19:25
mgedminfor some reason the default is []19:25
djk001a valid value to what?19:25
mgedminline119:25
djk001Oh, OK19:25
mgedminhm, the default value for line1 is None, and schema validator for some reason translates that to WrongContainedType: []19:26
mgedminmakes no sense19:26
djk001still get it19:27
djk001Added line1="" in the address __init__19:27
djk001I assumed that empty list was supposed to be the types that the error generation had19:27
mgedmin"" is not a valid value19:28
mgedminTextLine insists on unicode19:28
mgedminyou can't pass plain str to it19:28
mgedminhm, schema validation converts RequiredMissing to WrongContainedType: [] somehow19:29
*** dobee has joined #zope3-dev19:29
mgedminwait, what?19:29
mgedminraise WrongContainedType(errors)19:29
mgedminerrors is supposed to be [RequiredMissing(...)]19:30
mgedminbut it is []19:30
mgedminwhere's the bug?19:30
*** quodt has quit IRC19:30
ignas__str__ of RequiredMissing19:30
ignas?19:31
djk001I added the unicode and still get the error19:31
djk001I assume the bug is that It is expected an IAddress and I pass it an Address but it thinks its the wrong type19:32
mgedminah, faaaak19:33
djk001Actually, I commented out all the line1 stuff and it worked19:33
mgedminit's not an empty list19:33
mgedminit's a list that contains one item, whose __repr__ returns ''19:33
* mgedmin pulls out a big steel cluebat19:34
mgedmindjk001: do you want to file a zope 3 bug report in launchpad.net?19:34
djk001well, I'm still not sure what the issue is19:35
mgedmina completely incomprehensible error message in your situation19:35
mgedminI don't know what's the proper fix19:35
djk001I can file one for that19:35
mgedminbut I think that repr(exception) returning '' is very undesirable19:35
djk001Actually, the first suggestion did work . Assigning Line1 to u'' made the issue go away19:36
djk001how do I file a bug in launchpad?19:36
mgedminhttps://launchpad.net/zope3/+bugs19:36
djk001thx.  gotta run to a meeting, I'll file it a little later19:37
*** tarek has joined #zope3-dev19:39
*** malthe has quit IRC19:48
*** dobee has quit IRC19:51
*** salfield has quit IRC19:52
*** Jell-O-Fishi has joined #zope3-dev19:55
*** tarek has quit IRC19:56
*** dobee has joined #zope3-dev19:57
*** malthe has joined #zope3-dev20:00
*** rcrafton has quit IRC20:01
*** ignas has quit IRC20:04
*** thruflo has quit IRC20:04
*** s2 is now known as sm20:10
*** dobee has quit IRC20:11
*** jukart has quit IRC20:37
*** quodt has joined #zope3-dev20:39
WebMavenTheuni_: ping20:44
*** davidstryker has joined #zope3-dev20:45
*** mkerrin has quit IRC20:47
djk001OK guys.  thanks for your help on the first issue.  I am having trouble getting validation of the type you put in a list to work.  I set the value_type to TextLine but it allows me to put numbers in a list.  I will put it in lisppaste620:50
lisppaste6djk001 pasted "value_type issue" at http://paste.lisp.org/display/4963520:51
*** alecm has quit IRC20:53
*** alecm has joined #zope3-dev20:53
*** gstratton has joined #zope3-dev20:54
*** djk001 has left #zope3-dev21:00
*** djk001 has joined #zope3-dev21:01
mgedmindjk001: don't expect PersistentList.append to perform validation for you21:05
djk001my list example doesn't work either.  It seems I may be using value_type wrong21:07
*** rcrafton has joined #zope3-dev21:14
*** alecm has quit IRC21:17
*** alecm has joined #zope3-dev21:17
*** d2m has quit IRC21:20
*** agroszer has quit IRC21:21
djk001so.  am I using the value_type correctly?  From my understanding passing this as a parameterto the list will perform validation on the items you place in the list.21:23
*** ignas has joined #zope3-dev21:30
*** ignas has quit IRC21:30
*** projekt01 has joined #zope3-dev21:31
*** alga has joined #zope3-dev21:37
mgedminno21:37
mgedminvalidation is often an afterthought in the zope 3 world21:38
mgedminforms do validation21:38
mgedminFieldProperties do validation21:38
mgedminand that's about it21:38
*** davidstryker has left #zope3-dev21:38
*** alga has quit IRC21:39
djk001I don't get it.  What is the point of the value_type parameter then?21:40
*** pelle_ has joined #zope3-dev21:41
*** jfroche has quit IRC21:45
*** schwendinger has quit IRC21:47
*** greenman has joined #zope3-dev21:52
mgedmindocumentation21:56
mgedminalso, I think *forms* will use it for validation21:57
djk001OK.  just ran some tests21:57
mgedminif you use a widget for lists21:57
mgedminbut all my attempts to use list widgets failed miserably21:57
*** alga has joined #zope3-dev21:57
djk001it does correctly fail if you do a obj.list = [1,2,3]21:57
djk001but doesn't validate obj.extend([1,2,3])21:57
djk001so it only works for assignment in the list.  not for function calls21:57
bigkevmcdthat makes sense21:59
bigkevmcd(unfortunately)21:59
djk001yeah.  makes some sense. Would be nice if it protected what you put in the list under all circumstances.  but oh well.22:00
*** dunny has joined #zope3-dev22:05
*** jodok has quit IRC22:06
*** mgedmin has quit IRC22:13
*** rmarianski has quit IRC22:23
*** rmarianski has joined #zope3-dev22:24
maltheshouldn't a List with a value_type of Choice render a series of checkboxes?22:31
rmarianskimalthe: does it render a listbox?22:32
maltheit renders a bunch of radios22:33
rmarianskimalthe: i think that makes sense, rendering checkboxes may lean towards selecting multiple options, instead of one22:34
malthetrue; but how does one support the use-case of having a dynamic number of options that are all related?22:35
malthei.e. choose a bunch of search results, do stuff with them22:35
*** bigkevmcd has quit IRC22:35
malthemarkusleist: seems like it's implemented by Plone 3 –– MultiCheckboxWidget22:37
maltheerr MultiCheckBoxVocabularyWidget even22:43
djk001One more question.  In all the articles I read, the implmentation classes define in interface attributes at the class level, instead of at the instance level.  Why is this?  Take this link for example: http://wiki.zope.org/zope3/Zope3In30Minutes#real-coding  Should the url and description in class Mark be defined under an __init__ function instead?22:50
benjidjk001: I don't see why it would matter; an instance needs those attributes, whereever it gets them from.22:57
djk001yes, but then all instances share the same attribute (if defined at the class level)22:59
benjionly if they're mutable; that's a general Python no-no23:03
djk001so, correct me if I'm wrong.  But in the example.  If I create two instances of mark:  mark1 = Mark(), mark2 = Mark(), then assign mark1.url="some url" , if I were to do mark2.url it would return "some url", no???23:05
benjino23:11
*** Ariel_Calzada has joined #zope3-dev23:12
*** alecm has quit IRC23:14
*** RaFromBRC has quit IRC23:16
djk001sorry.  just tried it and your right.  I could have sworn I saw that behavior before23:18
*** junkafarian has joined #zope3-dev23:19
*** ignas has joined #zope3-dev23:34
*** alecm has joined #zope3-dev23:41
*** junkafarian has quit IRC23:42
*** djk001 has left #zope3-dev23:43
*** Doc_Dan has joined #zope3-dev23:50
*** pelle_ has quit IRC23:54

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