| *** sashav has joined #zope3-dev | 00:00 | |
| *** sashav has joined #zope3-dev | 00:02 | |
| *** nathany has quit IRC | 00:08 | |
| *** pcardune has quit IRC | 00:11 | |
| *** sbj1 has left #zope3-dev | 00:13 | |
| *** sashav has quit IRC | 00:17 | |
| *** zagy has quit IRC | 00:19 | |
| *** gumpa has quit IRC | 00:24 | |
| *** zbir has quit IRC | 00:24 | |
| *** ignas has quit IRC | 00:29 | |
| efrerich_ | tristil: You must tell more about your ForbiddenAttribute-error; what have you done? Traceback? | 00:47 |
|---|---|---|
| tristil | efrerich_, I have one content type, DebtManager, and another, Claim. | 00:49 |
| tristil | So from http://localhost:8031/++skin++debtman/DebtManager/+/@@AddClaim.html I get an add form, but when I submit it I get the error. | 00:50 |
| tristil | This one: ForbiddenAttribute: ('add', <zope.app.publisher.browser.viewmeta.+ object at 0x75e186cc> | 00:50 |
| tristil | I'm going to put my traceback up in a second. | 00:50 |
| efrerich_ | tristil: please send that with this infos to the user list | 00:51 |
| tristil | I was going to put it on http://paste.plone.org/. I suspect there's a stupid answer. | 00:52 |
| tristil | But I can put it on the list. | 00:52 |
| alga | zope.app.publisher.browser.viewmeta.+... | 00:54 |
| alga | it's not permissions on your content, but on the add view | 00:55 |
| tristil | Ah. | 00:55 |
| tristil | In case someone is willing to look at it, here it is: http://paste.plone.org/2751 . | 01:00 |
| *** j1m has quit IRC | 01:01 | |
| *** alga has quit IRC | 01:06 | |
| tristil | Do I have to supply a view class with an add method? | 01:12 |
| efrerich_ | tristil: I wanted to quit when I saw your question. I looked at your posting 2751 | 01:16 |
| efrerich_ | and I assume there is problem with the skin. Do you get the error | 01:18 |
| efrerich_ | if you do the same without your skin? | 01:18 |
| tristil | Checking. I think you're right... | 01:19 |
| efrerich_ | I don't see that you need an own view class. | 01:19 |
| tristil | No, the same. | 01:20 |
| tristil | What did you mean you wanted to quit? :) | 01:20 |
| efrerich_ | And: I meant the Zope 3 User mailing list | 01:20 |
| efrerich_ | quit: to leave IRC (because in Germany it is after midnight) | 01:21 |
| tristil | Ah, well thanks for your help. | 01:22 |
| efrerich_ | I have a look at your traceback again | 01:23 |
| *** fabiorizzo has joined #zope3-dev | 01:26 | |
| efrerich_ | tristil: Maybe you should test without the skin-package which you include in zcml-file | 01:28 |
| *** srichter has joined #zope3-dev | 01:29 | |
| *** ChanServ sets mode: +o srichter | 01:30 | |
| efrerich_ | you see - I assume that there is a bug. Because viewmeta is the browser configuration code. So I think it is not a bug in your application code | 01:32 |
| *** efrerich_ has quit IRC | 01:33 | |
| *** benji has quit IRC | 01:33 | |
| *** zbir has joined #zope3-dev | 01:41 | |
| *** rockyburt is now known as rockyburt|zzz | 02:02 | |
| *** yota has quit IRC | 02:08 | |
| *** fabiorizzo has quit IRC | 02:21 | |
| *** projekt01 has joined #zope3-dev | 02:45 | |
| *** projekt01 has quit IRC | 02:48 | |
| *** pcardune has joined #zope3-dev | 03:13 | |
| *** natea|sf is now known as natea|dinner | 03:45 | |
| *** stub has joined #zope3-dev | 05:02 | |
| *** deo has quit IRC | 05:04 | |
| *** stu1 has joined #zope3-dev | 05:09 | |
| *** natea|dinner has quit IRC | 05:15 | |
| *** fabiorizzo has joined #zope3-dev | 05:16 | |
| *** natea has joined #zope3-dev | 05:17 | |
| *** stub has quit IRC | 05:27 | |
| *** natea_ has joined #zope3-dev | 05:28 | |
| *** natea has quit IRC | 05:39 | |
| *** fabiorizzo has quit IRC | 06:43 | |
| *** fabiorizzo has joined #zope3-dev | 06:44 | |
| *** dobee has joined #zope3-dev | 07:29 | |
| *** baijum has joined #zope3-dev | 08:11 | |
| *** stu1 has quit IRC | 08:24 | |
| *** fabiorizzo has left #zope3-dev | 08:31 | |
| *** agroszer has joined #zope3-dev | 09:09 | |
| *** baijum has quit IRC | 09:11 | |
| *** sashav has joined #zope3-dev | 09:19 | |
| *** fabiorizz1 has joined #zope3-dev | 09:36 | |
| *** pcardune has quit IRC | 09:41 | |
| *** baijum has joined #zope3-dev | 09:46 | |
| *** stub has joined #zope3-dev | 10:04 | |
| *** agroszer has quit IRC | 10:17 | |
| *** baijum has quit IRC | 10:45 | |
| *** d2m has quit IRC | 10:53 | |
| *** d2m has joined #zope3-dev | 11:05 | |
| *** dobee has quit IRC | 11:21 | |
| *** agroszer has joined #zope3-dev | 11:27 | |
| *** tristil has quit IRC | 12:01 | |
| *** zagy has joined #zope3-dev | 12:04 | |
| guruz | can anybody help me with providing my own adapter for a Folder-subclass and zope.app.filerepresentation.interfaces.IReadDirectory? | 12:20 |
| *** yota has joined #zope3-dev | 12:22 | |
| *** dunny has quit IRC | 12:36 | |
| *** projekt01 has joined #zope3-dev | 12:53 | |
| *** rockyburt|zzz has quit IRC | 12:55 | |
| *** projekt01 has joined #zope3-dev | 13:04 | |
| *** romanofski has joined #zope3-dev | 13:08 | |
| *** romanofski has quit IRC | 13:18 | |
| *** projekt01 has quit IRC | 13:19 | |
| *** rockyburt has joined #zope3-dev | 13:38 | |
| *** tav has quit IRC | 13:44 | |
| *** tanghus has quit IRC | 13:57 | |
| *** tanghus has joined #zope3-dev | 13:58 | |
| *** d2m has quit IRC | 14:38 | |
| *** d2m has joined #zope3-dev | 14:39 | |
| *** rockyburt has quit IRC | 14:45 | |
| *** rockyburt has joined #zope3-dev | 14:46 | |
| guruz | how can i get the zope root folder so i can use/abuse it via its IFolder interface? | 14:52 |
| *** romanofski has joined #zope3-dev | 14:55 | |
| *** zagy has quit IRC | 14:55 | |
| *** mgedmin has joined #zope3-dev | 14:59 | |
| agroszer | guruz: try this: root = zapi.traverse(self.context, '/', request = self.request) | 15:00 |
| *** stub has quit IRC | 15:04 | |
| *** romanofski has quit IRC | 15:04 | |
| *** fabiorizz1 has left #zope3-dev | 15:11 | |
| *** rockyburt has quit IRC | 15:21 | |
| *** rockyburt has joined #zope3-dev | 15:22 | |
| guruz | agroszer: how do i import that zapi.traverse function? | 15:23 |
| mgedmin | guruz, from zope.app import zapi | 15:23 |
| guruz | found it in that second, thanks | 15:23 |
| guruz | AttributeError: 'Organisation' object has no attribute 'context' | 15:25 |
| guruz | :| | 15:25 |
| guruz | sorry for asking totally lame questions | 15:25 |
| guruz | any help is appreciated | 15:25 |
| guruz | i wrote a function that gets the "organisationen" subfolder from the root ot the object database | 15:27 |
| guruz | but well, what to use for that context param | 15:27 |
| guruz | reading the sources in app/zapi does not help me | 15:28 |
| *** mgedmin changes topic to "logs available at http://zope3.pov.lt/irclogs/ || paste code examples into http://zope3.pastebin.com/" | 15:28 | |
| guruz | and i don't see where this is documented | 15:28 |
| *** gumpa has joined #zope3-dev | 15:28 | |
| mgedmin | gumpa, I do not know enough about what you want to achieve and what you're doing to achieve it | 15:31 |
| mgedmin | oops, xchat's nick completion is silly | 15:32 |
| mgedmin | guruz, I do not know enough about what you want to achieve and what you're doing to achieve it | 15:32 |
| agroszer | guruz: I think any context passed to a view or something should be ok | 15:32 |
| guruz | i don't have a view right now i think | 15:33 |
| guruz | what i want to do is: | 15:33 |
| guruz | have a /organisationen folder with objects of type Organisation(Folder) | 15:33 |
| agroszer | how you want to add them? | 15:34 |
| agroszer | you want to provide the user with a menupoint to add the objects? | 15:35 |
| guruz | thos objects have the special ability to not only contain objects but also (when asked for by ISublocations adapter) "links" to other objects in the organisationen/ | 15:35 |
| guruz | So i may have | 15:35 |
| guruz | organisationen/A | 15:35 |
| guruz | organisationen/B | 15:35 |
| guruz | organisationen/A/B | 15:35 |
| guruz | where | 15:35 |
| guruz | organisationen/A/B = /organisationen/B | 15:35 |
| guruz | i want to store the pseudo-subelements in a list in A, for example A.pseudoChildren | 15:36 |
| agroszer | I think you'll have to tweak a traversal adapter | 15:37 |
| guruz | i'm currently providing a new ISublocations adapter and hoped it works | 15:37 |
| guruz | i wanted to test it by yielding getOrganisationenFolder["B"] if the folder name is "A" | 15:38 |
| agroszer | mgedmin, any better ideas for that? | 15:38 |
| guruz | but i can't test that if i am even too stupid (or can't find the docs) for getting the "organisationen/" folder | 15:39 |
| agroszer | zapi.traverse(self.context, '/organisationen', request = self.request) | 15:39 |
| agroszer | should do it | 15:39 |
| agroszer | context should be "A" | 15:40 |
| guruz | can i do that more generic? or to ask in another way: what is a context? can i just use "/" ? | 15:41 |
| mgedmin | traversal is one of the murkiest places of Zope 3... | 15:42 |
| agroszer | not sure, but i think so, then you'll have the zope root | 15:42 |
| mgedmin | there's object traversal, and then there's URL traversa | 15:42 |
| mgedmin | there's object traversal, and then there's URL traversal | 15:42 |
| agroszer | context is the starting point of the traversal (I think) | 15:42 |
| agroszer | if you leave out the starting '/' it will 'dive' into context | 15:43 |
| mgedmin | the meaning of context depends on the context (sorry for the pun) ;) | 15:43 |
| guruz | mgedmin: haha :) | 15:43 |
| mgedmin | when zope does traversal, each object traversed is passed as the context argument to some traversal adapter | 15:43 |
| agroszer | mgedmin, do you know a good example for traversal? | 15:44 |
| mgedmin | object traversal or URL traversal? | 15:45 |
| agroszer | I think he needs URL traversal | 15:45 |
| *** mgedmin has quit IRC | 15:45 | |
| guruz | TypeError: ('Could not adapt', '/', <InterfaceClass zope.app.traversing.interfaces.IPhysicallyLocatable>) | 15:45 |
| guruz | hum. | 15:45 |
| guruz | organisationenFolder = zapi.traverse("/", '/organisationen') | 15:46 |
| guruz | I use this | 15:46 |
| guruz | agroszer: dunno, maybe both works? | 15:46 |
| agroszer | yep, you missed the context parameter | 15:46 |
| guruz | / is my context.. you mean i miss the request parameter? | 15:47 |
| guruz | i would use that self.request, but self is a Organisation object derived from Folder.. | 15:48 |
| agroszer | ok, then zapi.traverse(context, '/organisationen', request) | 15:49 |
| agroszer | where context=object "A" | 15:49 |
| agroszer | that object must be in the ZODB tree | 15:49 |
| agroszer | the request object you have to get from somewhere | 15:50 |
| guruz | ok, thanks for the help, i will try that later | 15:59 |
| guruz | i need a pause | 15:59 |
| guruz | :| | 15:59 |
| *** dobee has joined #zope3-dev | 16:01 | |
| *** romanofski has joined #zope3-dev | 16:07 | |
| *** mgedmin has joined #zope3-dev | 16:09 | |
| * mgedmin accidentally hit Ctrl+Alt+Backspace | 16:11 | |
| srichter | he he | 16:12 |
| mgedmin | guruz, the TypeError you pasted here usually means that ou're trying to use zapi.traverse from a unit test without setting up the Zope 3 component architecture | 16:12 |
| agroszer | hey srichter | 16:12 |
| srichter | I fixed our buildbot complaints, so everything should be fine again | 16:12 |
| * mgedmin just upgraded to dapper | 16:12 | |
| srichter | oops, wrong channel | 16:12 |
| srichter | agroszer: hey | 16:13 |
| *** projekt01 has joined #zope3-dev | 16:13 | |
| agroszer | sorry, wanted to type hi | 16:14 |
| *** tav has joined #zope3-dev | 16:14 | |
| agroszer | hi, projekt01 | 16:14 |
| projekt01 | Hi agroszer, saw your mail | 16:14 |
| *** mgedmin_ has joined #zope3-dev | 16:15 | |
| agroszer | fine | 16:15 |
| *** mgedmin has quit IRC | 16:15 | |
| *** mgedmin_ is now known as mgedmin | 16:15 | |
| projekt01 | agroszer, did you add you already to the sprint participant list on zope.org? | 16:16 |
| agroszer | not yet, I might try it | 16:16 |
| agroszer | what about hotel bahnhof, how many trains are there in the night? | 16:17 |
| agroszer | projekt01, I added myself to the list | 16:21 |
| projekt01 | agroszer, after 24.00 there are no trains anymore. And I guess we won't go to bed earlier ;-) | 16:24 |
| agroszer | projekt01: That will be my first sprint... | 16:31 |
| agroszer | projekt01: What's on on the first day? I see on the webpage that it starts at 9am, but welcome is at noon. | 16:33 |
| * agroszer has to leave for half an hour | 16:37 | |
| projekt01 | agroszer, we start with the sprint at 9am, we only hold a short speak at 12.00 because some people will arrive by car and join us around noon | 16:46 |
| *** Aiste has quit IRC | 16:56 | |
| *** Aiste has joined #zope3-dev | 17:01 | |
| *** mgedmin has quit IRC | 17:03 | |
| *** natea_ has quit IRC | 17:06 | |
| *** rockyburt has quit IRC | 17:13 | |
| tiredbones | When I try to run "/usr/local/Zope-3.2/zope3/bin/runzope" module z3.py is not found. If I go into my instance of coojery and run "./bin/runzope" everthing is well. Is this a known problem? | 17:16 |
| *** projekt01 has quit IRC | 17:19 | |
| *** nathany has joined #zope3-dev | 17:19 | |
| *** natea has joined #zope3-dev | 17:23 | |
| *** rockyburt has joined #zope3-dev | 17:25 | |
| *** natea_ has joined #zope3-dev | 17:30 | |
| *** natea has quit IRC | 17:42 | |
| *** gumpa_ has joined #zope3-dev | 17:59 | |
| *** gumpa has quit IRC | 18:16 | |
| *** natea_ has quit IRC | 18:21 | |
| *** nathany has quit IRC | 18:23 | |
| *** romanofski has quit IRC | 18:23 | |
| *** gumpa_ has quit IRC | 18:40 | |
| *** natea has joined #zope3-dev | 19:46 | |
| *** natea is now known as natea|redrock | 19:48 | |
| *** dobee has quit IRC | 20:01 | |
| *** sashav has quit IRC | 20:08 | |
| *** sashav has joined #zope3-dev | 20:09 | |
| *** agroszer has quit IRC | 20:20 | |
| *** sashav_ has joined #zope3-dev | 20:23 | |
| *** sashav_ is now known as sashav | 20:23 | |
| *** dunny has joined #zope3-dev | 20:35 | |
| *** rockyburt has quit IRC | 20:38 | |
| *** rockyburt has joined #zope3-dev | 20:43 | |
| *** natea|redrock has quit IRC | 20:58 | |
| *** gumpa has joined #zope3-dev | 21:44 | |
| *** whit has quit IRC | 21:50 | |
| *** romanofski has joined #zope3-dev | 22:25 | |
| *** romanofski has quit IRC | 22:25 | |
| *** whit has joined #zope3-dev | 22:27 | |
| *** whit_ has joined #zope3-dev | 23:01 | |
| *** whit has quit IRC | 23:01 | |
| *** pcardune has joined #zope3-dev | 23:14 | |
| *** whit_ has quit IRC | 23:43 | |
| *** projekt01 has joined #zope3-dev | 23:45 | |
| *** projekt01 has quit IRC | 23:53 | |
| *** pcardune has quit IRC | 23:55 | |
Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!