hmm I still think you are going to run into the problem that the
compiled psp servlets don't live all that long in the cache, so by the
time you actually try to use the table of contents the compiled psp
files won't be there to import from

Jose

> -------- Original Message --------
> Subject: Re: [Webware-discuss] Building a table of contents dynamically
> From: "Winston Wolff" <[EMAIL PROTECTED]>
> Date: Mon, September 27, 2004 11:45 pm
> To: "jose" <[EMAIL PROTECTED]>
> Cc: [EMAIL PROTECTED]
>
> What I've done so far is modify WebKit/ServletFactory.py to add another
> method:
>       servletForPath( transaction, path )
> which is just the code for servletForTransaction() without the first
> two lines.  Then from my PSP file I call
>       self._factory.servletForPath( self._transaction, moduleName )
> I can call this method to get an instance of the servlet that was
> generated for the PSP file.  But I am doing a lot of hacking around
> here, and it just doesn't feel like the right way to go.
>
> -winston
>
> On Sep 28, 2004, at 2:25 AM, jose wrote:
>
> > This might be a dumb question, but how are you importing psp files?  I
> > thought psp files were compiled dynamically, so don't you have to
> > import the compiled file?, then again I don't think the compiled file
> > lives long enough for you to import it anyway so I really don't think
> > that there is a way to import php files, at least i have not seen a
> > way to import psp pages directly.
> >  Jose
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of
> > Winston Wolff
> > Sent: Monday, September 27, 2004 7:43 PM
> > To: [EMAIL PROTECTED]
> > Subject: [Webware-discuss] Building a table of contents dynamically
> >
> > I would like to dynamically build a list of PSP pages _with their
> > titles_ so I can automatically generate a table of contents. Has
> > anybody tried to do this?
> >
> > I have seen the example that finds all the files in the current
> > folder. That does the first half, i.e. find the URI to the pages in a
> > folder. But I also want to call the title() method to get the title,
> > and that's where I am having troubles. I have been experimenting with
> > __import__() to try to load the PSP pages in a folder, but that seems
> > to be very complicated. I keep running into problems with Webware's
> > custom module loader. I'm wondering if Webware has any way to do that
> > already.
> >
> > -winston



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to