IRC log of #zope3-dev for Saturday, 2006-03-04

*** sashav has joined #zope3-dev00:00
*** sashav has joined #zope3-dev00:02
*** nathany has quit IRC00:08
*** pcardune has quit IRC00:11
*** sbj1 has left #zope3-dev00:13
*** sashav has quit IRC00:17
*** zagy has quit IRC00:19
*** gumpa has quit IRC00:24
*** zbir has quit IRC00:24
*** ignas has quit IRC00:29
efrerich_tristil: You must tell more about your ForbiddenAttribute-error; what have you done? Traceback?00:47
tristilefrerich_, I have one content type, DebtManager, and another, Claim.00:49
tristilSo 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
tristilThis one: ForbiddenAttribute: ('add', <zope.app.publisher.browser.viewmeta.+ object at 0x75e186cc>00:50
tristilI'm going to put my traceback up in a second.00:50
efrerich_tristil: please send that with this infos to the user list00:51
tristilI was going to put it on http://paste.plone.org/. I suspect there's a stupid answer.00:52
tristilBut I can put it on the list.00:52
algazope.app.publisher.browser.viewmeta.+...00:54
algait's not permissions on your content, but on the add view00:55
tristilAh.00:55
tristilIn case someone is willing to look at it, here it is: http://paste.plone.org/2751 .01:00
*** j1m has quit IRC01:01
*** alga has quit IRC01:06
tristilDo 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 275101:16
efrerich_and I assume there is problem with the skin. Do you get the error01:18
efrerich_if you do the same without your skin?01:18
tristilChecking. I think you're right...01:19
efrerich_I don't see that you need an own view class.01:19
tristilNo, the same.01:20
tristilWhat did you mean you wanted to quit? :)01:20
efrerich_And: I meant the Zope 3 User mailing list01:20
efrerich_quit: to leave IRC (because in Germany it is after midnight)01:21
tristilAh, well thanks for your help.01:22
efrerich_I have a look at your traceback again01:23
*** fabiorizzo has joined #zope3-dev01:26
efrerich_tristil: Maybe you should test without the skin-package which you include in zcml-file01:28
*** srichter has joined #zope3-dev01:29
*** ChanServ sets mode: +o srichter01: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 code01:32
*** efrerich_ has quit IRC01:33
*** benji has quit IRC01:33
*** zbir has joined #zope3-dev01:41
*** rockyburt is now known as rockyburt|zzz02:02
*** yota has quit IRC02:08
*** fabiorizzo has quit IRC02:21
*** projekt01 has joined #zope3-dev02:45
*** projekt01 has quit IRC02:48
*** pcardune has joined #zope3-dev03:13
*** natea|sf is now known as natea|dinner03:45
*** stub has joined #zope3-dev05:02
*** deo has quit IRC05:04
*** stu1 has joined #zope3-dev05:09
*** natea|dinner has quit IRC05:15
*** fabiorizzo has joined #zope3-dev05:16
*** natea has joined #zope3-dev05:17
*** stub has quit IRC05:27
*** natea_ has joined #zope3-dev05:28
*** natea has quit IRC05:39
*** fabiorizzo has quit IRC06:43
*** fabiorizzo has joined #zope3-dev06:44
*** dobee has joined #zope3-dev07:29
*** baijum has joined #zope3-dev08:11
*** stu1 has quit IRC08:24
*** fabiorizzo has left #zope3-dev08:31
*** agroszer has joined #zope3-dev09:09
*** baijum has quit IRC09:11
*** sashav has joined #zope3-dev09:19
*** fabiorizz1 has joined #zope3-dev09:36
*** pcardune has quit IRC09:41
*** baijum has joined #zope3-dev09:46
*** stub has joined #zope3-dev10:04
*** agroszer has quit IRC10:17
*** baijum has quit IRC10:45
*** d2m has quit IRC10:53
*** d2m has joined #zope3-dev11:05
*** dobee has quit IRC11:21
*** agroszer has joined #zope3-dev11:27
*** tristil has quit IRC12:01
*** zagy has joined #zope3-dev12:04
guruzcan anybody help me with providing my own adapter for a Folder-subclass and zope.app.filerepresentation.interfaces.IReadDirectory?12:20
*** yota has joined #zope3-dev12:22
*** dunny has quit IRC12:36
*** projekt01 has joined #zope3-dev12:53
*** rockyburt|zzz has quit IRC12:55
*** projekt01 has joined #zope3-dev13:04
*** romanofski has joined #zope3-dev13:08
*** romanofski has quit IRC13:18
*** projekt01 has quit IRC13:19
*** rockyburt has joined #zope3-dev13:38
*** tav has quit IRC13:44
*** tanghus has quit IRC13:57
*** tanghus has joined #zope3-dev13:58
*** d2m has quit IRC14:38
*** d2m has joined #zope3-dev14:39
*** rockyburt has quit IRC14:45
*** rockyburt has joined #zope3-dev14:46
guruzhow can i get the zope root folder so i can use/abuse it via its IFolder interface?14:52
*** romanofski has joined #zope3-dev14:55
*** zagy has quit IRC14:55
*** mgedmin has joined #zope3-dev14:59
agroszerguruz: try this: root = zapi.traverse(self.context, '/', request = self.request)15:00
*** stub has quit IRC15:04
*** romanofski has quit IRC15:04
*** fabiorizz1 has left #zope3-dev15:11
*** rockyburt has quit IRC15:21
*** rockyburt has joined #zope3-dev15:22
guruzagroszer: how do i import that zapi.traverse function?15:23
mgedminguruz, from zope.app import zapi15:23
guruzfound it in that second, thanks15:23
guruzAttributeError: 'Organisation' object has no attribute 'context'15:25
guruz:|15:25
guruzsorry for asking totally lame questions15:25
guruzany help is appreciated15:25
guruzi wrote a function that gets the "organisationen" subfolder from the root ot the object database15:27
guruzbut well, what to use for that context param15:27
guruzreading the sources in app/zapi does not help me15:28
*** mgedmin changes topic to "logs available at http://zope3.pov.lt/irclogs/ || paste code examples into http://zope3.pastebin.com/"15:28
guruzand i don't see where this is documented15:28
*** gumpa has joined #zope3-dev15:28
mgedmingumpa, I do not know enough about what you want to achieve and what you're doing to achieve it15:31
mgedminoops, xchat's nick completion is silly15:32
mgedminguruz, I do not know enough about what you want to achieve and what you're doing to achieve it15:32
agroszerguruz: I think any context passed to a view or something should be ok15:32
guruzi don't have a view right now i think15:33
guruzwhat i want to do is:15:33
guruzhave a /organisationen folder with objects of type Organisation(Folder)15:33
agroszerhow you want to add them?15:34
agroszeryou want to provide the user with a menupoint to add the objects?15:35
guruzthos 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
guruzSo i may have15:35
guruzorganisationen/A15:35
guruzorganisationen/B15:35
guruzorganisationen/A/B15:35
guruzwhere15:35
guruzorganisationen/A/B = /organisationen/B15:35
guruzi want to store the pseudo-subelements in a list in A, for example A.pseudoChildren15:36
agroszerI think you'll have to tweak a traversal adapter15:37
guruzi'm currently providing a new ISublocations adapter and hoped it works15:37
guruzi wanted to test it by yielding getOrganisationenFolder["B"] if the folder name is "A"15:38
agroszermgedmin, any better ideas for that?15:38
guruzbut i can't test that if i am even too stupid (or can't find the docs) for getting the "organisationen/" folder15:39
agroszerzapi.traverse(self.context, '/organisationen', request = self.request)15:39
agroszershould do it15:39
agroszercontext should be "A"15:40
guruzcan i do that more generic? or to ask in another way: what is a context? can i just use "/" ?15:41
mgedmintraversal is one of the murkiest places of Zope 3...15:42
agroszernot sure, but i think so, then you'll have the zope root15:42
mgedminthere's object traversal, and then there's URL traversa15:42
mgedminthere's object traversal, and then there's URL traversal15:42
agroszercontext is the starting point of the traversal (I think)15:42
agroszerif you leave out the starting '/' it will 'dive' into context15:43
mgedminthe meaning of context depends on the context (sorry for the pun) ;)15:43
guruzmgedmin: haha :)15:43
mgedminwhen zope does traversal, each object traversed is passed as the context argument to some traversal adapter15:43
agroszermgedmin, do you know a good example for traversal?15:44
mgedminobject traversal or URL traversal?15:45
agroszerI think he needs URL traversal15:45
*** mgedmin has quit IRC15:45
guruzTypeError: ('Could not adapt', '/', <InterfaceClass zope.app.traversing.interfaces.IPhysicallyLocatable>)15:45
guruzhum.15:45
guruzorganisationenFolder = zapi.traverse("/", '/organisationen')15:46
guruzI use this15:46
guruzagroszer: dunno, maybe both works?15:46
agroszeryep, you missed the context parameter15:46
guruz / is my context.. you mean i miss the request parameter?15:47
guruzi would use that self.request, but self is a Organisation object derived from Folder..15:48
agroszerok, then zapi.traverse(context, '/organisationen', request)15:49
agroszerwhere context=object "A"15:49
agroszerthat object must be in the ZODB tree15:49
agroszerthe request object you have to get from somewhere15:50
guruzok, thanks for the help, i will try that later15:59
guruzi need a pause15:59
guruz:|15:59
*** dobee has joined #zope3-dev16:01
*** romanofski has joined #zope3-dev16:07
*** mgedmin has joined #zope3-dev16:09
* mgedmin accidentally hit Ctrl+Alt+Backspace16:11
srichterhe he16:12
mgedminguruz, 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 architecture16:12
agroszerhey srichter16:12
srichterI fixed our buildbot complaints, so everything should be fine again16:12
* mgedmin just upgraded to dapper16:12
srichteroops, wrong channel16:12
srichteragroszer: hey16:13
*** projekt01 has joined #zope3-dev16:13
agroszersorry, wanted to type hi16:14
*** tav has joined #zope3-dev16:14
agroszerhi, projekt0116:14
projekt01Hi agroszer, saw your mail16:14
*** mgedmin_ has joined #zope3-dev16:15
agroszerfine16:15
*** mgedmin has quit IRC16:15
*** mgedmin_ is now known as mgedmin16:15
projekt01agroszer, did you add you already to the sprint participant list on zope.org?16:16
agroszernot yet, I might try it16:16
agroszerwhat about hotel bahnhof, how many trains are there in the night?16:17
agroszerprojekt01, I added myself to the list16:21
projekt01agroszer, after 24.00 there are no trains anymore. And I guess we won't go to bed earlier ;-)16:24
agroszerprojekt01: That will be my first sprint...16:31
agroszerprojekt01: 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 hour16:37
projekt01agroszer, 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 noon16:46
*** Aiste has quit IRC16:56
*** Aiste has joined #zope3-dev17:01
*** mgedmin has quit IRC17:03
*** natea_ has quit IRC17:06
*** rockyburt has quit IRC17:13
tiredbonesWhen 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 IRC17:19
*** nathany has joined #zope3-dev17:19
*** natea has joined #zope3-dev17:23
*** rockyburt has joined #zope3-dev17:25
*** natea_ has joined #zope3-dev17:30
*** natea has quit IRC17:42
*** gumpa_ has joined #zope3-dev17:59
*** gumpa has quit IRC18:16
*** natea_ has quit IRC18:21
*** nathany has quit IRC18:23
*** romanofski has quit IRC18:23
*** gumpa_ has quit IRC18:40
*** natea has joined #zope3-dev19:46
*** natea is now known as natea|redrock19:48
*** dobee has quit IRC20:01
*** sashav has quit IRC20:08
*** sashav has joined #zope3-dev20:09
*** agroszer has quit IRC20:20
*** sashav_ has joined #zope3-dev20:23
*** sashav_ is now known as sashav20:23
*** dunny has joined #zope3-dev20:35
*** rockyburt has quit IRC20:38
*** rockyburt has joined #zope3-dev20:43
*** natea|redrock has quit IRC20:58
*** gumpa has joined #zope3-dev21:44
*** whit has quit IRC21:50
*** romanofski has joined #zope3-dev22:25
*** romanofski has quit IRC22:25
*** whit has joined #zope3-dev22:27
*** whit_ has joined #zope3-dev23:01
*** whit has quit IRC23:01
*** pcardune has joined #zope3-dev23:14
*** whit_ has quit IRC23:43
*** projekt01 has joined #zope3-dev23:45
*** projekt01 has quit IRC23:53
*** pcardune has quit IRC23:55

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