Re: [Zope] ZServer Statistics

2000-07-21 Thread Robert Wohlfahrt

Hi,

> Is there way to determine how many (and which)pages
> ZServer serves? I am running ZServer as my primary

Have a look into

/path_to_your_zope/var/Z2.log 

Robert
-- 
Robert Wohlfahrt ([EMAIL PROTECTED])
Tel: 0179 / 2980074 Fax: 0351 / 2880145

___
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 to skip processing the rest of a dtml document?

2000-07-20 Thread Robert Wohlfahrt

Hi,

> But if one of de if clauses evaluates true, I like it returns for example a
> sentences displaying an error.
Try to use something like a flag:





... do something ...



... do some othe stuff ...





Say something about expression1 or 2 ...

Say the other stuff ...



-- 
Robert Wohlfahrt ([EMAIL PROTECTED])
Tel: 0179 / 2980074 Fax: 0351 / 2880145

___
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 to check if the ResultSet is null?

2000-07-14 Thread Robert Wohlfahrt

Hi,

> Hi, I still got problems after I changed my code according to your 
> suggestion. Here is the detail describtion of my code:
> In registration form, I have a table which contain a field usr_email 
>  (
> Email Address  
> 
>   )
>   
> This form takes an action in which I have following lines:
> 
> Your email address has been used. 
> 
> 
> Welcome ! You became a new user. 
> 

Does it work, if you use the  construct
as follows:

Your email address has been used. 


Welcome ! You became a new
user. 


If not, are you sure you inserted usr_email into the "Arguments"-field
of your sql-Method?

Robert
-- 
Robert Wohlfahrt ([EMAIL PROTECTED])
Tel: 0179 / 2980074 Fax: 0351 / 2880145

___
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] BTreeFolder

2000-07-14 Thread Robert Wohlfahrt


> Been there, done that . It requires 2.2+. But boy am I looking
> forward to using it as soon as 2.2 is out of beta. .

thank for your answer. As soon as I have a bit more time i will try
2.2+.

Robert
-- 
Robert Wohlfahrt ([EMAIL PROTECTED])
Tel: 0179 / 2980074 Fax: 0351 / 2880145

___
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] BTreeFolder

2000-07-13 Thread Robert Wohlfahrt

Hi,

I want to try out the BTreeFolder product. I unpacked it an restarted
Zope, but int the Products-management screen it shows up as a broken
product. I use Zope-2.1.4 ...

Below is the Traceback it gives me on a click:
-
BTreeFolder Import Traceback

Traceback (innermost last):
  File "/usr/local/Zope-2.1.4-src/lib/python/OFS/Application.py", line 387, in 
import_products
product=__import__(pname, global_dict, global_dict, silly)
  File "/usr/local/Zope/lib/python/Products/BTreeFolder/__init__.py", line 89, in ?
import BTreeFolder
  File "/usr/local/Zope/lib/python/Products/BTreeFolder/BTreeFolder.py", line 89, in ?
from AccessControl import getSecurityManager
ImportError: cannot import name getSecurityManager
-

any ideas?

Robert
-- 
Robert Wohlfahrt ([EMAIL PROTECTED])
Tel: 0179 / 2980074 Fax: 0351 / 2880145

___
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 to check if the ResultSet is null?

2000-07-13 Thread Robert Wohlfahrt

Hi,

> 
> Hi, I stuck on a problem: I am creating a registration form. I need
> to check if the person info has already in database. I created a Z SQL
> method which I used "select usr_email from info(table name) where
> usr_email = " I want to call this
> method from my dtml method and see if it returns "null". But I'm not
> sure how to implement this. In Java, it has ResultSet which I can

let's say, you called your ZSQL-method "getThisAddress"

then you can do something like this:


You are already in the database


Robert
-- 
Robert Wohlfahrt ([EMAIL PROTECTED])
Tel: 0179 / 2980074 Fax: 0351 / 2880145

___
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] Subfolder problem (acquisition?)

2000-07-12 Thread Robert Wohlfahrt

Hi,

>I can see the root index_html, but I can't see sub folder -
> AttributeError.
>I think when I view "sub", it acquire index_html from root, but what is
> the problem with AttributeError?

I had the same problem and I solved it by using a DTML-Method for
index_html, not a DTML-Document.

Hope that helps

Robert
-- 
Robert Wohlfahrt ([EMAIL PROTECTED])
Tel: 0179 / 2980074 Fax: 0351 / 2880145

___
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] How to set Proxy-Roles

2000-07-10 Thread Robert Wohlfahrt

Hi,

i have a DTML-Method that adds a subfolder to a folder. I want to give
anonymous users the permission, to add a Folder by using this
DTML-Method. I added the Proxy-Role "Manager" to this DTML-Method, but
anonymous users still can't use it - everytime they get a 
"You are not authorized to access manage_addFolder".
Where is my mistake?

Thanks
Robert


___
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] Proxy Roles

2000-07-06 Thread Robert Wohlfahrt

Hi,

i have a Problem using Proxy-Roles:

i have following folders:

/foo/
bar1/
comments/
TEMPLATE
bar1/
comments/
TEMPLATE
barN/
...

/make_a_comment/
submit

>From a DTML-Method in "make_a_comment" I want to copy the folder
TEMPLATE in a spezified comments-Folder and change some properties.
I wrote a dtml-method called "submit":








Now I want to use a Proxy-Role for "submit" to make it possible for
everyone to add a comment with this method.
I added the proxy-role "manager" to the "submit"-method. But if I
access submit as anonymous, Zope still means, I don't have
permissions to add a folder to /foo/barx/comments/...  
Any ideas to solve this problem? I use Zope-2.1.4 on a RedHat Linux

Thanks

Robert
-- 
Robert Wohlfahrt ([EMAIL PROTECTED])
Tel: 0179 / 2980074 Fax: 0351 / 2880145

___
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] About "Powered by Zope"...very simple, isn't it?

2000-07-04 Thread Robert Wohlfahrt

Hi,

> well... this is not a very important thing, but I would like to remove
> the picture "Powered by Zope" at the end of my Zope Pages...
> is it possible..? I though it was in the "standard html header" but it
> seems that it is not...gasp...

it is in standard_html_footer ...

Robert

___
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] SMTP server external method??

2000-06-18 Thread Robert Wohlfahrt

Hi,

> If not, how do you handle email in zope for a web-based system??  just
> periodically create objects from the contents of /var/spool/mail/user ... or
> use some other method??  ideally, the object's various properties would be
> set upon instantiation...stuff like header fields would correspond to
> properties...etc...
> 
> For those that handle email in Zope, how do you approach this??

I didn't try it, but I would prefer the following method:

First create a Zope-Application that creates objects from an URL like

http://your_host/your_appplication?sender=foo@bar&subject=the_ultimate_subject&;.

Then create a mail-filter to pipe the mail to a script. This script
gets the headers and other infos from the incoming mail and forms an
url for your Zope-application. Pipe this URL to a command-line Browser
like lynx.

lynx -dump 
http://your_host/your_appplication?sender=foo@bar&subject=the_ultimate_subject&;.

I hope this should do, what you want ...

Robert

___
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 )