[Zope-dev] Re: Zope-Dev digest, Vol 1 #1017 - 12 msgs

2001-04-11 Thread Itai Tavor

Michael R. Bernstein wrote:

>Hello all,
>
>Background
>--
>I am building an Image Archive Zope application using
>ZPatterns. I originally was trying to convert the Photo
>Product to ZPatterns in such a way as to still have it work
>as a normal product, but that turned out to be too complex.
>
>So, I am building the application fresh.
>
>So far, I have a RackImage Python product that subclasses
>from Image and DataSkin which seems to work fine. I can
>create, upload, view  and delete the RackImages.

Michael,

Could I get a copy of this product? I'm trying to create a 
Rack-mountable Image class but I'm having a lot of trouble getting a 
class subclassed from Image and DataSkin to work. Having some working 
code could save me some trouble.

I only need the basic RackImage, without all the later stuff you 
added relating to Renderings.

TIA

Itai
-- 
--
Itai Tavor  -- "Je sautille, donc je suis."--
[EMAIL PROTECTED]--   - Kermit the Frog --
-- --
-- "If you haven't got your health, you haven't got anything"  --


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Using Python script to create ZClass instances

2001-04-11 Thread Bjorn Stabell

Hi there,

Im having problems using Python script to create a ZClass instance from
a ZClass that's inside of another ZClass.  I have this addMyObject
Python script as constructor script for "Scriptable Type Information"
type object (CMF):

## Script (Python) "addMyObject"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=folder, id
##title=
##

folder.Control_Panel.Products.MyProducts.MyObjects.MyObject_add(id)

# folder.manage_addProduct('MyProduct')... doesn't work either

item = getattr(folder, id)

return item

MyObjects is a ZClass that contains MyObject.  The error I get is:

Zope error
Error type AttributeError 
Error value MyObjects

There should be some explanation somewhere how to access resources
inside of Control_Panel, but I fail to find it.  Creating objects is
very confusing and difficult at times...

Bye,
-- 
Bjorn Stabell <[EMAIL PROTECTED]>

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] How do I call an HTMLFile in context provided by apath?

2001-04-11 Thread Itai Tavor

Dieter Maurer wrote:

>Itai Tavor writes:
>  > I have a method that receives a path:
>  > '/MyApp/SomeSpecialist/some_id/edit_html'  and has to call edit_html
>  > in the context of some_id. If edit_html is a DTML Method, I can do
>  > this:
>  >
>  >  obj = REQUEST.traverse(path)
>I would use "restrictedTraverse" instead of "REQUEST.traverse"
>as it uses less magic.

Thanks for the tip... I thought restrictedTraverse is slower because 
it has to do security checks?

>  >  ...
>  >
>  > But when edit_html is an HTMLFile in a Python Product, obj.aq_parent
>  > doesn't work.
>Why not?

It causes this exception:

Error Type: AttributeError
Error Value: edit_htmlaq_parent

>
>This would mean that either your product is not derived
>from ExtensionClass.Base or that "HTMLFile" is not derived
>from "Acquisition.Implicit".

My product inherit does have implicit acquisition. But HTMLFile 
doesn't - that's the whole problem. Replacing HTMLFile with DTMLFile 
solves the problem, as DTMLFile derives from Acquisition.Explicit.

Thanks for pointing me in the right direction.

P.S Now that aq_parent is working... why can't I do absolute_url() on 
DTMLFiles :-(
-- 
--
Itai Tavor  -- "Je sautille, donc je suis."--
[EMAIL PROTECTED]--   - Kermit the Frog --
-- "What he needs now is understanding... and a confederate victory" --
-- Dr. Jacobi, Twin Peaks --


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] [ANNOUNCE] Zope Developer's Guide Preview

2001-04-11 Thread richard

Andy McKay wrote:
> > Amos Latteier wrote:
> > > I'm proud to announce the first preview release of the Zope Developer's
> > > Guide.
> > >
> > >   http://www.zope.org/Documentation/ZDG
> >
> > woot!
> 
> woot?

Sorry, HURRAH!

:)


   Richard

-- 
Richard Jones
[EMAIL PROTECTED]
Senior Software Developer, Bizar Software (www.bizarsoftware.com.au)

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



RE: [Zope-dev] memory leak

2001-04-11 Thread Dieter Maurer

Marco Nova writes:
 > > have you checked the debug page in the control panel and 
 > > noted any refcounts
 > > increasing?
 > 
 > Class  April 10, 2001 9:17 am  April 11, 2001 8:34 am
 > 
 > Products.ParsedXML.DOM.Core.Text  3241  27318  +24077  
 > Products.ParsedXML.DOM.Core.Element   1777  14493  +12716  
 > Products.ParsedXML.DOM.ExpatBuilder.ExpatBuilder  81  1506  +1425  
 > Products.ParsedXML.Printer.PrintVisitor   3  107  +104  
 > Products.ParsedXML.DOM.Core.Document  10  112  +102  
 > 
 > Yes, I've a lot of refcounts leaks.
I do not know "ParsedXML"'s DOM implementation.

However, cycles are quite common for DOM's due to the
cyclic relationship between parent and children.
Unless great care is taken, DOM tree can be highly cyclic
and would therefore not be garbage collectable by Pythons
1.5.2 reference counting garbage collector.


Dieter

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] How do I call an HTMLFile in context provided by a path?

2001-04-11 Thread Dieter Maurer

Itai Tavor writes:
 > I have a method that receives a path: 
 > '/MyApp/SomeSpecialist/some_id/edit_html'  and has to call edit_html 
 > in the context of some_id. If edit_html is a DTML Method, I can do 
 > this:
 > 
 >  obj = REQUEST.traverse(path)
I would use "restrictedTraverse" instead of "REQUEST.traverse"
as it uses less magic.
 >  ...
 > 
 > But when edit_html is an HTMLFile in a Python Product, obj.aq_parent 
 > doesn't work.
Why not?

This would mean that either your product is not derived
from ExtensionClass.Base or that "HTMLFile" is not derived
from "Acquisition.Implicit".


Dieter

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] ActiveState / DC Collaboration

2001-04-11 Thread Jonothan Farr

> Someone with enough knowledge about how Python windows
> installs work and a rudimentary knowledge of WISE should 
> be able to work it out so that the win32 distribution is 
> willing to let you pick which Python to use if it sniffs 
> one (or more) out on the target system. 

What about compiling all the extension modules for the right version of python?

--jfarr



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] memory leak

2001-04-11 Thread Karl Anderson

Dyon Balding <[EMAIL PROTECTED]> writes:

> On Tue, Apr 10, 2001 at 05:27:28PM +0200, Marco Nova wrote:
> > Hello guys,
> > 
> > It seems that I've some memory leak problems and I want to understand where
> > I've to look for.
> > 
> > Scenario:
> > 
> > I've an IIS web server that generates an XML page (taking data from
> > SqlServer);
> > The Zope web server must retrieve the XML page, manage the data and render
> > them in HTML (I cant only apply a XSL stylesheet to XML).
> > 
> > The Facts:
> > 
> > I've written a external method that - using httplib - reads the XML page and
> > return a string that is the raw XML sources, than I've written another
> > external method that use ExpatBuilder of Products.ParsedXML.DOM to parse the
> > XML an generate a list of [(id - {mapping})] which will be accessed with a
> > dtml-in tag, so in the sequence-key I've access to the ID and with
> > sequence-item I can access to the mapping object.

Are you parsing the XML and creating this list from the DOM objects,
and then throwing them away?  Or are you parsing the XML and creating
this list from your pyexpat interface code, and never accessing the
DOM objects?

In either case, it seems like you shouldn't be using ParsedXML's
ExpatBuilder, which is an interface to PyExpat which is made to create
ParsedXML's DOM objects.  You should be using your own PyExpat
interface to parse this information from your XML input, without the
overhead of generating a DOM tree that you're just going to throw
away.  The interface is documented in the XML-SIG topic area on
python.org, and our ExpatBuilder should be a good example on how to
interface with our PyExpat installation - just don't build the DOM if
you don't use it.

Regardless of what you *should* be doing :), or if I'm misreading you,
if you aren't keeping references to the DOM objects being created,
then they should be reclaimed by the GC, and you do seem to have DOM
objects lying around.  I'd like to see your code, is it short enough
to post?  Or you can chuck it into the collector or ParsedXML tracker.

For debugging purporses, I'd suggest simplifying by supplying an XML
string directly, rather than from an external server.

-- 
Karl Anderson  [EMAIL PROTECTED]

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] memory leak

2001-04-11 Thread Karl Anderson

ender <[EMAIL PROTECTED]> writes:

> generally dom objects need to be released to destroy them, doing a del doc, 
> won't do it because of circular ref nature of dom. i'm guessing that you 
> would need to call something akin to releaseNode from pyxml (xml.dom.ext) on 
> the document to release it fully else you're likely to see the behavior 
> you're seeing, namely dom objects staying in memory. 

We aren't using circular refs in our DOM, so we don't have any way to
release a DOM object - losing or deleting the reference should do it.

If this isn't happening when the reference is going away, then this is
either a Zope bug or a ParsedXML bug.  I'd like to make sure that the
ref really is going away, though :)

> a quick browse through the source of ParsedXML doesn't offer any clues on how 
> to release the object (or if its nescessary). its hard to say since 
> acquisition is being used to help with the dom tree.

Acquisition is what we're currently using to avoid circular
references.

-- 
Karl Anderson  [EMAIL PROTECTED]

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] memory leak

2001-04-11 Thread ender

On Wednesday 11 April 2001 03:34, Marco Nova wrote:



>>> This looks like a potential bug in either ParsedXML or the
>>> code you're using
>>> to manipulate the components within ParsedXML.
>>>

>>I can send you the code for the two external method I use, they only need a
>>webserver (that could be zope too) that serve an XML page (I can provide
>> the XML the methods needs) and the bunch of dtml methods I use to show the
>> XML. Anyway I will try to understand what's happening with ParsedXML and
>> my code.
>>
>>> > Products.ParsedXML.DOM.Core.Text  3241
>>>
>>> 27318  +24077
>>>
>>> > Products.ParsedXML.DOM.Core.Element   1777
>>>
>>> 14493  +12716
>>>
>>> > Products.ParsedXML.DOM.ExpatBuilder.ExpatBuilder  81  1506  +1425
>>> > Products.ParsedXML.Printer.PrintVisitor   3  107  +104
>>> > Products.ParsedXML.DOM.Core.Document  10  112  +102
>>> >
>>> > Yes, I've a lot of refcounts leaks.
>>> >

generally dom objects need to be released to destroy them, doing a del doc, 
won't do it because of circular ref nature of dom. i'm guessing that you 
would need to call something akin to releaseNode from pyxml (xml.dom.ext) on 
the document to release it fully else you're likely to see the behavior 
you're seeing, namely dom objects staying in memory. 

a quick browse through the source of ParsedXML doesn't offer any clues on how 
to release the object (or if its nescessary). its hard to say since 
acquisition is being used to help with the dom tree.

i'll chuck into the collector.

cheers

kapil










___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



RE: [Zope-dev] ActiveState / DC Collaboration

2001-04-11 Thread Brian Lloyd

> > I'd be happy to support someone in the effort of fixing
> > this, though I can't commit to getting it done myself.
> > Someone with enough knowledge about how Python windows
> > installs work and a rudimentary knowledge of WISE should
> > be able to work it out so that the win32 distribution is
> > willing to let you pick which Python to use if it sniffs
> > one (or more) out on the target system.
> 
> This would be a great solution, but I dont think I can devote any 
> time to it
> all. Is the WISE installation script available for patching?

Yes - if you install the win32 version you should have a 
'zope2.wse' in the /bin directory of the installation. That 
is actually a copy of the WISE script.


Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.com 



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] ZODBCA questions...

2001-04-11 Thread Chris McDonough

;-)

I think it's been kept out of triage for a while now while we've worked on
getting our Catalog story straight, releasing CMF, getting ZEO to 1.0, and
improved documentation.  Sorry, I forget that folks aren't omniscient, and
make assumptions that people know where DC's priorities are right now.  Good
places to get a sense of this at a high level are the "Zope Roadmap" at
http://dev.zope.org/Resources/ZopeRoadmap.html and the "Zope Directions"
document at http://dev.zope.org/Resources/ZopeDirections.html .  On a more
micro-level, a preliminary list of features planned for the next major
release are at http://dev.zope.org/Resources/zope_240_plan.html .

We're trying to make sense out of the current state of our relational stuff,
thus the database strategy document.  Hopefully we'll be able to commit
resources to it to freshen it up a bit... until it gets onto the roadmap,
however, we're relying (probably too much) on the community to summarize
(and maybe even fix!) the problems in, for example, the current ZODBCDA
implementation.  Concise, repeatable bug reports help a lot.

- C


- Original Message -
From: "Bryan Baszczewski" <[EMAIL PROTECTED]>
To: "'Chris McDonough'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, April 11, 2001 2:27 PM
Subject: RE: [Zope-dev] ZODBCA questions...


> << This is true.  But it's likely the aame reason we dont have an
ecommerce
> module or an XSLT processor or a catalog which allows for easy indexing of
> pdfs or our own object-relational mapping story, or, or, or, or. >>
>
> It would be naive of me to assume what reason that is, but I just wondered
> why ZODBC DA was left in it's current (somewhat dated, somewhat
stale...but
> like a old chocolate chip cookie, you'll still eat it) state.
>
>
> ___
> Zope-Dev maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope )
>


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] ActiveState / DC Collaboration

2001-04-11 Thread Andy McKay

> Right now, the windows distribution is really geared toward
> the crowd that really doesn't know and doesn't care about
> Python distributions, etc. It is intended to "just work"
> in a way that doesn't require the user to know anything
> and that doesn't interfere with any other Python things
> that may or may not be on their system.

True.

> I'd be happy to support someone in the effort of fixing
> this, though I can't commit to getting it done myself.
> Someone with enough knowledge about how Python windows
> installs work and a rudimentary knowledge of WISE should
> be able to work it out so that the win32 distribution is
> willing to let you pick which Python to use if it sniffs
> one (or more) out on the target system.

This would be a great solution, but I dont think I can devote any time to it
all. Is the WISE installation script available for patching?

The hacks I do on windows now to get to read the right python are annoying
and I have at least two versions everywhere. I know you're busy so just
having 2.x will make me very happy.

Cheers.
--
  Andy McKay.


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



RE: [Zope-dev] ActiveState / DC Collaboration

2001-04-11 Thread Brian Lloyd

> Will the python you distribute for windows be bare bones (without header
> files like the current version) ?

I had assumed so, though if someone cares enough to champion 
the effort, that could be changed.

Right now, the windows distribution is really geared toward 
the crowd that really doesn't know and doesn't care about 
Python distributions, etc. It is intended to "just work" 
in a way that doesn't require the user to know anything 
and that doesn't interfere with any other Python things 
that may or may not be on their system.

The downside, of course, is that we currently don't have 
an easy way (at least not as easy as the no-brainer dist)
for people who do know and do care about Python installations to 
set things up to work with their current Python.

I'd be happy to support someone in the effort of fixing 
this, though I can't commit to getting it done myself. 
Someone with enough knowledge about how Python windows
installs work and a rudimentary knowledge of WISE should 
be able to work it out so that the win32 distribution is 
willing to let you pick which Python to use if it sniffs 
one (or more) out on the target system. 


Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.com 




___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Ann: ZPT and TAL 1.1.0 released

2001-04-11 Thread Evan Simpson

Several bug fixes and a few minor features later, ZPT and TAL 1.1.0 are
ready.

See http://dev.zope.org/Wikis/DevSite/Projects/ZPT for more information.

Cheers,

Evan @ digicool


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



RE: [Zope-dev] ZODBCA questions...

2001-04-11 Thread Bryan Baszczewski

<< This is true.  But it's likely the aame reason we dont have an ecommerce
module or an XSLT processor or a catalog which allows for easy indexing of
pdfs or our own object-relational mapping story, or, or, or, or. >>

It would be naive of me to assume what reason that is, but I just wondered
why ZODBC DA was left in it's current (somewhat dated, somewhat stale...but
like a old chocolate chip cookie, you'll still eat it) state.


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Tracking memory leak

2001-04-11 Thread Andy McKay

Heres the graphs of Zopes memory usage, if that interests you... the drops
are the restarts.
--
  Andy McKay.

 memoryused-freebytes-day.gif


Re: [Zope-dev] ActiveState / DC Collaboration

2001-04-11 Thread Andy McKay

Will the python you distribute for windows be bare bones (without header
files like the current version) ?

Cheers.
--
  Andy McKay.


- Original Message -
From: "Brian Lloyd" <[EMAIL PROTECTED]>
To: "Eric Roby" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, April 11, 2001 11:02 AM
Subject: RE: [Zope-dev] ActiveState / DC Collaboration


> > Will there be an effort to make Zope 2.3.x play with ActivePython
> > 2.0 or is
> > this a longer range goal ... Zope 3.x ???  I know there are alot of
other
> > irons in the fire but I am just trying to make some design
> > decisions.
>
> The next Zope feature release (2.4.0) will be based on and
> require Python 2.1. So AFAIK, you should be able to take
> advantage of ActivePython2.1 with Zope 2.4.
>
> Brian Lloyd[EMAIL PROTECTED]
> Software Engineer  540.371.6909
> Digital Creations  http://www.digicool.com
>
>
>
>
>
> ___
> Zope-Dev maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope )
>


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] PLEASE trim cited text!

2001-04-11 Thread Andy McKay

Sorry I normally try to do that...

Cheers.
--
  Andy McKay.


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



RE: [Zope-dev] ActiveState / DC Collaboration

2001-04-11 Thread Brian Lloyd

> Will there be an effort to make Zope 2.3.x play with ActivePython 
> 2.0 or is
> this a longer range goal ... Zope 3.x ???  I know there are alot of other
> irons in the fire but I am just trying to make some design 
> decisions.

The next Zope feature release (2.4.0) will be based on and 
require Python 2.1. So AFAIK, you should be able to take 
advantage of ActivePython2.1 with Zope 2.4.

Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.com 





___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] PLEASE trim cited text!

2001-04-11 Thread Ken Manheimer

I've been watching this for a few days now, holding back, but it's
**awful**!  *Please* take a few moments to extract relevant portions from
cited text, definitely do *not* include the whole thing!  (There is no
excuse for multiple copies of the footer, usually not an excuse for a
single copy.)  For those of us that read via digest mode, at least in some
interfaces, it makes increasingly hard to find messages.  I'm taking the
liberty to include one example just to demonstrate the ridiculous length
this has gone.

Ken Manheimer
[EMAIL PROTECTED]

> From: "Andy McKay" <[EMAIL PROTECTED]>
> To: "Chris McDonough" <[EMAIL PROTECTED]>,
>"Dyon Balding" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Subject: Re: [Zope-dev] Tracking memory leak
> Date: Wed, 11 Apr 2001 09:35:16 -0700
> 
> If you're talking about ZSQLMethod options then its at the default which is
> 
> Maximum results to cache 100
> Maximum time (sec) to cache 0
> 
> Does that mean the first 100 results are being cached for ever? That might
> do it...
> 
> Cheers.
> --
>   Andy McKay.
> 
> 
> - Original Message -
> From: "Chris McDonough" <[EMAIL PROTECTED]>
> To: "Andy McKay" <[EMAIL PROTECTED]>; "Dyon Balding"
> <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Wednesday, April 11, 2001 8:51 AM
> Subject: Re: [Zope-dev] Tracking memory leak
> 
> 
> > Andy,
> >
> > Jim just brought something up... do you have database result caching
> turned
> > on?  If so, what is your number of max results to cache and max time?
> >
> >
> > - Original Message -
> > From: "Andy McKay" <[EMAIL PROTECTED]>
> > To: "Dyon Balding" <[EMAIL PROTECTED]>
> > Cc: <[EMAIL PROTECTED]>
> > Sent: Tuesday, April 10, 2001 7:55 PM
> > Subject: Re: [Zope-dev] Tracking memory leak
> >
> >
> > > Im not convinced its just SQLAlias though, I commented out the SQLAlias
> > > creations and I was still getting the other object refcounts shooting
> > up...
> > >
> > > Cheers.
> > > --
> > >   Andy McKay.
> > >
> > >
> > > - Original Message -
> > > From: "Dyon Balding" <[EMAIL PROTECTED]>
> > > To: "Andy McKay" <[EMAIL PROTECTED]>
> > > Cc: <[EMAIL PROTECTED]>
> > > Sent: Tuesday, April 10, 2001 4:46 PM
> > > Subject: Re: [Zope-dev] Tracking memory leak
> > >
> > >
> > > > i was one of the people that ran into big problems with that previous
> > bug.
> > > > if that is the one you are coming across, then the problem occurs when
> > you
> > > > try to access the data in a column using a dtml-var with a different
> > case
> > > > to what it is stored in your database.
> > > >
> > > > eg. if you have a column called ID in your database, and do a
>  > > id>,
> > > > then prior to the bug fix, you would see refcount increases for
> SQLAlias
> > > (and
> > > > possibly some other types as well - can't remember too clearly).
> > > >
> > > > hope that helps you track it down
> > > > -d
> > > >
> > > >
> > > > On Tue, Apr 10, 2001 at 10:25:09AM -0700, Andy McKay wrote:
> > > > > I have the impression its not SQLAlias thats the problem since im
> also
> > > > > getting Record.Record, Acquistion.ImplicitAcquirerWrapper and
> > Extension
> > > > > class floating around. I just commented out the lines that create
> > > SQLAlias
> > > > > instances and that was fine but...
> > > > >
> > > > > Sorry you're getting bugged here since you answered my first post.
> > > > > --
> > > > >   Andy McKay.
> > > > >
> > > > >
> > > > > - Original Message -
> > > > > From: "Chris McDonough" <[EMAIL PROTECTED]>
> > > > > To: "Andy McKay" <[EMAIL PROTECTED]>
> > > > > Cc: <[EMAIL PROTECTED]>
> > > > > Sent: Tuesday, April 10, 2001 9:59 AM
> > > > > Subject: Re: [Zope-dev] Tracking memory leak
> > > > >
> > > > >
> > > > > > I believe it handles the translation of the sql fields from upper
> to
> > > lower
> > > > > > and vice versa.  More than that, I'm uncertain.
> > > > > >
> > > > > >
> > > > > > - Original Message -
> > > > > > From: "Andy McKay" <[EMAIL PROTECTED]>
> > > > > > To: "Andy McKay" <[EMAIL PROTECTED]>; "Chris McDonough"
> > > > > > <[EMAIL PROTECTED]>
> > > > > > Cc: <[EMAIL PROTECTED]>
> > > > > > Sent: Tuesday, April 10, 2001 1:01 PM
> > > > > > Subject: Re: [Zope-dev] Tracking memory leak
> > > > > >
> > > > > >
> > > > > > > Any chance you could clarify what SQLAlias does, ive definitely
> > got
> > > the
> > > > > > case
> > > > > > > where some sql queries (and the way they are handled / used)
> > causes
> > > an
> > > > > > > increase in the SQLAlias count and some dont. Id like to find
> the
> > > quick
> > > > > > work
> > > > > > > around so I can get around to testing ZmxODBC
> > > > > > >
> > > > > > > Cheers.
> > > > > > > --
> > > > > > >   Andy McKay.
> > > > > > >
> > > > > > >
> > > > > > > - Original Message -
> > > > > > > From: "Andy McKay" <[EMAIL PROTECTED]>
> > > > > > > To: "Chris McDonough" <[EMAIL PROTECTED]>
> > > > > > > Cc: <[EMAIL PROTECTED]>
> > > > > > > Sent: Tuesday, April 10, 2001 8:55 AM
> > > > > > > Subjec

Re: [Zope-dev] ZODBCA questions...

2001-04-11 Thread Chris McDonough

> You may be interested in recent developments:
>
http://www.zope.org/Wikis/DevSite/Proposals/DatabaseStategy/HistoricalRevisi
> ons/827.44494.7026.26188
>
> I dont know why the DC folks havent stayed on top of ODBC.  They should.
> Plenty of Zope/SQL Server users.

This is true.  But it's likely the aame reason we dont have an ecommerce
module or an XSLT processor or a catalog which allows for easy indexing of
pdfs or our own object-relational mapping story, or, or, or, or.

Patches accepted ;-),

- C



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



RE: [Zope-dev] ZODBCA questions...

2001-04-11 Thread Bryan Baszczewski

You may be interested in recent developments:
http://www.zope.org/Wikis/DevSite/Proposals/DatabaseStategy/HistoricalRevisi
ons/827.44494.7026.26188

I dont know why the DC folks havent stayed on top of ODBC.  They should.
Plenty of Zope/SQL Server users.


-Original Message-
From: Mark Pratt [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 10, 2001 11:46 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [Zope-dev] ZODBCA questions...


Hi Andy,

I would venture a guess that your ZODBC problems have to do
with the DA being Level 1.

visit the somewhat dated URL:

http://www.zope.org/Members/petrilli/DARoadmap

for details on what Level 1 through 3 represent.

For an upcoming project we will need to work with MS SQL
server as well so I've been discussing with Paul a bit about what
it would take to fund a L3 DA. You might want to send him an
email.

Regards,

Mark

--
mark pratt  (managing director)  [EMAIL PROTECTED]
beehive elektronische medien GmbH   http://www.beehive.de
phone: +49 30 847-82 0  fax: +49 30 847-82 299



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Tracking memory leak

2001-04-11 Thread Chris McDonough

No, I think this means that caching is turned off entirely.  Back to the
drawing board.

- C

- Original Message -
From: "Andy McKay" <[EMAIL PROTECTED]>
To: "Chris McDonough" <[EMAIL PROTECTED]>; "Dyon Balding"
<[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, April 11, 2001 12:35 PM
Subject: Re: [Zope-dev] Tracking memory leak


> If you're talking about ZSQLMethod options then its at the default which
is
>
> Maximum results to cache 100
> Maximum time (sec) to cache 0
>
> Does that mean the first 100 results are being cached for ever? That might
> do it...
>
> Cheers.
> --
>   Andy McKay.
>
>
> - Original Message -
> From: "Chris McDonough" <[EMAIL PROTECTED]>
> To: "Andy McKay" <[EMAIL PROTECTED]>; "Dyon Balding"
> <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Wednesday, April 11, 2001 8:51 AM
> Subject: Re: [Zope-dev] Tracking memory leak
>
>
> > Andy,
> >
> > Jim just brought something up... do you have database result caching
> turned
> > on?  If so, what is your number of max results to cache and max time?
> >
> >
> > - Original Message -
> > From: "Andy McKay" <[EMAIL PROTECTED]>
> > To: "Dyon Balding" <[EMAIL PROTECTED]>
> > Cc: <[EMAIL PROTECTED]>
> > Sent: Tuesday, April 10, 2001 7:55 PM
> > Subject: Re: [Zope-dev] Tracking memory leak
> >
> >
> > > Im not convinced its just SQLAlias though, I commented out the
SQLAlias
> > > creations and I was still getting the other object refcounts shooting
> > up...
> > >
> > > Cheers.
> > > --
> > >   Andy McKay.
> > >
> > >
> > > - Original Message -
> > > From: "Dyon Balding" <[EMAIL PROTECTED]>
> > > To: "Andy McKay" <[EMAIL PROTECTED]>
> > > Cc: <[EMAIL PROTECTED]>
> > > Sent: Tuesday, April 10, 2001 4:46 PM
> > > Subject: Re: [Zope-dev] Tracking memory leak
> > >
> > >
> > > > i was one of the people that ran into big problems with that
previous
> > bug.
> > > > if that is the one you are coming across, then the problem occurs
when
> > you
> > > > try to access the data in a column using a dtml-var with a different
> > case
> > > > to what it is stored in your database.
> > > >
> > > > eg. if you have a column called ID in your database, and do a
>  > > id>,
> > > > then prior to the bug fix, you would see refcount increases for
> SQLAlias
> > > (and
> > > > possibly some other types as well - can't remember too clearly).
> > > >
> > > > hope that helps you track it down
> > > > -d
> > > >
> > > >
> > > > On Tue, Apr 10, 2001 at 10:25:09AM -0700, Andy McKay wrote:
> > > > > I have the impression its not SQLAlias thats the problem since im
> also
> > > > > getting Record.Record, Acquistion.ImplicitAcquirerWrapper and
> > Extension
> > > > > class floating around. I just commented out the lines that create
> > > SQLAlias
> > > > > instances and that was fine but...
> > > > >
> > > > > Sorry you're getting bugged here since you answered my first post.
> > > > > --
> > > > >   Andy McKay.
> > > > >
> > > > >
> > > > > - Original Message -
> > > > > From: "Chris McDonough" <[EMAIL PROTECTED]>
> > > > > To: "Andy McKay" <[EMAIL PROTECTED]>
> > > > > Cc: <[EMAIL PROTECTED]>
> > > > > Sent: Tuesday, April 10, 2001 9:59 AM
> > > > > Subject: Re: [Zope-dev] Tracking memory leak
> > > > >
> > > > >
> > > > > > I believe it handles the translation of the sql fields from
upper
> to
> > > lower
> > > > > > and vice versa.  More than that, I'm uncertain.
> > > > > >
> > > > > >
> > > > > > - Original Message -
> > > > > > From: "Andy McKay" <[EMAIL PROTECTED]>
> > > > > > To: "Andy McKay" <[EMAIL PROTECTED]>; "Chris McDonough"
> > > > > > <[EMAIL PROTECTED]>
> > > > > > Cc: <[EMAIL PROTECTED]>
> > > > > > Sent: Tuesday, April 10, 2001 1:01 PM
> > > > > > Subject: Re: [Zope-dev] Tracking memory leak
> > > > > >
> > > > > >
> > > > > > > Any chance you could clarify what SQLAlias does, ive
definitely
> > got
> > > the
> > > > > > case
> > > > > > > where some sql queries (and the way they are handled / used)
> > causes
> > > an
> > > > > > > increase in the SQLAlias count and some dont. Id like to find
> the
> > > quick
> > > > > > work
> > > > > > > around so I can get around to testing ZmxODBC
> > > > > > >
> > > > > > > Cheers.
> > > > > > > --
> > > > > > >   Andy McKay.
> > > > > > >
> > > > > > >
> > > > > > > - Original Message -
> > > > > > > From: "Andy McKay" <[EMAIL PROTECTED]>
> > > > > > > To: "Chris McDonough" <[EMAIL PROTECTED]>
> > > > > > > Cc: <[EMAIL PROTECTED]>
> > > > > > > Sent: Tuesday, April 10, 2001 8:55 AM
> > > > > > > Subject: Re: [Zope-dev] Tracking memory leak
> > > > > > >
> > > > > > >
> > > > > > > > As far as I can tell those changes are still in. Do I
> understand
> > > them?
> > > > > > Not
> > > > > > > > really.
> > > > > > > > --
> > > > > > > >   Andy McKay.
> > > > > > > >
> > > > > > > >
> > > > > > > > - Original Message -
> > > > > > > > From: "Chris McDonough" <[EMAIL PROTECTED]>
> > > > > > > > To: "Andy McKay" <[EMAIL PROTECTED]>
> > > > 

Re: [Zope-dev] [ANNOUNCE] Zope Developer's Guide Preview

2001-04-11 Thread Andy McKay

> Amos Latteier wrote:
> > I'm proud to announce the first preview release of the Zope Developer's
> > Guide.
> > 
> >   http://www.zope.org/Documentation/ZDG
> 
> woot!


woot?
--
  Andy McKay.


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Tracking memory leak

2001-04-11 Thread Andy McKay

If you're talking about ZSQLMethod options then its at the default which is

Maximum results to cache 100
Maximum time (sec) to cache 0

Does that mean the first 100 results are being cached for ever? That might
do it...

Cheers.
--
  Andy McKay.


- Original Message -
From: "Chris McDonough" <[EMAIL PROTECTED]>
To: "Andy McKay" <[EMAIL PROTECTED]>; "Dyon Balding"
<[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, April 11, 2001 8:51 AM
Subject: Re: [Zope-dev] Tracking memory leak


> Andy,
>
> Jim just brought something up... do you have database result caching
turned
> on?  If so, what is your number of max results to cache and max time?
>
>
> - Original Message -
> From: "Andy McKay" <[EMAIL PROTECTED]>
> To: "Dyon Balding" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Tuesday, April 10, 2001 7:55 PM
> Subject: Re: [Zope-dev] Tracking memory leak
>
>
> > Im not convinced its just SQLAlias though, I commented out the SQLAlias
> > creations and I was still getting the other object refcounts shooting
> up...
> >
> > Cheers.
> > --
> >   Andy McKay.
> >
> >
> > - Original Message -
> > From: "Dyon Balding" <[EMAIL PROTECTED]>
> > To: "Andy McKay" <[EMAIL PROTECTED]>
> > Cc: <[EMAIL PROTECTED]>
> > Sent: Tuesday, April 10, 2001 4:46 PM
> > Subject: Re: [Zope-dev] Tracking memory leak
> >
> >
> > > i was one of the people that ran into big problems with that previous
> bug.
> > > if that is the one you are coming across, then the problem occurs when
> you
> > > try to access the data in a column using a dtml-var with a different
> case
> > > to what it is stored in your database.
> > >
> > > eg. if you have a column called ID in your database, and do a
 > id>,
> > > then prior to the bug fix, you would see refcount increases for
SQLAlias
> > (and
> > > possibly some other types as well - can't remember too clearly).
> > >
> > > hope that helps you track it down
> > > -d
> > >
> > >
> > > On Tue, Apr 10, 2001 at 10:25:09AM -0700, Andy McKay wrote:
> > > > I have the impression its not SQLAlias thats the problem since im
also
> > > > getting Record.Record, Acquistion.ImplicitAcquirerWrapper and
> Extension
> > > > class floating around. I just commented out the lines that create
> > SQLAlias
> > > > instances and that was fine but...
> > > >
> > > > Sorry you're getting bugged here since you answered my first post.
> > > > --
> > > >   Andy McKay.
> > > >
> > > >
> > > > - Original Message -
> > > > From: "Chris McDonough" <[EMAIL PROTECTED]>
> > > > To: "Andy McKay" <[EMAIL PROTECTED]>
> > > > Cc: <[EMAIL PROTECTED]>
> > > > Sent: Tuesday, April 10, 2001 9:59 AM
> > > > Subject: Re: [Zope-dev] Tracking memory leak
> > > >
> > > >
> > > > > I believe it handles the translation of the sql fields from upper
to
> > lower
> > > > > and vice versa.  More than that, I'm uncertain.
> > > > >
> > > > >
> > > > > - Original Message -
> > > > > From: "Andy McKay" <[EMAIL PROTECTED]>
> > > > > To: "Andy McKay" <[EMAIL PROTECTED]>; "Chris McDonough"
> > > > > <[EMAIL PROTECTED]>
> > > > > Cc: <[EMAIL PROTECTED]>
> > > > > Sent: Tuesday, April 10, 2001 1:01 PM
> > > > > Subject: Re: [Zope-dev] Tracking memory leak
> > > > >
> > > > >
> > > > > > Any chance you could clarify what SQLAlias does, ive definitely
> got
> > the
> > > > > case
> > > > > > where some sql queries (and the way they are handled / used)
> causes
> > an
> > > > > > increase in the SQLAlias count and some dont. Id like to find
the
> > quick
> > > > > work
> > > > > > around so I can get around to testing ZmxODBC
> > > > > >
> > > > > > Cheers.
> > > > > > --
> > > > > >   Andy McKay.
> > > > > >
> > > > > >
> > > > > > - Original Message -
> > > > > > From: "Andy McKay" <[EMAIL PROTECTED]>
> > > > > > To: "Chris McDonough" <[EMAIL PROTECTED]>
> > > > > > Cc: <[EMAIL PROTECTED]>
> > > > > > Sent: Tuesday, April 10, 2001 8:55 AM
> > > > > > Subject: Re: [Zope-dev] Tracking memory leak
> > > > > >
> > > > > >
> > > > > > > As far as I can tell those changes are still in. Do I
understand
> > them?
> > > > > Not
> > > > > > > really.
> > > > > > > --
> > > > > > >   Andy McKay.
> > > > > > >
> > > > > > >
> > > > > > > - Original Message -
> > > > > > > From: "Chris McDonough" <[EMAIL PROTECTED]>
> > > > > > > To: "Andy McKay" <[EMAIL PROTECTED]>
> > > > > > > Cc: <[EMAIL PROTECTED]>
> > > > > > > Sent: Tuesday, April 10, 2001 8:37 AM
> > > > > > > Subject: Re: [Zope-dev] Tracking memory leak
> > > > > > >
> > > > > > >
> > > > > > > > That's it.
> > > > > > > >
> > > > > > > > - Original Message -
> > > > > > > > From: "Andy McKay" <[EMAIL PROTECTED]>
> > > > > > > > To: "Chris McDonough" <[EMAIL PROTECTED]>
> > > > > > > > Cc: <[EMAIL PROTECTED]>
> > > > > > > > Sent: Tuesday, April 10, 2001 11:36 AM
> > > > > > > > Subject: Re: [Zope-dev] Tracking memory leak
> > > > > > > >
> > > > > > > >
> > > > > > > > > This one?
> > > > > > > > >
> > > > > > > > > - SQLAlias ob

Re: [Zope-dev] memory leak

2001-04-11 Thread Chris McDonough

The bugreport won't do us as much good if we need to set up an elaborate
testing environment... it'd be preferable if you could break it down enough
to make it happen in a single external method or pythonscript that doesn't
rely on external webservers or databases, or what-have-you... but we'll take
whatever you've got!

- C

- Original Message -
From: "Marco Nova" <[EMAIL PROTECTED]>
To: "'Chris McDonough'" <[EMAIL PROTECTED]>
Cc: "Zope-Dev (E-mail)" <[EMAIL PROTECTED]>
Sent: Wednesday, April 11, 2001 6:34 AM
Subject: RE: [Zope-dev] memory leak


> -Original Message-
> From: Chris McDonough [mailto:[EMAIL PROTECTED]]
> Sent: mercoledì 11 aprile 2001 9.04
> To: Marco Nova; Zope-Dev (E-mail)
> Subject: Re: [Zope-dev] memory leak
>
> This looks like a potential bug in either ParsedXML or the
> code you're using
> to manipulate the components within ParsedXML.
>
> We'd like to find out!  ;-)  Do you think you can file a
> collector report
> with enough information in it to reproduce this behavior?

I can send you the code for the two external method I use, they only need a
webserver (that could be zope too) that serve an XML page (I can provide the
XML the methods needs) and the bunch of dtml methods I use to show the XML.
Anyway I will try to understand what's happening with ParsedXML and my code.

- mn

>
> - Original Message -
> From: "Marco Nova" <[EMAIL PROTECTED]>
> To: "Zope-Dev (E-mail)" <[EMAIL PROTECTED]>
> Sent: Wednesday, April 11, 2001 2:29 AM
> Subject: RE: [Zope-dev] memory leak
>
>
> > > have you checked the debug page in the control panel and
> > > noted any refcounts
> > > increasing?
> >
> > Class  April 10, 2001 9:17 am  April 11, 2001 8:34 am
> >
> > Products.ParsedXML.DOM.Core.Text  3241
> 27318  +24077
> > Products.ParsedXML.DOM.Core.Element   1777
> 14493  +12716
> > Products.ParsedXML.DOM.ExpatBuilder.ExpatBuilder  81  1506  +1425
> > Products.ParsedXML.Printer.PrintVisitor   3  107  +104
> > Products.ParsedXML.DOM.Core.Document  10  112  +102
> >
> > Yes, I've a lot of refcounts leaks.
> >
> > > any chance that this is the same problem that andy is running
> > > into (read his
> > > posts above)?
> >
> > I dunno because of my very lack of knowledge of Zope.
> > All of these refcounts leaks means that the Product is
> doing something
> wrong
> > or that I'm using in the wrong manner ?
> >
> > - mn
> >
> > >
> > > -d
> > >
> > > On Tue, Apr 10, 2001 at 05:27:28PM +0200, Marco Nova wrote:
> > > > Hello guys,
> > > >
> > > > It seems that I've some memory leak problems and I want to
> > > understand where
> > > > I've to look for.
> > > >
> > > > Scenario:
> > > >
> > > > I've an IIS web server that generates an XML page
> (taking data from
> > > > SqlServer);
> > > > The Zope web server must retrieve the XML page, manage the
> > > data and render
> > > > them in HTML (I cant only apply a XSL stylesheet to XML).
> > > >
> > > > The Facts:
> > > >
> > > > I've written a external method that - using httplib - reads
> > > the XML page and
> > > > return a string that is the raw XML sources, than I've
> > > written another
> > > > external method that use ExpatBuilder of
> > > Products.ParsedXML.DOM to parse the
> > > > XML an generate a list of [(id - {mapping})] which will be
> > > accessed with a
> > > > dtml-in tag, so in the sequence-key I've access to the
> ID and with
> > > > sequence-item I can access to the mapping object.
> > > > I'm using latest version of ZOPE (2.3.1, the binary one
> > > with Python 1.5.2)
> > > > and ParsedXML.
> > > >
> > > > The Problem:
> > > >
> > > > It seems that every time the method retrieve the page or
> > > parse the XML I
> > > > loose a bunch of kilobytes. Because the methods are very
> > > simple (100 lines
> > > > of code in total) and because I didn't create any class for
> > > handling this
> > > > workflow I can't understand where I can loose bytes.
> > > >
> > > > The Questions:
> > > >
> > > > Is the list generated for the dtml-in tag freed
> > > automatically by ZOPE ?
> > > > Is there a Garbage Collector somewhere that must be activated ?
> > > > Should I avoid the use of the ExpatBuilder for XML processing ?
> > > >
> > > > Thanks for listening my newbies questions.
> > > >
> > > >
> > > > Best Regards,
> > > >
> > > > - mn
> > > >
> > > > ___
> > > > Zope-Dev maillist  -  [EMAIL PROTECTED]
> > > > http://lists.zope.org/mailman/listinfo/zope-dev
> > > > **  No cross posts or HTML encoding!  **
> > > > (Related lists -
> > > >  http://lists.zope.org/mailman/listinfo/zope-announce
> > > >  http://lists.zope.org/mailman/listinfo/zope )
> > >
> > > --
> > > Dyon Balding <[EMAIL PROTECTED]>
> > >
> >
> > ___
> > Zope-Dev maillist  -  [EMAIL PROTECTED]
> > http://lists.zope.org/mailman/listinfo/zope-dev
> > **  No cross posts or HTML encoding!  **
> > (Related lists -
> >  http://lists.z

Re: [Zope-dev] Tracking memory leak

2001-04-11 Thread Chris McDonough

Andy,

Jim just brought something up... do you have database result caching turned
on?  If so, what is your number of max results to cache and max time?


- Original Message -
From: "Andy McKay" <[EMAIL PROTECTED]>
To: "Dyon Balding" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, April 10, 2001 7:55 PM
Subject: Re: [Zope-dev] Tracking memory leak


> Im not convinced its just SQLAlias though, I commented out the SQLAlias
> creations and I was still getting the other object refcounts shooting
up...
>
> Cheers.
> --
>   Andy McKay.
>
>
> - Original Message -
> From: "Dyon Balding" <[EMAIL PROTECTED]>
> To: "Andy McKay" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Tuesday, April 10, 2001 4:46 PM
> Subject: Re: [Zope-dev] Tracking memory leak
>
>
> > i was one of the people that ran into big problems with that previous
bug.
> > if that is the one you are coming across, then the problem occurs when
you
> > try to access the data in a column using a dtml-var with a different
case
> > to what it is stored in your database.
> >
> > eg. if you have a column called ID in your database, and do a  id>,
> > then prior to the bug fix, you would see refcount increases for SQLAlias
> (and
> > possibly some other types as well - can't remember too clearly).
> >
> > hope that helps you track it down
> > -d
> >
> >
> > On Tue, Apr 10, 2001 at 10:25:09AM -0700, Andy McKay wrote:
> > > I have the impression its not SQLAlias thats the problem since im also
> > > getting Record.Record, Acquistion.ImplicitAcquirerWrapper and
Extension
> > > class floating around. I just commented out the lines that create
> SQLAlias
> > > instances and that was fine but...
> > >
> > > Sorry you're getting bugged here since you answered my first post.
> > > --
> > >   Andy McKay.
> > >
> > >
> > > - Original Message -
> > > From: "Chris McDonough" <[EMAIL PROTECTED]>
> > > To: "Andy McKay" <[EMAIL PROTECTED]>
> > > Cc: <[EMAIL PROTECTED]>
> > > Sent: Tuesday, April 10, 2001 9:59 AM
> > > Subject: Re: [Zope-dev] Tracking memory leak
> > >
> > >
> > > > I believe it handles the translation of the sql fields from upper to
> lower
> > > > and vice versa.  More than that, I'm uncertain.
> > > >
> > > >
> > > > - Original Message -
> > > > From: "Andy McKay" <[EMAIL PROTECTED]>
> > > > To: "Andy McKay" <[EMAIL PROTECTED]>; "Chris McDonough"
> > > > <[EMAIL PROTECTED]>
> > > > Cc: <[EMAIL PROTECTED]>
> > > > Sent: Tuesday, April 10, 2001 1:01 PM
> > > > Subject: Re: [Zope-dev] Tracking memory leak
> > > >
> > > >
> > > > > Any chance you could clarify what SQLAlias does, ive definitely
got
> the
> > > > case
> > > > > where some sql queries (and the way they are handled / used)
causes
> an
> > > > > increase in the SQLAlias count and some dont. Id like to find the
> quick
> > > > work
> > > > > around so I can get around to testing ZmxODBC
> > > > >
> > > > > Cheers.
> > > > > --
> > > > >   Andy McKay.
> > > > >
> > > > >
> > > > > - Original Message -
> > > > > From: "Andy McKay" <[EMAIL PROTECTED]>
> > > > > To: "Chris McDonough" <[EMAIL PROTECTED]>
> > > > > Cc: <[EMAIL PROTECTED]>
> > > > > Sent: Tuesday, April 10, 2001 8:55 AM
> > > > > Subject: Re: [Zope-dev] Tracking memory leak
> > > > >
> > > > >
> > > > > > As far as I can tell those changes are still in. Do I understand
> them?
> > > > Not
> > > > > > really.
> > > > > > --
> > > > > >   Andy McKay.
> > > > > >
> > > > > >
> > > > > > - Original Message -
> > > > > > From: "Chris McDonough" <[EMAIL PROTECTED]>
> > > > > > To: "Andy McKay" <[EMAIL PROTECTED]>
> > > > > > Cc: <[EMAIL PROTECTED]>
> > > > > > Sent: Tuesday, April 10, 2001 8:37 AM
> > > > > > Subject: Re: [Zope-dev] Tracking memory leak
> > > > > >
> > > > > >
> > > > > > > That's it.
> > > > > > >
> > > > > > > - Original Message -
> > > > > > > From: "Andy McKay" <[EMAIL PROTECTED]>
> > > > > > > To: "Chris McDonough" <[EMAIL PROTECTED]>
> > > > > > > Cc: <[EMAIL PROTECTED]>
> > > > > > > Sent: Tuesday, April 10, 2001 11:36 AM
> > > > > > > Subject: Re: [Zope-dev] Tracking memory leak
> > > > > > >
> > > > > > >
> > > > > > > > This one?
> > > > > > > >
> > > > > > > > - SQLAlias objects were leaking when a database
column
> was
> > > > > > > >   accessed via an aliased name. This was tracked
down
> to a
> > > > > > > >   subtle bug in ExtensionClass.
> > > > > > > >
> > > > > > > > Cheers.
> > > > > > > > --
> > > > > > > >   Andy McKay.
> > > > > > > >
> > > > > > > >
> > > > > > > > - Original Message -
> > > > > > > > From: "Chris McDonough" <[EMAIL PROTECTED]>
> > > > > > > > To: "Andy McKay" <[EMAIL PROTECTED]>
> > > > > > > > Cc: <[EMAIL PROTECTED]>
> > > > > > > > Sent: Tuesday, April 10, 2001 8:29 AM
> > > > > > > > Subject: Re: [Zope-dev] Tracking memory leak
> > > > > > > >
> > > > > > > >
> > > > > > > > > This sounds like a bug that was fixed in 2.3.0 or
earlier...
> I
> > > > hope
> > > > > it
> > > > > > >

RE: [Zope-dev] memory leak

2001-04-11 Thread Marco Nova

> -Original Message-
> From: Chris McDonough [mailto:[EMAIL PROTECTED]]
> Sent: mercoledì 11 aprile 2001 9.04
> To: Marco Nova; Zope-Dev (E-mail)
> Subject: Re: [Zope-dev] memory leak
>
> This looks like a potential bug in either ParsedXML or the 
> code you're using
> to manipulate the components within ParsedXML.
> 
> We'd like to find out!  ;-)  Do you think you can file a 
> collector report
> with enough information in it to reproduce this behavior?

I can send you the code for the two external method I use, they only need a
webserver (that could be zope too) that serve an XML page (I can provide the
XML the methods needs) and the bunch of dtml methods I use to show the XML.
Anyway I will try to understand what's happening with ParsedXML and my code.

- mn

> 
> - Original Message -
> From: "Marco Nova" <[EMAIL PROTECTED]>
> To: "Zope-Dev (E-mail)" <[EMAIL PROTECTED]>
> Sent: Wednesday, April 11, 2001 2:29 AM
> Subject: RE: [Zope-dev] memory leak
> 
> 
> > > have you checked the debug page in the control panel and
> > > noted any refcounts
> > > increasing?
> >
> > Class  April 10, 2001 9:17 am  April 11, 2001 8:34 am
> >
> > Products.ParsedXML.DOM.Core.Text  3241  
> 27318  +24077
> > Products.ParsedXML.DOM.Core.Element   1777  
> 14493  +12716
> > Products.ParsedXML.DOM.ExpatBuilder.ExpatBuilder  81  1506  +1425
> > Products.ParsedXML.Printer.PrintVisitor   3  107  +104
> > Products.ParsedXML.DOM.Core.Document  10  112  +102
> >
> > Yes, I've a lot of refcounts leaks.
> >
> > > any chance that this is the same problem that andy is running
> > > into (read his
> > > posts above)?
> >
> > I dunno because of my very lack of knowledge of Zope.
> > All of these refcounts leaks means that the Product is 
> doing something
> wrong
> > or that I'm using in the wrong manner ?
> >
> > - mn
> >
> > >
> > > -d
> > >
> > > On Tue, Apr 10, 2001 at 05:27:28PM +0200, Marco Nova wrote:
> > > > Hello guys,
> > > >
> > > > It seems that I've some memory leak problems and I want to
> > > understand where
> > > > I've to look for.
> > > >
> > > > Scenario:
> > > >
> > > > I've an IIS web server that generates an XML page 
> (taking data from
> > > > SqlServer);
> > > > The Zope web server must retrieve the XML page, manage the
> > > data and render
> > > > them in HTML (I cant only apply a XSL stylesheet to XML).
> > > >
> > > > The Facts:
> > > >
> > > > I've written a external method that - using httplib - reads
> > > the XML page and
> > > > return a string that is the raw XML sources, than I've
> > > written another
> > > > external method that use ExpatBuilder of
> > > Products.ParsedXML.DOM to parse the
> > > > XML an generate a list of [(id - {mapping})] which will be
> > > accessed with a
> > > > dtml-in tag, so in the sequence-key I've access to the 
> ID and with
> > > > sequence-item I can access to the mapping object.
> > > > I'm using latest version of ZOPE (2.3.1, the binary one
> > > with Python 1.5.2)
> > > > and ParsedXML.
> > > >
> > > > The Problem:
> > > >
> > > > It seems that every time the method retrieve the page or
> > > parse the XML I
> > > > loose a bunch of kilobytes. Because the methods are very
> > > simple (100 lines
> > > > of code in total) and because I didn't create any class for
> > > handling this
> > > > workflow I can't understand where I can loose bytes.
> > > >
> > > > The Questions:
> > > >
> > > > Is the list generated for the dtml-in tag freed
> > > automatically by ZOPE ?
> > > > Is there a Garbage Collector somewhere that must be activated ?
> > > > Should I avoid the use of the ExpatBuilder for XML processing ?
> > > >
> > > > Thanks for listening my newbies questions.
> > > >
> > > >
> > > > Best Regards,
> > > >
> > > > - mn
> > > >
> > > > ___
> > > > Zope-Dev maillist  -  [EMAIL PROTECTED]
> > > > http://lists.zope.org/mailman/listinfo/zope-dev
> > > > **  No cross posts or HTML encoding!  **
> > > > (Related lists -
> > > >  http://lists.zope.org/mailman/listinfo/zope-announce
> > > >  http://lists.zope.org/mailman/listinfo/zope )
> > >
> > > --
> > > Dyon Balding <[EMAIL PROTECTED]>
> > >
> >
> > ___
> > Zope-Dev maillist  -  [EMAIL PROTECTED]
> > http://lists.zope.org/mailman/listinfo/zope-dev
> > **  No cross posts or HTML encoding!  **
> > (Related lists -
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope )
> >
> 

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] How do I call an HTMLFile in context provided by a path?

2001-04-11 Thread Itai Tavor

Hi,

I have a method that receives a path: 
'/MyApp/SomeSpecialist/some_id/edit_html'  and has to call edit_html 
in the context of some_id. If edit_html is a DTML Method, I can do 
this:

 obj = REQUEST.traverse(path)
 return obj(obj.aq_parent, REQUEST)

But when edit_html is an HTMLFile in a Python Product, obj.aq_parent 
doesn't work. And trying to get some_id using 
REQUEST.traverse('/MyApp/SomeSpecialist/some_id') returns the 
index_html method of some_id, instead of the object itself.

Any ideas how I can fix this?

TIA, Itai
-- 
--
Itai Tavor  -- "Je sautille, donc je suis."--
[EMAIL PROTECTED]--   - Kermit the Frog --
-- "What he needs now is understanding... and a confederate victory" --
-- Dr. Jacobi, Twin Peaks --


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )