[Zope] Lost External Methods

2000-10-23 Thread Robert_J_Roberts

I am running 
Zope 2.1.4 (binary release, python 1.5.2, win32-x86)
Python version: 1.5.2 (#0, Jul 30 1999, 09:52:18) [MSC 32 bit
(Intel)]
System Platform: win32 
I have several external methods.  Just recently, they started to be good for
one run only.  The external methods run fine once.  The next run, they error
out with: "Could not execute external method: ExtMthdName"  If I reload that
method [Edit button it] it runs fine again for one run.

Any suggestions?

And... while I'm at it, is there a way in Zope to programmatically reload
[Edit button] an external method (in case I can't get the problem to go away
and just out of general curiosity)?

Robert J. Roberts
LMSI-SDI
509.376.6343
[EMAIL PROTECTED]



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




RE: [Zope] Help Debugging External Methods

2000-10-16 Thread Robert_J_Roberts

I do pretty much the same things myself.  I assign sys.stderr = sys.stdout,
then I create my own log file object from a module I wrote a few years ago,
and then assign something like sys.stderr = self.logObj.

That works well for any errors that occur after those assignments have
occurred but doesn't do much for anything that happens earlier.

I also run the python code outside of Zope to get it all working.

It's just a pain when I have to make some minor change in the Zope to
External Method logic and it breaks.  That's where I start to lose it some
in the debugging.

Using something like:

import sys, traceback, string
try:
trysomething()
except:
type, val, tb = sys.exc_info()

sys.stderr.write(string.join(traceback.format_exception(type, val, tb), ''))
del type, val, tb

...helps, but even with that I seem to get errors that I just can't seem to
catch and report properly.

I'm not sure what you are referring to with "...the Python debugger
"pdb"...".  I've never used it.

Thanks for your help,

Robert J. Roberts
LMSI-SDI
509.376.6343
[EMAIL PROTECTED]



-Original Message-
From: Dieter Maurer [mailto:[EMAIL PROTECTED]]
Sent: Saturday, October 14, 2000 1:51 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [Zope] Help Debugging External Methods


[EMAIL PROTECTED] writes:
  What are my options for debugging External Methods in Zope running on
  Windows NT?
I work under Unix. Maybe my technics are not applicable for NT.

Usually, I use "print" statements for debugging purposes.
Under Unix, I can redirect "stdout" to a file and
view the output (be sure to flush stdout after "print").

You can also use "zLog" (may be spelled differently!).
This writes log entries into the log file.
The advantages: will work under Windows, contains a timestamp.

If the external method does not need too many Zope infrastructure,
I test it outside of Zope and integrate only, when it works
properly.

When everything else does not work, I use "Test.py" and
the Python debugger "pdb".


Dieter

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




[Zope] Help Debugging External Methods

2000-10-13 Thread Robert_J_Roberts

What are my options for debugging External Methods in Zope running on
Windows NT?

Is there ANY way to get the external method to run in a DOS window that I
can watch?

What little tricks/techniques have others use to make debugging external
methods easier/possible?

Thanks,

Robert J. Roberts
LMSI-SDI
509.376.6343
[EMAIL PROTECTED]



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




[Zope] Importing multiple files into Zope

2000-09-12 Thread Robert_J_Roberts

I would like to be able to import multiple existing HTML files into Zope and
make them searchable.

For example: 

I would like to be able to point a Zope Method at my c:\python\doc
subdirectory and import not only the index.html file, but also import the
subdirectories under ...\doc\ and all of their files/directories.  I would
need to end up with the same folder/directory structure within Zope to
retain the relative addressing.

I would like to be able to then build a search screen that allowed me to do
full text search on those files/objects.

Is there something in existence in the Zope community?  And, can it be used
by a Zope 'wannabe' but a 'long way from getting there'.

I do believe I could write such a thing myself, but I'm not sure I'll live
long enough to figure out how!

Thanks,

Robert J. Roberts
[EMAIL PROTECTED]



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




[Zope] REPOST: README.txt Tab

2000-08-04 Thread Robert_J_Roberts

I'll re-ask the question:

 How do I get the README tab to appear in a product?
 
 I created a product and it is working great.  However, I would like to add
 the 'README' tab to the product (and if possible to each instance of the
 product).  I looked at other products that have the README tab and looked
 at the Product.py source code.  It appears that I should just be able to
 put a README.txt file in my product subdirectory and the tab should
 automagically appear.  It doesn't.
 
 What do I need to do?
 

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




[Zope] README.txt Tab

2000-07-28 Thread Robert_J_Roberts

How do I get the README tab to appear in a product?

I created a product and it is working great.  However, I would like to add
the 'README' tab to the product (and if possible to each instance of the
product).  I looked at other products that have the README tab and looked at
the Product.py source code.  It appears that I should just be able to put a
README.txt file in my product subdirectory and the tab should automagically
appear.  It doesn't.

What do I need to do?


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