Today, Ian Bicking a �crit:

IB>>   for it. thinks of http://webware/Proxy/
IB>>   that will proxy something else with a
IB>>   __getattr__ or another thing. Do I need
IB>>   to modify AppServer ?
IB>
IB>I'm clear what you are asking here.  Perhaps it's the Zope terminology
IB>:)
IB>
IB>If you want to handle different URLs differently (i.e., some to WebKit,
IB>some to Zope, some to static files), then mod_rewrite would probably be
IB>the best solution.  There's some notes on this here:
IB>  http://webware.colorstudy.com/twiki/bin/view/Webware/ModRewriteRecipes


Yeah not really clear i know **oups**, in fact i want to do something
like catch 404 and proxy this. In zope i'll do this with a

__getattr__(self,attr):
   # special handle
   if str(attr) =='toto.jpg':
      return self.proxy.get('http://toto.com/toto.jpg')

w/ using Acquisition , you got a folder that can handler
a lot of misc stuff

You understand what i mean, by this way my server will handle query
that isn't for it, w/ this method i can include some html that come
from other product (main my cvs frontend)

But in fact, i can do that w/ mod_rewrite too, but less i tweak
apache more i'm happy .


IB>
IB>> - What is the main way to use Webware, does
IB>>   people usually patch AppServer, or inheritance
IB>>   or simply use WebKit ? for instance in my
IB>>   script (perhaps you call it servlet) i need
IB>>   to do something like sys.path.append('path/to/my
IB>>   /common/modules').
IB>
IB>You can put some code in the __init__.py file in your context, which
IB>will be loaded during startup.  You can extend the path there.  I
IB>usually change PYTHONPATH to do this (but I'm not sure how that works if
IB>you're using Windows).

That's for the WebKit way, but all of you use webkit ?
How can I change default handler (ExceptionHandler for
example)  without changing Webkit ?

IB>> - Is there any plan to include zope page template
IB>>   as template system ? I have spend 2 hours on having
IB>>   it working in Webware (you can check my example
IB>>   page at http://larsen-b.com/Pt/). It seems to
IB>>   work nice, but I want to know what webware
IB>>   users usually use, I ever used Cheetah a couple
IB>>   of time to generated some .py but i don't really
IB>>   understand the way to have it nicelly integrated
IB>>   w/ webkit and my python class
IB>
IB>People have thought about it, and as you probably saw ZPT seems pretty
IB>simple to use outside of Zope.
Yeah but but ZPT use some code that is zope only like tranversal or
even ComputedAttribute. I don't know why the ZPT team use this way
this isn't any wrapper or other stuff, to use ZPT without any C code
coming from zope :(



IB> Right now most people are using
IB>templates without integrating them closely with Webware.  Integration
IB>might be possible using a new factory for ZPT files -- but I'm not
IB>entirely sure how that might best work.

What kind of template does they use ? and how.
In zope you can't leave without dtml/pt but in webware this is a bit
fuzzy in my mind. I ever try to build some class to do render, but
this is awfull to maintain. I look at PSP to but i don't why to use
this, cause they are really verbose and i don't know the way to wrap
them to my class


Thanks for this quick answer :))
/Bye Bye/




-------------------------------------------------------
This sf.net email is sponsored by: viaVerio will pay you up to
$1,000 for every account that you consolidate with us.
http://ad.doubleclick.net/clk;4749864;7604308;v?
http://www.viaverio.com/consolidator/osdn.cfm
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to