IRC log of #zope3-dev for Monday, 2009-06-29

*** pelle_ has quit IRC00:01
*** jhauser has quit IRC00:03
*** tarek has joined #zope3-dev00:05
*** dunny has joined #zope3-dev00:05
*** tisto has quit IRC00:44
*** SpeedyGhost has joined #zope3-dev00:46
*** MattBowen has quit IRC00:49
*** SpeedyGhost has quit IRC00:50
*** SpeedyGhost has joined #zope3-dev00:51
*** SpeedyGhost has quit IRC00:58
*** MattBowen has joined #zope3-dev00:58
*** SpeedyGhost has joined #zope3-dev00:59
*** malthe|ext-away is now known as malthe|Zzz01:00
*** tarek has quit IRC01:36
*** tarek has joined #zope3-dev01:36
*** kaeru has joined #zope3-dev01:45
*** tarek_ has joined #zope3-dev01:48
*** skriv has joined #zope3-dev01:57
*** davisagli has joined #zope3-dev01:57
*** tarek has quit IRC01:58
*** yota has quit IRC02:03
*** romanofski has joined #zope3-dev02:24
*** Theuni1 has quit IRC02:29
*** tarek_ has quit IRC02:36
*** dunny_ has joined #zope3-dev02:42
*** junkafarian has joined #zope3-dev02:53
*** dunny has quit IRC02:57
*** davisagli_ has joined #zope3-dev03:05
*** davisagli has quit IRC03:15
skrivanyone know a resource that explains fully how to grant permissions in zcml?03:19
skrivcan't seem to figure out how to avoid a ForbiddenAttribute error03:29
*** junkafarian has quit IRC03:37
*** JaRoel|4D has joined #zope3-dev04:12
*** dunny_ is now known as dunny04:19
*** pcardune has joined #zope3-dev04:34
srichterthe <grant> directive grants perms, roles and principals04:44
srichterjust use <grantAll> to your anonymous user at the end of all ZCML and you should have now security issues04:45
srichterthis is the best way to test whether you are on the right track04:45
skrivi have an AddForm in a display form... displaying a client, adding a note to a client.. in NoteAddForm.add() I can't see self.context.fields (context is Client obj)04:46
skrivi'll try what you suggest, thx04:46
skrivit's not a user issue i don't think tho... cuz i'm doing this as admin04:47
pcardunesrichter and skriv: don't forget that a very common problem with security is not fixed with a grantAll directive, that is, if the security proxied object is not locatable, it doesn't matter what security declaration's you've got, everything will always be forbidden04:50
srichterpcardune: but that's why I said to give grantAll to anonymous, so you do not even have to get into that issue ;-)04:51
pcardunesrichter: but it still won't work!04:52
pcarduneif the object is not located04:52
srichternot true04:52
srichterglobal users live outside the parent path requirement04:52
pcarduneinteresting...04:52
pcarduneI defer to srichter  :)04:52
skrivk, added <grantAll role="zope.Anonymous" /> at teh bottom of site.zcml04:57
skrivand when i do self.context.fields['notes'].append(note) in ClientNoteForm.add() i get04:58
skrivForbiddenAttribute: ('fields', <bw.types.client.Client object at 0x021FE4B0>)04:58
pcarduneskriv: are you sure the attribute is called "fields"?  if an attribute does not exist, the security proxy will through a ForbiddenAttribute error04:59
pcardunethrow* not through05:02
*** SpeedyGhost has quit IRC05:03
skrivargh, thought that was it... of course self.context is a Client (not the ClientForm which has the fields attribute)... but when i try to update the Client.notes attribute like this... self.context.notes.append(note), I get AttributeError: 'NoneType' object has no attribute 'append'05:03
*** allisterb has joined #zope3-dev05:03
skrivif i just print self.context, I get <bw.types.client.Client object at 0x021FE4B0>05:04
skrivwhich implements IClient, which defines an attribute like so05:05
skrivnotes = List(05:05
skriv        title=u'Notes',05:05
skriv        description=u'Notes on this client.',05:05
skriv        value_type=Object(schema=IClientNote))05:05
skrivum, in case it wasn't clear, the "of course" above was to myself, not you!05:06
skriv:)05:06
pcarduneskriv: What does the implementation look like?  Does the notes field get initialized as a list?05:12
*** hathawsh has joined #zope3-dev05:15
*** linmyat has joined #zope3-dev05:16
skrivpcardune: I was following your tutorial... I have a Client obj (firstname, etc, and am trying to add a notes List attr)...05:19
skrivpcardune: for the AddForm, I used fields = field.Fields(interfaces.IClient).omit('notes')05:20
skriv(i'm able to create clients btw and view them using z3c.table as per your tutorial)05:20
skrivi then added to the ClientDisplayForm view, a ClientNoteForm(form.AddForm) and am trying to add a note to a List of them for the client being viewed...05:22
pcarduneah, cool.  So you should either initialize the notes field in the Client __init__ method to a PersistentList object, in which case you can append to it in the add form, or set the notes field to a PersistentList object in your add form, with the values you want, rather than appending to it (the latter is better in my mind)05:22
pcarduneblargh, I meant the *former* is better in my mind05:23
skrivwhew...05:23
skriv:) thx, will try05:23
skrivi see my error now, thx again to both05:24
pcardunenp05:24
*** hathawsh is now known as hath|away05:34
*** jukart has joined #zope3-dev05:39
*** davisagli_ is now known as davisagli05:42
*** pcardune has quit IRC05:43
*** MattBowen has quit IRC05:43
*** jukart has quit IRC05:47
*** greenman__ has joined #zope3-dev06:04
*** greenman_ has quit IRC06:04
*** stub has joined #zope3-dev06:12
*** kursor has joined #zope3-dev06:37
*** tarek_ has joined #zope3-dev06:49
*** tarek_ has quit IRC07:07
*** tarek_ has joined #zope3-dev07:10
*** kursor has quit IRC07:24
*** sunoano has quit IRC07:35
*** sunoano has joined #zope3-dev07:38
*** baijum has joined #zope3-dev07:41
*** alecm has joined #zope3-dev07:57
*** yotaff has joined #zope3-dev07:59
*** zagy has joined #zope3-dev08:01
*** allisterb_ has joined #zope3-dev08:06
*** allisterb has quit IRC08:11
*** supton has quit IRC08:14
*** fcorrea has joined #zope3-dev08:29
*** agroszer has joined #zope3-dev08:55
*** JaRoel|4_ has quit IRC09:07
*** skriv has quit IRC09:28
*** baijum has quit IRC09:41
*** pyqwer has joined #zope3-dev09:47
*** Theuni1 has joined #zope3-dev09:47
*** pelle_ has joined #zope3-dev09:48
*** hexsprite has quit IRC09:51
*** JaRoel|4D has joined #zope3-dev09:53
*** lamike has joined #zope3-dev09:57
*** lamike has left #zope3-dev09:58
*** baijum has joined #zope3-dev10:02
*** El_Rolando has joined #zope3-dev10:08
*** Theuni1 has quit IRC10:08
*** zagy has quit IRC10:08
*** markusleist has quit IRC10:08
*** iham has joined #zope3-dev10:11
*** pelle_ has quit IRC10:30
*** kobold has quit IRC10:34
*** kobold has joined #zope3-dev10:35
*** davisagli has quit IRC10:35
*** jhauser has joined #zope3-dev10:55
*** markusleist has joined #zope3-dev11:00
*** mkerrin has joined #zope3-dev11:02
*** malthe|Zzz is now known as malthe11:04
*** jpcw has joined #zope3-dev11:06
*** junkafarian has joined #zope3-dev11:07
*** jukart has joined #zope3-dev11:12
*** baijum1 has joined #zope3-dev11:29
*** baijum has quit IRC11:30
*** jukart has quit IRC11:30
*** jukart has joined #zope3-dev11:32
*** quodt has joined #zope3-dev11:33
*** __mac__ has joined #zope3-dev11:41
*** iham_ has joined #zope3-dev11:56
*** J1m_ has joined #zope3-dev12:04
*** pcardune has joined #zope3-dev12:04
J1m_does anyone know how to run tests of the kgs?12:04
agroszerthere is a package,12:06
agroszerzope.release(?)12:06
*** pcardune has quit IRC12:06
* J1m_ looks12:06
*** romanofski has quit IRC12:06
agroszernever used it, but it should gather all the stuff...12:06
agroszerHi, btw ;-)12:06
J1m_hi12:06
J1m_It looks like zope.kgs wants to do this but the instructions don't seem to work.12:07
agroszersrichter, yt?12:07
J1m_I doubt it, it's only 5am here. :)12:08
J1m_He's normallyt in the same tz I am12:08
agroszeraim shows him available12:08
agroszerlet me check for a buildbot12:09
* J1m_ tries zope.release.12:09
agroszerthat should be it12:10
agroszerhttp://zope3.pov.lt/buildbot/builders/py2.5-32bit-linux/builds/342/steps/svn/logs/stdio12:11
agroszerFetching external item into 'src/zope/release/mirror'12:11
J1m_Hm, looks a lot like zope.kgs. Maybe zope.kgs is a decoy.12:11
*** iham has quit IRC12:12
J1m_crap, it wants lxml.12:13
* J1m_ wonders is it *really* needs lxml.12:14
J1m_xml is the java of data formats.12:14
agroszerthen we have some java-ish in zope with zcml12:15
J1m_yes we do.12:15
*** tisto has joined #zope3-dev12:18
J1m_I sure hope lxml is really needed for anything.12:20
*** pcardune has joined #zope3-dev12:22
*** yotaff has quit IRC12:25
*** yotaff has joined #zope3-dev12:26
*** quodt has quit IRC12:28
*** jukart has quit IRC12:28
*** jukart has joined #zope3-dev12:29
*** quodt has joined #zope3-dev12:29
*** romanofski has joined #zope3-dev12:33
*** iham_ is now known as iham12:39
J1m_and the tests hang for me12:42
*** junkafarian has quit IRC12:43
*** junkafarian_ is now known as junkafarian12:43
agroszerJ1m_: weird, all buildbots seem to use this12:44
J1m_well, I'm too lazy to try to get lxml installed.12:44
agroszerthough it takes the pov buildbot 67 minutes to complete12:44
J1m_I tried on both macosx and centos 412:45
J1m_I guess I'll have to try harder.12:45
J1m_Maybe it's not hung. Maybe a layer is just taking a very long time.12:46
agroszerI'm sorry can't help you, maybe just wait for Stephan...12:46
J1m_yeah12:46
J1m_thanks anyway.12:46
J1m_maybe I should try on an unbuntu vm.12:47
agroszerwelcome12:47
J1m_I think I might add an option to bo to run layers attached to stdout so someone running tests can actually see something.12:48
J1m_i mean the testrunner.12:48
J1m_gotta go12:48
J1m_later12:48
*** J1m_ has quit IRC12:48
*** mkerrin has quit IRC12:54
*** quodt has quit IRC12:57
*** jukart has quit IRC12:59
*** alecm has quit IRC13:18
*** jukart has joined #zope3-dev13:22
*** greenman__ has quit IRC13:23
*** linmyat has quit IRC13:41
*** __mac__ has quit IRC13:43
*** menesis has joined #zope3-dev13:56
*** menesis has quit IRC14:14
*** menesis1 has joined #zope3-dev14:14
*** menesis1 is now known as menesis14:15
*** jukart_ has joined #zope3-dev14:17
*** jukart has quit IRC14:17
*** projekt01 has joined #zope3-dev14:28
*** pcardune has quit IRC14:35
*** jukart_ has quit IRC14:40
*** jpcw has left #zope3-dev14:42
*** benji has joined #zope3-dev14:43
*** zagy has joined #zope3-dev14:50
*** romanofski has quit IRC14:51
*** romanofski has joined #zope3-dev15:06
*** pelle_ has joined #zope3-dev15:08
*** jukart has joined #zope3-dev15:16
*** sunoano has quit IRC15:19
*** kursor has joined #zope3-dev15:26
*** Aiste has joined #zope3-dev15:29
*** sunoano has joined #zope3-dev15:38
*** ignas has joined #zope3-dev15:41
*** jukart has quit IRC15:43
*** jukart has joined #zope3-dev15:43
*** mkerrin has joined #zope3-dev15:47
*** Aiste has quit IRC15:50
*** stub has quit IRC15:51
*** jukart has quit IRC15:54
*** jukart has joined #zope3-dev15:55
*** jamur2 has joined #zope3-dev16:00
*** pelle_ has quit IRC16:02
*** srichter has quit IRC16:03
*** lurkymclurkleton has joined #zope3-dev16:04
*** junkafarian has quit IRC16:05
*** junkafarian has joined #zope3-dev16:07
*** gary_poster has joined #zope3-dev16:08
*** srichter has joined #zope3-dev16:08
*** ChanServ sets mode: +o srichter16:08
*** projekt01 has quit IRC16:09
*** J1m_ has joined #zope3-dev16:11
*** aaronv has joined #zope3-dev16:12
*** gary_poster has quit IRC16:14
*** ignas has quit IRC16:15
*** ignas has joined #zope3-dev16:15
*** pelle_ has joined #zope3-dev16:16
*** projekt01 has joined #zope3-dev16:18
*** jukart has quit IRC16:21
*** menesis has quit IRC16:22
*** jukart has joined #zope3-dev16:24
*** romanofski has quit IRC16:26
*** menesis has joined #zope3-dev16:28
*** lucielejard has joined #zope3-dev16:34
*** jukart has quit IRC16:38
*** jukart has joined #zope3-dev16:39
*** JaRoel|4D has quit IRC16:41
*** redir has joined #zope3-dev16:45
*** ignas_ has joined #zope3-dev16:50
*** baijum1 has quit IRC16:50
*** ignas has quit IRC16:51
*** mkerrin has quit IRC17:03
*** kaeru has quit IRC17:10
*** jukart has quit IRC17:10
*** jukart has joined #zope3-dev17:11
*** kaeru has joined #zope3-dev17:17
*** hexsprite has joined #zope3-dev17:22
*** pelle__ has joined #zope3-dev17:33
*** jukart has quit IRC17:36
*** dunny has quit IRC17:37
*** jukart has joined #zope3-dev17:38
*** pelle_ has quit IRC17:48
*** quodt has joined #zope3-dev17:58
*** davisagli has joined #zope3-dev18:03
*** hath|away is now known as hathawsh18:03
*** jukart has quit IRC18:06
*** cshenton has joined #zope3-dev18:10
*** pcardune has joined #zope3-dev18:14
*** ignas_ has quit IRC18:14
*** pcardune has quit IRC18:14
*** projekt01 has quit IRC18:20
*** kaeru has quit IRC18:37
*** El_Rolando has quit IRC18:39
*** kaeru has joined #zope3-dev18:44
*** linmyat has joined #zope3-dev18:58
*** linmyat has quit IRC19:09
*** Theuni1 has joined #zope3-dev19:17
*** hathawsh has quit IRC19:25
*** rocky has joined #zope3-dev19:28
*** markusleist has quit IRC19:30
*** quodt has quit IRC19:31
*** alecm has joined #zope3-dev19:32
*** hexsprite has quit IRC19:47
*** skriv has joined #zope3-dev19:51
*** projekt01 has joined #zope3-dev19:54
*** kursor has quit IRC19:57
*** rocky has left #zope3-dev20:01
*** run|work is now known as runyaga20:02
*** lucielejard has quit IRC20:08
*** sawdog has joined #zope3-dev20:10
*** pcardune has joined #zope3-dev20:10
*** pyqwer has quit IRC20:12
*** menesis has quit IRC20:17
*** menesis has joined #zope3-dev20:18
*** menesis has joined #zope3-dev20:18
*** menesis has quit IRC20:19
*** aaronv has quit IRC20:19
*** menesis has joined #zope3-dev20:19
*** menesis has quit IRC20:20
*** menesis has joined #zope3-dev20:20
*** menesis has quit IRC20:25
*** menesis has joined #zope3-dev20:25
*** menesis has joined #zope3-dev20:26
*** menesis has quit IRC20:26
*** projekt01 has quit IRC20:26
*** junkafarian has quit IRC20:28
*** menesis has joined #zope3-dev20:28
*** WebMaven has joined #zope3-dev20:29
*** menesis has quit IRC20:30
*** hathawsh has joined #zope3-dev20:35
*** supton has joined #zope3-dev20:37
*** pcardune has quit IRC20:49
*** aaronv has joined #zope3-dev20:56
*** supton has quit IRC20:57
*** tarek has joined #zope3-dev21:01
*** tarek has quit IRC21:11
*** yotaff has quit IRC21:15
*** tisto_ has joined #zope3-dev21:16
*** tisto has quit IRC21:17
*** davisagli has quit IRC21:19
*** __mac__ has joined #zope3-dev21:24
*** skriv has quit IRC21:28
*** afd__ has joined #zope3-dev21:41
*** markusleist has joined #zope3-dev21:43
*** skrivv has joined #zope3-dev21:44
*** davisagli has joined #zope3-dev21:47
*** skrivv1 has joined #zope3-dev21:52
*** hexsprite has joined #zope3-dev21:53
*** skrivv has quit IRC21:53
*** skriv has joined #zope3-dev21:53
*** skrivv1 has quit IRC21:55
*** skriv is now known as skrivv22:01
*** skrivv is now known as skriv22:01
*** skriv is now known as skrivv22:02
*** skrivv is now known as edz22:03
*** edz is now known as skriv22:03
*** tarek has joined #zope3-dev22:03
*** Theuni1 has quit IRC22:04
*** Theuni1 has joined #zope3-dev22:05
*** tarek has quit IRC22:06
*** afd__ has quit IRC22:09
*** __mac__ has quit IRC22:10
*** hathawsh is now known as hath|away22:16
*** skriv has quit IRC22:21
*** hath|away is now known as hathawsh22:25
*** supton has joined #zope3-dev22:26
*** zagy has quit IRC22:26
*** zagy has joined #zope3-dev22:27
*** danielblackburn has quit IRC22:29
*** skriv has joined #zope3-dev22:30
*** zagy has quit IRC22:33
*** danielblackburn has joined #zope3-dev22:47
*** iham has quit IRC22:50
*** agroszer has quit IRC23:01
*** skriv has left #zope3-dev23:03
*** greenman_ has joined #zope3-dev23:06
*** skriv has joined #zope3-dev23:08
*** danielblackburn_ has joined #zope3-dev23:12
*** sunoano has quit IRC23:21
*** danielblackburn has quit IRC23:25
*** davisagli has quit IRC23:26
*** markusleist has quit IRC23:29
*** runyaga has quit IRC23:32
*** danielblackburn_ is now known as danielblackburn23:34
*** sawdog has quit IRC23:34
*** sunoano has joined #zope3-dev23:38
*** Theuni1 has quit IRC23:57
*** davisagli has joined #zope3-dev23:57
*** pcardune has joined #zope3-dev23:59

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