[Zope] dtml-var expr=maand missing=1???
Hello, How can I use an undefined variable in an expression? I made a DTML document which gets parameters from the URL, like "/nieuw?maand=1". But I also want it to work when no parameters are given. 'Missing' should be the answer, but the following doesn't work: dtml-var expr="_.int(maand)+1" missing=1 dtml-let defmaand=maand missing=1.../dtml-let dtml-in listbydate reverse size=20 start=maand missing=1 I expected to find a solution in http://www.zope.org/Members/michel/ZB/DTML.html http://www.zope.org/Members/michel/ZB/AppendixA.html but couldn't find it. Edwin (who would be so happy with *good* documentation) --- To be upset over what you don't have is to waste what you do have. -- Unknown Surf Edwin Martin's brainwaves: http://www.bitstorm.org/edwin/ ___ 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-in: total??
Hello, I'm making a generic DTML-method which shows a bar like AltaVista does: [ previous] [1] [2] [3] [4] [next ] I need to know the number of rows the database returned. In appendix A of the Zope book, I see I can use total-name etc. How can I get the total number of rows, independent of column names? Can I do it without rewriting the SQL-queries? Bye, Edwin Martin. --- The world is moving so fast these days that the person who says it can't be done is generally interrupted by someone doing it. -- Harry Emerson Fosdick ___ 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] SiteAccess / SUPPRESS_ACCESSRULE bad (urgent)
Hello, I'm running an Zope website behind an Apache proxy. Because Zope is running on port 9673, some links pointed to this port and the URL showed mydomain:9673... To prevent this, I installed SiteAccess and I put a SiteRoot in the root of my Zope web. I entered: Base: http://www.mydomain.nl/ Path: / Since then I can't access http://www.mydomain.nl/manage. I do get the password-box and frames, but both frames show 'Not Found'. Not Found The requested URL //manage_workspace was not found on this server. Opening the frame in a new window and removing the second / doesn't solve the problem. I looked up the docs of SiteAccess and found setting a environment variable and restarting Zope would help. So I tried that: # SUPPRESS_ACCESSRULE=1;export SUPPRESS_ACCESSRULE # env ... shows SUPPRESS_ACCESSRULE=1 ... # /etc/init.d/zope restart Restarting Zope... done. Unfortunately, the problem is still there. Anybody knows an answer to my problem? I really hope so, it's a live site! Bye, Edwin Martin. ___ 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] SiteAccess / SUPPRESS_ACCESSRULE bad
Bill wrote: Sounds like something's wrong with your apache conf. Please show us what that looks like. I'm running a similar setup on Debian, too, and it works fine. Fortunately, I have solved the problem myself. Thanks for everybody for looking into my problem. For the curious: In the apache httpd.conf I made a proxy to the Zope web, except for the home page '/'. Because in the SiteRoot I pointed the '/' as the root, so http://www.mydomain.nl:9673/SiteRoot/manage_main points the Zope management form to '/'. Because there's no Zope at '/', deleting the SiteRoot from Zope management failed. Changing in apache httpd.conf the / to ..:9673 solved this. Thanks, Edwin. --- The world is moving so fast these days that the person who says it can't be done is generally interrupted by someone doing it. -- Harry Emerson Fosdick Surf Edwin Martin's brainwaves: http://www.bitstorm.org/edwin/ ___ 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 )