[Zope-dev] How to handle special sub-directories

2001-04-14 Thread Remi Delon
Hi, I have a website where members can sign up.
I want to give each of my members their own URL, in the format www.website.com/member_name

But I don't want to create a Zope folder for each member. Instead, I want to be able to find out what the member name is, and then fetch some data in my database based on the member name and then display it.

This is like transforming the URL www.website.com/member_name into www.website.com/unique_url?arg=member_name

How can I do that ?

Thanks.

Rémi.
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Zope cut paste behaviour

2001-04-14 Thread Ivo van der Wijk

On Sat, Apr 14, 2001 at 09:07:52AM -0400, Brian Lloyd wrote:
  For one, it doesn't seem possible to move an object more up to the root
  (or anywhere not *below* the folder the object was cut/copied from). This
  is partially due to the fact that the __cp (clipboard) cookie has
  it's path
  set to it's originating folder. I.e move /foo/bar/a to /foo/a or
  to /blah/a
 
  Clipboards seem to be local to the folder. This may be related to
  the nature
  of cookies (with their path set to that the path of that folder),
  I'm not sure.
  If you cut 'a' in /foo/bar, then cut 'b' from / and try to paste 'b' in
  /foo/bar, you'll end up with '/foo/bar/a' again. And as it is not
  possible
  to clear your clipboard (esp which opera, which cannot clear
  cookies), it's
  very difficult to move objects in these circumstances.
 
  Is there any clear reason zope behaves this way? Are there any problems to
  be expected if the path of the __cp cookie is set to /, so your clipboard
  is visible everywhere? Could ZCatalog aware objects cause problems?
 
 
 Hmm - we can't just set it to '/', because some people have
 multiple Zope instances mapped to a domain (ex: my.com/foo/
 and my.com/bar/ are aliased to two different Zope instances).
 
 I think what we need to do is figure out the "virtual" root
 url and set the cookie with that path.
 

This sounds difficult. Wouldn't it be easier to use some sort of unique
zope instance id (if none exists: something like the hostname + port 
the zope is running on) and use this in the clipboards cookie name?

Ivo

-- 
Drs. I.R. van der Wijk  -=-
Brouwersgracht 132  Amaze Internet Services V.O.F.
1013 HA Amsterdam   -=-
Tel: +31-20-4688336   Linux/Unix based corporate   
Fax: +31-20-4688337 and   
Web: http://www.amaze.nl/Internet Solutions   
Email:   [EMAIL PROTECTED]   -=- 

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] How to handle special sub-directories

2001-04-14 Thread Remi Delon

Hi, I have a website where members can sign up.
I want to give each of my members their own URL, in the format 
www.website.com/member_name

But I don't want to create a Zope document for each member. Instead, I want 
to be able to find out what the member name is, and then fetch some data in 
my database based on the member name and then display it.

This is like transforming the URL www.website.com/member_name into 
www.website.com/unique_document?arg=member_name

How can I do that ?

Thanks.

Rémi.
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Re: zope nautilus cabal

2001-04-14 Thread andrea

On Fri, Apr 13, 2001 at 03:52:35PM -0400, Chris McDonough wrote:

 This isn't a bug, it's a feature.  A bad one, likely, as there's no easy way
 to turn it off. ;-)  I believe that if you turn off "Access Contents
 Information" permission for anonymous on the root folder, a WebDAV directory
 listing can't be retrieved.  This, however, likely breaks lots of things
 that have nothing to do with WebDAV.

[cc: the debian maintainer of zope]

Mmm  the bad  thing  is  that the  default  installation  of zope  is
"vulnerable"  (please  note the  ")  to  this  type of  feature.  I'm
firewalling the port 9673, beacause  turning off the "Access Contents
Informations" some web site stop to work.

Any kind of different workaround ? 


Regards 

a.f.
-- 
Andrea Fanfani 
Era  talmente intelligente  che, datogli  in  mano un  cubo di  Rubik,
riusciva a mangiarlo in 15 secondi netti. (Anonimo)


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] How to handle special sub-directories

2001-04-14 Thread Chris Withers

 This is like transforming the URL www.website.com/member_name into
 www.website.com/unique_document?arg=member_name

 How can I do that ?

Look at the PathHandler product on zope.org. Python Scripts on theri own
might be able to do this too. Futz with the sub-traversal path or whatever
it's called :-)

cheers,

Chris


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] REQUIRING Python 2.1??

2001-04-14 Thread Dieter Maurer

anser writes:
  Second, I am MYSTIFIED (there's no better word) that DC is in such a rush 
  to REQUIRE the use of Python 2.1 for Zope 2.4, when we're still waiting for 
  Py 2.1 final to even come out. Why put all your eggs in that basket, and 
  why force the community to choose between changing to a bleeding-edge 
  Python or retiring to a frozen Zope rev?
My experience with the Python development process is very good.

   New versions contain few problems which are rapidly eliminated.

I will switch to Python 2.1 (now using Zope with Python 2.0)
immediately when it becomes available (has nice
features, I fought for since a long time (nested namespaces)).

You will only be affected for Zope 2.4. I think, it will
take several month, before it is final.


Dieter

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Query on ZODB handling of class variables

2001-04-14 Thread Dieter Maurer

Bob Weiner writes:
  ...
  So how does one get class attributes (one attribute instance per class)
  stored into and restored from ZODB?
I fear, it will not go.

  But, you can take the object from the class and
  put it as an object with a specific name (maybe
  derived from the class name) into the ZODB.

  The class would provide methods to access this object
  in ZODB.


Dieter

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



RE: [Zope-dev] un-own an object

2001-04-14 Thread Dieter Maurer

Tim McLaughlin writes:
  my problem is that I need to be able to construct a zclass built by a user
  who no longer exists.  My suspicion is that "nobody" does not have those
  privileges, and so it seems that I may be SOL  :-(
My memory says:

  everything under "control_panel" (this includes ZClasses)
  in unowned.

There is excellent documentation about Zope 2.2 security.
There, you should be able to check how reliable my memory
is.


Dieter

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )