IRC log of #zope for Monday, 2013-01-07

*** Spanktar has joined #zope00:09
*** Spanktar has quit IRC00:13
*** aodag has quit IRC01:17
*** m8 has quit IRC01:25
*** _mup_ has quit IRC02:00
*** _mup_ has joined #zope02:00
*** aodag has joined #zope02:15
*** kosh_ has joined #zope02:22
*** kosh has quit IRC02:25
*** mr_jolly has joined #zope02:26
*** kosh_ is now known as kosh02:27
*** daMaestro has joined #zope02:35
*** sp0cksbeard has joined #zope02:46
*** julesa has quit IRC02:48
*** KageSenshi has joined #zope03:27
*** sp0cksbeard has quit IRC03:38
*** mr_jolly has quit IRC03:51
*** mr_jolly has joined #zope04:15
*** mr_jolly_ has joined #zope04:21
*** mr_jolly has quit IRC04:24
*** mr_jolly_ is now known as mr_jolly04:24
*** mr_jolly has quit IRC05:05
*** mr_jolly has joined #zope05:08
*** mr_jolly has quit IRC05:19
*** mr_jolly has joined #zope05:29
*** sp0cksbeard has joined #zope05:40
*** sp0cksbeard has quit IRC05:46
*** mr_jolly has quit IRC06:00
*** KageSenshi has quit IRC06:10
*** mr_jolly has joined #zope06:16
*** daMaestro has quit IRC06:45
ScramblejamsI see zope.interface.declarations.noLongerProvides(). Is there any equivalent of this at the implements level?06:53
*** KageSenshi has joined #zope07:27
*** mr_jolly has quit IRC07:41
*** yvl has joined #zope08:26
*** kosh has quit IRC09:04
*** agroszer has joined #zope09:14
*** tisto has joined #zope09:38
*** aodag has quit IRC09:51
*** giacomos has joined #zope09:54
mcdoncScramblejams: i'm not 100% sure about it but I suspect you can replace or mutate the "Declaration" for a given class... http://mirrors.creativecommons.org/developer/doc/p6/current/private/zope.interface.declarations.Declaration.html#__sub__09:57
mcdoncbut you'll probably have to read the z.i source to see how to get at it09:57
*** evilbungle has quit IRC09:58
*** giacomos has quit IRC10:21
*** mr_jolly has joined #zope10:27
*** menesis has joined #zope10:36
*** giacomos has joined #zope10:37
*** goschtl has joined #zope10:40
*** mr_jolly has quit IRC10:48
*** evilbungle has joined #zope11:27
*** avoinea has joined #zope11:37
*** __mac__ has joined #zope11:39
*** thetet has joined #zope11:43
*** mr_jolly has joined #zope11:50
*** Bahman_ has quit IRC11:57
*** Bahman has joined #zope11:58
*** mr_jolly has quit IRC12:01
*** mr_jolly has joined #zope12:03
*** mr_jolly has quit IRC12:08
*** mr_jolly has joined #zope12:13
*** maurits has joined #zope12:22
*** RichyB has joined #zope12:31
*** purserj has quit IRC12:42
*** purserj has joined #zope12:43
*** mr_jolly has quit IRC12:56
*** tisto is now known as tisto|away13:06
*** menesis has quit IRC13:08
*** RichyB has quit IRC13:36
*** fdrake has quit IRC13:42
*** LeoRochael has joined #zope13:53
BahmanPlaying with Zope 2 (I'm a noob), I created a sample product...13:55
*** menesis has joined #zope13:55
BahmanThe product is added through the ZMI easily w/o errors.13:55
BahmanBut when trying to add it in code using `manage_addProduct' (considering that the constructor is named `manage_addDevistan') I always get “AttributeError: manage_addDevistan”.13:56
BahmanTried that from the debug mode too.13:56
BahmanI'm trying this:13:56
*** tisto_ has joined #zope13:56
Bahmanapp.manage_addProduct['Devistan'].manage_addDevistan(100)13:56
BahmanI'd appreciate any clues/hints.13:57
BahmanI've been pulling off my hair over this for the past 6 hours :-S13:57
betabugpaste the relevant code and the traceback somewhere in a pastebin13:58
Bahmanbetabug: Just a sec...13:59
Bahmanbetabug: You're on StackOverflow?13:59
betabugno14:00
BahmanAlright.14:00
*** tisto|away has quit IRC14:00
Bahmanbetabug: http://pastebin.com/qsnq9qhA14:03
BahmanYou need anything else?14:03
betabugyeah, some green tea would be fine, thank you14:03
BahmanGranted once you solve this :-D14:04
Bahman`initialize' is called in `__init__.py'14:04
betabugI usually have the initialize() in __init__.py14:04
betabugok14:05
betabugdid you put the traceback somewhere too?14:06
Bahmanbetabug: That's all I get from Zope's Python shell.14:07
BahmanLet me put up a page and get the stack trace from there...just a minute.14:08
betabughmm, products not loaded from the shell?14:08
BahmanI can add OFS.Folder for example.14:08
BahmanJust my bloody product is the problem.14:08
betabugOFS.Folder is a standard thing14:09
BahmanYes...and I've been reading OFS.Folder source over and over again to find a difference between mine and its.14:10
betabugBahman: http://papakiteliatziar.gr/BetaBoring that should be your template14:11
betabugbut I guess that maybe you need to tell the zope shell to load the products from the filesystem somehow14:11
Bahmanbetabug: The stack trace: http://pastebin.com/CD8D8f9914:14
BahmanThis is obviously from a running Zope instance.14:15
*** MrTango has joined #zope14:15
*** menesis has quit IRC14:15
betabugwhat zope version is that?14:16
Bahman2.13.1914:16
BahmanThe latest I believe.14:16
betabugmaybe you need to do something to load old-style products?14:16
betabugI'm not much familiar with > 2.11 or 2.12 or so14:17
BahmanIs my sample product considered an "old-style" one14:17
Bahman?14:17
betabughmm, what I don't have is the "InitializeClass(Devistan)" in my products14:18
betabugBahman: if it looks like BetaBoring, I guess it is14:18
betabugif it's a folder inside "Products", then it's "old-style"14:18
betabugnew style would be an egg, loaded with buildout, I guess14:18
Bahmanbetabug: It *is* loaded as an egg I think.  http://pastebin.com/eURX9CRN14:20
BahmanThat's the `buildout.cfg'14:20
Bahmanbetabug: Trying without the `InitalizeClass'...14:20
betabugcan't really help you then, I don't know that stuff much14:20
Bahmanbetabug: Thanks anyway for your time :-)14:21
betabugnp :-)14:21
*** m8 has joined #zope14:31
*** maurits has quit IRC14:33
BahmanIn case someone here is on StackOverflow:  http://stackoverflow.com/questions/14196149/zope-2-using-manage-addproduct-with-own-products-attributeerror14:39
BahmanMan, I need some rest...this bloody problem has drained my energy.14:39
*** maurits has joined #zope14:42
*** benji has joined #zope14:59
*** mr_jolly has joined #zope15:00
*** m8 has quit IRC15:19
*** fdrake has joined #zope15:23
*** menesis has joined #zope15:24
*** goschtl has quit IRC16:10
*** menesis has quit IRC16:13
*** menesis has joined #zope16:24
ScramblejamsThanks mcdonc.16:28
*** sp0cksbeard has joined #zope16:38
*** J1m has joined #zope16:46
*** fredvd has joined #zope16:48
*** evilbungle has quit IRC17:05
*** evilbungle has joined #zope17:06
*** mr_jolly has quit IRC18:01
*** mr_jolly has joined #zope18:03
*** daMaestro has joined #zope18:15
*** thetet has quit IRC18:20
*** mr_jolly has quit IRC18:34
*** mr_jolly has joined #zope18:37
*** mr_jolly has quit IRC18:41
*** mr_jolly has joined #zope18:43
*** mr_jolly has quit IRC18:45
*** agroszer has quit IRC18:46
*** evilbungle has quit IRC18:50
*** supton has joined #zope18:50
*** maurits has quit IRC18:51
*** evilbungle has joined #zope18:52
*** evilbungle has quit IRC18:56
*** evilbungle has joined #zope18:56
*** kosh has joined #zope18:57
*** Spanktar has joined #zope18:59
*** giacomos has quit IRC19:06
*** tiwula has joined #zope19:08
*** Bahman has quit IRC19:10
*** Bahman has joined #zope19:10
*** DanC has joined #zope19:14
*** menesis has quit IRC19:21
suptonhey folks, for zope2 WebDAV, what would cause a discrepancy in what webdav.Collection.listDAVObjects() returns and what I see in cadaver (only small subset)?   I have a folder/collection that has eight items uploaded via DAV, they all show up TTW, but I do not see them in collection listing in DAV clients...19:31
suptonproblem seems cadaver-specific19:31
suptondo not see this problem in MS web folders (Win 7) or in OS X Finder's brain-dead DAV implementation, just in Cadaver19:31
* supton figures I won't get any more clues without pulling out wireshark19:32
LeoRochaelsupton: perhaps some of this content is not visible by anonymous, and Cadaver is not transmitting authentication information unless requested by the server?19:33
LeoRochaelsupton: and you probably don't need wireshark, some extra logging calls in Zope code should be enough19:34
suptonLeoRochael: anonymous user does not have View permission on folder… not sure about Access Contents Information… so I would think that the client is challenged… wireshark is less work than sprinkling more logging19:37
suptonbecause I'm not sure what code exists between the request dispatching and webdav.Collection.listDAVObjects() without putting pdb.set_trace() in that19:38
suptonthough I might have to tackle this from both ends19:39
*** supersheep has quit IRC19:44
LeoRochaelsupton: you can also use "traceback.print_stack()". You get a traceback without needing to stop your program.19:46
*** agroszer has joined #zope20:06
*** tisto_ has quit IRC20:06
*** agroszer has quit IRC20:21
*** nueces has joined #zope20:27
suptonLeoRochael: thanks for the tip… did not know that, always just typed w from interactive pdb prompt20:29
LeoRochaelsupton: glad to help. Frequently it's a lot faster to sprinkle "traceback.print_stack()" around than to pdb.set_trace() in many places.20:30
*** MrTango has quit IRC20:32
*** evilbungle has quit IRC20:34
*** m8 has joined #zope20:44
*** Guest79561 is now known as Moo-_-21:11
*** menesis has joined #zope21:22
*** chaoflow_ has joined #zope21:36
*** chaoflow_ has quit IRC21:36
DanCI'm trying to migrate some photos etc. out of a very old Zope DB. It ran on Zope 2.7.7. Building Zope2.7.7 says "install python 2.3.5". Building python2.3.5 leads to a core dump https://gist.github.com/447771721:39
DanCclues?21:39
*** kosh_ has joined #zope21:39
*** kosh has quit IRC21:43
*** kosh_ is now known as kosh21:47
*** jwhisnant has joined #zope21:52
*** TresEquis has joined #zope21:57
*** avoinea has quit IRC21:58
*** jwhisnant has left #zope22:10
*** LeoRochael has quit IRC22:53
*** TresEquis has quit IRC23:13
*** Arfrever has quit IRC23:30

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