IRC log of #zope3-dev for Wednesday, 2006-08-09

*** gumpa-away has left #zope3-dev00:01
*** TresEquis has quit IRC00:01
*** mcdonc has quit IRC00:01
*** TresEquis has joined #zope3-dev00:01
*** mcdonc has joined #zope3-dev00:01
*** timte has quit IRC00:05
*** tiredbones has quit IRC00:16
*** tiredbones has joined #zope3-dev00:17
*** flox has quit IRC00:40
*** Londo_ has joined #zope3-dev00:46
*** flox has joined #zope3-dev00:52
*** TresEquis has quit IRC00:56
*** batlogg has quit IRC01:04
*** hazmat has joined #zope3-dev01:06
*** ChanServ sets mode: +o hazmat01:06
*** oferw has joined #zope3-dev01:26
*** J1m has quit IRC01:28
*** yota has quit IRC01:36
*** benji has quit IRC01:36
*** oferw has quit IRC01:40
*** flox has quit IRC01:45
*** flox has joined #zope3-dev01:45
*** flox is now known as flox|away01:47
*** dobee has quit IRC01:55
*** projekt01 has left #zope3-dev02:18
*** romanofski has quit IRC02:35
*** romanofski has joined #zope3-dev02:35
*** rocky is now known as rocky|Zzz02:37
*** flox|away has quit IRC02:47
*** flox has joined #zope3-dev02:47
*** flox is now known as flox|away02:47
*** philiKON has quit IRC03:13
*** oferw has joined #zope3-dev03:25
*** flox|away has quit IRC03:47
*** flox has joined #zope3-dev03:47
*** flox is now known as flox|away03:48
*** flox|away has quit IRC03:51
*** flox has joined #zope3-dev03:51
*** flox is now known as flox|away03:52
*** flox|away has quit IRC03:53
*** flox has joined #zope3-dev03:55
*** flox is now known as flox|away03:55
*** oferw has quit IRC04:10
*** RaFromBRC has quit IRC04:27
febbhi all04:31
febbanyone alive here ?04:31
*** flox|away has quit IRC04:34
SmokeyDnot really febb04:35
SmokeyDand I'm going to sleep as well :)04:35
SmokeyDBut if I wasn't I wouldn't be much help to you probably anyway04:35
SmokeyD:)04:36
SmokeyDnn04:36
febbwell, thanks for answering... I just wanted to know if someone here will be going to the Zope3 training in Copenhagen next October ?04:36
*** hazmat has quit IRC04:42
*** flox has joined #zope3-dev05:34
*** flox is now known as flox|away05:34
*** flox has joined #zope3-dev05:46
*** flox|away has quit IRC05:47
*** flox has quit IRC06:46
*** flox has joined #zope3-dev06:52
*** flox is now known as flox|away06:52
*** alecm has joined #zope3-dev07:01
*** hazmat has joined #zope3-dev07:08
*** ChanServ sets mode: +o hazmat07:08
*** flox|away has quit IRC07:12
*** jnair has joined #zope3-dev07:14
*** jnair has left #zope3-dev07:14
*** ignas has joined #zope3-dev07:36
*** baijum has joined #zope3-dev07:48
*** jukart has joined #zope3-dev08:09
*** eins has joined #zope3-dev08:16
*** batlogg has joined #zope3-dev08:19
*** romanofski has quit IRC08:27
*** flox has joined #zope3-dev08:34
*** flox is now known as flox|away08:34
*** hazmat has quit IRC08:37
*** ignas has quit IRC08:40
*** hazmat has joined #zope3-dev08:43
*** ChanServ sets mode: +o hazmat08:43
*** zagy has joined #zope3-dev08:54
*** flox|away has quit IRC09:04
*** hdima has joined #zope3-dev09:08
*** timte has joined #zope3-dev09:23
*** romanofski has joined #zope3-dev09:28
*** ignas has joined #zope3-dev09:36
*** BjornT has quit IRC09:42
romanofskimoin09:42
*** BjornT has joined #zope3-dev09:45
febbhi09:56
*** hazmat has quit IRC10:00
*** febb has quit IRC10:07
*** batlogg has quit IRC10:17
*** flox has joined #zope3-dev10:18
*** flox is now known as flox|away10:18
*** niemeyer has joined #zope3-dev11:12
*** dobee has joined #zope3-dev11:18
*** dobee has quit IRC11:20
*** dobee has joined #zope3-dev11:21
*** dobee has quit IRC11:21
*** dobee has joined #zope3-dev11:21
SmokeyDmornin'11:31
baijumfew months back I had written this example app: http://codespeak.net/svn/z3/zopeweb/trunk/content/documentation/z3tut/collector/11:34
baijumbut now in 3.3 I cannot add Ticket objects.11:34
baijumit is working fine in 3.211:34
baijum"   The page that you are trying to access is not available"11:34
baijumthe url is http://localhost:8080/++skin++tuto/Collector/@@+/AddTicket.html11:34
baijumany pointers?11:34
baijumif I remove the container constraint from interface I can add this object to top container11:34
*** ktwilight has quit IRC11:35
*** ktwilight has joined #zope3-dev11:37
SmokeyDHi all, how can I test if an object implements an certain interface?11:37
baijumuse verifyClass, from zope.interface.verify import verifyClass11:41
baijumhttp://codespeak.net/svn/z3/zopeweb/trunk/content/documentation/z3tut/collector/ticket.py11:41
*** stub has joined #zope3-dev11:43
*** batlogg has joined #zope3-dev11:53
SmokeyDhi, how can I test if a class implements an interface?11:54
mcdoncSmokeyD: as opposed to testing if an instance of the class provides the interface you mean?12:08
SmokeyDnouri, that is what I mean. But I found it <interface>.providedBy(<instance>)12:10
SmokeyDsorry, meant mcdonc, not nouri12:11
SmokeyD:)12:11
SmokeyDFound it in richter's book12:11
mcdoncok...12:11
*** mkerrin has joined #zope3-dev12:23
*** flox|away is now known as flox12:29
SmokeyDhi, is it possible to define a local utility in the actual code (for in unit tests) instead of through the zmi?12:35
*** jukart has quit IRC12:44
floxSMokeyD: yes12:50
flox (this is done when you start zope for the first time: the Site Manager is automatically created and some local utilities are registered)12:51
floxi guess there's some method within 'zope.app.component' package12:51
SmokeyDyeah, but I want to use it in unit tests12:52
SmokeyDso you don't actually start zope itself12:52
SmokeyDor should I start the zope.app.debug.Debugger12:53
SmokeyDBut then all the things I would do to the objects would be stored in the ZODB12:54
SmokeyDand I don't want to do that12:54
SmokeyD:)12:54
floxthis doctest should be relevant.... /++apidoc++/Code/zope/app/component/README.txt12:55
flox;-)12:58
SmokeyDok thanks12:58
SmokeyDI wouldn't have looked there12:58
SmokeyDI was looking for debug and test packages12:59
SmokeyD:)12:59
SmokeyDthanks12:59
floxsince they need to do test for Local Component Architecture... this is the good place to find it ;-)12:59
*** dobee has quit IRC13:00
*** dobee has joined #zope3-dev13:13
*** dunny has quit IRC13:30
*** jukart has joined #zope3-dev13:36
SmokeyDWhere should I look for solving adapter errors?13:37
SmokeyDwhen I do self.root=setup.buildSampleFolderTree()13:37
SmokeyD        self.root_sm = setup.createSiteManager(self.root)13:37
SmokeyDI get TypeError: ('Could not adapt', <zope.app.folder.folder.Folder object at 0xa6f00eec>, <InterfaceClass zope.app.traversing.interfaces.ITraverser>)13:37
SmokeyDThis comes straight from the ++apidoc++ though13:37
*** jukart has quit IRC13:48
*** oferw has joined #zope3-dev13:49
*** romanofski has quit IRC13:49
*** Londo_ has quit IRC13:49
*** romanofski has joined #zope3-dev13:49
*** Londo_ has joined #zope3-dev13:49
*** mgedmin has joined #zope3-dev13:50
*** jukart has joined #zope3-dev13:51
*** jukart has quit IRC13:56
*** Londo_ has quit IRC13:59
*** romanofski has quit IRC13:59
*** romanofski has joined #zope3-dev14:00
*** Londo_ has joined #zope3-dev14:00
floxSMokeyD: you do these commands in the interactive Python shell?14:02
*** Londo_ has quit IRC14:03
*** romanofski has quit IRC14:03
*** romanofski has joined #zope3-dev14:03
*** Londo_ has joined #zope3-dev14:03
*** alga has joined #zope3-dev14:08
SmokeyDnope, in a unit test suite14:08
*** volvox has joined #zope3-dev14:10
SmokeyDOk, let's redo the question :)14:13
*** Londo_ has quit IRC14:13
*** romanofski has quit IRC14:13
SmokeyDWith unittests, do you normally create the site root, objects, etc in the setUp method?14:13
*** romanofski has joined #zope3-dev14:13
*** Londo_ has joined #zope3-dev14:13
SmokeyDOr do you use the debugger with the normal ZODB and use these objects/siteroot/etc14:14
SmokeyDor do you make a copy of the database and use that with the debugger?14:14
SmokeyDthe first option takes a lot of code in the setUp since you have to recreate stuff in the code that is normally stored in the ZODB (local utilities, folders, contained objects, etc)14:15
SmokeyDthe second option is dangerous since it can bork the ZODB when you modify the objects from the ZODB (or are objects loaded from ZODB through the zope.app.debug.Debugger not stored in the ZODB when modified?)14:16
*** Londo_ has quit IRC14:19
*** romanofski has quit IRC14:19
*** nathany has joined #zope3-dev14:20
*** romanofski has joined #zope3-dev14:20
*** Londo_ has joined #zope3-dev14:20
SmokeyDHmm, it seems that the zope.app.debug package doesn't even exist anymore (it is mentioned in Richters book from 2005)14:20
mgedminit was probably moved14:21
mgedmineh, I see zope.app.debug in my Z3 checkout14:22
*** oferw has quit IRC14:26
*** jukart has joined #zope3-dev14:39
*** rocky|Zzz has quit IRC14:47
*** rocky has joined #zope3-dev14:57
*** benji has joined #zope3-dev15:04
*** tiredbones has quit IRC15:09
*** tiredbones has joined #zope3-dev15:10
*** srichter has joined #zope3-dev15:28
*** ChanServ sets mode: +o srichter15:28
SmokeyDmgedmin, nopt in zope3.2.115:44
SmokeyDjust a quicky, the zope.app.schema.Object field is meant to add other objects as properties to objects?15:44
SmokeyDsorry, zope.schema.Object I mean15:45
mgedminyes15:45
SmokeyDok, thnx15:45
SmokeyDbut I don't suppose you can use expressions to set default values in a schema defining it (since the object is not instantiated yet when you open an add form, so does not have a context and stuff)15:47
SmokeyDsomething like default=__parent__.getCurrentPeriod()15:47
*** niemeyer has quit IRC15:49
*** SteveA has quit IRC15:53
*** stub has quit IRC16:03
*** pcardune has joined #zope3-dev16:05
*** baijum has left #zope3-dev16:11
einsSubdino you are wrong. result = context.yourquery() will definately return a resultset16:11
einsoops16:11
mgedminSmokeyD: nope16:17
mgedminbut if you use an Object field, then you must use a custom ObjectWidget, and you specify a factory ... I think16:17
*** J1m has joined #zope3-dev16:21
*** eins has quit IRC16:34
*** volvox has quit IRC16:47
SmokeyDok thanks mgedmin. I think I'm going to store the object separately in the ZODB in the hierarchy and just reference it from the other object16:55
*** batlogg has quit IRC17:00
*** gumpa has joined #zope3-dev17:00
*** batlogg has joined #zope3-dev17:00
*** niemeyer has joined #zope3-dev17:03
*** volvox has joined #zope3-dev17:05
*** stub has joined #zope3-dev17:09
*** hdima has quit IRC17:14
*** SteveA has joined #zope3-dev17:15
*** batlogg has quit IRC17:35
*** bradb has joined #zope3-dev17:50
*** henri_ has joined #zope3-dev17:51
*** SmokeyD has quit IRC17:53
*** SmokeyD has joined #zope3-dev17:54
*** flox_ has joined #zope3-dev18:03
*** flox has quit IRC18:03
*** flox_ is now known as flox18:04
*** hazmat has joined #zope3-dev18:18
*** ChanServ sets mode: +o hazmat18:18
*** zagy has quit IRC18:30
*** jukart has quit IRC18:43
*** zagy has joined #zope3-dev18:48
*** henri_ has quit IRC18:54
*** batlogg has joined #zope3-dev19:08
*** febb has joined #zope3-dev19:12
SmokeyDhey, is it possible to redirect someone in zope to another page? I guess it's simple, but I have no clue where to look in the ++apidoc++ or source19:15
*** flox has quit IRC19:16
pcarduneSmokeyD: depending on what you mean by redirect, you can always use request.response.redirect on any request object19:17
SmokeyDok,, I just want to put them to the url of the __parent__ object19:18
pcardunethen in the view that is doing the redirecting you might try something like return self.request.redirect(zapi.absoluteURL(self.context.__parent__, self.request))19:20
*** ignas has quit IRC19:20
pcardunealthough I think it is now bad practice to use zapi19:20
pcarduneyou just have to hunt out where the absoluteURL function is defined19:21
SmokeyDok thanks19:22
SmokeyDThat helps a lot19:22
SmokeyD:)19:22
*** romanofski has quit IRC19:22
*** hazmat has quit IRC19:25
*** philiKON has joined #zope3-dev19:28
*** batlogg has quit IRC19:42
*** zagy has quit IRC19:49
*** zagy has joined #zope3-dev19:49
*** RaFromBRC has joined #zope3-dev19:55
*** ignas has joined #zope3-dev20:08
benjipcardune and SmokeyD: absoluteURL is in zope.traversing.browser20:13
SmokeyDok, it is in zapi as well.20:14
SmokeyDBut I guess I should use zope.traversing.browser20:14
febbhi all20:14
febbhi philiKON   como estas?20:14
SmokeyDhi febb20:14
febbhi SmokeyD  how are you today ?20:15
SmokeyDNo se si philiKON esta20:15
SmokeyD;)20:15
SmokeyDno le he viste desde mucho tiempo20:15
febb;)   ah. ok, gracias..  I wanted to ask him a few things....20:15
SmokeyD:)20:15
febbsmokeyd where are you from ?20:15
*** dobee has quit IRC20:15
SmokeyDNetherlands20:15
SmokeyDbut I've spent sopme time in central and south america20:16
SmokeyDwhere are you from20:16
febboh, great.   been to Mexico ?  I am from Mexico City., Mexico20:16
SmokeyDCool. A friend of mine as well. But haven't further north then Guatemala20:16
SmokeyDI was in Honduras for half a year two months ago20:16
febbworking there ?20:17
SmokeyDstudies, internship actually20:17
SmokeyDI want to go working there though, some somwhere else in Latin America20:17
febbI see...  how do  you like it, latinamerica, i mean ?20:17
SmokeyDlet's take this off topic ;)20:17
febbsure  ;)20:18
febbso, SmokeyD are you   involved with Zope3 ?20:20
pcardunedoes anyone know where I might find good resources for understanding zpkg?20:21
*** volvox has quit IRC20:32
febbanyone here will be attending to the Zope3 training in Copenhage in October ?20:34
febb(besides the teacher, of course)20:35
*** romanofski has joined #zope3-dev20:35
febbhi romanofski.20:36
romanofskihey febb20:36
*** flox_ has joined #zope3-dev20:37
*** flox_ is now known as flox20:38
*** oferw has joined #zope3-dev20:55
SmokeyDfebb, see my personal messages20:58
SmokeyDandrew_m, no I'm not involved with zope20:58
SmokeyDI wish I was that good20:58
SmokeyD:)20:58
SmokeyDbut I'm off again20:58
SmokeyDfebb I mean, not andrew_m20:58
andrew_mhi and cu SmokeyD20:59
SmokeyD:)21:05
SmokeyDhi andrew_m21:06
SmokeyDI'm indeed off again21:06
SmokeyDBut I'm making progress21:06
*** romanofski has quit IRC21:06
andrew_mok.. good to hear!21:06
SmokeyDI've figured Zope out as far as I need it and the basis is there21:06
SmokeyDso now the functionality will come21:06
SmokeyDbye21:08
andrew_mcu SmokeyD21:08
*** jukart has joined #zope3-dev21:11
*** srichter has quit IRC21:12
*** batlogg has joined #zope3-dev21:16
*** romanofski has joined #zope3-dev21:16
*** MiUlEr has joined #zope3-dev21:20
*** jukart_ has joined #zope3-dev21:27
*** jukart has quit IRC21:29
*** xenru has quit IRC21:35
*** batlogg has quit IRC21:35
*** philiKON has quit IRC21:35
*** philiKON has joined #zope3-dev21:37
*** yota has joined #zope3-dev21:39
*** jukart has joined #zope3-dev21:41
*** dunny has joined #zope3-dev21:43
*** ignas has quit IRC21:49
*** ignas has joined #zope3-dev21:50
*** jukart_ has quit IRC21:50
*** jukart_ has joined #zope3-dev21:50
*** jukart_ has left #zope3-dev21:53
*** jukart has quit IRC22:03
*** niemeyer has quit IRC22:03
*** stub has quit IRC22:09
*** mkerrin has quit IRC22:11
*** hazmat has joined #zope3-dev22:25
*** ChanServ sets mode: +o hazmat22:25
*** nathany has quit IRC22:30
*** alga has quit IRC22:38
*** hazmat has quit IRC22:46
*** febb has quit IRC22:47
*** mgedmin has quit IRC22:49
*** fcorrea has joined #zope3-dev22:55
*** philiKON has quit IRC23:07
*** zagy has quit IRC23:12
*** niemeyer has joined #zope3-dev23:13
*** oferw has quit IRC23:17
*** pcardune has quit IRC23:37
*** batlogg has joined #zope3-dev23:41
*** hazmat has joined #zope3-dev23:44
*** ChanServ sets mode: +o hazmat23:44
*** timte has quit IRC23:44

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