*** pelle_ has quit IRC | 00:01 | |
*** jhauser has quit IRC | 00:03 | |
*** tarek has joined #zope3-dev | 00:05 | |
*** dunny has joined #zope3-dev | 00:05 | |
*** tisto has quit IRC | 00:44 | |
*** SpeedyGhost has joined #zope3-dev | 00:46 | |
*** MattBowen has quit IRC | 00:49 | |
*** SpeedyGhost has quit IRC | 00:50 | |
*** SpeedyGhost has joined #zope3-dev | 00:51 | |
*** SpeedyGhost has quit IRC | 00:58 | |
*** MattBowen has joined #zope3-dev | 00:58 | |
*** SpeedyGhost has joined #zope3-dev | 00:59 | |
*** malthe|ext-away is now known as malthe|Zzz | 01:00 | |
*** tarek has quit IRC | 01:36 | |
*** tarek has joined #zope3-dev | 01:36 | |
*** kaeru has joined #zope3-dev | 01:45 | |
*** tarek_ has joined #zope3-dev | 01:48 | |
*** skriv has joined #zope3-dev | 01:57 | |
*** davisagli has joined #zope3-dev | 01:57 | |
*** tarek has quit IRC | 01:58 | |
*** yota has quit IRC | 02:03 | |
*** romanofski has joined #zope3-dev | 02:24 | |
*** Theuni1 has quit IRC | 02:29 | |
*** tarek_ has quit IRC | 02:36 | |
*** dunny_ has joined #zope3-dev | 02:42 | |
*** junkafarian has joined #zope3-dev | 02:53 | |
*** dunny has quit IRC | 02:57 | |
*** davisagli_ has joined #zope3-dev | 03:05 | |
*** davisagli has quit IRC | 03:15 | |
skriv | anyone know a resource that explains fully how to grant permissions in zcml? | 03:19 |
---|---|---|
skriv | can't seem to figure out how to avoid a ForbiddenAttribute error | 03:29 |
*** junkafarian has quit IRC | 03:37 | |
*** JaRoel|4D has joined #zope3-dev | 04:12 | |
*** dunny_ is now known as dunny | 04:19 | |
*** pcardune has joined #zope3-dev | 04:34 | |
srichter | the <grant> directive grants perms, roles and principals | 04:44 |
srichter | just use <grantAll> to your anonymous user at the end of all ZCML and you should have now security issues | 04:45 |
srichter | this is the best way to test whether you are on the right track | 04:45 |
skriv | i 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 |
skriv | i'll try what you suggest, thx | 04:46 |
skriv | it's not a user issue i don't think tho... cuz i'm doing this as admin | 04:47 |
pcardune | srichter 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 forbidden | 04:50 |
srichter | pcardune: but that's why I said to give grantAll to anonymous, so you do not even have to get into that issue ;-) | 04:51 |
pcardune | srichter: but it still won't work! | 04:52 |
pcardune | if the object is not located | 04:52 |
srichter | not true | 04:52 |
srichter | global users live outside the parent path requirement | 04:52 |
pcardune | interesting... | 04:52 |
pcardune | I defer to srichter :) | 04:52 |
skriv | k, added <grantAll role="zope.Anonymous" /> at teh bottom of site.zcml | 04:57 |
skriv | and when i do self.context.fields['notes'].append(note) in ClientNoteForm.add() i get | 04:58 |
skriv | ForbiddenAttribute: ('fields', <bw.types.client.Client object at 0x021FE4B0>) | 04:58 |
pcardune | skriv: are you sure the attribute is called "fields"? if an attribute does not exist, the security proxy will through a ForbiddenAttribute error | 04:59 |
pcardune | throw* not through | 05:02 |
*** SpeedyGhost has quit IRC | 05:03 | |
skriv | argh, 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-dev | 05:03 | |
skriv | if i just print self.context, I get <bw.types.client.Client object at 0x021FE4B0> | 05:04 |
skriv | which implements IClient, which defines an attribute like so | 05:05 |
skriv | notes = 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 |
skriv | um, in case it wasn't clear, the "of course" above was to myself, not you! | 05:06 |
skriv | :) | 05:06 |
pcardune | skriv: What does the implementation look like? Does the notes field get initialized as a list? | 05:12 |
*** hathawsh has joined #zope3-dev | 05:15 | |
*** linmyat has joined #zope3-dev | 05:16 | |
skriv | pcardune: I was following your tutorial... I have a Client obj (firstname, etc, and am trying to add a notes List attr)... | 05:19 |
skriv | pcardune: 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 |
skriv | i 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 |
pcardune | ah, 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 |
pcardune | blargh, I meant the *former* is better in my mind | 05:23 |
skriv | whew... | 05:23 |
skriv | :) thx, will try | 05:23 |
skriv | i see my error now, thx again to both | 05:24 |
pcardune | np | 05:24 |
*** hathawsh is now known as hath|away | 05:34 | |
*** jukart has joined #zope3-dev | 05:39 | |
*** davisagli_ is now known as davisagli | 05:42 | |
*** pcardune has quit IRC | 05:43 | |
*** MattBowen has quit IRC | 05:43 | |
*** jukart has quit IRC | 05:47 | |
*** greenman__ has joined #zope3-dev | 06:04 | |
*** greenman_ has quit IRC | 06:04 | |
*** stub has joined #zope3-dev | 06:12 | |
*** kursor has joined #zope3-dev | 06:37 | |
*** tarek_ has joined #zope3-dev | 06:49 | |
*** tarek_ has quit IRC | 07:07 | |
*** tarek_ has joined #zope3-dev | 07:10 | |
*** kursor has quit IRC | 07:24 | |
*** sunoano has quit IRC | 07:35 | |
*** sunoano has joined #zope3-dev | 07:38 | |
*** baijum has joined #zope3-dev | 07:41 | |
*** alecm has joined #zope3-dev | 07:57 | |
*** yotaff has joined #zope3-dev | 07:59 | |
*** zagy has joined #zope3-dev | 08:01 | |
*** allisterb_ has joined #zope3-dev | 08:06 | |
*** allisterb has quit IRC | 08:11 | |
*** supton has quit IRC | 08:14 | |
*** fcorrea has joined #zope3-dev | 08:29 | |
*** agroszer has joined #zope3-dev | 08:55 | |
*** JaRoel|4_ has quit IRC | 09:07 | |
*** skriv has quit IRC | 09:28 | |
*** baijum has quit IRC | 09:41 | |
*** pyqwer has joined #zope3-dev | 09:47 | |
*** Theuni1 has joined #zope3-dev | 09:47 | |
*** pelle_ has joined #zope3-dev | 09:48 | |
*** hexsprite has quit IRC | 09:51 | |
*** JaRoel|4D has joined #zope3-dev | 09:53 | |
*** lamike has joined #zope3-dev | 09:57 | |
*** lamike has left #zope3-dev | 09:58 | |
*** baijum has joined #zope3-dev | 10:02 | |
*** El_Rolando has joined #zope3-dev | 10:08 | |
*** Theuni1 has quit IRC | 10:08 | |
*** zagy has quit IRC | 10:08 | |
*** markusleist has quit IRC | 10:08 | |
*** iham has joined #zope3-dev | 10:11 | |
*** pelle_ has quit IRC | 10:30 | |
*** kobold has quit IRC | 10:34 | |
*** kobold has joined #zope3-dev | 10:35 | |
*** davisagli has quit IRC | 10:35 | |
*** jhauser has joined #zope3-dev | 10:55 | |
*** markusleist has joined #zope3-dev | 11:00 | |
*** mkerrin has joined #zope3-dev | 11:02 | |
*** malthe|Zzz is now known as malthe | 11:04 | |
*** jpcw has joined #zope3-dev | 11:06 | |
*** junkafarian has joined #zope3-dev | 11:07 | |
*** jukart has joined #zope3-dev | 11:12 | |
*** baijum1 has joined #zope3-dev | 11:29 | |
*** baijum has quit IRC | 11:30 | |
*** jukart has quit IRC | 11:30 | |
*** jukart has joined #zope3-dev | 11:32 | |
*** quodt has joined #zope3-dev | 11:33 | |
*** __mac__ has joined #zope3-dev | 11:41 | |
*** iham_ has joined #zope3-dev | 11:56 | |
*** J1m_ has joined #zope3-dev | 12:04 | |
*** pcardune has joined #zope3-dev | 12:04 | |
J1m_ | does anyone know how to run tests of the kgs? | 12:04 |
agroszer | there is a package, | 12:06 |
agroszer | zope.release(?) | 12:06 |
*** pcardune has quit IRC | 12:06 | |
* J1m_ looks | 12:06 | |
*** romanofski has quit IRC | 12:06 | |
agroszer | never used it, but it should gather all the stuff... | 12:06 |
agroszer | Hi, btw ;-) | 12:06 |
J1m_ | hi | 12:06 |
J1m_ | It looks like zope.kgs wants to do this but the instructions don't seem to work. | 12:07 |
agroszer | srichter, yt? | 12:07 |
J1m_ | I doubt it, it's only 5am here. :) | 12:08 |
J1m_ | He's normallyt in the same tz I am | 12:08 |
agroszer | aim shows him available | 12:08 |
agroszer | let me check for a buildbot | 12:09 |
* J1m_ tries zope.release. | 12:09 | |
agroszer | that should be it | 12:10 |
agroszer | http://zope3.pov.lt/buildbot/builders/py2.5-32bit-linux/builds/342/steps/svn/logs/stdio | 12:11 |
agroszer | Fetching 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 IRC | 12: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 |
agroszer | then we have some java-ish in zope with zcml | 12:15 |
J1m_ | yes we do. | 12:15 |
*** tisto has joined #zope3-dev | 12:18 | |
J1m_ | I sure hope lxml is really needed for anything. | 12:20 |
*** pcardune has joined #zope3-dev | 12:22 | |
*** yotaff has quit IRC | 12:25 | |
*** yotaff has joined #zope3-dev | 12:26 | |
*** quodt has quit IRC | 12:28 | |
*** jukart has quit IRC | 12:28 | |
*** jukart has joined #zope3-dev | 12:29 | |
*** quodt has joined #zope3-dev | 12:29 | |
*** romanofski has joined #zope3-dev | 12:33 | |
*** iham_ is now known as iham | 12:39 | |
J1m_ | and the tests hang for me | 12:42 |
*** junkafarian has quit IRC | 12:43 | |
*** junkafarian_ is now known as junkafarian | 12:43 | |
agroszer | J1m_: weird, all buildbots seem to use this | 12:44 |
J1m_ | well, I'm too lazy to try to get lxml installed. | 12:44 |
agroszer | though it takes the pov buildbot 67 minutes to complete | 12:44 |
J1m_ | I tried on both macosx and centos 4 | 12: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 |
agroszer | I'm sorry can't help you, maybe just wait for Stephan... | 12:46 |
J1m_ | yeah | 12:46 |
J1m_ | thanks anyway. | 12:46 |
J1m_ | maybe I should try on an unbuntu vm. | 12:47 |
agroszer | welcome | 12: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 go | 12:48 |
J1m_ | later | 12:48 |
*** J1m_ has quit IRC | 12:48 | |
*** mkerrin has quit IRC | 12:54 | |
*** quodt has quit IRC | 12:57 | |
*** jukart has quit IRC | 12:59 | |
*** alecm has quit IRC | 13:18 | |
*** jukart has joined #zope3-dev | 13:22 | |
*** greenman__ has quit IRC | 13:23 | |
*** linmyat has quit IRC | 13:41 | |
*** __mac__ has quit IRC | 13:43 | |
*** menesis has joined #zope3-dev | 13:56 | |
*** menesis has quit IRC | 14:14 | |
*** menesis1 has joined #zope3-dev | 14:14 | |
*** menesis1 is now known as menesis | 14:15 | |
*** jukart_ has joined #zope3-dev | 14:17 | |
*** jukart has quit IRC | 14:17 | |
*** projekt01 has joined #zope3-dev | 14:28 | |
*** pcardune has quit IRC | 14:35 | |
*** jukart_ has quit IRC | 14:40 | |
*** jpcw has left #zope3-dev | 14:42 | |
*** benji has joined #zope3-dev | 14:43 | |
*** zagy has joined #zope3-dev | 14:50 | |
*** romanofski has quit IRC | 14:51 | |
*** romanofski has joined #zope3-dev | 15:06 | |
*** pelle_ has joined #zope3-dev | 15:08 | |
*** jukart has joined #zope3-dev | 15:16 | |
*** sunoano has quit IRC | 15:19 | |
*** kursor has joined #zope3-dev | 15:26 | |
*** Aiste has joined #zope3-dev | 15:29 | |
*** sunoano has joined #zope3-dev | 15:38 | |
*** ignas has joined #zope3-dev | 15:41 | |
*** jukart has quit IRC | 15:43 | |
*** jukart has joined #zope3-dev | 15:43 | |
*** mkerrin has joined #zope3-dev | 15:47 | |
*** Aiste has quit IRC | 15:50 | |
*** stub has quit IRC | 15:51 | |
*** jukart has quit IRC | 15:54 | |
*** jukart has joined #zope3-dev | 15:55 | |
*** jamur2 has joined #zope3-dev | 16:00 | |
*** pelle_ has quit IRC | 16:02 | |
*** srichter has quit IRC | 16:03 | |
*** lurkymclurkleton has joined #zope3-dev | 16:04 | |
*** junkafarian has quit IRC | 16:05 | |
*** junkafarian has joined #zope3-dev | 16:07 | |
*** gary_poster has joined #zope3-dev | 16:08 | |
*** srichter has joined #zope3-dev | 16:08 | |
*** ChanServ sets mode: +o srichter | 16:08 | |
*** projekt01 has quit IRC | 16:09 | |
*** J1m_ has joined #zope3-dev | 16:11 | |
*** aaronv has joined #zope3-dev | 16:12 | |
*** gary_poster has quit IRC | 16:14 | |
*** ignas has quit IRC | 16:15 | |
*** ignas has joined #zope3-dev | 16:15 | |
*** pelle_ has joined #zope3-dev | 16:16 | |
*** projekt01 has joined #zope3-dev | 16:18 | |
*** jukart has quit IRC | 16:21 | |
*** menesis has quit IRC | 16:22 | |
*** jukart has joined #zope3-dev | 16:24 | |
*** romanofski has quit IRC | 16:26 | |
*** menesis has joined #zope3-dev | 16:28 | |
*** lucielejard has joined #zope3-dev | 16:34 | |
*** jukart has quit IRC | 16:38 | |
*** jukart has joined #zope3-dev | 16:39 | |
*** JaRoel|4D has quit IRC | 16:41 | |
*** redir has joined #zope3-dev | 16:45 | |
*** ignas_ has joined #zope3-dev | 16:50 | |
*** baijum1 has quit IRC | 16:50 | |
*** ignas has quit IRC | 16:51 | |
*** mkerrin has quit IRC | 17:03 | |
*** kaeru has quit IRC | 17:10 | |
*** jukart has quit IRC | 17:10 | |
*** jukart has joined #zope3-dev | 17:11 | |
*** kaeru has joined #zope3-dev | 17:17 | |
*** hexsprite has joined #zope3-dev | 17:22 | |
*** pelle__ has joined #zope3-dev | 17:33 | |
*** jukart has quit IRC | 17:36 | |
*** dunny has quit IRC | 17:37 | |
*** jukart has joined #zope3-dev | 17:38 | |
*** pelle_ has quit IRC | 17:48 | |
*** quodt has joined #zope3-dev | 17:58 | |
*** davisagli has joined #zope3-dev | 18:03 | |
*** hath|away is now known as hathawsh | 18:03 | |
*** jukart has quit IRC | 18:06 | |
*** cshenton has joined #zope3-dev | 18:10 | |
*** pcardune has joined #zope3-dev | 18:14 | |
*** ignas_ has quit IRC | 18:14 | |
*** pcardune has quit IRC | 18:14 | |
*** projekt01 has quit IRC | 18:20 | |
*** kaeru has quit IRC | 18:37 | |
*** El_Rolando has quit IRC | 18:39 | |
*** kaeru has joined #zope3-dev | 18:44 | |
*** linmyat has joined #zope3-dev | 18:58 | |
*** linmyat has quit IRC | 19:09 | |
*** Theuni1 has joined #zope3-dev | 19:17 | |
*** hathawsh has quit IRC | 19:25 | |
*** rocky has joined #zope3-dev | 19:28 | |
*** markusleist has quit IRC | 19:30 | |
*** quodt has quit IRC | 19:31 | |
*** alecm has joined #zope3-dev | 19:32 | |
*** hexsprite has quit IRC | 19:47 | |
*** skriv has joined #zope3-dev | 19:51 | |
*** projekt01 has joined #zope3-dev | 19:54 | |
*** kursor has quit IRC | 19:57 | |
*** rocky has left #zope3-dev | 20:01 | |
*** run|work is now known as runyaga | 20:02 | |
*** lucielejard has quit IRC | 20:08 | |
*** sawdog has joined #zope3-dev | 20:10 | |
*** pcardune has joined #zope3-dev | 20:10 | |
*** pyqwer has quit IRC | 20:12 | |
*** menesis has quit IRC | 20:17 | |
*** menesis has joined #zope3-dev | 20:18 | |
*** menesis has joined #zope3-dev | 20:18 | |
*** menesis has quit IRC | 20:19 | |
*** aaronv has quit IRC | 20:19 | |
*** menesis has joined #zope3-dev | 20:19 | |
*** menesis has quit IRC | 20:20 | |
*** menesis has joined #zope3-dev | 20:20 | |
*** menesis has quit IRC | 20:25 | |
*** menesis has joined #zope3-dev | 20:25 | |
*** menesis has joined #zope3-dev | 20:26 | |
*** menesis has quit IRC | 20:26 | |
*** projekt01 has quit IRC | 20:26 | |
*** junkafarian has quit IRC | 20:28 | |
*** menesis has joined #zope3-dev | 20:28 | |
*** WebMaven has joined #zope3-dev | 20:29 | |
*** menesis has quit IRC | 20:30 | |
*** hathawsh has joined #zope3-dev | 20:35 | |
*** supton has joined #zope3-dev | 20:37 | |
*** pcardune has quit IRC | 20:49 | |
*** aaronv has joined #zope3-dev | 20:56 | |
*** supton has quit IRC | 20:57 | |
*** tarek has joined #zope3-dev | 21:01 | |
*** tarek has quit IRC | 21:11 | |
*** yotaff has quit IRC | 21:15 | |
*** tisto_ has joined #zope3-dev | 21:16 | |
*** tisto has quit IRC | 21:17 | |
*** davisagli has quit IRC | 21:19 | |
*** __mac__ has joined #zope3-dev | 21:24 | |
*** skriv has quit IRC | 21:28 | |
*** afd__ has joined #zope3-dev | 21:41 | |
*** markusleist has joined #zope3-dev | 21:43 | |
*** skrivv has joined #zope3-dev | 21:44 | |
*** davisagli has joined #zope3-dev | 21:47 | |
*** skrivv1 has joined #zope3-dev | 21:52 | |
*** hexsprite has joined #zope3-dev | 21:53 | |
*** skrivv has quit IRC | 21:53 | |
*** skriv has joined #zope3-dev | 21:53 | |
*** skrivv1 has quit IRC | 21:55 | |
*** skriv is now known as skrivv | 22:01 | |
*** skrivv is now known as skriv | 22:01 | |
*** skriv is now known as skrivv | 22:02 | |
*** skrivv is now known as edz | 22:03 | |
*** edz is now known as skriv | 22:03 | |
*** tarek has joined #zope3-dev | 22:03 | |
*** Theuni1 has quit IRC | 22:04 | |
*** Theuni1 has joined #zope3-dev | 22:05 | |
*** tarek has quit IRC | 22:06 | |
*** afd__ has quit IRC | 22:09 | |
*** __mac__ has quit IRC | 22:10 | |
*** hathawsh is now known as hath|away | 22:16 | |
*** skriv has quit IRC | 22:21 | |
*** hath|away is now known as hathawsh | 22:25 | |
*** supton has joined #zope3-dev | 22:26 | |
*** zagy has quit IRC | 22:26 | |
*** zagy has joined #zope3-dev | 22:27 | |
*** danielblackburn has quit IRC | 22:29 | |
*** skriv has joined #zope3-dev | 22:30 | |
*** zagy has quit IRC | 22:33 | |
*** danielblackburn has joined #zope3-dev | 22:47 | |
*** iham has quit IRC | 22:50 | |
*** agroszer has quit IRC | 23:01 | |
*** skriv has left #zope3-dev | 23:03 | |
*** greenman_ has joined #zope3-dev | 23:06 | |
*** skriv has joined #zope3-dev | 23:08 | |
*** danielblackburn_ has joined #zope3-dev | 23:12 | |
*** sunoano has quit IRC | 23:21 | |
*** danielblackburn has quit IRC | 23:25 | |
*** davisagli has quit IRC | 23:26 | |
*** markusleist has quit IRC | 23:29 | |
*** runyaga has quit IRC | 23:32 | |
*** danielblackburn_ is now known as danielblackburn | 23:34 | |
*** sawdog has quit IRC | 23:34 | |
*** sunoano has joined #zope3-dev | 23:38 | |
*** Theuni1 has quit IRC | 23:57 | |
*** davisagli has joined #zope3-dev | 23:57 | |
*** pcardune has joined #zope3-dev | 23:59 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!