Re: [Webware-discuss] Session Issue
Ho I miss to answer, this email ! /me slaps me !!! In fact, I hand patched this stuff like Christoph ask, but I run into other issues.. mainly cause I already asked the URLParser before: http://www.larsen-b.com/Article/91.html I managed to fix the issue, but don't ask me exactly how. After this, I run into other issues on this website (mainly docutils API changes) so, I decided to quick fix that and keep it running in the current stage. I need to find another blog system in fact. This one, works fine, but as I don't maintain it, I run into this kind of stuff at each apt-get update :) Thanks a lot webware fellows for the support :) - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Webware-discuss mailing list Webware-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/webware-discuss
Re: [Webware-discuss] Session Issue
On Mon, 14 May 2007 22:54:58 +0200 Christoph Zwerschke <[EMAIL PROTECTED]> wrote: > Jerome Kerdreux schrieb: > > Hum, I missed to say that firefox see the SID cookie, the issue is that > > my code doesn't have it, so create a new session cookie at each request. > > > > In awake(), I checked for trans.request()._environ['HTTP_COOKIE'] this > > give me some cookie but not the SID one .. > > Yes, Firefox sees the SID cookie, but when the cookie has set the wrong > path, Firefox does not send it back to your Webware application. You can > view the cookie path in Firefox and compare with the URL path of your > application. Do they fit together? Hum .. I guess you found something. The url is http://www.larsen-b.com/Articles/X.html but the cookie path is "/wk/" ... Do you have a idea to fix this ? Thank a lot. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Webware-discuss mailing list Webware-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/webware-discuss
Re: [Webware-discuss] Session Issue
On Mon, 14 May 2007 19:02:16 +0200 Christoph Zwerschke <[EMAIL PROTECTED]> wrote: > Jkx wrote: > >> * If you create an empty (default) working dir, does it work? > > > > It should work (as my app is running), I only have some issues > > with Session (all other is working fine) > > I mean, do sessions (e.g. the CountVisits example) work when you create > an empty working dir? I haven't checked this, but if I don't use apache (by configuring local http), everything is Ok . > > > Here is my conf: > > SessionPrefix = None # no prefix to session ID > > IgnoreInvalidSession = True > > UseAutomaticPathSessions = False > > UseCookieSessions = True > > That's all default and ok. > > >> * Are you using mod_rewrite? > > > > mod_rewrite + mod_wekit2 > > I used a URLDispatcher too.. but I don't think the issue is here .. > > Well, mod_rewrite can be the problem. The reason could be that Webware > sets your cookie path to /wk/blog/ but your webbrowser does not know > about /wk/blog so it ignores the cookie. You can check the cookie path > with Firefox for instance. Hum, I missed to say that firefox see the SID cookie, the issue is that my code doesn't have it, so create a new session cookie at each request. In awake(), I checked for trans.request()._environ['HTTP_COOKIE'] this give me some cookie but not the SID one .. Bye . - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Webware-discuss mailing list Webware-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/webware-discuss
Re: [Webware-discuss] Large scale webware
On Tue, May 04, 2004 at 02:09:02AM +1000, Leith Parkin wrote: > This seems like a perfect candidate for apaches rewrite rules > > Why not have a single servlet (or more if required) to handle displaying > blogs, and use a rewrite rule to internally rewrite say > > http://yourserver/blog/username to http://yourserver/wk/blog?user=username > > Then you can have the blog servlet automatically set up templates etc based > on usernames prefs Ho .. i miss to say, i use the URLParser (from webware CVS), so this is not my real problem. I really want to keep the user have there own context. By this way they can switch version when they want .. and so on .. I'm just wondering how webware works w/ a bunch of context .. Bye Bye .. --- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
[Webware-discuss] Large scale webware
Hi all :) I have been a little bit off since a while. I get several questions: - I'm wondering how i can do some large website w/ webware. While i'm working on a blog system (which tend to be a CMS more than a blog) I face to a issue. I get ~ one context per website, and he think this will trouble the box in a long running process. This is what i get: - webware-instance/AlineaLib (which is the core lib's of the sytem) - webware-instance/phil ( a friend blog ) - webware-instance/jkx (mine ..) - and so on . I do that because i want every user to have it's own website. (they can for example want to tweak the templates or .. disable some kind of functionnalities like 'post comments', or write some custom servlet) I think i gonna run into trouble since a lot of servlet mean a lot of cache and so-one .. I don't remember how servlet caching is done by webware .. What do you think i should do ? in a typically php installation i will have only a bunch of folder and no matter w/ this cache (I need cache anyway since i use SQLobject + ZPT ) In a zope way of life, i will get a python eating a lot of memory but i doesn't get trouble w/ cache too .. What in webware ? How should i write the SQLobject code since i don't want to eat to much connection on the SQL server, but i don't want to close it at each connection .. - I think people w/ a lot of servlet get the same issue ?? have you ever get this ? - How much memory does the standard webware eat on your plateforme ? i get it working and even without any request it eat 30Mb on my current system. (that why i try to share a webware-instance accross users) Bye Bye ?.. -- Jérôme Kerdreux --- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id149&alloc_id66&op=click ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
Re: [Webware-discuss] Session
On Fri, Mar 05, 2004 at 04:42:15PM -0600, Jason Hildebrand wrote: > > Hi Jerome, > > I'm curious why you aren't using Modeling anymore, or why you've decided to > go with SQLObject. I've looked through the Modeling docs a couple of times, > and while it looks impressive, but I haven't used or tested it at all. > > I guess I'm particularly interested in any _disadvantages_ it has > (because normally you don't find out about those until you are in the > middle of a project). First, you should know that i worked for a while in the same company of the Modeling developper. So Modeling have been my day to day job for about 1 year. The reason why i now use SQLo is multiple: - SQLo feet better in webware : - lighter - no need to lock the editing context for a bunch of time.. - totally thread safe (and tested) - i hated the need to install zope to edit the DB schema (now you can do this without the Zmodeling since Modeling have a API for that .. ) - I encourter some trouble w/ thread in Modeling (this is fixed for a while..) I somethimes see the Modeling author (seb), and the last time, he ask me for the same question... I hope we will find time to fix this issues Bye Bye .. :) --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
Re: [Webware-discuss] Session
On Thu, Mar 04, 2004 at 05:24:38PM -0600, Ian Bicking wrote: > You shouldn't keep the SQLObject instances in the session -- they > persist independently in the database, and it can potentially confuse > things if you keep them elsewhere. Well... maybe not so much. Really > they should be pickleable (only they aren't). > > I think you could add a method to your classes: > > def __getinitargs__(self): > return (self.id,) > > then SQLObject instances would be pickleable. But I haven't tried it. > > This is assuming you aren't using transactions, which would complicate > things considerably, and using transactions with sessions like this > would generally require more thought all around. Lo Ian I guess my english cause me a issue. In fact i don't want to make SQLObject persist in session. I want to edit/modify a FakeSQLObjet and when all is ok, i will save it back into DB.(just by changing the real SQLo) For example: when i want to edit a SQLobject, I just clone it into a real object with something like copying attributes.. working on this object in session, and when everything is ok. I change do the same changes to the real SLQobject. But this doesn't work really well since my 'clone' method produce some un-pickable objects. So i guess there is a standard method to do this easily .. In a previous life, i used Modeling for a while, and in Modeling you simply work in a editing context and binding an ec to session is easy so, commiting changes is just a ec.saveChanges()... and to loose modification simply discard this ec. Despite this introduce a lot of issues, it's really pretty for this kind of stuff. Perhaps i can do the same w/ transaction in SQLObject ? Bye Bye .. --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
[Webware-discuss] Session
Hi All:) I'm wondering how you use session in webware. My main problem is that i what to edit some SQLObject in session. But i can to that directly so i decided to write something that 'clone' a SQLObject into a database-less object and put it session. This works fine except that objects aren't picckable so i can't filesystem a session storage. Any idea ? --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
[Webware-discuss] URLHandler
Hy every body While playing w/ webware-cvs, i think i found a bug in URLHandler. I put this stuff in my in Context.__init__ from WebKit.URLHandler import ServletFactoryManager (I need this to return ServletFactoryManager.servletForFile() in my CustomURLHandler.) And if i do the import i always have a --- Traceback (most recent call last): File "WebKit/Application.py", line 432, in dispatchRawRequest File "WebKit/Application.py", line 478, in runTransaction File "/opt/Webware/WebKit/URLParser.py", line 67, in findServletForTransaction return self.parse(trans, trans.request().urlPath()) File "/opt/Webware/WebKit/URLParser.py", line 235, in parse trans.request()._serverSideContextPath = self._contexts[contextName] KeyError: 'default' --- In fact, i think that the InitApp() should be call before. What sould i do ? Another thing: What is the current status of developpement in Webware because i found some things that really look strange.. like the 'Examples' context switch in URLHandler for example.. Bye Bye.. --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
Re: [Webware-discuss] Re: Sprint?
Is get several suggestions / questions. - What is a WebwareExperimental ? - I really think webware should provide a "way of programming component", perhaps the UseKit is a good start. One of my big regret about Webware is the lack of standard API like security management/login/session I don't say that webware need some big API à la zope , but need a way to write plugable component, and i think i'm not the only one tinking about that. We have several talk about this, mainly about 'interface' or other choice. - Is there a chat room on irc during the sprint ? --- This SF.net email is sponsored by: Tablet PC. Does your code think in ink? You could win a Tablet PC. Get a free Tablet PC hat just for playing. What are you waiting for? http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
Re: [Webware-discuss] Unicode trouble
On Sat, Mar 15, 2003 at 02:10:04AM +0100, [EMAIL PROTECTED] wrote: Here you will find a sample example. http://larsen-b.com/ and the skins are in: http://larsen-b.com/Skins/articles_view_form.tal http://larsen-b.com/Skins/article_edit_form.tal http://larsen-b.com/Skins/main_template.tal --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
Re: [Webware-discuss] Unicode trouble
On Thu, Mar 13, 2003 at 05:31:33PM -0600, Ian Bicking wrote: > You have to encode the text (like with UTF-8), and then set a header... > I think it's: > Content-type: text/html; charset=UTF-8 > > (Or whatever character set you're using) > And how can i set this easily in a WebKit.Page ? Thanks --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
Re: [Webware-discuss] WebWare with Zope's Page Template engine?
Friday, Noah Spurrier a écrit: NS>I really like Zope's newish ZPT engine or TAL or NS>whatever it's called, but I'm not a big fan of Zope. NS>Has anyone experimented with using ZPT from WebWare? NS> NS>I wonder how hard it would be to extract ZPT from Zope. NS>I know some of the other Zope components are relatively NS>independent modules that can be used without Zope. NS>For example, Gadfly and ZEO. I try this a couple a month ago (you can find a annonce on the archive of the list i think) Look at for a example of zpt in webware. http://larsen-b.com/cgi-bin/WebKit.cgi/SoaF/Pt/ I haven't a lot of time to finish the port (disable some call to C module used by Zope) I manage to have tal working but not metal (but i haven't search why use macro .. don't work ) --- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
Re: [Webware-discuss] Responses to "I give up"
Today, Nick Murtagh a écrit: NM>On Tue, 2002-10-29 at 23:11, Ray Leyva wrote: NM>> NM>> http://www.xwt.org NM>> Hum, except that it make my mozilla / netscape 4.7 segfault when i try the demos I fell the Jabber approach better no ? Bye --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
Re: [Webware-discuss] Responses to "I give up"
Today, Bob Gailer a écrit: (Off Topic why replying to the list put list on CC not To: ? ) BG>When I read the high-level description of WebWare I saw the term "servelet" BG>and mis-read it as "applet". What I'm most interested in is tools for BG>building the web client side of an application: goals being (ideally) thin BG>client and use of socket communication to update parts of pages in place. BG>Do you know of such? I'have been looking for something like this for a while, and found nothing really interesting. The most interesting are - dynamic Webserver + Macromedia Flash (w/ XML) + webbrowser - or corba server + corba client (home made) - Jabber API (mainly XMLStream) seems to do this but not really used (elsewhere than Jabber) BG>Also how does WebWare compare to ZOPE and Cold Fusion? First at all Cold Fusion is for me something different than Zope, or Webware. It's more like php3 (server side script ) Zope, Webware, Quixnote, Shunk, and Twisted are all application server. You design a application ( != not only script that interact w/ other) I only know Webware and Zope. But (beside i'm a Zope developper at work), I think Zope is really to hard to code w/, to maintain. In fact, the power of Zope is the large amount of 'Products' (read component) that can be used. But it is a weakness too, because this products all interact w/ others, and more you use products, more you have a complicated API, and some hard to find bugs (we found a bug in the Traversal code last week !! people ever used Zope will understand why I say that) But something else heart me. Why there is so much Python App Server I think Quixnote have some nice feature too .. (not so different form webware ). Perhaps we should stop to invent the wheel ? Bye Bye --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
Re: [Webware-discuss] Hy all
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