AW: [Zope3-Users] Re: Using svn checkout with zc packages

2007-07-30 Thread Roger Ineichen
Hi Jeff,

 Betreff: Re: [Zope3-Users] Re: Using svn checkout with zc packages
[...]

 I feel like I need a training course or consultancy to move to buildout, 
 which requires time and money that we just don't have.

Same belongs to me.

I'm sitting here and have to debug code like: 

def foo(self, foo):
  bar = self.getBar(foo)
  return getMultiAdapter(bar, self.request)

and bang I have to get a dev egg for the package
which implements getMultiAdapter just that I can 
debug into getMultiAdapter.

I don't know how somebody can say that's a good concept.
For me as a heave *pdb* user it's defently not.

Is there another option wich allows me not to checkout the 
half of the Zope trunk as dev eggs for serious debugging?


Regards
Roger Ineichen

 --
 Jeff Shell
 ___
 Zope3-users mailing list
 Zope3-users@zope.org
 http://mail.zope.org/mailman/listinfo/zope3-users
 

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: AW: [Zope3-Users] Re: Using svn checkout with zc packages

2007-07-30 Thread Gary Poster


On Jul 30, 2007, at 10:46 AM, Roger Ineichen wrote:


Hi Jeff,


Betreff: Re: [Zope3-Users] Re: Using svn checkout with zc packages

[...]

I feel like I need a training course or consultancy to move to  
buildout,

which requires time and money that we just don't have.


Same belongs to me.

I'm sitting here and have to debug code like:

def foo(self, foo):
  bar = self.getBar(foo)
  return getMultiAdapter(bar, self.request)

and bang I have to get a dev egg for the package
which implements getMultiAdapter just that I can
debug into getMultiAdapter.

I don't know how somebody can say that's a good concept.
For me as a heave *pdb* user it's defently not.

Is there another option wich allows me not to checkout the
half of the Zope trunk as dev eggs for serious debugging?


short term hack: use eggs.  go to your eggs directory and rm all of  
your pyc files.  pdb will then work.


long term: yeah, this needs to be fixed.  Jim's aware of it.  Has to  
do with how eggs are built.  AIUI, fixing it would probably happen in  
setuptools.


Gary

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: AW: [Zope3-Users] Re: Using svn checkout with zc packages

2007-07-30 Thread Benji York

Gary Poster wrote
long term: yeah, this needs to be fixed.  Jim's aware of it.  Has to  
do with how eggs are built.  AIUI, fixing it would probably happen in  
setuptools.


Right, setuptools builds the pycs in a temporary directory and then 
moves them to the final location.  Because the pycs include the full 
path as of the time they were built, they then point to the wrong place. 
 Gary's suggestion forces them to be rebuilt with correct paths.

--
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: AW: [Zope3-Users] Re: Using svn checkout with zc packages

2007-07-30 Thread Philipp von Weitershausen

On 30 Jul 2007, at 16:46 , Roger Ineichen wrote:

Betreff: Re: [Zope3-Users] Re: Using svn checkout with zc packages

[...]

I feel like I need a training course or consultancy to move to  
buildout,

which requires time and money that we just don't have.


Same belongs to me.

I'm sitting here and have to debug code like:

def foo(self, foo):
  bar = self.getBar(foo)
  return getMultiAdapter(bar, self.request)

and bang I have to get a dev egg for the package
which implements getMultiAdapter just that I can
debug into getMultiAdapter.


Martijn and I ran into this issue the other day as well. The quick  
fix (=deleting the outdated .pyc files) has already been described by  
Gary and Benji. I've documented this on my blog [1] now so that  
others will hopefully find it when they Google.


[1] http://www.z3lab.org/sections/blogs/philipp-weitershausen/ 
2007_07_30_pdb-ing-to-eggs


___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


AW: [Zope3-Users] Re: Using svn checkout with zc packages

2007-07-25 Thread Roger Ineichen
Hi Florian

 Betreff: [Zope3-Users] Re: Using svn checkout with zc packages
 
 Florian Lindner wrote:

[...]

 Have you looked at zc.buildout? Checkout the tutorial [1]. 
 Also, pretty much any zope.* or zc.* package's sandbox is set 
 up using buildout these days, providing you with lots of examples.

pretty much any is not allways enough ;-)

Be aware of:

Buildout is experimental and only supported for linux and mac users.

And you could get a lot of work if you use 3-rd party dependencies
and there are no eggs available.

But if you like to have a let's see what we can fix today approach
then eggs are fine today.

I like the buildout concept since I worked with them last week, but 
it's not ready for production in general. At least not for me and
some of my customers windows boxes ;-)

Regards
Roger Ineichen

 [1] http://svn.zope.org/*checkout*/zc.buildout/trunk/doc/tutorial.txt
 
 --
 http://worldcookery.com -- Professional Zope documentation 
 and training
 
 ___
 Zope3-users mailing list
 Zope3-users@zope.org
 http://mail.zope.org/mailman/listinfo/zope3-users
 

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users