Ooh. I might just add;-
if myaddr == 'a2.perthimc.asn.au':
blogmode=0
self.cacheid='index' #Dont care
else:
blogmode=1
urluser = string.split(myaddr,'.')[0]
self.cacheid=urluser+'blog'
#Blog cache next!
From the software I'm working on :) Works nicely. Logged on users get
there own 'blog' view ie
http://shayne.ra.ra.ra
:)
--
Shayne O'Neill
http://perth.indymedia.org
I know how hard it is for you to put food on your family."
----George W. Bush
On Tue, 4 May 2004, 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
>
>
>
> ----- Original Message -----
> From: "Jerome Kerdreux" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, May 04, 2004 1:47 AM
> Subject: [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_id�66&op�k
> > _______________________________________________
> > Webware-discuss mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/webware-discuss
> >
> >
>
>
>
> -------------------------------------------------------
> 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_id�66&op=click
> _______________________________________________
> Webware-discuss mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/webware-discuss
>
-------------------------------------------------------
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_id�66&op=click
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss