[Zope-dev] Can't add propertysheets to ZClasses in 2.2

2000-06-08 Thread Kevin Dangoor

I've already submitted this to the collector, but I wanted to make sure that
I'm not the only one with this problem. Using the CVS Zope, if I create a
ZClass, I am unable to add a Property Sheet because of an error (missing
"__len__").

I find it hard to believe that I'm the first person to try to add a ZClass
in 2.2, but I didn't see this in the collector.

Kevin
http://www.byproducts.com - Humor and Novelties


___
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] Several users having problem accessing field names of a ZSQL Method

2000-06-08 Thread Charlie Derr

~
~ I am a new Zope user and am attempting to access field names of a
~ ZSQL method.  I have read and tried to use the How-To : "Access
~ the field names and fields of any arbitrary ZQSL query" by teyc.
~ The code suggested there has not worked.
~
~ For example, when I use the code:
~
~ dtml-in SQL.names
~   dtml-let vname=sequence-item
~   vvalue="SQL()[0][_['sequence-index']]"
~ dtml-var vname,
~dtml-var vvaluebr
~   /dtml-let
~ /dtml-in
~
~ I get the error:
~ Error Type: KeyError
~  Error Value: SQL.names
~
~ I have nested the above code  in code that references a ZSQL
~ method, as well as trying several other permutations, but nothing
~ has worked. I'm wondering if this is a name lookup problem.
~
~ In checking this news group I see that several others have had
~ similar problems.  See:
~
~ http://zope.nipltd.com/public/lists/zope-archive.nsf/Main?SearchVi
ew=++Start=1Count=20SearchOrder=1ExactMatch=SearchOrder=1Query=sql.nam
es

Can anyone tell me (us)  how to correctly do this, or what mistake I (we) am
making.



I think i can tell you.   When zope encounters something inside quotes, it
generally treats it as a python expression.  Python is treating what you
thought was a hyphen as a minus sign and trying to subtract the variable
"index" from the variable "sequence" in this line of code:

   dtml-let vname=sequence-item
vvalue="SQL()[0][_['sequence-index']]"

The easy solution is to name your variable sequence_item instead of
sequence-item.  I think there's also a way to actually name a variable
sequence-item, but it involves an underscore and parens _(  )  and some more
funky syntax, but it's a lot easier to just stop using hyphens in variable
names.

hth,
~c



Version information:

Zope version: Zope 2.1.6 (binary release, python 1.5.2, win32-x86)
Python version: 1.5.2 (#0, Jul 30 1999, 09:52:18) [MSC 32 bit (Intel)]

Regards,

David H. Jones
Boeing Phantom Works,
Mathematics and Computing Technology
425-865-6924
425-865-2964 (FAX)
[EMAIL PROTECTED]

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


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




[Zope] Unless not quite the opposite of if?

2000-06-08 Thread Curtis Maloney

Greetings,

I'm sure this should be obvious to me... but I can't seem to get this code 
to work.  It's supposed to send you to another page if a var has not been 
passed...

dtml-unless parmName
  dtml-call "RESPONSE.redirect('some.url.here')"
/dtml-unless

The problem is, when i test the page, it seems to pass over that that, and go 
right on with the page.  So, I tried to be a little more explicit:

dtml-unless "REQUEST.has_key('parmName')"
  ...
/dtml-unless

Again... goes straight through.  What's going on here?  When I use:

dtml-if parmName

(as I have done in MANY cases), it always evaluates true if 'parmName' exists 
in the current context.

Bring out that ol' clue stick, and swing it my directions a few times, 
because I need help.

-- 
Have a better one,
Curtis.

dtml-var standard_work_disclaimer

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




[Zope] Problems with SybaseDA

2000-06-08 Thread A J Wilson



Hi

I have installed Zope-2.1.6 on my PC (Pentium 
running Mandrake 7) and it seems to work fine. However, I have tried 
installing the SybaseDA and am having trouble. I have downloaded and 
installed the common Sybase libraries, set the SYBASEpath, complied it 
without errors and moved the sy_occ.so up one directory. However, when I 
restart Zope it fails and produces a core dump. There are no errors 
generated so I am having trouble diagnosing what is wrong. I can import 
the sy_occ.so into python without error, but if I try to import db.py and DA.py 
I get errors. These two scripts reference modules such as DateTime, zLOG, 
Missing, Globals, Shared.DC.ZRDB.TM, and Shared.DC.ZRDB.Connection - none of I 
can find.

Can anybody please help?

Thanks
Austin


Re: [Zope] Python, Zope, and PowerPoint slides

2000-06-08 Thread Rik Hoekstra





[...]

   * Amos released updated "Zope training material",
 http://www.zope.org/Members/Amos/TrainingSlidesAnnounce
 that he and Michel Pelletier have been working on for
 the past couple weeks.

   There are twenty slide presentations which cover such topics
   as DTML, application design, and developing Python products.

   Note: the PowerPoint slides are built by a Python script
   that reads Structured Text and talks to PowerPoint over COM - cool.


How about taking the extra step and using 'PythonPoint' to make a pdf
presentation for non-MS'ers?



IIRC Pavlos Christoforou made a Zope product that creates pdf from stx files
(goes to look it up) Yes. See
http://www.zope.org/Members/gaaros/ZpdfDocument

Though I agree a packed up version would be nice (I'm a windows user, so
pythonpoint is ok for me) Any chance the python-powerpoint script could be
made public anyway?

hth

Rik


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




Re: [Zope] Problems with SybaseDA

2000-06-08 Thread Bill Anderson

 A J Wilson wrote:
 
 Hi
 
 I have installed Zope-2.1.6 on my PC (Pentium running Mandrake 7) and
 it seems to work fine.  However, I have tried installing the SybaseDA
 and am having trouble.  I have downloaded and installed the common
 Sybase libraries, set the SYBASE path, complied it without errors and
 moved the sy_occ.so up one directory.  However, when I restart Zope it
 fails and produces a core dump.  There are no errors generated so I am
 having trouble diagnosing what is wrong.  I can import the sy_occ.so
 into python without error, but if I try to import db.py and DA.py I
 get errors.  These two scripts reference modules such as DateTime,
 zLOG, Missing, Globals, Shared.DC.ZRDB.TM, and
 Shared.DC.ZRDB.Connection - none of I can find.
 
 Can anybody please help?

Search the archives for Sybase. It is probable that while you have teh
variable set in your shell, it is not set in the process Zope runs. This
should be in the docs on SybaseDA, IMO.

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




[Zope] Links between DTML language and Python language...

2000-06-08 Thread QUIN Frédéric

Hello all,


In the last mail I sent, I explaint my problem to know if a specified item is
in a list. Oleg helped me and said that : "Learn Python". Now, I wonder if
there are strong links between DTML language and Python language. Because, in
the DTML language reference, you can find nothing meaning that.

Sometimes, I see functions used in DTML which are not referenced in DTML
language reference. I guess that it's Python functions. So, I ask the question
if it's advised to be introduced to Python before programming in DTML. I would
like to know too, if there is any rule that specify how to use Python functions
in DTML language, and if all Python functions are accessible in DTML...


Thanks,
Fred

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




Re: [Zope] Python, Zope, and PowerPoint slides

2000-06-08 Thread Anders Holmbech Nielsen

  
[...]

* Amos released updated "Zope training material",
  http://www.zope.org/Members/Amos/TrainingSlidesAnnounce
  that he and Michel Pelletier have been working on for
  the past couple weeks.

There are twenty slide presentations which cover such topics
as DTML, application design, and developing Python products.

Note: the PowerPoint slides are built by a Python script
that reads Structured Text and talks to PowerPoint over COM - cool.


How about taking the extra step and using 'PythonPoint' to make a pdf
presentation for non-MS'ers?



IIRC Pavlos Christoforou made a Zope product that creates pdf from stx files
(goes to look it up) Yes. See
http://www.zope.org/Members/gaaros/ZpdfDocument


I was quite exited when I saw this pdf possibility but I can't seem 
to get it to work. I'm running Zope on my Win NT4.0. But I have some 
questions 'bout it:

1. When I d/l the zpdf file it seems that something is missing. Where 
exactly should I put it ?
2. Is it a precompiled python file ?
3. Should'nt it have some kind of extension to it to work in a windoze env ?


Though I agree a packed up version would be nice (I'm a windows user, so
pythonpoint is ok for me) Any chance the python-powerpoint script could be
made public anyway?

hth

Rik


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

-- 

Regards

-
Anders Holmbech Nielsen | Tlf:  (+45) 70 22 56 00
Software Engineer   | Fax:  (+45) 70 22 57 00
Integrator Uniware A/S  | http:/www.integrator.dk

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




Re: [Zope] Python, Zope, and PowerPoint slides

2000-06-08 Thread Rik Hoekstra


snip


IIRC Pavlos Christoforou made a Zope product that creates pdf from stx
files
(goes to look it up) Yes. See
http://www.zope.org/Members/gaaros/ZpdfDocument


I was quite exited when I saw this pdf possibility but I can't seem
to get it to work. I'm running Zope on my Win NT4.0. But I have some
questions 'bout it:


Hm, worked for me (on my humble win95 homebox). It's been a time since I
used it, though


1. When I d/l the zpdf file it seems that something is missing. Where
exactly should I put it ?

Unpack it in the zopehome/lib/python/Products

2. Is it a precompiled python file ?

python will compile it at runtime

3. Should'nt it have some kind of extension to it to work in a windoze env
?


apart from python no (but zope won't run if you don't have that ;-). It is a
python only product as far as I can see.


Rik


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




[Zope] ZServer (Zope 2.1.6) thread synchronization bug -- with workaround

2000-06-08 Thread Dr. Dieter Maurer

ZServer contains a thread synchronization bug
exposed when the HTTP streaming protocol
(i.e. RESPONSE.write) is used.

For large responses, the reponse is written
to a temporary file and the distribution
thread receives "file_part_producer" requests.
Writing to the tempfile uses "seek = write"
in the request thread; reading the tempfile
uses "seek = read" in the distribution thread.
The threads are not synchronized. This may
result in loss of response data: broken or buggy
images/files.


The following patch removes the use of
a tempfile. This, of cause, is only a
crude workaround.

Dieter
***
--- ZServer/:HTTPResponse.pyMon Jan 24 20:17:53 2000
+++ ZServer/HTTPResponse.py Thu Jun  8 09:01:31 2000
@@ -239,7 +239,9 @@
 try:
 if type(l) is type(''): l=string.atoi(l)
 if l  128000:
-self._tempfile=tempfile.TemporaryFile()
+   # don't! exposes a thread synchronization problem
+# self._tempfile=tempfile.TemporaryFile()
+   pass
 except: pass
 
 stdout.write(str(self))


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




RE: [Zope] How do you changing web port address of Zserver installedas ase rvice on Win NT4? rvice on Win NT4?

2000-06-08 Thread Cornelis J. de Brabander

 I am looking for some guidance on how to change the web port address of my
 Zserver. I can use the -P option START.BAT file and start it
 manually but I
 haven't been able to figure out how to change it when I am starting the
 Zserver up as a service on a WinNT 4 box.
 It works fine on port 8080 but I now need to move it off of  that port.


There are several methods to achieve what you want. The one I use is to edit
z2.py and to change in the configuration section HTTP_PORT=8080 to something
else.



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




[Zope] Re: [ZDP] Links between DTML language and Python language...

2000-06-08 Thread Rik Hoekstra




In the last mail I sent, I explaint my problem to know if a specified item
is
in a list. Oleg helped me and said that : "Learn Python". Now, I wonder if
there are strong links between DTML language and Python language. Because,
in
the DTML language reference, you can find nothing meaning that.


As such the links are not really strong. But knowing Python helps you  to
understand what is going on in python. Moreover, you may sometimes want or
have to resort to External/Python methods to stuff DTML is not usable for.
DTML is really just a presentation language. As now there are no real
guidelines as to when to use what. Use your own intuition ;-(


Sometimes, I see functions used in DTML which are not referenced in DTML
language reference. I guess that it's Python functions. So, I ask the
question
if it's advised to be introduced to Python before programming in DTML. I
would
like to know too, if there is any rule that specify how to use Python
functions
in DTML language, and if all Python functions are accessible in DTML...



everytime you use an expression in DTML (dtml-var expr="..." or plainly
dtml-var "...") the part between quotes is a python expression, which does
not respond to dtml rules, but to python rules. Usually these are quite
simple, but to use them you have to know some Python.

Note, that learning (some) Python is not very difficult. And there are good
training materials (and books) available.

hth

Rik


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




Re: [Zope] Links between DTML language and Python language...

2000-06-08 Thread Oleg Broytmann

On Thu, 8 Jun 2000, QUIN Frédéric wrote:
 In the last mail I sent, I explaint my problem to know if a specified item is
 in a list. Oleg helped me and said that : "Learn Python". Now, I wonder if
 there are strong links between DTML language and Python language. Because, in
 the DTML language reference, you can find nothing meaning that.

   The link is simple and strong: what you have in double qoutes is just a
python code! (with some security limitations):
   dtml-var "here_comes_some_python_call()" or, for example,
   dtml-call "REQUEST.set('variableu', another_call())"

 Sometimes, I see functions used in DTML which are not referenced in DTML
 language reference. I guess that it's Python functions. So, I ask the question

   Most of the time they are Zope functions - methods, defined in Zope
classess. They are poorly documente 'cause real Hackers Have No Time to
Document! :)
   Your real source of information is Zope source code. That's another
strong reason to learn Python.

Oleg.(All opinions are mine and not of my employer)
 
Oleg Broytmann  Foundation for Effective Policies  [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


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




[Zope] FW: troubles with installing zope

2000-06-08 Thread Andy Gayton

Hi,

I'm trying to install zope on an alpha box running CompaqTrue64 4.0F.  I've
created a seperate account to run zope under.  I've installed zope
under this user's home directory.

Down the track I was hoping to link zope with apache, but for the moment I'm
just trying to get it to work with ZServer.

I configured the package with the command

python wo_pcgi.py

since apache is running on port 8080, I started ZServer with

start -P 9000

This seemed to bring up the server ok, however there was a PROBLEM
statement:
--
2000-06-08T06:12:23 PROBLEM(100) ZServer Computing default hostname
--
2000-06-08T06:12:23 INFO(0) ZServer Medusa (V1.13.4.1) started at Thu Jun  8
16:12:23 2000
Hostname: titan.onetel.com.au
Port:9080

--
2000-06-08T06:12:23 INFO(0) ZServer FTP server started at Thu Jun  8
16:12:23 2000
Authorizer:None
Hostname: titan.onetel.com.au
Port: 9021
--

I could then point my browser at the server on 9080 and get the introductory
page.  However, if I try to do anything else, like go to admin page or quick
start documentation, the server raises the following debug message and the
browser says that the document returned no data, try again later or contact
system administrator  :

Stack overflow: pid 23282, proc python, addr 0x14085ffe8, pc 0x120038c18

Have I configured something wrongly ?

thanks,
Andy.


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




[Zope] Re: [Zope-dev] possible security flaw? - and, request for a phoneconference.conference.

2000-06-08 Thread Stuart 'Zen' Bishop

On Wed, 7 Jun 2000, Jon Franz wrote:

   Basically, if a user with manager privileges to a folder changes
 their
 password to be empty, then anyone (from permitted domains) can access the
 management screen for that folder Without Logging On... Zope assumes that
 you are the user without the password and treats you as if you have those
 rights.

This is a feature, but I don't know if or where it is documented besides
the source code (which is a bug if it isn't I guess). The blank password 
feature is normally combined with the domain limitation feature to allow 
connections from a given network to automatically attach with various 
permissions (such as a trusted that pushes data into the ZODB - this 
method avoids having to keep a password in plaintext around on your 
filesystem).

-- 
Stuart Bishop  Work: [EMAIL PROTECTED]
Senior Systems Alchemist   Play: [EMAIL PROTECTED]
Computer Science, RMIT University


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




[Zope] Zope URLS (was re: WebObjects)

2000-06-08 Thread Chris Withers

Gregor Hoffleit wrote:
 Regarding wget:
 
 AFAICS, the problem is that traditionally in a static web server, if you try
 to access a URL like 'http://host/xyz' (without trailing slash), the server
 will return you an error '301 Moved permanently' and will point you to the
 new location 'http://host/xyz/'. Zope instead (if 'xyz' is a folder and
 there's a document 'xyz/index_html') immediately returns the rendered
 index_html if you request 'http://host/xyz'.
 
 Now whenever the 301 to the URL with a trailing slash happens, wget takes
 this as a hint that this path must have been a directory, and saves the
 result as index.html. With Zope, wget doesn't get this hint.
 
 Reading this again, I wonder if this qualifies as a bug in Zope, or is there
 a good reason for this behavior ?

It's not so much a bug as a complication caused by the fact that Zope
isn't a filesystem server, but an orb presented through the web (correct
me if I'm slightly out ;-)

For example http://host/x/y/z

Could be:
-A container object z (which should have a / after it?)
-A dtml-document in folder /x/y/
-The result of executing the z method on the y object in the /x/ folder.
-The result of executing the z method on the result of executing the y
method on the x object in the root folder.

I'm sure acquisition adds some more options/confusions to this... ;-)

So, that's the problem, I don't know what the solution is :(

I do think there must be a better way than Zope's kludgey BASE tag
thing.
Maybe all Zope URLs should end in a / ?

Quite radical, but maybe the most sensible and least confusing? :/

cheers,

Chris

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




[Zope] creating object from method

2000-06-08 Thread Pierre Rougier

Hi all,

Well, I didn't find it in the ZQR,
I have a product which is able to create instantiate an object of a
ZClass (using a factory).
(so, I can add my special object from the Add list)

In a dtml method, I want to create (instantiate) a new object of this
ZClass..
I tried manage_addProduct... a little by hazard, but I don't find the
right primitive to do that
isn't there something like
manage_addObject(ZClass, id...)?

Does anyone can help me?
:^) thanks by advance

Piotr.



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




Re: [Zope] Zope URLS (was re: WebObjects)

2000-06-08 Thread Rik Hoekstra



Gregor Hoffleit wrote:
 Regarding wget:

 AFAICS, the problem is that traditionally in a static web server, if you
try
 to access a URL like 'http://host/xyz' (without trailing slash), the
server
 will return you an error '301 Moved permanently' and will point you to
the
 new location 'http://host/xyz/'. Zope instead (if 'xyz' is a folder and
 there's a document 'xyz/index_html') immediately returns the rendered
 index_html if you request 'http://host/xyz'.

 Now whenever the 301 to the URL with a trailing slash happens, wget takes
 this as a hint that this path must have been a directory, and saves the
 result as index.html. With Zope, wget doesn't get this hint.

 Reading this again, I wonder if this qualifies as a bug in Zope, or is
there
 a good reason for this behavior ?

It's not so much a bug as a complication caused by the fact that Zope
isn't a filesystem server, but an orb presented through the web (correct
me if I'm slightly out ;-)

For example http://host/x/y/z

Could be:
-A container object z (which should have a / after it?)
-A dtml-document in folder /x/y/
-The result of executing the z method on the y object in the /x/ folder.
-The result of executing the z method on the result of executing the y
method on the x object in the root folder.



I'm sure acquisition adds some more options/confusions to this... ;-)

So, that's the problem, I don't know what the solution is :(

I do think there must be a better way than Zope's kludgey BASE tag
thing.
Maybe all Zope URLs should end in a / ?


so what is the use of the /? Couldn't all Zope URLs end without a /?



Quite radical, but maybe the most sensible and least confusing? :/



Rik


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




Re: [Zope] Zope.org Hidden Stats

2000-06-08 Thread Tony McDonald

Hi all,
under /Software this is shown.

The machine is running RedHat 6.1. The Zope installation is a CVS 
checkout with fairly conservative updating. The content is served 
completely out of the Zope database. Apache is used as the web server 
in front of Zope.org, using PCGI to integrate with the Zope server. 
Soon we will migrate to using FastCGI.

Can someone please clarify something for me here. (I've been Zoping 
for 15 months and *still* don't know the correct answer)

If you're running Zope from behind Apache/PCGI then you *have* to run 
Zope single threaded. Am I correct?

Therefore, that implies that Zope org is not using ZServer to serve 
up documents. Still correct?

If this is the case then I'm even more impressed, but would like to 
ask why not use Ansers 'Apache/ZServer HowTo' and get the best of 
both worlds?

TIA
Tone.


--
Dr Tony McDonald,  FMCC, Networked Learning Environments Project 
http://nle.ncl.ac.uk/
The Medical School, Newcastle University Tel: +44 191 222 5888
Fingerprint: 3450 876D FA41 B926 D3DD  F8C3 F2D0 C3B9 8B38 18A2

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




[Zope] Plea: sequence-item and sequence_item in 2.2?

2000-06-08 Thread Tony McDonald

Hi all,
Can I make a plea that the .diff patch that Jonothan Farr posted a 
while back be included into the 2.2 release?
http://www.zope.org/Members/jfarr/Patches/dtml-in-sv

I believe it would help a lot of newbies and delay the (inevitable :) 
day when they *really* need to use the _ namespace and python 
expressions

Cheers,
Tone
--
Dr Tony McDonald,  FMCC, Networked Learning Environments Project 
http://nle.ncl.ac.uk/
The Medical School, Newcastle University Tel: +44 191 222 5888
Fingerprint: 3450 876D FA41 B926 D3DD  F8C3 F2D0 C3B9 8B38 18A2

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




Re: [Zope] Zope URLS (was re: WebObjects)

2000-06-08 Thread Oleg Broytmann

On Thu, 8 Jun 2000, Rik Hoekstra wrote:
 so what is the use of the /? Couldn't all Zope URLs end without a /?

   This effectiveley stops all websuckers.

Oleg.(All opinions are mine and not of my employer)
 
Oleg Broytmann  Foundation for Effective Policies  [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


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




Re: [Zope] Zope.org Hidden Stats

2000-06-08 Thread Oleg Broytmann

On Thu, 8 Jun 2000, Tony McDonald wrote:
 If you're running Zope from behind Apache/PCGI then you *have* to run 
 Zope single threaded. Am I correct?

   No, you r not! Yoy can run multithreading ZServer and connect Apache to
it via PCGI. There are two PCGI servers in Zope - single-threaded and
builtin (as a component) in ZServer.

Oleg.(All opinions are mine and not of my employer)
 
Oleg Broytmann  Foundation for Effective Policies  [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


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




[Zope] Zope URLS

2000-06-08 Thread Chris Withers

Rik Hoekstra wrote:
 so what is the use of the /? Couldn't all Zope URLs end without a /?

I'm afraid this is the whole problem and it's caused by relative urls.

Say you're at http://host/x/y where y is a container that renders
index_html to be displayed, and in that index_html you haev a ref:

a href="b"b/a

Now what you mean by that is http://host/x/y/b but because there's no /
on the end, you actually get http://host/x/b

How Zope handles this is by sticking in that godawful base tag:
base href="http://hosy/x/y/"
which makes relative URLs work properly.

BUT, from what Gregor said earlier is a 'non-standard' way of doing it:
 traditionally in a static web server, if you try
 to access a URL like 'http://host/xyz' (without trailing slash), the server
 will return you an error '301 Moved permanently' and will point you to the
 new location 'http://host/xyz/

which is why I suggested all Zope URLs should end in / as all zope
objects can be containers in the 'traditional' sense.

Or we could just re-write HTTP to provide more useful information in the
first place ;-)

cheers,

Chris

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




[Zope] Re: ZSQL Bug in 2.1.6 [patch]

2000-06-08 Thread Chris Withers

Phill,

The zope list ([EMAIL PROTECTED]) is great for this sort of question ;-)

Phill Hugo wrote:
 Sorry to bother you. I've a quick question regarding acqusition in ZSQL
 methods. When I pass args the method ignores the REQUEST stuff unless I
 specify it in the args list. Is there a way to pass one arg specifically
 while allowing the others to be seen in the aquired namespace?

So you're calling dtml-in "SQLMethod(parm='something')"?

If so, you want:
dtml-in "SQLMethod(_.None,_,parm='something')"

If you're doing that already, I can't help you, it's probably a bug :/

cheers,

Chris

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




Re: [Zope] Plea: sequence-item and sequence_item in 2.2?

2000-06-08 Thread Chris Withers

Tony McDonald wrote:
 Can I make a plea that the .diff patch that Jonothan Farr posted a
 while back be included into the 2.2 release?
 http://www.zope.org/Members/jfarr/Patches/dtml-in-sv

Pretty Please :-)

Chris

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




[Zope] create object...

2000-06-08 Thread Pierre Rougier

hi,
following my question of this morning, I tried that:
dtml-with
"Control_Panel.Products.Objet_BIB_Product.ObjetBIB.createInObjectManager(Key,
REQUEST)"

which create me the object, but in the
Control_Panel.Products.Objet_BIB_Product Folder
I would like it to be created in the current Folder (the one from which
I try to create the object)... and don't see how, if I try:

dtml-with "ObjetBIB.createInObjectManager(Key, REQUEST)",
zope tells me that ObjetBIB does not work...

any idea???


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




Re: [Zope] Plea: sequence-item and sequence_item in 2.2?

2000-06-08 Thread Steve Drees

At 6/8/00 11:43:00 AM, you wrote:
Hi all,
Can I make a plea that the .diff patch that Jonothan Farr posted a 
while back be included into the 2.2 release?
http://www.zope.org/Members/jfarr/Patches/dtml-in-sv

I have yet to hear a downside to this patch. I second that motion. 
The patch has allowed me to clean up my code signifigantly.




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




Re: [Zope] www.zope.org cataloging server problem?

2000-06-08 Thread ethan mindlace fremen

ethan mindlace fremen wrote:
 
 Hung Jung Lu wrote:
 
  I have been trying to catalog a "News Item" and a "Product Release" inside
  www.zope.org, but I get the error
 
 I'm working on this one.

Now fixed.

ethan mindlace fremen
zopatista community liason

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




Re: [Zope] FSSession newbie problem

2000-06-08 Thread Marcello Lupo



Pavlos Christoforou wrote:
 
 Hi Marcello
 
 On Wed, 7 Jun 2000, Marcello Lupo wrote:
 
  and macically i obtain the same error.
  this is the code i used:
  dtml-call FSSession
  dtml-unless "FSSession.has_key('cart')"
  dtml-call "FSSession.set('cart',{})"
  /dtml-unless
 
  dtml-call "FSSession['carrello'].update(REQUEST.form)"
 
 
 Shouldn't the above be:
 
 dtml-call "FSSession['cart'].update(REQUEST.form)"
 
 Pavlos
Sorry ... Yes I use "carrello" in italian stay for cart and to send the
e-mail i have changed it in cart and in that  point i forgotten to
change carrello in cart for the e-mail. In few words i use everywhere
"carrello".
Sorry form the mistake but the problem is not there :-)
Thanks,
Marcello

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




Re: [Zope] FW: troubles with installing zope

2000-06-08 Thread ethan mindlace fremen

Andy Gayton wrote:
 
 Hi,
 
 I'm trying to install zope on an alpha box running CompaqTrue64 4.0F.  I've
 created a seperate account to run zope under.  I've installed zope
 under this user's home directory.

 Stack overflow: pid 23282, proc python, addr 0x14085ffe8, pc 0x120038c18

Which zope did you get? from source, I assume.  If so, what python are you
running?

~ethan

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




Re: [Zope] WorldPilot - Regular messages are attachments?

2000-06-08 Thread Paul Gresham

Be careful here ... I think you'll also find that should you try to download
the attachement, It'll kill Zope. If you're running Zope with -D it'll
restart, otherwise you'll find you have no web site after trying to
download. I'm not sure what it does to kill Zope as there is no error, just
death. It seems to be a bit intermittent as well, which doesn't help.

I'm trying to fix the problem and will post the patch once it's ready,
hopefully next week when I get back from China. (I'm nothing to do with the
WorldPilot chaps, I just want to use the s/ware)

Gresh


  From: Dieter Maurer  [EMAIL PROTECTED]
  Date: Wed Jun 7, 2000 9:03pm
  Subject: Re: [Zope] WorldPilot - Regular messages are
attachments?


  Bryan Stillwell writes:

   Here's the traceback I received:
  
 Sorry, a Zope error occurred.p
   !--
   Traceback (innermost last):
 File
/usr/share/zope/lib/python/Products/WorldPilot/WorldPilot.py, line 1878, in
getpart
   (Object: RoleManager)
 File
/usr/share/zope/lib/python/Products/WorldPilot/WorldPilot.py, line 856, in
getPart
 File
/var/tmp/python/python-root/usr/lib/python1.5/mimetools.py, line 146, in
decode
   ValueError: unknown Content-Transfer-Encoding: 8bit
"mimetools.encode/decode" do not handle transfer encodings "7bit", "8bit"
and
  "binary", because there is nothing to do for them.

  "WordPilot" should check for them and not call "decode".


   Another strange thing is the path to the mimetools.py
file in the
   traceback:
/var/tmp/python/python-root/usr/lib/python1.5/.  The
   /var/tmp/python/python-root path should have only been
used during the
   creation of the python rpm, but it's showing up now. The
"*.pyc" files remember the name they have been compiled from.

  Dieter

 smime.p7s


Re: [Zope] Zope.org Hidden Stats

2000-06-08 Thread Tony McDonald

At 10:52 am + 8/6/00, Oleg Broytmann wrote:
On Thu, 8 Jun 2000, Tony McDonald wrote:
  If you're running Zope from behind Apache/PCGI then you *have* to run
  Zope single threaded. Am I correct?

No, you r not! Yoy can run multithreading ZServer and connect Apache to
it via PCGI. There are two PCGI servers in Zope - single-threaded and
builtin (as a component) in ZServer.

Oleg.(All opinions are mine and not of my employer)

Thanks for that Oleg,
Well you live and learn...

To the zope list,
I'm going to go really slowly here, as this is something that has 
been bugging me for yonks!  (I have read doc/WEBSERVER.txt ... again 
and again).

1) Zope + Apache redirected to Zope.cgi with PCGI_PUBLISHER = 
pcgi/pcgi_publisher.py = single threaded server. No ZServer activity. 
Uses ZPublisher?

2) Zope + Apache redirected to Zope.cgi with PCGI_PUBLISHER = 
ZServer/PCGIServer.py = ZServer based multi-threaded server. Implies 
better throughput.

If I'm anywhere near close, can someone please point out any 
resources that will show me how to get option (2) working?

Additionally, can I ask that if (2) *is* correct, then with the 2.2 
release another script (w_zserver_pcgi.py ?) be released.

cheers,
tone
--
Dr Tony McDonald,  FMCC, Networked Learning Environments Project 
http://nle.ncl.ac.uk/
The Medical School, Newcastle University Tel: +44 191 222 5888
Fingerprint: 3450 876D FA41 B926 D3DD  F8C3 F2D0 C3B9 8B38 18A2

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




RE: [Zope] Re: [Zope-dev] possible security flaw? - and, request for a phone conference. conference.

2000-06-08 Thread Brian Lloyd

  Basically, if a user with manager privileges to a folder changes
  their
  password to be empty, then anyone (from permitted domains) 
 can access the
  management screen for that folder Without Logging On... 
 Zope assumes that
  you are the user without the password and treats you as if 
 you have those
  rights.
 
 This is a feature, but I don't know if or where it is 
 documented besides
 the source code (which is a bug if it isn't I guess).

You're right - it is a feature. You are also right that it isn't 
documented anywhere that I can find :(  I would suggest adding 
this to the Collector (as a 'Documentation Request'). 

Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.com 



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




[Zope] ZCatalog and plurals (wordnet?)

2000-06-08 Thread George Runyan

does ZCatalog support plurals?  zope.org is not, maybe its not running thew
latest n' greatest version of ZCatalog (for good reasons?).  anyway - if
search for 'logo' on zope.org you get nothing, but if you search for 'logos'
you get what I was looking for (to make some .ico files :) does someone have
an idea of the potential to put plurals into ZCatalog?  is it in the future
of ZCatalog.  in the presentation slides this is all that is said (thus
far): 

Cool features (Boolean, synonym/stopwords, field/keyword/text, wildcards)

would plurals fall under the catagory of, 'synonym/stopwords'?  sorry for my
ignorance but what is a stopword?  this is new feature (?) in CVS.  how is
this configured?  can ZCatalog and word.net be somehow integrated, this I
believe would incorporate natural language queries into ZCatalog, as well as
plurals!  what would be the integration point to this?  has anyone thought
about this?  it would probably be *REALLY* easy for someone familiar w/ the
ZCatalog to plug this in in less than a few hours.  not necessarily
practical (?) -- but I believe its an interesting idea.  again, where ~
would this be integrated?  any ideas?

wordnet: http://www.cogsci.princeton.edu/~wn/

python module:
http://www.cs.brandeis.edu/~steele/sources/wordnet-python.html


george runyan


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




Re: [Zope] creating object from method

2000-06-08 Thread Kevin Dangoor

Take a look at:
http://www.zope.org/Members/taz/addZClasses

Kevin

- Original Message - 
From: "Pierre Rougier" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 08, 2000 6:57 AM
Subject: [Zope] creating object from method


 Well, I didn't find it in the ZQR,
 I have a product which is able to create instantiate an object of a
 ZClass (using a factory).
 (so, I can add my special object from the Add list)
 
 In a dtml method, I want to create (instantiate) a new object of this
 ZClass..
 I tried manage_addProduct... a little by hazard, but I don't find the
 right primitive to do that
 isn't there something like
 manage_addObject(ZClass, id...)?




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




Re: [Zope] dtmll-in variables

2000-06-08 Thread josh on

Hi,

 I am trying to only perform a task if there are less than a certain amount
of records returned by a query.

Jonothan gave me the variable name for the record count:

  is there an easy way to get a record count of total number of items or
  iterations returned by a dtml-in tag?

 dtml-var sequence-length
 --jfarr

But I am struggling to put that into an if statement:

dtml-in linescontributed
line:dtml-var contentbr
dtml-var sequence-lengthbr
dtml-if "sequence-length == 10"
WHOOP WHOOP
/dtml-if
/dtml-in

There are ten lines returned by this query but zope sees the line:

dtml-if "sequence-length == 10"

and thinks I am trying to say sequence minus length,
rather than refer to the dtml var sequence-length

Could anyone help me ut with this?

josh on

On another smaller note how do I write a greater than sign in this context?








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




[Zope] creating objects... and change properties..

2000-06-08 Thread Pierre Rougier

Well, I am sorry to send three messages a day, but I am really
desappointed...

I use the following code:


dtml-with "manage_clone(livre1,Key,REQUEST)"

  dtml-call "manage_changeProperties(
   EntryType=REQUEST['Type'],
   author=Author,
   title=Title,
   year=Year,
   publisher=Publisher,
   volume=Volume,
   adress=Adress,
   edition=Edition,
   month=Month,
   note=Note
  )"
/dtml-with

(Author, Title. are knowed because in a dtml-let flag)
Well, livre1 is a object created by a SFactory (a product contening a
ZClass with a propertysheet)

Zope do not give me any error, instantiate the new object, but does not
change the properties of the new object. :^(

does anybody can tell me why?

I have seen a function "manage_afterClone"  in the ZQR... do u know what
is it?

Thanks... and sorry for all my emails...


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




[Zope] ZCatalog and Search Results

2000-06-08 Thread Aaron Payne

Hi all,

I have a zcatalog. I use the methods generated by Z Search Interface to 
search the catalog. These methods will not recognize new additions to the 
catalog. After adding a coupon instance, the catalog search fails to find 
the new coupon or even the the old coupons.

The add method of the zclass does have the statement: dtml-call 
reindex_object.  The ZClass is subclassed catalogaware.

There is a bug in Zope documented in the mailing lists.  I found and tried 
the following code for my zclass add method:

HTML
  HEADTITLEAdd Coupon ZClass/TITLE/HEAD
  BODY BGCOLOR="#FF" LINK="#99" VLINK="#55"
  dtml-if DestinationURL

   dtml-call "RESPONSE.redirect(
 DestinationURL+'/manage_workspace')"

  dtml-else

  dtml-call "RESPONSE.redirect(
 URL2+'/manage_workspace')"

  dtml-with "CouponProductZClass.createInObjectManager(REQUEST['id'], 
REQUEST)"
   dtml-call "propertysheets.Basic.manage_changeProperties(
REQUEST)"
   dtml-call reindex_object
  /dtml-with

  /dtml-if

  /body/html

When I try to and an instance I get this error:
Error Type: AttributeError
Error Value: _u

I am not sure how to restructure the method.

I've been working on this for a while and I am stuck.



Peacefully,
Aaron


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




[Zope] Wrong mime type sent by Zope on every page

2000-06-08 Thread Andrew Diller

Hello:

It was just brought to my attention that Zope (using Zserver) is sending the wrong MIME
type of all its pages.

Here is the header from zope: (some lines have been cut)
--

HTTP/1.0 200 OK
Server: Zope/Zope 2.1.6 (source release, python 1.5.2, linux2) ZServer/1.1b1
Date: Thu, 08 Jun 2000 15:45:23 GMT
Ms-Author-Via: DAV
Content-Type: application/octet-stream
Last-Modified: Thu, 8 Jun 2000 15:45:07 GMT


Here is one from apache:
-

HTTP/1.1 400 Bad Request
Date: Thu, 08 Jun 2000 15:29:59 GMT
Server: Apache/1.3.6 (Unix)
Content-Type: text/html


 I want Zope to be sending text/html, as some browsers want to download the page rather
than view it.

I haven't discovered anywhere to configure this.

I read the Setting the MIME Type of a DTML Method
http://www.zope.org/Members/anser/howto_dtml_mimetype

which claims that you can set the mime type of a method by putting it at the top of the
method. I did this on a test page, but still received the same header from Zope.


Can someone shed some light on this?

1. how to set the mime type for all methods and documents of Zope

2. What is the Ms-Author-Via: DAV in the Zope header? WebDAV?


thanks,

andy diller


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




[Zope] Importing/Exporting ZClasses

2000-06-08 Thread Pete Kazmier

Hi,

I know I've read this somewhere before but I can't seem to find it at
all on zope.org or the mail archives.  I need help importing a
ZClass.  I successfully export a python product called 'Gateway' and
then I successfully export my ZClass 'ZGateway' which is based on the
'Gateway' product.  But when I go to another machine, I can't
successfully import my ZClass 'ZGateway'.  I get this error:

Error Value: Failed to import class _ZClass_for_Pool from module
Products.Gateway

I've already loaded my product.  Does anyone know what I'm doing
wrong?  Or could you just point me to the doc that I'm 90% sure I've
read sometime ago.  

Thanks,
Pete

ps I'm using 2.2.0a1 if that matters.

-- 
Peter Kazmier http://www.kazmier.com
PGP Fingerprint   4FE7 8DA3 D0B5 9CAA 69DC  7243 1855 BC2E 4B43 5654

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




Re: [Zope] mssql system dsn hangs causing zope to be no more

2000-06-08 Thread Harald Ragger

Julio:
what version of zope do you run?

harald
- Original Message -
From: "julio dinis" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 08, 2000 1:49 PM
Subject: [Zope] mssql system dsn hangs causing zope to be no more


 Hi Zopistas!

 After some time of heavy use of the site the
 zserver goes zombie, and even restarting will put zope
 automatically zombie, never more.

 If I remove the system dsn I use with zodbc and restart zope,
 then zope runs like a ferrari. I than create again the odbc system
 dsn and everything is back again.

 But some time after the zombie arise from the grave :-(

 I'm looking at logs.
 Anyone with this problem?

 Júlio Dinis Silva
 
 Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


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




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




Re: [Zope] WorldPilot - Regular messages are attachments? (PatchFix)

2000-06-08 Thread Bryan Stillwell

On Thu, 8 Jun 2000, Paul Gresham wrote:

 Be careful here ... I think you'll also find that should you try to download
 the attachement, It'll kill Zope. If you're running Zope with -D it'll
 restart, otherwise you'll find you have no web site after trying to
 download. I'm not sure what it does to kill Zope as there is no error, just
 death. It seems to be a bit intermittent as well, which doesn't help.

Actually that traceback was from when I tried to view the
message(attachment), and it didn't kill my Zope process.


 I'm trying to fix the problem and will post the patch once it's ready,
 hopefully next week when I get back from China. (I'm nothing to do with the
 WorldPilot chaps, I just want to use the s/ware)

I'm already ahead of you there.  I went ahead and debugged it myself and
was able to fix the problem!  Here's the patch I came up with:

 CUT 
--- WorldPilot.py~  Fri Mar 10 13:04:29 2000
+++ WorldPilot.py   Thu Jun  8 10:01:04 2000
@@ -648,8 +648,8 @@
 ))
 else:
 offset=0
-   BodyType=ST[0]
-BodySubtype=ST[1]
+BodyType=string.upper(ST[0])
+BodySubtype=string.upper(ST[1])
 BodyParameterList=ST[2]
 BodyId=ST[3]
 BodyDescription=ST[4]
 CUT 


Enjoy!  I hope you had fun in China!

Bryan


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




[Zope] Getting a specific user role

2000-06-08 Thread Mabe, Brad

Forgive me if this has been covered before.

I am implementing a login/security scheme through the use of GUF and SQL
methods.  My user and role information is kept in a SQL database and a user
can have more than one role assigned to him/her.

What I would like to do is check if a specific role has been assigned to the
current user, and then display some additional menu items if that role has
been assigned.  I haven't been able to figure out how to get and check the
roles that have been assigned to the current user.

As usual, any help will be greatly appreciated.

 -=Brad=-


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




[Zope] localFS for existing files

2000-06-08 Thread Satheesh Babu

Hi,

I've a folder tree on the filesystem with around
75 sub-folders and 3000 image (jpg) files arranged
in these folders.

When I make a localFS object to mapto this folder,
I'm able to browse the tree, but clocking on the
individual files fail giving an error message saying 
"set_objTime failed"... However, if I upload something through
localFS' upload feature, there is no problem.

Any clues?

Thanks
Babu

http://vsbabu.csoft.net/

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




[Zope] generic user folder 1.2.4

2000-06-08 Thread technology

Hello guys:

today I have installed Generic user folder 1.2.4
Zope version 2.1.6
redhat 6.1
on apache with zope.cgi

I have untared the tgz into the top level in /home/Zope

I have restarted the zope several times.


When I go to Zope management and "add new item" + "Generic user folder"

I get to the "add a generic user folder" html page.

I leave all the settings at defualt wich includes the "cookie based" 
authentication radio button selected.


I click add.

Error type:KeyError
Error Value:Parent_url


I try this in different folder levels in zope to make sure it isnt a path 
issue.

I downloaded 1.2.2 and same thing.

I did this on two different zope boxes similer configuration.


thanks

[EMAIL PROTECTED]


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




[Zope] OReilly Open Source conference

2000-06-08 Thread Jeff Sasmor

Hi Zopistas,

Anyone else in this list going to the OReilly Open Source SW
convention July 17-20?.  Anyone interested in having an 
informal Zopista.party.dinner.beerfest.splunge (or whatever...) 
one night during the con or perhaps Sunday nite July 16?  

If enough people are interested I'll try to set something up.

Might be fun to hang out and share experiences stuff;

Since this is Off-Topic- probably you should respond via email to:

Jeff Sasmor
[EMAIL PROTECTED]


I'll post a summary to this list if enough people respond.  

PS: People from Digital Creations are welcome too!  


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




Re: [Zope] Wrong mime type sent by Zope on every page

2000-06-08 Thread Martijn Pieters

On Thu, Jun 08, 2000 at 11:51:03AM -0400, Andrew Diller wrote:
 It was just brought to my attention that Zope (using Zserver) is sending the wrong 
MIME
 type of all its pages.
 
 Here is the header from zope: (some lines have been cut)
 --
 
 HTTP/1.0 200 OK
 Server: Zope/Zope 2.1.6 (source release, python 1.5.2, linux2) ZServer/1.1b1
 Date: Thu, 08 Jun 2000 15:45:23 GMT
 Ms-Author-Via: DAV
 Content-Type: application/octet-stream
 Last-Modified: Thu, 8 Jun 2000 15:45:07 GMT
 
 
 Here is one from apache:
 -
 
 HTTP/1.1 400 Bad Request
 Date: Thu, 08 Jun 2000 15:29:59 GMT
 Server: Apache/1.3.6 (Unix)
 Content-Type: text/html
 
  I want Zope to be sending text/html, as some browsers want to download the page 
rather
 than view it.

You probably did a 'HEAD' request, at which point Zope doesn't render the
page, but rather only acknowledges it's existence by returning above (bogus)
response. 

If you do a 'GET' on your Zope resource, it _will_ be called, at which point
Zope can determine what content type to send. Zope will guess the content type
for you, usually this is text/html, but you can use the How-To you mentioned
to tell Zope otherwise.

-- 
Martijn Pieters
| Software Engineermailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
|   The Open Source Web Application Server
-

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




Re: [Zope] Wrong mime type sent by Zope on every page

2000-06-08 Thread Chris Withers

Martijn Pieters wrote:
 You probably did a 'HEAD' request, at which point Zope doesn't render the
 page, but rather only acknowledges it's existence by returning above (bogus)
 response.

That's not very search engine friendly :(
The head should return the same type as the real document otherwise
what's the point of returning a head at all?!

I think this is in the collector already, but if it isn't, it should
be...

cheers,

Chris

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




[Zope] LocalFS from DTML

2000-06-08 Thread Oliver Frommel

Hi,

how can I use the LocalFS product programmatically, i.e. add new files
using DTML, then get back to the index_html of the calling folder, instead of
using manage_upload?
I do the same thing with images using my own form and this DTML code:
dtml-call "manage_addImage(REQUEST['id'],file=REQUEST['file'])"
dtml-call "RESPONSE.redirect('index_html')"

thanks
--Oliver



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




RE: [Zope] Plea: sequence-item and sequence_item in 2.2?

2000-06-08 Thread Brian Lloyd

 Hi all,
 Can I make a plea that the .diff patch that Jonothan Farr posted a 
 while back be included into the 2.2 release?
 http://www.zope.org/Members/jfarr/Patches/dtml-in-sv
 
 I have yet to hear a downside to this patch. I second that motion. 
 The patch has allowed me to clean up my code signifigantly.

While I understand your wanting this, the problem is a little 
deeper than just naming consistency.

The sequence-* names were done that way intentionally to avoid 
consuming possible names and avoid clashes in the standard 
namespace, and changing the convention could cause clashes to 
become effective.

Have you looked at the "named dtml in loop" proposal on the DTML 
wiki on Zope.org?

http://www.zope.org/Members/4am/DTMLWiki/NamedDTMLInLoop

I think that this proposal would go a long way toward easing the 
spelling issue as well as solving some other pains involving using 
nested dtml-in loops...




Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.com

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




[Zope] Re: SQLSession and lexical token problems

2000-06-08 Thread Hung Jung Lu

--- In [EMAIL PROTECTED], Jason Lee [EMAIL PROTECTED] wrote:
I'm trying to use SQLSession, and not having much luck.

The other two choices are FSSession and HappySession. FSSession is 
File-System-based. HappySession is RAM-based.

HappySession is very easy to install and use. You don't need to worry about 
setting up database tables or file folder, you don't need to worry about 
cleaning up old session data, and you don't need to worry about initializing 
the session object in each REQUEST. If you (1) don't need to store the 
session data forever, (2) are willing to use cookie, (3) don't store 
gigantic session data, then you may consider using HappySession.

http://www.zope.org/Members/hungjunglu/Products/HappySession

regards,

Hung Jung



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


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




Re: [Zope] Wrong mime type sent by Zope on every page

2000-06-08 Thread Martijn Pieters

On Thu, Jun 08, 2000 at 06:59:29PM +0100, Chris Withers wrote:
 Martijn Pieters wrote:
  You probably did a 'HEAD' request, at which point Zope doesn't render the
  page, but rather only acknowledges it's existence by returning above (bogus)
  response.
 
 That's not very search engine friendly :(
 The head should return the same type as the real document otherwise
 what's the point of returning a head at all?!

But what if there are side effects to calling the document? What should
happen? I don't want a counter to go up or anything just because a HEAD was
called on the object.

This is not as black-and-white and simple an issue.

-- 
Martijn Pieters
| Software Engineermailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
|   The Open Source Web Application Server
-

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




[Zope] Problems uploading large attachments

2000-06-08 Thread Cary O'Brien


I am using confera to help coordinate some development work

I would like people to be able to upload large (100k) attachments
into the system so the documents can be shared by people at different
sites.  

I find that things work fine for small attachments, but for larger
attachments, Zope is very slow in reading from the socket, and the
browser often times out.

Any ideas?

Also, couldn't seem to run strace on the zope process.   I 
started under strace but the system went bezerk opening
sockets or something.  Is there any way to start a
single-process non-threaded zope server?

(Oh, Zope 2.1.6, Linux glibc/2.0.something kernel,ix86).

-- cary

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




[Zope] search on search results, dynamically

2000-06-08 Thread Philipp Dunkel

Hi out there,

I have a Catalog that indexes ZClasses (only one type).
Now I want to show the user all Instances in a list when
they come to the page.
The user should be able to use a search form to tailor down the
amount of results, e.g. if my ZClass would handle Cars,
they first see 500 car-objects, then they specify only reds,
they get 200 results from the 500. Now they can specify a price
and again the amount goes from 200 to say 50.
This means I have to search on the results.

Does anyone have an idea how to do this?

TIA
Philipp Dunkel


* Philipp DunkelICQ# 60149094  *
* zReal Productions*
* meet me at DALNet chan #phidu*




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




[Zope] dtml-tree with data from multiple tables

2000-06-08 Thread Lance Kurisaki

I'd like to generate a tree with data from different
SQL tables depending on the tree level. In other
words, the first level data  comes from one table,
second level comes from another.

How can the branches_expr expression determine what
the current tree  level is? Can I pass a parameter to
let me know the current level? I tried the following,
but it didn't work...

  dtml-tree id=name
branches_expr="child_lookup(_['tree-level'])"

Thanks,

Lance

__
Do You Yahoo!?
Yahoo! Photos -- now, 100 FREE prints!
http://photos.yahoo.com

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




Re: [Zope] Wrong mime type sent by Zope on every page

2000-06-08 Thread Chris Withers

Martijn Pieters wrote:
 But what if there are side effects to calling the document? What should
 happen? I don't want a counter to go up or anything just because a HEAD was
 called on the object.
 
 This is not as black-and-white and simple an issue.

The web is an imperfect medium, but returning a junk content type isn't
good.
I don't know the answer to the sideeffects thing, but I would come down
on the site of 'if you expose something through the web, you should
expect to have it spidered...' but that's cause I value search engine
hits a lot.

The trick would be to set the content type when the object is created
and have it stored in the object, not computed for each request.

Would a property suffice for that?

Then, say, if you knew your DTML method was going to return plain text,
you could set the content-type property to text/plain. Thsi could be
returned in the head without having to evaluate the object to return the
head, which is a bit innefficient.

I'm sure that's possible and better than it is now, but at the absolute
least the junk should cover the most likely outcome, ie text/html
instead of application/octet-stream, which is possibly the worst one I
can think to choose ;-)

cheers,

Chris

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




Re: [Zope] Re: ZSQL Bug in 2.1.6 [patch]

2000-06-08 Thread Rik Hoekstra



The zope list ([EMAIL PROTECTED]) is great for this sort of question ;-)

Phill Hugo wrote:
 Sorry to bother you. I've a quick question regarding acqusition in ZSQL
 methods. When I pass args the method ignores the REQUEST stuff unless I
 specify it in the args list. Is there a way to pass one arg specifically
 while allowing the others to be seen in the aquired namespace?

So you're calling dtml-in "SQLMethod(parm='something')"?

If so, you want:
dtml-in "SQLMethod(_.None,_,parm='something')"

If you're doing that already, I can't help you, it's probably a bug :/


Hm I'm afraid Phill was bitten by the SQLMethod only accepting named
parameters and fiddling with the namespace in ways I now can't remember.
Perhaps your solution helps, though

hth

Rik


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




Re: [Zope] dtml-tree with data from multiple tables

2000-06-08 Thread Rik Hoekstra





I'd like to generate a tree with data from different
SQL tables depending on the tree level. In other
words, the first level data  comes from one table,
second level comes from another.

How can the branches_expr expression determine what
the current tree  level is? Can I pass a parameter to
let me know the current level? I tried the following,
but it didn't work...

  dtml-tree id=name
branches_expr="child_lookup(_['tree-level'])"


I think Anthony baxter's "Some neat tricks with dtml-tree" url:
http://www.zope.org/Members/anthony/tree-coding-tricks  will help you out

Rik


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




[Zope] Re: dtml-tree with data from multiple tables

2000-06-08 Thread Lance Kurisaki

I'd like to generate a tree with data from different
SQL tables depending on the tree level. In other
words, the first level data  comes from one table,
second level comes from another.

How can the branches_expr expression determine what
the current tree  level is? Can I pass a parameter
to
let me know the current level? I tried the
following,
but it didn't work...

  dtml-tree id=name
branches_expr="child_lookup(_['tree-level'])"


I think Anthony baxter's "Some neat tricks with
dtml-tree" url:
http://www.zope.org/Members/anthony/tree-coding-tricks
 will help you out

That How-To uses the same SQL table to define children
at all levels of the tree. How can I use different
tables at different levels? Am I able to determine the
current level in my child_lookup() method?

Thanks,
Lance

__
Do You Yahoo!?
Yahoo! Photos -- now, 100 FREE prints!
http://photos.yahoo.com

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




[Zope] PARENTS

2000-06-08 Thread Tom Scheidt

Hi All,

I can't get

dtml-with PARENTS[1]

to work.

I want it reference the folder containing the folder
containing the document, but i get:

Error Type: KeyError
Error Value: PARENTS[1]

Thanks.

Tom Scheidt   |   www.falsemirror.com   |   [EMAIL PROTECTED]

---


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




Re: [Zope] PARENTS

2000-06-08 Thread Rik Hoekstra


-Original Message-
From: Tom Scheidt [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: donderdag 8 juni 2000 22:07
Subject: [Zope] PARENTS


Hi All,

I can't get

dtml-with PARENTS[1]

to work.

I want it reference the folder containing the folder
containing the document, but i get:

Error Type: KeyError
Error Value: PARENTS[1]



try: dtml-with "PARENTS[1]"

(untested)

Rik


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




RE: [Zope] Wrong mime type sent by Zope on every page

2000-06-08 Thread Brian Lloyd

  But what if there are side effects to calling the document? 
 What should
  happen? I don't want a counter to go up or anything just 
 because a HEAD was
  called on the object.
  
  This is not as black-and-white and simple an issue.
 
 The web is an imperfect medium, but returning a junk content 
 type isn't
 good.

I'll throw out a proposal on this. It also is not perfect, but 
seems to strike a happier balance. When HEAD is called on an 
object, what currently happens is:

  if a 'content_type' attribute exists, it is used

  else if the object's id seems to have a file extension
  (. in the id), try to use guess_content_type

  else fall back to the hated application/octet-stream 
   (or, I've seen x-unknown-content-type used before,
but I don't know if this is really any better).


What if we change this to:

  if a 'content_type' attribute exists, it is used

  else if the object's id seems to have a file extension
  (. in the id), try to use guess_content_type

  else if there is a 'default_content_type' attribute, use that

  else fall back to the hated application/octet-stream 
   (or, I've seen x-unknown-content-type used before,
but I don't know if this is really any better).

Then we could put a 'default_content_type' attribute in the 
class of dtml documents and methods, which would take care of 
the most common case. Thoughts?

Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.com 



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




Re: [Zope] PARENTS

2000-06-08 Thread Bill Anderson

Tom Scheidt wrote:
 
 Hi All,
 
 I can't get
 
 dtml-with PARENTS[1]

Have you tried dtml-with "PARENTS[1]" ?
I dont recall why ATM, but my rule-of-thumb is that if you are calling
ALLCAPS (ie. REQUEST,PARENTS...) wrap it in quotes.

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




[Zope] ANN: ZUBB 0.3.2 (Zope Ultimate Bulletin Board)

2000-06-08 Thread J. Atwood

http://www.zope.org/Members/BwanaZulia/ZUBB/

A few bugs fixed. A few more features added. Almost ready for prime time.

Take a look and email me with your comments. If you are using it and would
like to be linked to as an "example" site please send me the url.

The idea is to make sure the release works and then submit it for cataloging
on Zope.org.

Thanks,
J


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




RE: [Zope] Wrong mime type sent by Zope on every page

2000-06-08 Thread Dan L. Pierson

Brian Lloyd writes:
  What if we change this to:
  
if a 'content_type' attribute exists, it is used
  
else if the object's id seems to have a file extension
(. in the id), try to use guess_content_type
  
else if there is a 'default_content_type' attribute, use that
  
else fall back to the hated application/octet-stream 
 (or, I've seen x-unknown-content-type used before,
  but I don't know if this is really any better).
  
  Then we could put a 'default_content_type' attribute in the 
  class of dtml documents and methods, which would take care of 
  the most common case. Thoughts?

Sounds pretty good.  Setting 'default_content_type' can then be
another item in the unwritten Guide to Writing a Zope Product.

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




RE: [Zope] Wrong mime type sent by Zope on every page

2000-06-08 Thread Brian Lloyd


 -Original Message-
 From: Dan L. Pierson [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 08, 2000 3:47 PM
 To: Brian Lloyd
 Cc: 'Chris Withers'; Martijn Pieters; Andrew Diller; [EMAIL PROTECTED]
 Subject: RE: [Zope] Wrong mime type sent by Zope on every page
 
 Brian Lloyd writes:
   What if we change this to:
   
 if a 'content_type' attribute exists, it is used
   
 else if the object's id seems to have a file extension
 (. in the id), try to use guess_content_type
   
 else if there is a 'default_content_type' attribute, use that
   
 else fall back to the hated application/octet-stream 
  (or, I've seen x-unknown-content-type used before,
   but I don't know if this is really any better).
   
   Then we could put a 'default_content_type' attribute in the 
   class of dtml documents and methods, which would take care of 
   the most common case. Thoughts?
 
 Sounds pretty good.  Setting 'default_content_type' can then be
 another item in the unwritten Guide to Writing a Zope Product.

That's right - I expect that it could be useful for a few products. 
I can see XMLDocuments having a default of 'text/xml', but I suspect
that a lot of products won't really have to care. Things that have 
no real similarity to conventional "pages" (like database connection 
objects, etc.) are probably useless to a robot that works with "pages"
anyway, so they are better off sending a default non-committal 
response like "application/octet-stream".


Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.com 




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




Re: [Zope] PARENTS

2000-06-08 Thread Rik Hoekstra


-Original Message-
From: Tom Scheidt [EMAIL PROTECTED]
To: Rik Hoekstra [EMAIL PROTECTED]
Date: donderdag 8 juni 2000 22:27
Subject: Re: [Zope] PARENTS


The wierd thing is:

dtml-with PARENTS gives me the parent folder. (notice no quotes)

? strange

dtml-with PARENTS[1] gives me "Error Type: KeyError, Error Value:
PARENTS[1]"
dtml-with "PARENTS[1]" gives me the parent folder.


None give me the parent-parent folder.


which wasn't your original question. So use dtml-with "PARENTS[2]"
PARENTS is a list of parent objects, from the nearest parent to the root.
The root is always the last element in the PARENTS (that is written as
PARENTS[-1])

hth

Rik




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




[Zope] user contributions to Zope.org

2000-06-08 Thread Graham Chiu

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


This has been mentioned before, but some sites like the main PHP one
allow visitors to add comments to web pages.

My thought was that this should be relatively easy to implement with the
Zope.org site.  A small form at the bottom of each page, URL0 indexed in
a SQL table, and when a page is accessed, commentary is returned ordered
by submission date.

You may wish to allow only members rather visitors to make comments.

Anything wrong with this scenario ( apart from comments not being
Catalogued ) ?

- -- 
Regards,  Graham Chiu
gchiuatcompkarori.co.nz
http://www.compkarori.co.nz/index.php
Powered by Interbase and Zope

-BEGIN PGP SIGNATURE-
Version: PGPsdk version 1.7.1

iQA/AwUBOT9hrLTRdIWzaLpMEQLFfwCdFcoOFImah9VotLJuCGOw12KxIEkAn2+5
Cdhy/TF81iDBrBgC1l8Ao6Lb
=oVHM
-END PGP SIGNATURE-

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




RE: [Zope] sort_order???

2000-06-08 Thread michael angelo ruberto

hey that worked perfectly! thanks! most of my problems always seem to have
solutions right under my nose.  ;)

-mike-

-Original Message-
From: Charlie Derr [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 07, 2000 11:25 PM
To: [EMAIL PROTECTED]
Subject: FW: [Zope] sort_order???


You saw this one, right?

~c

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Phil
Harris
Sent: Tuesday, June 06, 2000 6:35 PM
To: michael angelo ruberto; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [Zope] sort_order???


Try:

dtml-in table-1 sort=date reverse

hth

phil
[EMAIL PROTECTED]


- Original Message -
From: "michael angelo ruberto" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: 06 June 2000 23:18
Subject: [Zope] sort_order???


 hello,

 ok, here is my code:

 dtml-in table-1 sort=date

 a href="dtml-var URL"dtml-var name/a | dtml-var value |
dtml-var
 URL | dtml-var attendee | dtml-var datebr
 /dtml-in

 what's wrong - nothing, it works fine. however, the result is sorted by
date
 ascending and i need it to be reversed. i found a reference to an
attribute
 "sort_order" which can be given an arg such as "sort_order=reverse". the
 problem here is that it won't work and i can't find any usage info on
 "sort_order". it isn't mentioned in the DTML Reference and after hours of
 searching the Zope website i am empty handed. does anyone know how to use
 this? thanks in advance.

 -mike-


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


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


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




Re: [Zope] Unless not quite the opposite of if?

2000-06-08 Thread Dieter Maurer

Curtis Maloney writes:
  On Thu, 08 Jun 2000, Curtis Maloney wrote:
   ...
   The problem is, when i test the page, it seems to pass over that that, and
   go right on with the page.  So, I tried to be a little more explicit:
  
   dtml-unless "REQUEST.has_key('parmName')"
 ...
   /dtml-unless
  
   dtml-if parmName
  
   (as I have done in MANY cases), it always evaluates true if 'parmName'
   exists in the current context.
That is consistent!

"unless" is equivalent to "if not".
When "if" evaluate to "true", "unless"  will skip its body and
vice versa.

'if var' evaluates to "true", if "var" exists and has a (Python) true
value.

Seems that your request really has a key 'parmName'.

  And worse still,  I've now decided to use the FSSession, and the following 
  line is evaluating true when it shouldn't:
  
  dtml-unless "FSSession.has_key('ReturnerID')"
  
  Since no FSSession keys have been set, this should evaluate FALSE.
The "FSSession.has_key('ReturnerID')" should of cause yield "false".
This means, the "dtml-unless" body is rendered.


Dieter

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




Re: [Zope] Several users having problem accessing field names of a ZSQL Method

2000-06-08 Thread Dieter Maurer

Jones, David H writes:
  For example, when I use the code:
  
  dtml-in SQL.names
dtml-let vname=sequence-item
vvalue="SQL()[0][_['sequence-index']]"
  dtml-var vname,
 dtml-var vvaluebr
/dtml-let
  /dtml-in
  
  I get the error:
  Error Type: KeyError
   Error Value: SQL.names
Look careful at the error information.

It tells you, that "SQL.names" is the problem.
Because, you did not enclose it in "...", it is treated
as a variable name (i.e. equivalent to dtml-in name="SQL.names")
and such a variable does not exist == KeyError.

What you probably wanted was: dtml-in "SQL.names"
Note the double quotation marks.
In this case, "SQL.names" is not treated as a variable name
but as a Python expression.

Probably, this will not work, either.
There are 2 further problems:
 1. "SQL" must probably be called
 2. "names" is a method and not an attribute; it must be called, too.

Try something like:
dtml-let result=SQL !-- will call SQL--
  dtml-in "result.names()"
dtml-let 
   vvalue="result[0][_['sequence-index']]"
   


Dieter

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




Re: [Zope] FW: troubles with installing zope

2000-06-08 Thread Dieter Maurer

Andy Gayton writes:
  I'm trying to install zope on an alpha box running CompaqTrue64 4.0F.  I've
  created a seperate account to run zope under.  I've installed zope
  under this user's home directory.
  
  This seemed to bring up the server ok, however there was a PROBLEM
  statement:
  2000-06-08T06:12:23 PROBLEM(100) ZServer Computing default hostname
You can ignore the PROBLEM statement.
It always comes and apparently has no effect.

  I could then point my browser at the server on 9080 and get the introductory
  page.  However, if I try to do anything else, like go to admin page or quick
  start documentation, the server raises the following debug message and the
  browser says that the document returned no data, try again later or contact
  system administrator  :
  
  Stack overflow: pid 23282, proc python, addr 0x14085ffe8, pc 0x120038c18
It seem that the thread stack is not large enough and that
Python (one of the Python threads) gets a stack overflow.

You may try to look into the OS documentation to find, whether
you can specify a default thread stack size.
If Python uses Posix threads on your machine, you may find the information
in the "pthread_create" documentation.

If you find nothing, I fear, you will have to fetch
the Python sources, provide large enough stack size
and recompile.


Dieter

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




Re: [Zope] Wrong mime type sent by Zope on every page

2000-06-08 Thread Chris Withers

Brian Lloyd wrote:
 What if we change this to:
 
   if a 'content_type' attribute exists, it is used
 
   else if the object's id seems to have a file extension
   (. in the id), try to use guess_content_type
 
   else if there is a 'default_content_type' attribute, use that

It would be cool if this could be acquired :-)

 
   else fall back to the hated application/octet-stream
(or, I've seen x-unknown-content-type used before,
 but I don't know if this is really any better).
 
 Then we could put a 'default_content_type' attribute in the
 class of dtml documents and methods, which would take care of
 the most common case. Thoughts?

Looks great otherwise :-)

Chris

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




[Zope] Re: FSSession newbie problem

2000-06-08 Thread Hung Jung Lu

--- In [EMAIL PROTECTED], Marcello Lupo [EMAIL PROTECTED] wrote:
and macically i obtain the same error.
this is the code i used:
dtml-call FSSession
dtml-unless "FSSession.has_key('cart')"
dtml-call "FSSession.set('cart',{})"
/dtml-unless

dtml-call "FSSession['carrello'].update(REQUEST.form)"

I have tried your code with 'cart' everywhere, and it worked just fine. Can 
you print out the form variables?  Are all the statements inside the same 
DTML file? It really works fine. Also, make sure that FSSession is in a 
parent folder of your DTML method. (Root folder is usually a good idea.) Is 
your machine cookie-enabled?


dtml-var standard_html_header
dtml-call FSSession
dtml-unless "FSSession.has_key('cart')"
  dtml-call "FSSession.set('cart',{})"
/dtml-unless
dtml-call "FSSession['cart'].update(REQUEST.form)"
dtml-var "FSSession['cart']"
dtml-var standard_html_footer


If you still have problems, you can try SQLSession or HappySession. For 
beginners I would recommend HappySession so you don't need to worry about 
the details of FSSession or SQLSession.

Download HappySession from
http://www.zope.org/Members/hungjunglu/Products/HappySession

Add an HappySession instance in your Zope hierarchy. Then try:


dtml-var standard_html_header
dtml-unless "SESSION.has_key('cart')"
  dtml-call "SESSION.set('cart',{})"
/dtml-unless
dtml-call "SESSION['cart'].update(REQUEST.form)"
dtml-var "SESSION['cart']"
dtml-var standard_html_footer


regards,

Hung Jung


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


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




[Zope] Guide to writing a Python Product for Zope?

2000-06-08 Thread Chris Withers

"Dan L. Pierson" wrote:
 Sounds pretty good.  Setting 'default_content_type' can then be
 another item in the unwritten Guide to Writing a Zope Product.

Well, hopefully this will actually get written sometime and we can all
stop scratching our heads everytime we want to know how to do something.

...that, or hacking it till it works and finding the thing we used was
being deprecated in the next point release... ;-)

cheers,

Chris

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




Re: [Zope] search on search results, dynamically

2000-06-08 Thread R. David Murray

On Thu, 8 Jun 2000, Philipp Dunkel wrote:
 amount of results, e.g. if my ZClass would handle Cars,
 they first see 500 car-objects, then they specify only reds,
 they get 200 results from the 500. Now they can specify a price
 and again the amount goes from 200 to say 50.
 This means I have to search on the results.

When you build the result page, put any searches already done
into hidden input fields in the form.  Then make sure those search
criteria get passed into Catalog as well as the new search selection.
Or depending on your interface model, you could put the searches
into normal fields, and the programming would become quite
simple grin.

--RDM


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




[Zope] ZSearch interface

2000-06-08 Thread Vaibhav



Hi,

I tried to add a zsearch interface as per the 
zcatalog tutorial. When I type a keyword in the raw field, I get the message 
"There was no data matching this Catalog query."

How do I create a search form in my folder? 


Hope someone can help.

Regards.


Re: [Zope] Problems uploading large attachments

2000-06-08 Thread R. David Murray

On Thu, 8 Jun 2000, Cary O'Brien wrote:
 Also, couldn't seem to run strace on the zope process.   I 
 started under strace but the system went bezerk opening
 sockets or something.  Is there any way to start a
 single-process non-threaded zope server?

I've noticed this, too, under BSDI 4.1 and FreeBSD 3.4.
When Zserver starts up, something (presumably in a Python
library) opens a separate listen socket on every possible
port number (or something like that).  Then they all go
away except the ones actually in use.

I observed this by the simple expedient of doing a
./start; lsof tempfile, and seeing all those open sockets.
I discovered this because running with a generic 3.4 kernel
I was getting a 'too many open files' message every time I
started Zope.

It hasn't kept anything from working, so I haven't bothered
to track this any further yet.

Oh, and you can start Zope single threaded by using the -D
switch, I believe.  I'm not sure that will help with the
socket berzerkness wry grin.

--RDM


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




[Zope] worldpilot and imap: readonly access

2000-06-08 Thread paul beard

worldpilot has issues with imap when the INBOX is open by some other
application . . . . . 

should be able to display and allow composition of email (pine does
this, for example, if I have my mail open in another imap client). 

Zope Error

  Zope has encountered an error while publishing this resource. 

  readonly

  Sorry, a Zope error occurred.

  Traceback (innermost last):
File
/usr/local/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, line
214, in publish_module
File
/usr/local/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, line
179, in publish
File /usr/local/Zope-2.1.6-linux2-x86/lib/python/Zope/__init__.py,
line 202, in zpublisher_exception_hook
  (Object: RoleManager)
File
/usr/local/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, line
165, in publish
File
/usr/local/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/mapply.py, line
160, in mapply
  (Object: prog)
File
/usr/local/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, line
102, in call_object
  (Object: prog)
File
/usr/local/Zope-2.1.6-linux2-x86/lib/python/Products/WorldPilot/WorldPilot.py,
line 1910, in prog
  (Object: RoleManager)
File
/usr/local/Zope-2.1.6-linux2-x86/lib/python/Products/WorldPilot/WorldPilot.py,
line 1831, in displayIfLoggedOn
  (Object: RoleManager)
File
/usr/local/Zope-2.1.6-linux2-x86/lib/python/Products/WorldPilot/WorldPilot.py,
line 369, in callResource
File
/usr/local/Zope-2.1.6-linux2-x86/lib/python/Products/WorldPilot/Resource.py,
line 137, in callResource
File
/usr/local/Zope-2.1.6-linux2-x86/lib/python/DocumentTemplate/DT_String.py,
line 502, in __call__
  (Object: string)
File
/usr/local/Zope-2.1.6-linux2-x86/lib/python/DocumentTemplate/DT_In.py,
line 633, in renderwob
  (Object: Logon.getIMAPFoldersList(REQUEST))
File
/usr/local/Zope-2.1.6-linux2-x86/lib/python/DocumentTemplate/DT_Util.py,
line 335, in eval
  (Object: Logon.getIMAPFoldersList(REQUEST))
  (Info: Logon)
File string, line 0, in ?
File
/usr/local/Zope-2.1.6-linux2-x86/lib/python/Products/WorldPilot/WorldPilot.py,
line 446, in getIMAPFoldersList
File
/usr/local/Zope-2.1.6-linux2-x86/lib/python/Products/WorldPilot/WorldPilot.py,
line 410, in getIMAPFolders
File
/usr/local/Zope-2.1.6-linux2-x86/lib/python/Products/WorldPilot/WorldPilot.py,
line 384, in getConnection
File
/usr/local/Zope-2.1.6-linux2-x86/lib/python/Products/WorldPilot/WPimaplib.py,
line 468, in select
  readonly: INBOX is not writable


--
Paul Beard / 206 728 4282 x138
Fizzylab / 2025 First Ave, Suite 1150
Seattle WA 98121

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




Re: [Zope] redirecting from inside a frame

2000-06-08 Thread Phil Harris

Chad,

Before I attempt an answer to your question, can I ask you a favour?

Please don't send HTML encoded mail to the list, lesser mortals use crappy
mailers and have trouble reading it 8¬)

Thanks in advance.

If I understand you correctly you want the form to goto a full browser
rather than remain in the frame set?

If so then something like, untested, should do the trick:

form method=post action="some_page" target="_top"
 .
.
 .
.
/form

the some_page script should then be in a full browser window and you can the
do whatever you need there, redirect etc.

hth

Phil
[EMAIL PROTECTED]




- Original Message -
From: Fusion Group
To: [EMAIL PROTECTED]
Sent: 09 June 2000 00:03
Subject: [Zope] redirecting from inside a frame


I'm attempting to submit a form from inside of a frame, and depending on the
information submitted, redirect to a new page which I no longer want
displayed inside of that frame.  I want the new page to displayed in the
full browser window, but not a new window. Any help would be greatly
appreciated.

Regards,

Chad


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




Re: [Zope] Getting a specific user role

2000-06-08 Thread Jason Spisak

Mabe, Brad writes:

 Forgive me if this has been covered before.

There's no real great documentation on using the security API, and it's
changing a bit anyway.

 
 I am implementing a login/security scheme through the use of GUF and SQL
 methods.  My user and role information is kept in a SQL database and a user
 can have more than one role assigned to him/her.
 
 What I would like to do is check if a specific role has been assigned to the
 current user, and then display some additional menu items if that role has
 been assigned.  I haven't been able to figure out how to get and check the
 roles that have been assigned to the current user.
 
 As usual, any help will be greatly appreciated.
 
  -=Brad=-

try:

dtml-if "AUTHENTICATED_USER.has_role('MyRole')"
My stuff
/dtml-if

Jason Spisak
CIO
HireTechs.com
6151 West Century Boulevard
Suite 900
Los Angeles, CA 90045
P. 310.665.3444
F. 310.665.3544

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.

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




Re: [Zope] user contributions to Zope.org

2000-06-08 Thread Graham Chiu

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

In article [EMAIL PROTECTED], Shane Hathaway
[EMAIL PROTECTED] writes

Not to put down your idea, but in what way is this not addressed? 

Because you can comment directly on the object in question - Eg. point
out some Zope Zen, or errors in products etc.

There are already free accounts for everyone to submit their own
content (not just comments, but anything that can be put in a member
folder) and access to wikis for everyone.


Rule of thumb - 3 clicks to anywhere in a web site.

And, how would I redirect a user to my commentary when they were at User
XYZ's product page?

For a site devoted to advancement of a product, aren't wikis more
useful than comment pages?

Quite disorganised. I've left comments on people's wikis and a month
later, nada.

Now, if you were to make a Wiki page that attached to the bottom of the
relevant page, then that would be better.



New ideas are, of course, encouraged.


I'll don my thinking cap!

- -- 
Regards,  Graham Chiu
gchiuatcompkarori.co.nz
http://www.compkarori.co.nz/index.php
Powered by Interbase and Zope

-BEGIN PGP SIGNATURE-
Version: PGPsdk version 1.7.1

iQA/AwUBOT+MLrTRdIWzaLpMEQKt8ACgjk6R4h2dVRlCuV+HBIh7OWQ5bBgAoK4K
M6yBTgzUP9ptkaIIe79Rk7Rt
=K73y
-END PGP SIGNATURE-

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




RE: [Zope] FW: troubles with installing zope

2000-06-08 Thread Andy Gayton

Thank you for your replys.

Andy  I could then point my browser at the server on 9080 and get the
introductory
Andy  page.  However, if I try to do anything else, like go to admin page
or quick
Andy  start documentation, the server raises the following debug message
and the
Andy  browser says that the document returned no data, try again later or
contact
Andy  system administrator  :

Andy  Stack overflow: pid 23282, proc python, addr 0x14085ffe8, pc
0x120038c18

Ethan Which zope did you get? from source, I assume.  If so, what python
are you
Ethan running?

It's Zope source version 2.1.6.  Python version 1.5.2 configured
with --with-dec-threads.

Dieter It seem that the thread stack is not large enough and that
Dieter Python (one of the Python threads) gets a stack overflow.
Dieter You may try to look into the OS documentation to find, whether
Dieter you can specify a default thread stack size.

We uped the settings and rebooted, but to no avail.  The current settings
are:
proc:
maxusers = 512
max-proc-per-user = 512
max-threads-per-user = 1024
per-proc-stack-size = 33554432
max-per-proc-stack-size = 67108864

Dieter If Python uses Posix threads on your machine, you may find the
information
Dieter in the "pthread_create" documentation.

Where abouts is this documentation kept ?

Andy.


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




Re: [Zope] PARENTS

2000-06-08 Thread Bill Anderson

Chris Withers wrote:
 
 Bill Anderson wrote:
 
  Tom Scheidt wrote:
  
   Hi All,
  
   I can't get
  
   dtml-with PARENTS[1]
 
  Have you tried dtml-with "PARENTS[1]" ?
  I dont recall why ATM, but my rule-of-thumb is that if you are calling
  ALLCAPS (ie. REQUEST,PARENTS...) wrap it in quotes.
 
 The all-caps things isn't the problem, dtml-var REQUEST will work fine
 :-)

Yeah, I recalled why I made that rule of thumb being python related in a
private email to Tom.
Guess I forgot to Cc the list. :)

I don't think I've ever used PARENTS or REQUEST alone (except for the
occasional debugging with REQUEST), so I always wind up needing to call
them the pythonic way.

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




[Zope] Secure storage of credit card info

2000-06-08 Thread R. David Murray

OK, any of you out there who have thought about ecommerce, cryptography,
and zope, I've got a design question for you.  Actually, this question
is independent of zope, but I need to solve it in a zope context.

You have a ZCommerce site.  You accept credit cards, and securely
communicate with a CC processor to verify the transacton.  Now,
you want to save the CC# and other info in case something needs
to be done with it later, and probably store the CC# so this
customer doesn't have to type it in again later.  Regardless
of whether you are storing this info in a relational database
or in the ZODB, how do you secure that information?  Ideally
I'd like it to be encrypted on disk.  Now, storing it in a database
probably makes it pretty hard to grep out even if a hacker
manages to snarf the database file, but I'd like to encrypt it.
But if I encrypt it, I have to have a decryption key somewhere.
Where do I store the decryption key so that the cracker who
snarfs the database file can't get it (just in memory somewhere?),
and yet have the system be able to boot itself, including having
the key, without human intervention?  It seems to me like
this is a Hard Problem, but I'm not up on the current
cyrptography practice.  So if there is a well known general
solution, I'd love to hear about it.  Otherwise, does anyone
know what current Best Practice is?

--RDM


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




[Zope] Re: [ZCommerce] Secure storage of credit card info

2000-06-08 Thread Bill Anderson

"R. David Murray" wrote:
 
 OK, any of you out there who have thought about ecommerce, cryptography,
 and zope, I've got a design question for you.  Actually, this question
 is independent of zope, but I need to solve it in a zope context.
 
 You have a ZCommerce site.  You accept credit cards, and securely
 communicate with a CC processor to verify the transacton.  Now,
 you want to save the CC# and other info in case something needs
 to be done with it later, and probably store the CC# so this
 customer doesn't have to type it in again later.  Regardless
 of whether you are storing this info in a relational database
 or in the ZODB, how do you secure that information? 

Step one, prepare for a fight with Amazon 0.5 wink

Personally, I would store the actual data on a seperate server, not
accessible to the public.

 When you need to place the order/verify funds/etc, your ZopeApp talks
to the private server, which returns either the data needed, or a yes or
no result. I prefer the latter, since the actual processing with the CC
clearinghouse can be done from there, thus largeley eliminating the
threat (though not destroying it entirely of couse) at the webserver.

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




[Zope] Re: [ZCommerce] Secure storage of credit card info

2000-06-08 Thread Derek Simkowiak

-  You have a ZCommerce site.  You accept credit cards, and securely
-  communicate with a CC processor to verify the transacton.  Now,

Besides Bill's suggestion, keep all your servers behind a good
firewall.  One option is to use Linux IP Masquerading, having your
webserver *and* database server use 192.168.0.??? IP Addresses.  Then,
turn on port forwarding on your Masq server, so that all incoming requests
on port 80 go to (something like) port 8080 on your webserver, which then
responds to the request.

You could just use an encrypted filesystem on the database server,
although that may be too slow (and possibly overkill?).  At that point
--assuming your firewall is secured-- you'd more or less need physical
access to your internal network to see those CC#s.  The only real danger
left is a misconfiguration (or bad code) in your webserver software.
(read: don't use IIS :)


--Derek


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




Re: [Zope] Re: [ZCommerce] Secure storage of credit card info

2000-06-08 Thread Derek Simkowiak

- I'd like to also have a one-box solution, though.

Ooh, that's bad JuJu.  Keeping CC#s on the same box as your
webserver?

a)  Pray there are no overflows/misconfigurations/etc. on the webserver
daemon.

b)  Turn off EVERY other service on that box (even ssh has had a buffer
overflow).  This means no remote system management (i.e. buy another
keyboard and monitor).

c)  [After the Fact]: Wonder why you didn't choose to spend another mere
$1200 for a separate (Linux Oracle) server

In short, if you're worried enough to encrypt the database files
on disk, you're worried enough to have a separate database server.


--Derek


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




Re: [Zope] user contributions to Zope.org

2000-06-08 Thread ethan mindlace fremen

Grahm,

We're definitely going to have things that are more like this.  We are
definately going to allow you to "hook" your members items into different parts
of zope.org and even, possibly, allowing people who use the built-in help of
zope.2.2 to see your howto.

There's going to be more discussion, and action, in the zope-web mailing list:
http://lists.zope.org/mailman/listinfo/zope-web

I'd really appreciate it if further suggestions  discussion along these lines
occurred there.

Thanks for your input,

ethan mindlace fremen
Zopatista Community Liason

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




Re: [Zope] ZCatalog and Search Results

2000-06-08 Thread Aaron Payne

Jason,

At 11:41 pm 6/8/00 +, Jason Spisak wrote:
You have the dtml-if statement in the wrong place if you want the object to
be created and then redirect. First, try it without the dtml-if statement
like so.

  HTML
HEADTITLEAdd Coupon ZClass/TITLE/HEAD
BODY BGCOLOR="#FF" LINK="#99" VLINK="#55"

dtml-with "CouponProductZClass.createInObjectManager(REQUEST['id'],
  REQUEST)"
 dtml-call "propertysheets.Basic.manage_changeProperties(
  REQUEST)"
 dtml-call reindex_object
/dtml-with
/body/html

I tried this in the add method. Actually, both the old and the new method 
reindexed the instance.  The problem occurs when I try to search the 
catalog after adding the zclass.  After adding an instance, the catalog 
search fails to find the new coupon or even the the old coupons.  Only when 
I manually update the catalog in the mangament interface will it return any 
matches.

Does it index it?

Jason Spisak

Thanks,
Aaron


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




Re: [Zope] ANN: ZUBB 0.3.2 (Zope Ultimate Bulletin Board)

2000-06-08 Thread J. Atwood

At 11:31 AM +1300 6/9/2000, Graham Chiu wrote:
How about default sorting the message threads so that the thread with
the most recent reply is at the top?

This would be possible but I think it would be confusing to the user 
(posts would jump to the top). See below...

And instead of just having the number of messages in a thread in
brackets at the end of the thread header, also include the last date, or
the number of new messages since the visitor last was at the ZUBB (
since you're using a persistent cookie )?

I would love to add the ability to include the "last viewed" cookie 
feature. I will add it to the future feature list.

The big thing on my plate though, is how to limit the amount of 
threads shown. Once you get beyond 100 or so I am worried about 
performance and download size. If anyone has any knowledge about 
limiting tree views that would be great.

Thanks,
J




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




Re: [Zope] Getting a specific user role

2000-06-08 Thread Stuart 'Zen' Bishop

On Thu, 8 Jun 2000, Mabe, Brad wrote:

 Forgive me if this has been covered before.
 
 I am implementing a login/security scheme through the use of GUF and SQL
 methods.  My user and role information is kept in a SQL database and a user
 can have more than one role assigned to him/her.
 
 What I would like to do is check if a specific role has been assigned to the
 current user, and then display some additional menu items if that role has
 been assigned.  I haven't been able to figure out how to get and check the
 roles that have been assigned to the current user.
 
 As usual, any help will be greatly appreciated.

(untested)

dtml-if "'myrole' in AUTHENTICATED_USER.getRolesInContext(this())"
User has the myrole role
/dtml-if

getRoles is also there if you don't want to check for local roles.

-- 
Stuart Bishop  Work: [EMAIL PROTECTED]
Senior Systems Alchemist   Play: [EMAIL PROTECTED]
Computer Science, RMIT University


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




Re: [Zope] generic user folder 1.2.4

2000-06-08 Thread Stuart 'Zen' Bishop

On Thu, 8 Jun 2000 [EMAIL PROTECTED] wrote:

 today I have installed Generic user folder 1.2.4
 Zope version 2.1.6
 redhat 6.1
 on apache with zope.cgi

Have you installed SiteAccess?

I can't think of other products that might cause wierd stuff like
this. It would be worth testing with a fresh Zope install to see
if the problem is being triggered by another 3rd party product.

 When I go to Zope management and "add new item" + "Generic user folder"
 
 I get to the "add a generic user folder" html page.
 
 I leave all the settings at defualt wich includes the "cookie based" 
 authentication radio button selected.

 Error type:KeyError
 Error Value:Parent_url

You will need to post the traceback. Parent_url isn't used in GUF
anywhere, so I'm guessing it is another product that is barfing.

-- 
Stuart Bishop  Work: [EMAIL PROTECTED]
Senior Systems Alchemist   Play: [EMAIL PROTECTED]
Computer Science, RMIT University


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




Re: [Zope] ANN: ZUBB 0.3.2 (Zope Ultimate Bulletin Board)

2000-06-08 Thread Jim Harrison

on 6/8/00 10:59 PM, J. Atwood at [EMAIL PROTECTED] wrote:

 How about default sorting the message threads so that the thread with
 the most recent reply is at the top?
 
 This would be possible but I think it would be confusing to the user
 (posts would jump to the top). See below...

I've customized Squishdot myself to add this feature, which is very useful
in collaborative work. The effect is that topics (threads) which have
ongoing activity stay near the top of the list. Threads that become quiet
slide down the list until they fall off the bottom. This serves to highlight
active discussions and works nicely in support of workgroups and committees.
I'd recommend that you make this an option in ZUBB.

Jim Harrison
University of Pittsburgh


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




Re: [Zope] WorldPilot - Regular messages are attachments? (PatchFix)

2000-06-08 Thread Paul Gresham

Excellent, thanks Bryan. I have another question? Do you have problems with
browsers not obtaining the correct filenames of attachments when they are
downloaded, i.e. the file becomes ATT0002.DAT or similar? I have this
problem and also if I choose to download a file and then cancel the dialog,
everything seems to get stuck, and I have to close the browser and start
again.

Regards
Paul

- Original Message -
From: Bryan Stillwell [EMAIL PROTECTED]
To: Paul Gresham [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, June 09, 2000 12:15 AM
Subject: Re: [Zope] WorldPilot - Regular messages are attachments?
(PatchFix)


 On Thu, 8 Jun 2000, Paul Gresham wrote:

  Be careful here ... I think you'll also find that should you try to
download
  the attachement, It'll kill Zope. If you're running Zope with -D it'll
  restart, otherwise you'll find you have no web site after trying to
  download. I'm not sure what it does to kill Zope as there is no error,
just
  death. It seems to be a bit intermittent as well, which doesn't help.

 Actually that traceback was from when I tried to view the
 message(attachment), and it didn't kill my Zope process.


  I'm trying to fix the problem and will post the patch once it's ready,
  hopefully next week when I get back from China. (I'm nothing to do with
the
  WorldPilot chaps, I just want to use the s/ware)

 I'm already ahead of you there.  I went ahead and debugged it myself and
 was able to fix the problem!  Here's the patch I came up with:

  CUT 
 --- WorldPilot.py~ Fri Mar 10 13:04:29 2000
 +++ WorldPilot.py Thu Jun  8 10:01:04 2000
 @@ -648,8 +648,8 @@
  ))
  else:
  offset=0
 - BodyType=ST[0]
 -BodySubtype=ST[1]
 +BodyType=string.upper(ST[0])
 +BodySubtype=string.upper(ST[1])
  BodyParameterList=ST[2]
  BodyId=ST[3]
  BodyDescription=ST[4]
  CUT 


 Enjoy!  I hope you had fun in China!

 Bryan




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




Re: [Zope] Unless not quite the opposite of if?

2000-06-08 Thread Curtis Maloney

On Fri, 09 Jun 2000, Dieter Maurer wrote:
 Curtis Maloney writes:
   On Thu, 08 Jun 2000, Curtis Maloney wrote:
...
The problem is, when i test the page, it seems to pass over that that,
and go right on with the page.  So, I tried to be a little more
explicit:
   
dtml-unless "REQUEST.has_key('parmName')"
  ...
/dtml-unless
   
dtml-if parmName
   
(as I have done in MANY cases), it always evaluates true if 'parmName'
exists in the current context.

 That is consistent!

 "unless" is equivalent to "if not".
 When "if" evaluate to "true", "unless"  will skip its body and
 vice versa.

 'if var' evaluates to "true", if "var" exists and has a (Python) true
 value.

 Seems that your request really has a key 'parmName'.

It doesn't.  Really.  I'm certain of this.  The key was not there, and yet 
the unless was not rendered.  This is why I'm posting.  It's not working as 
it should.

I guess I'm funny like that.  I only post problems when they exist.


   And worse still,  I've now decided to use the FSSession, and the
   following line is evaluating true when it shouldn't:
  
   dtml-unless "FSSession.has_key('ReturnerID')"
  
   Since no FSSession keys have been set, this should evaluate FALSE.

 The "FSSession.has_key('ReturnerID')" should of cause yield "false".
 This means, the "dtml-unless" body is rendered.


Well, this is my point.   The body was NOT being rendered.


Just to follow this,  I'm now using

dtml-if "FSSession.has_key('ReturnerID')" 
  normal page contents
dtml-else
  handle it otherswise.
/dtml-if

and it is working fine.  However, since the handle it otherwise stuff is a 
redirect, I'd much rather just use an unless at the start of my page.


 Dieter

-- 
Have a better one,
Curtis.

dtml-var standard_work_disclaimer

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




Re: [Zope] Zope, Apache/NT, Reliability issues

2000-06-08 Thread Martijn Pieters

On Thu, Jun 08, 2000 at 07:25:15PM -0300, Fabio Akita wrote:
 I´ve used the ZServer in stand alone mode and I also have implemented
 the easy Proxy Reverse trick in Apache. I will try FastCGI and PCGI as
 soon as possible, but I have some doubts now.

 My test platform is a Windows NT 4 running Apache 1.3.12. The first
 doubt comes to the fact that I could not find the pcgi module for NT (I
 do not have any kind of C compiler, so I´ll be very glad if anyone know
 a binare version). So I´d like to know where can I find informations
 about installing Zope using PCGI in an NT Apache installation.

It could be someone else has already compiled it and used it.

 The second doubt: what exactly are the differences of running it in PCGI
 mode or in ZServer? I do understand the concept of forking a process and
 interfacing a web server and a process through a CGI interface as PCGI
 and I also understand the fact of the multithreading feature in ZServer.
 
 Basically it would mean that each connection request will fork a new
 Zope connection and then maintain it in some kind of a connection pool
 (as databases do)? Or will there be only one process running Zope and a
 queue of requests to access it? What are the performance impacts, what
 are the hardware (memory/CPU) impacts? Personally I do not like the
 concept of CGI but know nothing about the Persistent CGI concept.

PCGI passes on requests to Zope, where Zope can handle multiple requests at
the same time. Basically, requests are handed over to ZServer ass if the
request came in directly. PCGI takes some care of waiting for ZServer to
become available if it is congested.

So, there is one Zope instance running that can listen to normal HTTP
requests, FTP requests and PCGI requests (any combination of that). The PCGI
CGI's are fielded on requests coming though Apache and hand back the results
to the client.

 And what about the method of "masquerading" the ZServer through Apache?
 I have read solutions using the Rewrite module and the Proxy module, but
 it actually means (roughly speaking) that if there are 10 requests
 made to Apache then it will make 10 requests to ZServer so, considering
 only the reliability issue of the server even if Apache can handle
 millions of requests per second, the ZServer would fall down much faster
 than that so I cannot see any advantage of using Apache in front of it.
 Of course I understand the other advantages of Apache as it´s many
 configuration options, robustness as a web server, etc, but can the
 ZServer stay up and running in pair with Apache? Maybe there´s any way
 to configure Apache to cache the pages -- as a Squid would -- so it can
 "filter" the requests and low the requests level that it will do to
 ZServer?

People generally use Apache for combining Zope with other content. Zope is
good at serving dynamic content, Apache at static, so if you serve Zope behind
Apache, you can mix and match. Also, when you have existing CGI, PHP or other
Apache dependant content that you want to make available from the same base
URL, you will need to use Apache in front of Zope.

You can, IIRC, use tge ProxyPass trick together with caching as well,but I
have no experience with that. There is one big disadvantage to using ProxyPass
at the moment, which is that you need to use the SiteAccess product to make it
work correctly. The SiteAccess product has some known issues and causes
regressions in parts of Zope, like the ZCatalog. These issues _shold_ be
solved with the upcoming 2.2 release of Zope.

 And what about it´s object oriented database? I also have some doubts
 about it. I worked a lot with relational databases as MS SQL and MySQL
 but never tried to study an OO approach to DB. How fast it is? How much
 requests can it handle without hanging, collapsing or corrupting data? I
 mean, anyone tried to do some study of a database that changes everytime
 and have queries everytime, I mean, searches in a database where it´s
 data changes constantly (searching a static database is much different
 than searching on a mutable one). Row level locking, transaction,
 consistency, etc, all these concepts apply here? Can it be substituted
 by a traditional relational database and have it´s contentes interfaced
 to "looks like" object oriented?

The ZODB, Zope's Object Database, is an integral part of Zope. As soon as you
look at Zope through the management interface, you are looking at objects
stored in the ZODB. Zope is inherently OO, and you generally use object
instances to build your site.

The ZODB is transactional, is optimized for high reads, low writes, and takes
care of access conflicts not by locking, but invalidating all connections that
use an object that has been altered by another connection. Zope reacts to this
by retrying the requests whose connection was invalidated. Because everything
is transactional, this works great. There is detailed documentation on ZODB
available at: