Re: [Zope] ZServer Statistics
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?
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: html head dtml-if expression1 dtml-call "REQUEST.set('myFlag',1)" ... do something ... /dtml-if dtml-if expression2 dtml-call "REQUEST.set('myFlag',1)" ... do some othe stuff ... /dtml-if /head body dtml-if myFlag Say something about expression1 or 2 ... dtml-else Say the other stuff ... /dtml-if /body /html -- 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
Been there, done that s. It requires 2.2+. But boy am I looking forward to using it as soon as 2.2 is out of beta. VBG. 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 )
Re: [Zope] how to check if the ResultSet is null?
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 (tr td width="40%" align="right"Email Addressnbsp; /td td width="60%"input type="text" name="usr_email" size="20"/td /tr) This form takes an action in which I have following lines: dtml-if search_membership pYour email address has been used. /p dtml-else dtml-call personinfo_insert h2Welcome dtml-var name="usr_fname"! You became a new user./h2 /dtml-if Does it work, if you use the dtml-indtml-else/dtml-in construct as follows: dtml-in search_membership size=1 pYour email address has been used. /p dtml-else dtml-call personinfo_insert h2Welcome dtml-var name="usr_fname"! You became a new user./h2 /dtml-in 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] how to check if the ResultSet is null?
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 = dtml-sqlvar usr_email type=string" 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: dtml-if getThisAddress You are already in the database /dtml-if 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
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] Subfolder problem (acquisition?)
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
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 )
Re: [Zope] About Powered by Zope...very simple, isn't it?
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??
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@barsubject=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@barsubject=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 )