[Zope] problems with the export
Something strange happened when I tried to export a site. I tried many times but none worked. Anyone knows what could this be? Here follows the Zope error message: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: Astral Troubleshooting Suggestions The URL may be incorrect. The parameters passed to this resource may be incorrect. A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the HTML source for this page. If the error persists please contact the site maintainer. Thank you for your patience. Traceback (innermost last): File D:\Zope\lib\python\ZPublisher\Publish.py, line 214, in publish_module File D:\Zope\lib\python\ZPublisher\Publish.py, line 179, in publish File D:\Zope\lib\python\Zope\__init__.py, line 202, in zpublisher_exception_hook (Object: ElementWithAttributes) File D:\Zope\lib\python\ZPublisher\Publish.py, line 165, in publish File D:\Zope\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: manage_exportObject) File D:\Zope\lib\python\ZPublisher\Publish.py, line 102, in call_object (Object: manage_exportObject) File D:\Zope\lib\python\OFS\ObjectManager.py, line 450, in manage_exportObject (Object: ElementWithAttributes) File D:\Zope\lib\python\OFS\ObjectManager.py, line 226, in _getOb (Object: ElementWithAttributes) AttributeError: (see above) Regards Fabio Akita - Developer F/Nazca SS / Adversiting [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] namespace and PARENTS doubt
Hi again That may be a simple doubt but that´s it: dtml-with "_.namespace( parameter = 'folder1' )" dtml-with "_['PARENTS[1].' + _['parameter'] + '.folder']" 'commands' /dtml-with /dtml-with The above statement just doesn´t work. The 'parameter' is a DTML variable in the global namespace. But if I try: dtml-with "PARENTS[1].folder1.folder" /dtml-with That will work. What I am trying to do is to execute the " 'commands'." above for lot´s of 'parameter' folders. But the _['PARENTS[1].' + 'something'] trick doesn´t work. Is there another way to make the first statement work? (maybe I was a bit confusing here, I hope you understand the problem) Regards ___ 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] the manage_ methods
Hello I am trying to realize how the manage_ DTML methods works. The only documentation that I found was a quick reference that just say that the methods exist with simple descriptions as: manage_addDTMLMethod(id, [title, file, REQUEST, submit]) But there is no details about how this works, what´s required. Is there any documentation about them? I am trying to do a webpage that can change the content of properties of a folder. Regards. []´s Fabio Akita - Developer F/Nazca SS / Adversiting [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] WebServers with Exotic Features
Hello again. More problems to be solved :) Now I've been trying some exotic things:) The tests are still going on in a NT machine. Here's what I'd like to do : I have installed Apache for NT (yes, I know it's still beta but I am waiting for a new Linux server that will be here in a few days :) on default port 80. I also configured IIS to be on port 8090 and ZServer to be on it's default port 8080. I'd like to do the following things using the Rewrite module : Point zope.server.com to www.server.com:8080 and point iis.server.com to www.server.com:8090. I tried things like these: RewriteCond %{HTTP_HOST}^zope\.server\.com RewriteRule ^(.*) http://zope.server.com:8080$1 [R] But if I do this the user will see http://zope.server.com:8080/page.htm written in his's browser instead of http://zope.server.com/page.htm, which I'd prefer. I am trying to ally this to the Proxy Reverse module to accomplish this result (and I wouldn't like to use the pcgi version of Zope, I prefer to try ZServer). The ProxyPass alone do part of the job, when Zope has the Site Access Product, but cannot accomplish all of these goals. The other thing is that I'd like to add the static cache feature of the Rewrite module. Something as the following example: RewriteCond %{REQUEST_FILENAME} !-s RewriteRule ^page\.html$ page.cgi [T=application/x-httpd-cgi,L] I'll use the pcgi version if there's no other way and I still want the URL hidding feature (zope.server.com instead of www.server.com:8080). If all these really work fine maybe the Apache could be a better alternative to Squid, mainly because of it's well known robustness, flexibility and log accuracy. Maybe some of the things I am trying to do will be impossible, but it's exciting trying to do such things :) If someone know some of these features (mainly, I'd like to know more about the static cache feature and Rewrite+ProxyPass modules). And the NT machine is still just for tests, so maybe the Linux version of Apache can give me more flexibility as I am already used to it. Thanks. ___ 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] WebServers with Exotic Features
Hello once again (sorry for bothering so much) I've found the solution for part of the question I wrote some minutes ago :) RewriteCond %{HTTP_HOST}^zope\.server\.com\.br RewriteRule ^(.*) /zope$1 [P,R] RewriteCond %{HTTP_HOST}^iis\.server\.com\.br RewriteRule ^(.*) /iis$1 [P,R] ProxyPass /zope/ http://www.server.com.br:8080/ ProxyPassReverse /zope/ http://www.server.com.br:8080/ ProxyPass /iis/ http://www.server.com.br:8060/ ProxyPassReverse /zope/ http://www.server.com.br:8060/ That did the job of the correct URL reassignment between apache/IIS/ZServer. But the Proxy Static Cache issue still continue. I did not understand very well the explanation given in the Apache WebSite (http://www.apache.org/docs/misc/rewriteguide.html) under the section "On-the-fly Content-Regeneration", which gives the following example: RewriteCond %{REQUEST_FILENAME} !-s RewriteRule ^page\.html$ page.cgi [T=application/x-httpd-cgi,L] What this means? Maybe that for each static page.htm that I want I need a separate page.cgi? Is this only cgi-compliant? Can it be linked with the Proxy? Or maybe I am completely wrong and the Proxy alone is able to do the Static Cache I need? Just to be more specific: I will have content that will change only on a daily basis, so I do not want the ZServer to dinamically generate the same page all day long. If the Rewrite or the Proxy modules could handle the cache of the page it will be very handy as I will not have to use Squid and can stay with the Apache alone. Regards Hello again. More problems to be solved :) Now I've been trying some exotic things:) The tests are still going on in a NT machine. Here's what I'd like to do : I have installed Apache for NT (yes, I know it's still beta but I am waiting for a new Linux server that will be here in a few days :) on default port 80. I also configured IIS to be on port 8090 and ZServer to be on it's default port 8080. I'd like to do the following things using the Rewrite module : Point zope.server.com to www.server.com:8080 and point iis.server.com to www.server.com:8090. I tried things like these: RewriteCond %{HTTP_HOST} ^zope\.server\.com RewriteRule ^(.*) http://zope.server.com:8080$1 [R] But if I do this the user will see http://zope.server.com:8080/page.htm written in his's browser instead of http://zope.server.com/page.htm, which I'd prefer. I am trying to ally this to the Proxy Reverse module to accomplish this result (and I wouldn't like to use the pcgi version of Zope, I prefer to try ZServer). The ProxyPass alone do part of the job, when Zope has the Site Access Product, but cannot accomplish all of these goals. The other thing is that I'd like to add the static cache feature of the Rewrite module. Something as the following example: RewriteCond %{REQUEST_FILENAME} !-s RewriteRule ^page\.html$ page.cgi [T=application/x-httpd-cgi,L] I'll use the pcgi version if there's no other way and I still want the URL hidding feature (zope.server.com instead of www.server.com:8080). If all these really work fine maybe the Apache could be a better alternative to Squid, mainly because of it's well known robustness, flexibility and log accuracy. Maybe some of the things I am trying to do will be impossible, but it's exciting trying to do such things :) If someone know some of these features (mainly, I'd like to know more about the static cache feature and Rewrite+ProxyPass modules). And the NT machine is still just for tests, so maybe the Linux version of Apache can give me more flexibility as I am already used to it. Thanks. ___ 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] sequence-item as a method argument
Hello again I´m still testing the usability and reliability of Zope. To accomplish this goal I am developing a very very simple shopping cart. But I got troubled by something aparently simple. This is the code: dtml-in "SESSION['cartItems']" dtml-in "sqlSearchProduct(productID=sequence-item)" trtddtml-var productName/tdtddtml-var price/td/tr /dtml-in /dtml-in SESSION['cartItems'] is an array created in another DTML document using the well known SQLSession product. Here I am retrieving the itens of this array and passing it to a ZSQL method to get the selected items. The sqlSearchProduct, alone, works well. If I substitute the inner dtml-in "sql... for a simple dtml-var sequence-item the block works fine, otherwise it gives me the following error: Zope has encountered an error while publishing this resource. Error Type: NameError Error Value: sequence Anyone knows what is going on? I think this must be a simple thing. Thanks []´s Fabio Akita - Developer F/Nazca SS / Adversiting [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 )