I don't think it's used anymore, and if it is, it's probably only used for the command line PSP compiler, which isn't used.
 
It's probably safe to take it out, we can always put it back if necessary, it'll still be in the cvs attic.
 
Jay
-----Original Message-----
From: Stuart Donaldson [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 17, 2003 3:51 PM
To: Geoffrey Talvola
Cc: Webware devel
Subject: Re: [Webware-devel] PSPReader obsolete?

I should have been more clear.  It is imported in ServletWriter, but it does not appear that ServletWriter uses anything from it.  If I remove the import and remove the file altogether my system seems to function just fine.

StreamReader actually contains an implementation of the PSPReader class, and appears to be a successor to PSPReader.  

For consistency should we just replace PSPReader with StreamReader (along with the corresponding change to PSPCompiler which currently imports PSPReader from StreamReader.

The last substantive change to PSPReader was done by Jay.

:revision 1.6
:date: 2000/06/02 23:19:09;  author: jslove;  state: Exp;  lines: +15 -6
:Sync with local copy.  Most likely won't use this anymore.

And the last change to PSPCompiler where it is used is:
:revision 1.2
:date: 2000/06/02 23:15:23;  author: jslove;  state: Exp;  lines: +2 -2
:Using StreamReader instead of PSPReader.

Jay,
  are you around, and care to comment?

- Stuart -


Geoffrey Talvola wrote:
Deleting the PSPReader.py file causes a traceback on starting the AppServer:

Traceback (most recent call last):
  File ".\WebKit\AppServer.py", line 211, in loadPlugIn
    willNotLoadReason = plugIn.load()
  File ".\WebKit\PlugIn.py", line 60, in load
    self._module = __import__(self._name, globals(), [], [])
  File "PSP\__init__.py", line 5, in ?
    from PSPServletFactory import PSPServletFactory
  File "PSP\PSPServletFactory.py", line 31, in ?
    from PSP import Context, PSPCompiler
  File "PSP\PSPCompiler.py", line 29, in ?
    from ServletWriter import ServletWriter
  File "PSP\ServletWriter.py", line 30, in ?
    from PSPReader import *
ImportError: No module named PSPReader

So unless you feel like spending more time on this, I'd leave it alone for
this release.

If you do want to clean this up, then let's get rid of the "from PSPReader
import *".  Importing * is almost always a bad idea, and this shows why --
you can't easily tell what ServletWriter is using from PSPReader, if
anything.

- Geoff

  
-----Original Message-----
From: Stuart Donaldson [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 17, 2003 12:10 PM
To: Webware devel
Subject: [Webware-devel] PSPReader obsolete?


Can we get rid of PSPReader?  It appears to be obsolete.  

In its place, StreamReader.PSPReader is used.  

-Stuart-
    


  

__



**********************************************

This e-mail and any attachments may be confidential or legally privileged. If you received this message in error or are not the intended recipient, you should destroy the e-mail message and any attachments or copies, and you are prohibited from retaining, distributing disclosing or using any information contained herein. Please inform us of the erroneous delivery by return e-mail. Thank you for your cooperation.

**********************************************


ec03/04


Reply via email to