IRC log of #zope3-dev for Saturday, 2008-06-21

*** romanofski has quit IRC00:03
*** dunny_ has quit IRC00:11
*** sp0cksbeard has quit IRC00:13
*** greenman has joined #zope3-dev00:13
*** greenman has quit IRC00:21
*** J1m has quit IRC00:34
*** whit has quit IRC00:37
*** whit has joined #zope3-dev00:41
*** benji has quit IRC00:45
*** dunny_ has joined #zope3-dev00:48
*** dunny has quit IRC00:49
*** jamur2 has quit IRC00:55
*** whit has quit IRC01:02
*** nathany has quit IRC01:15
*** regebro has quit IRC01:32
*** fcorrea has quit IRC01:36
*** reco has left #zope3-dev02:19
*** dunny_ has quit IRC02:22
*** rmarianski has quit IRC02:45
*** jsadjohnson has joined #zope3-dev03:22
*** b52laptop has quit IRC03:23
*** aaronv has joined #zope3-dev03:39
*** tdoggette has joined #zope3-dev03:53
*** reco has joined #zope3-dev03:53
*** RaFromBRC has quit IRC03:57
*** rocky is now known as rocky|away04:02
*** srichter has quit IRC04:02
*** aaronv has quit IRC04:27
*** reco has quit IRC04:50
*** jsadjohnson has quit IRC05:06
*** dunny has joined #zope3-dev05:14
*** vimes656 has joined #zope3-dev05:16
*** dunny_ has joined #zope3-dev05:25
*** norro_ has joined #zope3-dev05:31
*** dunny has quit IRC05:33
*** norro has quit IRC05:48
*** norro_ has quit IRC05:55
*** ranjith has joined #zope3-dev06:01
*** vimes656_ has joined #zope3-dev06:03
ranjithI am doing the project of porting zope2 to python2.506:03
ranjithIn the project I owuld like to get the rpython implimentation also done06:03
ranjithCan any one help me to start with rpython work..06:04
*** dunny_ is now known as dunny06:07
ranjithCan any one help me to start with rpython work..06:12
*** baijum has joined #zope3-dev06:20
ranjithCan any one help me to start with rpython work..06:21
*** vimes656 has quit IRC06:21
arikaa little06:37
arikathing...06:37
arikazope.configuration.xmlconfig.ZopeXMLConfigurationError: File "/home/arika/Zope/etc/site.zcml", line 7.2-7.55 ZopeXMLConfigurationError: File "/home/arika/Zope/etc/package-includes/araSquared-configure.zcml", line 1.0-1.37 ZopeXMLConfigurationError: File "/home/arika/Zope/lib/python/araSquared/Site/configure.zcml", line 8.4 InvalidInterface: Concrete attribute, site_name06:37
arikawhat's that?06:37
arikaI've done that site_name with a TextLine schema...06:37
arikahm...06:37
arikanothing I think i got it06:37
arikanah06:40
arikacontinues not to work06:40
arikalol06:40
arikaI shall read more...06:41
*** baijum has quit IRC06:49
*** fairwinds has quit IRC06:51
*** bristow has joined #zope3-dev07:27
bristowhi everyone07:28
*** bristow has quit IRC07:58
arikahi08:04
arikaWHat's the problem with persistent.Persistent?08:04
arikais that way the only to make things be written to the ZODB?08:05
*** kursor has joined #zope3-dev08:10
arikakursor: wellcome...08:10
arikaare you there?08:10
kursor  yes, only for a moment08:14
arikanothing08:14
arikaI'm trying to make an object be saved in the ZODB08:14
arikaI'm playing with the debugzope util08:14
arikaand following my textbook08:14
arika>>> from araSquared.Content.Document import Document08:15
arika>>> i = Document()08:15
arikaTraceback (most recent call last): File "<stdin>", line 1, in ?08:15
arikaTypeError: 'module' object is not callable08:15
kursorwhich textbook?08:15
arikathat's what I get08:15
arikalol08:15
arikathat one from Philipp whatever...08:15
arikaWeb development with Zope 308:15
arikalol08:15
kursorah, ok08:15
arikaif I add (Persistent) to the class name08:16
arikait works yeah08:16
arikabut testing it won't do it08:16
kursorWhich chapter?08:16
arika508:16
kursorYeh it starts with examples derived from object08:17
kursorand later on form Persitent08:17
arikathat's the thing...08:17
arikait's supposed that the class that implements my interface IDocument08:17
arikahas to inherit from Persistent08:18
arikain order to be saved...08:18
arikathat's what I got after reading08:18
arikalol08:18
arikabut the problem is that I can't test like that guy08:18
arikalol08:18
arikawhat happens if you inherit from object?08:19
arikaI thought it was an errata08:19
arikalol08:19
kursorit is only a newstyle class08:20
arikaah OK08:20
arikabut well08:20
arikahow can I solve my problem with Persistent?08:20
arika ^^08:20
kursoryou can also look at08:21
kursorhttp://launchpad.net/z3ctutorial for additional information08:21
arikalet me see...08:21
arikathat's another tutorial on Zope 3?08:22
arikawell...08:24
arikabtw08:24
arikathat debugzope08:24
arikashows lots of errors loading08:24
arikalol08:24
arikacan't work with the server running...08:24
arika>>> i = Document()08:25
arikaTraceback (most recent call last): File "<stdin>", line 1, in ?08:25
arikaTypeError: 'module' object is not callable08:25
arikacontinues saying that08:25
arikaI'll continue later...08:39
arikalol08:39
kursoris there an other variable named Document? What is in the list of dir()08:40
kursorwhat shows type(Document)08:41
*** jukart has joined #zope3-dev08:48
arikano, it isn't08:50
arikalol08:50
arikalet me see08:50
arika>>> type(Document)08:50
arika<type 'module'>08:50
arika>>>08:50
arika>>> dir()08:50
arika['CONFIG_FILE', 'Document', 'INSTANCE_HOME', 'SOFTWARE_HOME', '__builtins__', '__doc__', '__file__', '__name__', 'app', 'debugger', 'os', 'root', 'sys']08:50
arika>>>08:50
arikawhat that means?08:51
arikadir()["Document"]08:52
arikashall I try that?08:52
arikalol08:52
arika>>> dir(Document)08:53
arika['Document', 'IDocument', 'Persistent', '__builtins__', '__doc__', '__file__', '__name__', 'implements']08:53
arika>>> dir()["Document"]08:53
arikathat's what gives that.08:53
arikaI would like to solve this but now I have to go...08:53
arikaIf you find a solution I'd like it on a private message (for not loosing it)08:53
arikaThank you very much. :)08:54
*** dunny_ has joined #zope3-dev08:55
*** kursor has quit IRC09:03
*** dunny has quit IRC09:03
*** ranjith has quit IRC09:07
*** dunny_ has quit IRC09:08
*** jayaraj has joined #zope3-dev09:09
*** markusleist has joined #zope3-dev09:12
*** dunny has joined #zope3-dev09:12
*** jukart has quit IRC09:23
arikacould I change Persistent09:28
arikaby zope.app.container.IContained?09:28
*** jukart has joined #zope3-dev09:34
*** jukart has quit IRC09:39
*** instantf1o has quit IRC09:39
*** jukart has joined #zope3-dev09:40
*** instantf1o has joined #zope3-dev09:40
*** philiKON has quit IRC10:18
*** flox has joined #zope3-dev10:30
*** tarek has quit IRC10:58
*** instantf1o has quit IRC11:14
*** jukart has quit IRC11:14
*** jukart has joined #zope3-dev11:15
*** instantf1o has joined #zope3-dev11:15
*** norro has joined #zope3-dev11:24
*** vimes656_ has quit IRC11:37
*** jukart has quit IRC12:01
*** jukart has joined #zope3-dev12:18
*** malthe has joined #zope3-dev12:32
*** malthe has quit IRC12:36
*** ccomb has left #zope3-dev12:40
*** dunny has quit IRC12:43
*** vimes656 has joined #zope3-dev12:45
*** timte has joined #zope3-dev12:52
*** jukart has quit IRC13:17
*** tarek has joined #zope3-dev13:18
*** Theuni has quit IRC13:26
*** tarek has quit IRC13:36
*** Jell-O-Fishi has quit IRC13:42
*** Theuni has joined #zope3-dev13:55
*** Theuni_ has joined #zope3-dev13:56
*** aaronv has joined #zope3-dev14:03
*** Jell-O-Fishi has joined #zope3-dev14:09
*** bigkevmcd has joined #zope3-dev14:11
*** jukart has joined #zope3-dev14:15
*** junkafarian has quit IRC14:20
*** vimes656 has quit IRC14:21
*** bigkevmcd has quit IRC14:24
*** fairwinds has joined #zope3-dev14:28
*** junkafarian has joined #zope3-dev14:30
*** b52laptop has joined #zope3-dev14:41
*** jsadjohnson has joined #zope3-dev14:43
*** flox has joined #zope3-dev14:49
*** junkafarian has quit IRC14:58
*** jukart has quit IRC15:03
*** junkafarian has joined #zope3-dev15:35
*** jsadjohnson has left #zope3-dev16:13
*** rcrafton_laptop has joined #zope3-dev16:15
*** rcrafton_laptop is now known as rcrafton16:16
*** rcrafton_laptop has joined #zope3-dev16:24
*** jayaraj has quit IRC16:26
*** yotaff has joined #zope3-dev16:32
*** J1m has joined #zope3-dev16:40
*** rcrafton has quit IRC16:40
*** regebro has joined #zope3-dev16:44
*** rcrafton_laptop is now known as rcrafton17:01
*** vimes656 has joined #zope3-dev17:06
*** rocky|away has left #zope3-dev17:23
*** rcrafton has quit IRC17:37
*** sunew has joined #zope3-dev17:43
*** malthe has joined #zope3-dev17:45
*** sunew has quit IRC17:49
*** tdoggette is now known as tdoggette_17:52
*** rcrafton_laptop has joined #zope3-dev18:02
*** jukart has joined #zope3-dev18:04
*** b52laptop has quit IRC18:20
*** rcrafton_laptop has quit IRC18:22
*** b52laptop has joined #zope3-dev18:23
*** jukart has quit IRC18:24
*** romanofski has joined #zope3-dev18:33
*** zagy has quit IRC18:44
*** fairwinds has quit IRC19:13
*** mintsauce has joined #zope3-dev19:26
mintsaucehi all19:26
mintsauceim following benji yorks tutorial on the wiki, but im using a buildout based instance ..... for a new package, such as the hello world app ... i should create a <include package="hello" /> entry and a /src/hello directory?19:28
*** rcrafton_laptop has joined #zope3-dev19:29
*** rcrafton_laptop_ has joined #zope3-dev19:37
*** rcrafton_laptop has quit IRC19:53
*** rcrafton_laptop_ has quit IRC19:55
*** rcrafton has joined #zope3-dev19:56
*** malthe has quit IRC20:05
mintsauceanyone here?20:08
romanofskimintsauce: yeees?20:09
mintsauceim trying to set up a simple hello world app to introduce myself to zope3 ...... im following benji yorks tutorial ...... but im using buildout, so I dont have a python directory ..... where should I be putting the app instead?20:11
*** jsadjohnson has joined #zope3-dev20:11
romanofskimintsauce: I think you want to try Grok first20:11
mintsaucei want to try zope3 .... been using plone for a while20:12
romanofskiGrok is Zope3 (lite)20:12
mintsauceso theres no easy answer to my first question?20:15
romanofskihm.. I don't understand your question actually - where is benji yorks tutorial?20:16
mintsaucehttp://www.benjiyork.com/quick_start/20:17
mintsauceits linked from the zope3 wiki20:17
romanofskion which point are you now?20:17
mintsauce"We need to go to the lib/python directory of our instance" - i dont have this directory, its a buildout installation20:21
romanofskiah - i see20:23
romanofskiso your buildout works and sets up a zope3 instance?20:23
mintsauceyup20:24
romanofskiand you're using the system phython?20:25
mintsauceyup - python2.420:25
romanofskiokey20:25
mintsaucedoes it go in the system python directory?20:26
romanofskino20:26
romanofskiyou create a python package, which you can reference as a develop-egg20:26
romanofskicreate a directory hello20:26
romanofskithis has a setyp.py20:26
romanofskiargl20:26
romanofskisetup.py20:26
romanofskia src directory20:26
romanofskia src/hello directory where you put your configure.zcml and the actual code20:27
mintsaucewhere should i create the first hello directory?20:27
*** zagy has joined #zope3-dev20:27
romanofskiactually, you can place it anywhere in the system20:28
romanofskibut just create it either in your buildout directory20:28
romanofskior on a level above20:28
romanofskilatter one is prefered20:28
mintsaucek20:29
mintsaucewhat about 'We need to tell Zope to read our ZCML file, and the easiest way to do that is to put a "slug" in the instance/etc'20:31
mintsaucedont have instance etc ;)20:32
mintsauce(thanks so far btw, starting to make more sense)20:32
romanofskina... you've buildout - you don't want to do this with buildout20:32
mintsaucewhere do i put it instead?20:34
romanofskiyou can tell your zope3 via buildout.cfg where to read additional configure.zcmls from (or which additional packages should be included)20:40
romanofskido you know how to setup a develop-egg in your buildout.cfg?20:40
mintsauceno ... but im sure i can find some docs20:40
romanofskiit's very easy20:41
mintsaucehow then? ;)20:41
romanofskijust add in your buildout section20:41
romanofskidevelop = ../yourpackage20:42
romanofskiif you placed 'yourpackage' besides your buildout20:42
romanofskiit's just a path expression20:42
mintsauceok ..... i already have a line that says develop = .20:43
romanofskiwell you can start right there20:43
romanofskido you have a 'src' directory?20:44
romanofskiin your buildout dir?20:44
mintsauceyup20:44
romanofskiwhat's in your src?20:44
mintsaucesrc - the folder you told me to create20:45
mintsauceand testproject which was set up by my buildout20:45
mintsauce..... what should be in setup.py?20:46
*** yotaff has quit IRC20:46
romanofskithat's the metadata for the egg20:47
romanofskiname, title, dependencies20:47
romanofskiI think you should check other eggs what they have20:48
romanofskithat's probably the best todo20:48
mintsaucek20:49
mintsaucemind if i send you a screenshot of my folders, to check im doing it correctly?20:50
romanofskiI won't mind, but if your buildout runs through, and have that develop entry and src directory, you should be right on your path20:50
mintsaucehttp://www.flickr.com/photos/mintsauce/2598423444/20:54
romanofskiwhat's that mashed thing doing there?20:55
mintsaucethe buildout creates it ... just a default package .... runs fine from installation (mashed is just the project name)20:57
romanofskiah20:58
romanofskiso... you define in your buildout root the setup.py for your package hello20:59
romanofskithe setup.py in hello can be (re-)moved20:59
mintsauce'define in your buildout root the setup.py for your package hello' - is that the develop = . line in cfg?21:01
romanofskiyep21:02
mintsauceso should work as is then? - what am i looking for after rebuild and restart?21:03
romanofskiactually you can put a little error in your __init__.py of your hello package to see if it throws an error when you start your instance21:05
romanofskido a buildout first though, after you put everything in place21:06
mintsaucedone a buildout ... looked fine, but cant browse to it yet .... will try the error21:06
mintsaucehmmm .... put 'sdfsfsdfsdf' in __init__py .... but no error on restart21:07
*** norro_ has joined #zope3-dev21:08
romanofskiyou can check your instance script (which starts the instance) if the path of your develop-egg is in there21:08
mintsaucewas missing <include package="hello" /> :)21:09
mintsaucehmmm21:10
mintsauceremoved error and it restarts properly21:10
mintsaucebut browsing localhost:8080/hello returns ' The page that you are trying to access is not available '21:11
romanofskiyou have a 'hello' browser:page?21:12
mintsaucemy bad - missed the 'Now if we start Zope back up, we can go to the ZMI and add our content type by clicking on "QS Hello World"'21:14
mintsaucei think its working .... got Object Introspector: hello.hello.HelloWorld  ( hello )21:15
romanofskiwell, if your package is recognized by zope3 than you should be able to continue :)21:15
romanofskilooks good21:15
mintsaucethanks loads romanofski, youve been a great help21:15
*** aaronv has quit IRC21:16
romanofskipleasure21:16
*** aaronv has joined #zope3-dev21:17
*** rocky has joined #zope3-dev21:18
*** kursor has joined #zope3-dev21:26
*** CSWookie has joined #zope3-dev21:29
CSWookieAnyone know of a way to guarantee that a view is security proxied?21:29
CSWookieI have a view on Exception, and I want it to be proxied.  Should I just define __new__ in the class and proxy it there?21:30
*** mintsauce has quit IRC21:34
*** kursor has quit IRC21:42
*** vimes656 has quit IRC22:03
*** nathany has joined #zope3-dev22:26
*** mintsauce has joined #zope3-dev22:27
*** ktwilight_ has quit IRC22:37
*** ktwilight has joined #zope3-dev22:40
*** vimes656 has joined #zope3-dev22:42
*** vimes656 has quit IRC22:48
*** vimes656 has joined #zope3-dev22:48
*** nathany has quit IRC22:49
*** vimes656 has quit IRC22:52
*** rcrafton has joined #zope3-dev22:53
*** rcrafton has quit IRC23:20
*** dunny has joined #zope3-dev23:35
*** b52laptop has quit IRC23:58
*** b52laptop has joined #zope3-dev23:58

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