On Tue, 2002-10-15 at 20:32, SoaF wrote: > First at all, I'm new to webware, so please > tell me if I ask some stupid question, and > apologize for my awfull english. > > In fact, i usually work w/ zope, but I tested > webware a couple a day now (for personnal use) > and several question come to my mind > > - How can I do something like proxy in webware > in fact i use the webkit and I want to have > a special hander in a portion of my website > that cover all the request and do a proxy > for it. thinks of http://webware/Proxy/ > that will proxy something else with a > __getattr__ or another thing. Do I need > to modify AppServer ?
I'm clear what you are asking here. Perhaps it's the Zope terminology :) If you want to handle different URLs differently (i.e., some to WebKit, some to Zope, some to static files), then mod_rewrite would probably be the best solution. There's some notes on this here: http://webware.colorstudy.com/twiki/bin/view/Webware/ModRewriteRecipes > - What is the main way to use Webware, does > people usually patch AppServer, or inheritance > or simply use WebKit ? for instance in my > script (perhaps you call it servlet) i need > to do something like sys.path.append('path/to/my > /common/modules'). You can put some code in the __init__.py file in your context, which will be loaded during startup. You can extend the path there. I usually change PYTHONPATH to do this (but I'm not sure how that works if you're using Windows). You generally won't modify any of the parts of WebKit. > - Is there any plan to include zope page template > as template system ? I have spend 2 hours on having > it working in Webware (you can check my example > page at http://larsen-b.com/Pt/). It seems to > work nice, but I want to know what webware > users usually use, I ever used Cheetah a couple > of time to generated some .py but i don't really > understand the way to have it nicelly integrated > w/ webkit and my python class People have thought about it, and as you probably saw ZPT seems pretty simple to use outside of Zope. Right now most people are using templates without integrating them closely with Webware. Integration might be possible using a new factory for ZPT files -- but I'm not entirely sure how that might best work. Ian ------------------------------------------------------- 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
