IRC log of #zope3-dev for Friday, 2006-07-21

*** gabrielboys has quit IRC00:28
*** povbot has joined #zope3-dev01:03
*** MiUlEr has quit IRC01:05
*** senra has left #zope3-dev01:10
*** povbot` has joined #zope3-dev01:29
*** projekt01 has quit IRC01:30
*** povbot has quit IRC01:36
*** Aiste has quit IRC01:37
*** povbot has joined #zope3-dev01:48
*** rock1 has joined #zope3-dev01:49
ktwilightwhen i do a make test, i run into 1 failure and 1 error both are "ValueError: I/O operation on closed file". but make install works fine, should i be worried 'bout it? or just leave it?01:50
*** povbot` has joined #zope3-dev02:08
*** povbot has quit IRC02:09
*** Aiste_ has joined #zope3-dev02:10
*** xenru has quit IRC02:12
*** Aiste has quit IRC02:13
*** zbir_ has quit IRC02:23
*** gintas_ has quit IRC02:25
*** RaFromBRC has quit IRC02:27
*** povbot has joined #zope3-dev02:55
*** Aiste has joined #zope3-dev02:55
*** whit has quit IRC02:58
*** Aiste_ has quit IRC03:02
*** hazmat has joined #zope3-dev03:07
*** povbot` has joined #zope3-dev03:28
*** alecm has joined #zope3-dev03:34
*** Aiste has quit IRC03:37
*** povbot has quit IRC03:39
*** rocky has quit IRC03:52
*** stub has joined #zope3-dev03:54
*** whit has joined #zope3-dev03:57
*** povbot has joined #zope3-dev04:03
*** povbot` has quit IRC04:04
*** whit has quit IRC04:11
*** alecm has quit IRC04:37
*** whit has joined #zope3-dev04:50
*** BjornT has quit IRC04:55
*** BjornT has joined #zope3-dev04:58
*** bradb has left #zope3-dev05:08
*** benji_ has joined #zope3-dev05:11
*** benji_ is now known as benji05:11
*** alecm has joined #zope3-dev05:20
*** whit has quit IRC05:40
*** febb has joined #zope3-dev06:10
*** nathany has quit IRC06:15
*** dunny has quit IRC06:19
*** yota has joined #zope3-dev06:25
*** dunny has joined #zope3-dev06:33
febbhi all06:38
*** febb has quit IRC07:30
*** febb has joined #zope3-dev07:32
*** alecm has quit IRC07:35
*** stub has quit IRC07:55
*** romanofski has quit IRC07:56
*** Theuni has joined #zope3-dev08:05
*** philiKON has quit IRC08:19
*** dunny has quit IRC08:33
*** jukart has joined #zope3-dev08:38
*** batlogg has joined #zope3-dev08:43
*** zagy has joined #zope3-dev08:57
*** romanofski has joined #zope3-dev09:09
*** hdima has joined #zope3-dev09:10
*** alecm has joined #zope3-dev09:11
*** alecm has quit IRC09:13
*** dobee has joined #zope3-dev09:16
*** dobee has quit IRC09:32
*** tarek has joined #zope3-dev09:35
*** GreenHaruki has joined #zope3-dev09:39
*** dobee has joined #zope3-dev09:42
*** flox_ has joined #zope3-dev09:56
*** flox_ is now known as flox09:56
*** ofer has joined #zope3-dev10:05
*** tarek has quit IRC10:12
*** ktwilight has quit IRC10:15
*** ktwilight has joined #zope3-dev10:15
*** febb has quit IRC10:15
*** zagy_ has joined #zope3-dev10:23
*** zagy has quit IRC10:33
*** MJ has quit IRC10:41
*** stub has joined #zope3-dev10:46
*** ofer has quit IRC10:48
*** tarek has joined #zope3-dev10:48
*** Kazade has joined #zope3-dev11:16
KazadeHi all, does anybody know of a ADO database adapter available for Zope3 (I'm completely new to this so any guidence would be helpful)11:21
*** MJ has joined #zope3-dev11:29
*** danfairs has joined #zope3-dev11:35
*** smokeyd has joined #zope3-dev11:40
*** smokeyd has quit IRC11:46
*** smokeyd has joined #zope3-dev11:46
smokeydgood day to all of you :) Just wanna say I'm really impressed with zope and also with your willingness to help a newbie. I'm definitely getting the hang of zope11:48
smokeydand that's definitely for a big part due to you guyx11:48
smokeydguys11:48
ktwilighthaha cool :)12:01
Theuni:)12:01
*** Kazade has quit IRC12:16
*** dobee has quit IRC12:23
*** b_52CEntos has quit IRC12:29
*** b_52CEntos has joined #zope3-dev12:29
*** dobee has joined #zope3-dev12:31
*** Kazade has joined #zope3-dev12:37
*** gintas_ has joined #zope3-dev12:40
*** Aiste_ is now known as Aiste12:53
*** b_52CEntos_ has joined #zope3-dev13:13
*** russf has quit IRC13:20
*** russf has joined #zope3-dev13:20
*** jinty has joined #zope3-dev13:20
*** flox has quit IRC13:23
*** b_52CEntos has quit IRC13:28
*** b_52Centos__ has joined #zope3-dev13:29
*** russf_ has joined #zope3-dev13:33
*** russf has quit IRC13:33
*** nathany has joined #zope3-dev13:39
*** rocky has joined #zope3-dev13:41
*** b_52CEntos_ has quit IRC13:45
*** ignas has joined #zope3-dev13:48
*** dobee has quit IRC13:49
*** philiKON has joined #zope3-dev13:58
KazadeI'm *trying* to write a database adapter for Zope3, but for some reason parseDSN is always returning an empty list, I know that the connection string is being passed into the function, does anyone know what the problem could be?14:06
*** Aiste is now known as Aiste|away14:12
*** ignas has quit IRC14:23
*** b_52CEntos_ has joined #zope3-dev14:24
*** BjornT has quit IRC14:28
*** mexiKON has joined #zope3-dev14:31
*** jinty has quit IRC14:33
*** tonico has quit IRC14:35
*** BjornT- has joined #zope3-dev14:35
*** philiKON has quit IRC14:37
*** b_52Centos__ has quit IRC14:40
*** BjornT- is now known as BjornT14:42
*** batlogg has quit IRC14:45
*** jhauser has joined #zope3-dev14:47
*** zbir has quit IRC14:50
Theunihmm14:52
Theunidoes anybody know how to  get a title for a class? Like the title from the add menu?14:52
Theunisomething nice to display in UI?14:52
mexiKONfor a class?!?14:54
mexiKONadd menu items have titles, yes14:54
Theuniright, i only have an interface and need all classes that implement that14:56
Theuniwhich is easy14:56
Theunibut the title seems to be far away14:57
Theunigotta run ...14:57
*** ignas has joined #zope3-dev14:58
*** dobee has joined #zope3-dev15:01
*** batlogg has joined #zope3-dev15:01
*** romanofski has quit IRC15:03
*** benji has quit IRC15:03
*** Aiste|away has quit IRC15:03
*** hazmat has quit IRC15:03
*** xenru|clone has quit IRC15:03
*** d2m has quit IRC15:03
*** benji has joined #zope3-dev15:04
*** Aiste has joined #zope3-dev15:04
*** d2m has joined #zope3-dev15:05
*** gintas_ has quit IRC15:05
*** zagy_ has quit IRC15:05
*** xenru has joined #zope3-dev15:05
*** hazmat has joined #zope3-dev15:05
*** ignas has quit IRC15:05
*** gintas has joined #zope3-dev15:05
*** zagy has joined #zope3-dev15:06
*** romanofski has joined #zope3-dev15:09
*** alga has joined #zope3-dev15:15
*** benji has quit IRC15:26
*** Kazade has quit IRC15:31
*** stub has quit IRC15:42
*** bradb_ has joined #zope3-dev15:46
*** flox_ has joined #zope3-dev15:53
*** flox_ is now known as flox15:53
*** rocky has quit IRC15:53
*** benji has joined #zope3-dev16:01
*** russf_ has quit IRC16:14
*** zbir has joined #zope3-dev16:17
*** mexiKON has quit IRC16:21
*** baldtrol has joined #zope3-dev16:57
baldtroli've run into this before, and i know i got around it somehow, but i can't remember now :\  i have a btreecontainer derivative with a few attributes.  my view is a multi-inheritance from Contents and form.EditForm.  i've built the necessary tal to see everything i want...17:00
baldtrolbut when i actually hit "apply" to make the changes take, it gives me forbidden attribute.  i've set my require on the attributes to an acceptable permission, or so i think.  anyone know a way around that?17:00
*** hdima has quit IRC17:05
*** oferw has joined #zope3-dev17:08
*** romanofski has quit IRC17:10
*** philiKON has joined #zope3-dev17:12
*** alga has quit IRC17:14
*** smokeyd has quit IRC17:20
*** smokeyd has joined #zope3-dev17:20
smokeydooohhh, it's quiet today17:20
smokeyd:)17:20
*** russf has joined #zope3-dev17:21
*** tonico has joined #zope3-dev17:35
*** danfairs has quit IRC17:44
*** philiKON has quit IRC17:50
*** GreenHaruki has quit IRC17:54
*** Kazade has joined #zope3-dev17:55
*** regebro has joined #zope3-dev18:20
*** mgedmin has joined #zope3-dev18:28
*** alga has joined #zope3-dev18:33
Kazadehas anybody here ever used adodbapi with Zope3 ?18:39
benjinot with Zope 3, Kazade, but in other situations; it worked quite well for me18:44
Kazadeim having some problems :(18:44
benjilike what?18:44
KazadeIm trying to write a database adapter with it, but every time I try and test it I get the following error...18:45
KazadeTransaction cannot start while in firehose mode18:45
Kazadewhen I traced it back it stems from adodbapi's rollback function, specifically line 334 in adodbapi.py: "self.adoConn.BeginTrans()"18:47
benjiI've seen that before Kazade; thinking...18:47
benjiyou're using SQL Server?18:47
Kazadeyeah18:48
benjiKazade: can you pastebin minimal code that demonstrates the problem?18:50
KazadeI can paste my database adapter code, but the error is occuring using Zope3's ZMI test to run a simple SELECT * FROM Table query18:50
Kazadewill that code be useful?18:52
*** flox has quit IRC18:53
benjino, I just thought it'd keep you busy for a while and make you forget your problems18:53
Kazadelol18:53
benji</sarcasm> I was hoping a small code snippet would jog my memory so I could remember why I'd seen that error and how I'd fixed it (Googling didn't help)18:54
Kazadepastebin.com doesnt seem to be working, well its very slow anyway :/18:54
*** alga has quit IRC18:55
*** flox has joined #zope3-dev18:56
benjiKazade: I see suggestions to do "SET NOCOUNT ON" before running the offending SQL, but don't know if that's what I did to solve it for me18:56
Kazadeit didnt make any difference :(18:57
*** bradb_ has quit IRC18:58
KazadeI dont know if it will help, but heres the adapter code: http://zope3.pastebin.com/75418518:58
*** alecm has joined #zope3-dev18:58
benjihere's a potentially relavant link: http://support.microsoft.com/?id=23739818:59
benjiKazade: I was more interested in your code, paste here the line of code that generates the error19:00
benji(man, pastebin.com is slow today)19:00
*** bradb_ has joined #zope3-dev19:00
benji(http://paste.plone.org/ seems snappy though)19:01
KazadeBecause I'm using the ZMI SQL Test, my line of code is literally SELECT * FROM Table. I dont know if Zope is doing something, and I dont know enough to find out :(19:01
benjiit would seem I'm out of suggestions, Kazade19:03
*** MJ has quit IRC19:03
Kazadethanks anyway benji19:03
KazadeThe only thing I could think it might be is the use of pythoncom.CoInitialize() but its need to get adodbapi to work19:03
*** russf_ has joined #zope3-dev19:16
*** russf has quit IRC19:16
*** tonico has quit IRC19:23
*** zagy has quit IRC19:33
*** regebro has quit IRC19:34
*** smokeyd has quit IRC19:34
*** oferw has quit IRC19:34
*** baldtrol has quit IRC19:34
*** zbir has quit IRC19:34
*** benji has quit IRC19:34
*** Kazade has quit IRC19:34
*** mgedmin has quit IRC19:34
*** hazmat has quit IRC19:34
*** batlogg has quit IRC19:34
*** jhauser has quit IRC19:34
*** tarek has quit IRC19:34
*** ktwilight has quit IRC19:34
*** srichter has quit IRC19:34
*** vinsci has quit IRC19:34
*** andrew_m has quit IRC19:34
*** benji has joined #zope3-dev19:34
*** srichter has joined #zope3-dev19:34
*** hazmat has joined #zope3-dev19:34
*** andrew_m has joined #zope3-dev19:34
*** ktwilight has joined #zope3-dev19:34
*** mgedmin has joined #zope3-dev19:34
*** oferw has joined #zope3-dev19:34
*** smokeyd has joined #zope3-dev19:35
*** regebro has joined #zope3-dev19:35
*** vinsci has joined #zope3-dev19:35
*** tarek has joined #zope3-dev19:35
*** povbot has joined #zope3-dev19:42
*** guruz has joined #zope3-dev19:42
*** srichter has joined #zope3-dev19:42
*** dokai has joined #zope3-dev19:43
*** yota has joined #zope3-dev19:43
*** BjornT has joined #zope3-dev19:43
*** pcardune has joined #zope3-dev19:44
*** benji_ has joined #zope3-dev19:44
*** philiKON has joined #zope3-dev19:48
*** MJ has joined #zope3-dev19:52
*** nouri has joined #zope3-dev19:52
smokeydanybody have time to help me with SQLObject. I know it's OT, but the SQLObject channel is kinda dead I guess20:02
*** d2m has joined #zope3-dev20:16
*** jukart has joined #zope3-dev20:17
*** ktwilight has quit IRC20:17
*** ktwilight has joined #zope3-dev20:17
*** jukart has left #zope3-dev20:17
*** RaFromBRC has joined #zope3-dev20:20
*** RaFromBRC has quit IRC20:28
*** oferw has joined #zope3-dev20:31
*** benji_ is now known as benji20:33
*** oferw has quit IRC20:40
*** tarek has quit IRC20:41
smokeyddoes anybody know of good information about SQLObject because I'm getting really frustrated. The information on the website is just to little to be really able to understand it20:41
smokeydespecially making queries20:41
*** gumpa has joined #zope3-dev20:50
*** reco has joined #zope3-dev21:05
*** pcardune has quit IRC21:11
floxsmokeyd: some people prefer to use sqlalchemy21:15
floxi do not use any of them (sqlobject, sqlalchemy)21:16
*** RaFromBRC has joined #zope3-dev21:16
*** projekt01 has joined #zope3-dev21:16
floxhere someone tell about his experience with sqlobject and sqlalchemy on zope3 (see comment #16 by holger froebe)21:19
*** projekt01 has quit IRC21:19
floxhttp://www.jrandolph.com/blog/?p=2321:19
*** hazmat has quit IRC21:23
*** projekt01 has joined #zope3-dev21:44
*** dobee has joined #zope3-dev22:02
*** b_52CEntos_ has joined #zope3-dev22:03
*** dobee has quit IRC22:04
*** gabrielboys has joined #zope3-dev22:06
*** batlogg has joined #zope3-dev22:13
*** dobee has joined #zope3-dev22:15
*** b_52CEntos has quit IRC22:19
smokeydthanks flox22:20
smokeydsorry, wasn't paying attention22:20
floxnp22:21
floxthis article helped me to make and support the decision to migrate our project from zope2 to zope322:21
floxit was few weeks ago...22:22
gabrielboysI missed something, what article are you talking about?22:22
gabrielboysI am going from Zope2 to Zope3 right now, the more info the better22:22
floxthis: http://www.jrandolph.com/blog/?p=2322:23
gabrielboysgreat, thanks22:23
floxeven if the main article is against zope.... don't stop reading, go to comment #16... someone share his good experience with zope322:23
gabrielboyscool, thanks for the advice22:24
gabrielboysI did not do the Zope2 implemenation, so this is a lot to take in22:24
gabrielboysevery little bit helps22:24
floxfirst we implemented our application on zope2, very ugly implementation, bec we did not take time to understand some of the Zope 2 features...22:26
benjiflox: the writer of comment 16 needs to write Z3 propiganda :)22:26
smokeydI definitely like Zope3, also the ZCML part, I do also like SQL, I just don't like the combination of the two22:26
smokeyd:)22:26
floxnow with zope 3, a lot of work, but i understand better what i do, and i like the architecture22:27
smokeydyeah the architecture is great22:27
smokeydespecially the component architecture is good22:27
floxyes: first u have to learn it... then u find it very powerful22:28
floxsmokeyd: the guy like SQLAlchemy on Zope322:29
floxmaybe we'll look at SQLAlchemy too, next year22:29
*** dobee has quit IRC22:30
gabrielboysright, I have been reading a couple books, and just absorbing, I think I am getting close to setting things up correctly22:30
floxbenji: yes, i took some of his words on my slideshow, to push my boss to accept migration to zope 3 :-)22:31
benjiheh :)22:31
*** smokeyd has quit IRC22:32
*** gump1 has joined #zope3-dev22:34
*** BjornT_ has joined #zope3-dev22:52
*** Theuni has quit IRC22:52
*** gumpa has quit IRC22:52
*** jhauser has joined #zope3-dev22:54
projekt01benji, do you have a minute for answering a question?22:57
benjisure, projekt0122:57
projekt01I have problems to use the zope.app.module package.22:57
projekt01It ends in a recoursion because of a queryUtility lookup22:58
projekt01The following error happens:22:58
projekt01exceptions.AttributeError: '_LocalAdapterRegistry' object has no attribute 'lookup'22:58
projekt01Which means that the _LocalAdapterRegistry is loosing its lookup method.22:59
projekt01I'm not sure why this happens.22:59
projekt01Or the better question is could this only happen becuase of the zope.app.module.22:59
projekt01What if this also could happen with other code?23:00
benjihmm, good question23:00
projekt01;-)23:00
projekt01The really bad thing is, that I have no idea who to debug zope.app.module.23:02
projekt01Durring this error it's not possible to import anything because of the broken __import__ method23:02
benjiwell, z.a.module isn't part of the "core", so it is allowed to non be backward compatible, but I'd worry other modules might be too23:03
projekt01I really like to know what brings the adapter registry to loose it's methods?23:04
benjiactually, I can't find where it gets that method to start with23:04
benji_LocalAdapterRegistry is a subclass of three things:     zope.app.component.back35._LocalAdapterRegistryGeneration3SupportMixin, zope.component.persistentregistry.PersistentAdapterRegistry, zope.location.Location,23:04
projekt01you mean the lookup method?23:04
benjiright23:05
benjiI don't see "lookup" in any of its base classes23:05
projekt01I'll take a look23:05
projekt01It's in zope.interface.adapter23:07
projekt01BaseAdapterRegistry23:08
projekt01which injects it's method with _createLookup at line 7923:08
projekt01You can simply reproduce this if you include a configure.zcml for z.a.module and add a module content object23:10
*** BjornT has quit IRC23:11
benjia set_trace in _createLookup might be informative23:11
projekt01It's not possible to debug if the z.a.module is loaded and broken23:16
*** dobee has joined #zope3-dev23:17
projekt01My concern is that this has something to do with the PersistentModule in zodbcode.module23:17
benjiprojekt01: z.a.module causes a failure before _createLookup is called?23:17
benjicould be, I don't think that code is very well tested/understood :(23:18
projekt01No, zope is starting but if you call a page the lookup fails23:18
projekt01The comment at line 79 in zodbcode says:23:19
projekt01# XXX what about code that modifies __dict__ directly?23:19
projekt01And the adapter registry does modify the dict directly23:20
projekt01could this be a problem? And if so, what does this mean?23:20
benjiI was suggesting verifying that _LocalAdapterRegistry runs _createLookup; IOW see if "lookup" is disappearing, or is never created to start with23:20
*** MJ has quit IRC23:25
*** MJ has joined #zope3-dev23:26
projekt01the lookup method get created at the startup23:27
*** zagy has joined #zope3-dev23:29
projekt01Uhh, that's interesting23:36
projekt01I get 13 local adapter registries the first eleven have a empty dict23:37
projekt01It's a empty Data.fs with only one z.a.module content object added23:38
projekt01Just beeing correct, the method queryUtility get 13 time called, the first 11 times I got a empty _LocalAdapterRegistry23:39
*** gabrielboys has quit IRC23:39
*** rocky has joined #zope3-dev23:42
*** romanofski has joined #zope3-dev23:43
*** bradb has quit IRC23:47
projekt01benji, can you take a look at http://paste.plone.org/611323:48
*** philiKON has quit IRC23:48
*** gintas has quit IRC23:50
*** batlogg has quit IRC23:52

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