[Zope-dev] Broken instances when upgrading from 2.1.6 to 2.2
Hello, I create a ZClass which subclasses ZCatalog, in my 2.1.6 zope. Then I move the Data.fs to a 2.2 and all the instances of mt ZClass show up as broken This object is broken because the unknown product that created it is no longer installed or is installed incorrectly. (...) The ZClass itself is fine, and I have no problem creating new instances and managing them. I tried to export the instances from the 2.1.6, and importing them into 2.2 but alas: The object broken does not support this operation (traceback follows) Does anybody know why this happens? can anyone please help? Thanks, Noa Traceback (innermost last): File /hd1/zope/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /hd1/zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /hd1/zope/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: ApplicationDefaultPermissions) File /hd1/zope/lib/python/ZPublisher/Publish.py, line 171, in publish File /hd1/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_importObject) File /hd1/zope/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_importObject) File /hd1/zope/lib/python/OFS/ObjectManager.py, line 496, in manage_importObject (Object: ApplicationDefaultPermissions) File /hd1/zope/lib/python/OFS/CopySupport.py, line 402, in _verifyObjectPaste (Object: ApplicationDefaultPermissions) Copy Error: (see above) ___ 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-dev] Acquisition/cDocumentTemplate bug
Oleg Broytmann wrote: Anyone is working on it? Should I put this into Collector or Tracker? Already there. The Zope project manager is gone for the week. Shane On Mon, 17 Jul 2000, Shane Hathaway wrote: This is an excellent bug analysis. I suggest that we create a new PyCallable_Check function that works in the presence of wrappers, perhaps called PyCallable_CheckW(). If it is placed in Acquisition.c then cDocumentTemplate.c will have to #include "Acquisition.h". Then we need to replace PyCallable_Check in probably more than just cDocumentTemplate. ___ 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-dev] Zope Add-on Installation
Shane Hathaway wrote: I've created a patch that allows you to create redistributable archives with the distribution tab. It's checked in to CVS on a branch. This is what was needed for us to start using the distribution tab more frequently. Great :-) Thanks again Shane... Is the patch around anywhere? will it land in 2.2.1? cheers, Chris ___ 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 )
[Zope-dev] Namespace passing proposal
Zopistas, I've added a proposal to the fishbowl. It's a relatively safe change that would simplify a certain things, but it could break existing code and I'd like to know what you think. Please comment in the Wiki. Actually, even if you don't have anything to say you might be able to learn something from the "background" section anyway. http://dev.zope.org/Wikis/DevSite/Proposals/NamespacePassingRevisited Shane ___ 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-dev] Zope 2.2.0 and SiteAccess 2.0.0b2 -- doesn't work?
Works great for me. Did you read http://www.zope.org/Members/4am/SiteAccess2/upgrading and do the steps listed there? The one thing I did have to change was my access rule. I had been using the hack where you append /Z/ to manage interface URI's so they don't get rewritten. What I had was using REQUEST.setURL() to put the /Z/ back in, well that method went away. I just changed it to REQEUST.setVirtualRoot() and it worked great. The install docs have apparently been updated to use setVirtualRoot(), as well. -Otto. Michael Monsen wrote: Hello everybody, I've looked through the mailing list archives and saw one individual who had this problem but seemed to be able to fix it by removing and then re-installing SiteAccess. I haven't been that lucky. [snip] ___ 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-dev] getting request variables values
that's the point: dtml-var REQUEST gives me the value of SSL_CLIENT_EMAIL, that is a HTTPS environment variable but trying to get dtml-var "REQUEST.SSL_CLIENT_EMAIL" don't work. any tips? Leonardo Kenji Shikida Webmind - Brazil Office - Original Message - From: Jim Washington [EMAIL PROTECTED] To: Leonardo Kenji Shikida [EMAIL PROTECTED] Sent: Thursday, July 20, 2000 4:18 PM Subject: Re: [Zope-dev] getting request variables values Leonardo Kenji Shikida wrote: does not work with dtml-var standard_html_header h2dtml-var title_or_id/h2 dtml-var "REQUEST.SSL_CLIENT_EMAIL" dtml-var standard_html_footer why? What does predtml-var REQUEST/pre give you? It will fail if SSL_CLIENT_EMAIL does not have a value (or is bank) in the submitted form. -- Jim ___ 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-dev] getting request variables values
Make a DTML method named "req" in your root folder: dtml-var REQUEST View it and send the contents to the list. -Original Message- From: Leonardo Kenji Shikida [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 20, 2000 4:05 PM To: [EMAIL PROTECTED] Subject: Re: [Zope-dev] getting request variables values yes, I tryied. both attepts gave me this error: Error Type: KeyError Error Value: SSL_CLIENT_EMAIL tips? Leonardo Kenji Shikida Webmind - Brazil Office - Original Message - From: Chris McDonough [EMAIL PROTECTED] To: 'Leonardo Kenji Shikida' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, July 20, 2000 4:44 PM Subject: RE: [Zope-dev] getting request variables values Have you tried: dtml-var "REQUEST['SSL_CLIENT_EMAIL']" ? -Original Message- From: Leonardo Kenji Shikida [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 20, 2000 3:38 PM To: [EMAIL PROTECTED] Subject: Re: [Zope-dev] getting request variables values that's the point: dtml-var REQUEST gives me the value of SSL_CLIENT_EMAIL, that is a HTTPS environment variable but trying to get dtml-var "REQUEST.SSL_CLIENT_EMAIL" don't work. any tips? Leonardo Kenji Shikida Webmind - Brazil Office - Original Message - From: Jim Washington [EMAIL PROTECTED] To: Leonardo Kenji Shikida [EMAIL PROTECTED] Sent: Thursday, July 20, 2000 4:18 PM Subject: Re: [Zope-dev] getting request variables values Leonardo Kenji Shikida wrote: does not work with dtml-var standard_html_header h2dtml-var title_or_id/h2 dtml-var "REQUEST.SSL_CLIENT_EMAIL" dtml-var standard_html_footer why? What does predtml-var REQUEST/pre give you? It will fail if SSL_CLIENT_EMAIL does not have a value (or is bank) in the submitted form. -- Jim ___ 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 ) ___ 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 ) ___ 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-dev] getting request variables values
Leonardo Kenji Shikida wrote: here it is. Try using dtml-var "REQUEST['SSLL_CLIENT_IEMAIL']" instead. Kenji SSL_CLIENT_IEMAIL [EMAIL PROTECTED] -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ 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-dev] Redirecting from the manage interfaces.
Erik Enge wrote: On Wed, 19 Jul 2000, Chris Withers wrote: Why I'm asking is 'cos it'd be really nice not to have to keep re-writing UI when there's perfectly good stuff available in the management interface, things like add forms, edit forms, etc... Exactly. Great, so how do we solve this. The 'wrapping REQUEST adn RESPONSE' thing seesm a little hacky to me, if this isn't the case then could someone show us some code as to how to do it in a specific instance? If it is hacky, then how can we solve this long term? fishbowl time? cheers, Chris ___ 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-dev] getting request variables values
The value you're after is stored in the 'environ' section of the request. Unlike 'other' and 'cookies' keys, 'environ' keys can't generally be fetched as attributes or keys of REQUEST. You need to access them as REQUEST.environ['keyname']. Cheers, Evan @ digicool 4-am ___ 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-dev] getting request variables values
A-ha! This worked! thanks! Leonardo Kenji Shikida Webmind - Brazil Office - Original Message - From: Chris McDonough [EMAIL PROTECTED] To: 'Leonardo Kenji Shikida' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, July 20, 2000 7:44 PM Subject: RE: [Zope-dev] getting request variables values How about: dtml-var "REQUEST.environ['SSL_CLIENT_EMAIL']" ? -Original Message- From: Leonardo Kenji Shikida [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 20, 2000 4:40 PM To: [EMAIL PROTECTED] Subject: Re: [Zope-dev] getting request variables values here it is. Kenji form cookies dtpref_rows 20 dtpref_cols 55 Zope-Version intranet/utility/http%20header%20test tree-s eJyLjlZ3hANPW3UdhWi4iEuEtwWqiKO7j4GteiwYAACvmw8O other tree-s eJyLjlZ3hANPW3UdhWi4iEuEtwWqiKO7j4GteiwYAACvmw8O Zope-Version intranet/utility/http%20header%20test dtpref_rows 20 URL https://snowcrash.intelligenesis.net/pcgi/intranet/utility/http AUTHENTICATED_USER kenji SERVER_URL https://snowcrash.intelligenesis.net dtpref_cols 55 AUTHENTICATION_PATH URL0 https://snowcrash.intelligenesis.net/pcgi/intranet/utility/http URL1 https://snowcrash.intelligenesis.net/pcgi/intranet/utility URL2 https://snowcrash.intelligenesis.net/pcgi/intranet URL3 https://snowcrash.intelligenesis.net/pcgi URL4 https://snowcrash.intelligenesis.net BASE0 https://snowcrash.intelligenesis.net BASE1 https://snowcrash.intelligenesis.net/pcgi BASE2 https://snowcrash.intelligenesis.net/pcgi/intranet BASE3 https://snowcrash.intelligenesis.net/pcgi/intranet/utility BASE4 https://snowcrash.intelligenesis.net/pcgi/intranet/utility/http environ SCRIPT_NAME /pcgi HTTP_ACCEPT_ENCODING gzip, deflate SSL_SERVER_KEY_SIZE 1024 SSL_CLIENT_ISP NY SSL_CLIENT_KEY_EXP SSL_SERVER_CN snowcrash.intelligenesis.net SSL_SERVER_CERT_START Jun 17 06:02:39 2000 GMT SiteRootPATH / SSL_SECRETKEYSIZE 128 GATEWAY_INTERFACE CGI/1.1 SSL_SERVER_OU SSL_CLIENT_CERT_SERIAL 89 SSL_SERVER_IEMAIL [EMAIL PROTECTED] SSL_SERVER_CERTFILE /usr/local/stronghold/ssl/certs/snowcrash.intelligenesis.net.cert SSL_CLIENT_OU HTTPS on SSL_PROTOCOL_VERSION TLSv1 SSL_SERVER_SIGNATURE_ALGORITHM RSA-MD5 SSL_CLIENT_CN [EMAIL PROTECTED] SCRIPT_FILENAME /home/httpd/htdocs/pcgi HTTPS_SECRETKEYSIZE 128 SSL_SERVER_KEY_ALGORITHM rsaEncryption SSL_SERVER_CERTFILETYPE PEM SSL_SERVER_SP New York SSL_CLIENT_IC US SSL_SERVER_IOU IT HTTPS_KEYSIZE 128 SSL_CLIENT_IO Intelligenesis Corporation SSL_CLIENT_IL NY PATH /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/ usr/bin/X11:/u sr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/local/jdk1.2/ bin:/root/bin HTTPS_EXPORT false REMOTE_ADDR 200.190.229.61 SSL_CLIENT_IOU IT HTTP_CONNECTION Keep-Alive HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt) SSL_SERVER_SESSIONDIR SSL_SERVER_CERTIFICATELOGDIR SSL_SERVER_KEYFILE /usr/local/stronghold/ssl/private/snowcrash.intelligenesis.net.key SSL_CIPHER RC4-MD5 SSL_CLIENT_IEMAIL [EMAIL PROTECTED] QUERY_STRING SSL_SERVER_ICN IGC IT CA SERVER_NAME snowcrash.intelligenesis.net PATH_TRANSLATED /home/httpd/htdocs/intranet/utility/http SSL_CLIENT_KEY_SIZE 1024 SSL_CLIENT_CERT_END Jul 19 19:47:52 2002 GMT SSL_CLIENT_CERTIFICATE 320d2bcb.? HTTP_COOKIE tree-s="eJyLjlZ3hANPW3UdhWi4iEuEtwWqiKO7j4GteiwYAACvmw8O"; Zope-Version="intranet/utility/http%20header%20test"; dtpref_rows="20"; dtpref_cols="55" SSL_CLIENT_SIGNATURE_ALGORITHM RSA-MD5 PATH_INFO /intranet/utility/http SSL_SERVER_KEYFILETYPE PEM SSL_SERVER_KEY_EXP SSL_SERVER_IO Intelligenesis Corporation SSL_KEYSIZE 128 SSL_CLIENT_ICN IGC IT CA HTTP_ACCEPT_LANGUAGE en-us SSL_SERVER_C US SSL_SERVER_O Intelligenesis Corporation SSL_SERVER_L New York HTTP_ACCEPT image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/pdf, application/x-comet, */* REQUEST_URI /pcgi/intranet/utility/http SSL_CLIENT_IDN /C=US/ST=NY/L=NY/O=Intelligenesis Corporation/OU=IT/CN=IGC IT [EMAIL PROTECTED] SSL_SERVER_ISP NY SSL_CLIENT_O Intelligenesis Corporation SSL_CLIENT_L NY SSL_CLIENT_C US HTTP_HOST snowcrash.intelligenesis.net SSL_CLIENT_KEY_ALGORITHM rsaEncryption SERVER_ADMIN [EMAIL PROTECTED] SSL_STRONG_CRYPTO true SSL_EXPORT false SSL_SERVER_IDN /C=US/ST=NY/L=NY/O=Intelligenesis Corporation/OU=IT/CN=IGC IT [EMAIL PROTECTED] DOCUMENT_ROOT /home/httpd/htdocs SSL_SERVER_EMAIL [EMAIL PROTECTED] SERVER_PORT 443 REMOTE_PORT 62783 SERVER_ROOT /usr/local/stronghold SSL_SERVER_DN /C=US/ST=New York/L=New York/O=Intelligenesis Corporation/CN=snowcrash.intelligenesis.net/Email=helpdesk@int elligenesis.ne t SSL_CLIENT_EMAIL [EMAIL PROTECTED] SERVER_PROTOCOL HTTP/1.1 SSL_CLIENT_DN /C=US/ST=NY/L=NY/O=Intelligenesis [EMAIL
[Zope-dev] Re: [Zope] second step (many of You are going to laungh ;-)
On Wed, Jul 19, 2000 at 09:21:01PM +0200, Vincent wrote: I just download Zope today, and I am wondering how I am going to start toding something. May somebody tell me whath is the first step to do to put a custom HTML page into ZOPE ? (I started the server, I can access the 'manage' tools - server:8080/manage), I guess I need to creat my HTML page with notepad, ultraedit or whatever, but the next step ? Creat a ZOPE object linked to this HTML page ? No idea how to do that... At the bottom of the management screen (right-hand frame) you'll find a drop down box with objects you can add. I suggest you add the Zope Tutorial (I am assuming you are using 2.2 here). -- Martijn Pieters | Software Engineermailto:[EMAIL PROTECTED] | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | ZopeStudio: http://www.zope.org/Products/ZopeStudio - ___ 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-dev] second step (many of You are going to laungh ;-)
On Wed, 19 Jul 2000, Vincent wrote: [snip] May somebody tell me whath is the first step to do to put a custom HTML page into ZOPE ? (I started the server, I can access the 'manage' tools - server:8080/manage), I guess I need to creat my HTML page with notepad, ultraedit or whatever, but the next step ? Creat a ZOPE object linked to this HTML page ? No idea how to do that... Create a DTML Document or DTML Method, and paste the HTML code into the edit field. Take a look at the QuickStart demo, that's where I got started learning about how this whole Zope thing works. =) For me it was quite a steep learning curve at first, but I believe I've made a lot of progress since then. Good luck. -- Michael Monsen | Due to lack of interest, [EMAIL PROTECTED] |next week has been cancelled. http://www.xmission.com/~phydoux | ___ 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 )
[Zope-dev] second step (many of You are going to laungh ;-)
Hi, I just download Zope today, and I am wondering how I am going to start toding something. May somebody tell me whath is the first step to do to put a custom HTML page into ZOPE ? (I started the server, I can access the 'manage' tools - server:8080/manage), I guess I need to creat my HTML page with notepad, ultraedit or whatever, but the next step ? Creat a ZOPE object linked to this HTML page ? No idea how to do that... Thanks a lot Vincent ___ 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] Broken products in 2.2 - bug?
The strange thing is that the product itself is not broken only all the instances become broken everytime I restart... Peter Dieter Maurer skrev: Peter Arvidsson writes: Is products treated in a different way in 2.2 final than in 2.1.6? When I restart Zope all instances of my (and some imported) products become broken because it cant find the product it is an instance of. Did you read the Zope 2.2 upgrade information? To narrow down the problem, you to the Control_Panel/Products page. The products should there be broken, too. The traceback tabs of a broken product should give you a hint regarding the problem. 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 ) ___ 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] Login manager and ZPatterns - error
I had an older version of LoginManager (0.3) installed on my default Zope installation (2.1.6) running on a RH 6.3 Linux. I downloaded and installed LoginManager 0.8.6 and then things started getting weird. LoginManager and PTK were both being reported as broken products. So, spent about 4 hours trying to understand what was going on (reinstalling - reading the zope.org and egroups) and then found out that I needed ZPatterns. So I downloaded the binary version (0.3) and installed that. However, when I tried to do the make part, I kept getting an error. After much investigation, I discoverd that I needed the Components library for the makefile stuff. So,I then had to download the entire Zope souce code and installed that into a new directory - and copied the components over to the existing zope directory. However the make still didnt work. Then I tried (un)taring Zpatterns into the new zope and tried to make and still problems. Tben I downloaded the source an older version of ZPatterns and installed that to the new zope and got the make to work eventually. Then i tried the same procedure on teh old zope and still no joy. Then I decided to copy over everything from the new zope to the old zope in the ZODB directory that was new. That seemed to do the trick and enventually after about 16 straight hours of pure frustration (for a newbie like me) i got the makefile step to go through without an error. However, when I restart zope, I now get a new error in the login manager traceback: Traceback (innermost last): File "/usr/share/zope/lib/python/OFS/Application.py", line 387, in import_products product=__import__(pname, global_dict, global_dict, silly) File "/usr/share/zope/lib/python/Products/LoginManager/__init__.py", line 1, in ? import LoginManager, LoginMethods, UserSources File "/usr/share/zope/lib/python/Products/LoginManager/LoginManager.py", line 9, in ? from Products.ZPatterns.SheetProviders import SheetProviderContainer ImportError: cannot import name SheetProviderContainer I have no idea where to even start looking for the problem. Anyone have any hint or idea - I would really appreciate any help. Its been a very long and frustrating day :) Thanks in advance Demos __ Do You Yahoo!? Get Yahoo! Mail Free email you can access from anywhere! http://mail.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] Login manager and ZPatterns - error
What version of ZPatterns do you have. I experienced this problem earlier and realized that in the file SheetProviders.py in the ZPatterns library some verison of ZPatterns totally lack the SheetProverContainers. I run on ZPatterns 0-3-0 and I had it up'n'running. /Mathias Bengtsson Demos Economacos wrote: I had an older version of LoginManager (0.3) installed on my default Zope installation (2.1.6) running on a RH 6.3 Linux. I downloaded and installed LoginManager 0.8.6 and then things started getting weird. LoginManager and PTK were both being reported as broken products. So, spent about 4 hours trying to understand what was going on (reinstalling - reading the zope.org and egroups) and then found out that I needed ZPatterns. So I downloaded the binary version (0.3) and installed that. However, when I tried to do the make part, I kept getting an error. After much investigation, I discoverd that I needed the Components library for the makefile stuff. So,I then had to download the entire Zope souce code and installed that into a new directory - and copied the components over to the existing zope directory. However the make still didnt work. Then I tried (un)taring Zpatterns into the new zope and tried to make and still problems. Tben I downloaded the source an older version of ZPatterns and installed that to the new zope and got the make to work eventually. Then i tried the same procedure on teh old zope and still no joy. Then I decided to copy over everything from the new zope to the old zope in the ZODB directory that was new. That seemed to do the trick and enventually after about 16 straight hours of pure frustration (for a newbie like me) i got the makefile step to go through without an error. However, when I restart zope, I now get a new error in the login manager traceback: Traceback (innermost last): File "/usr/share/zope/lib/python/OFS/Application.py", line 387, in import_products product=__import__(pname, global_dict, global_dict, silly) File "/usr/share/zope/lib/python/Products/LoginManager/__init__.py", line 1, in ? import LoginManager, LoginMethods, UserSources File "/usr/share/zope/lib/python/Products/LoginManager/LoginManager.py", line 9, in ? from Products.ZPatterns.SheetProviders import SheetProviderContainer ImportError: cannot import name SheetProviderContainer I have no idea where to even start looking for the problem. Anyone have any hint or idea - I would really appreciate any help. Its been a very long and frustrating day :) Thanks in advance Demos __ Do You Yahoo!? Get Yahoo! Mail - Free email you can access from anywhere! http://mail.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 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: LoadSite can create a corrupted data.fs ?
Jonathan Desp wrote: Thanks alot ! Do you know how to put a small description for each results you are getting on a search engine, if you go to www.atomasoft.com and search "Nanotechnology" you'll get several several result, but with no description like at my past site www.atoma.f2s.com if you try the search engine you'll see good description which is a must. So do you know a way or the script or ? you'll be very useful if you know how. Read the ZCatalog Tutorial and the Advanced ZCatalog Tutorial. You can find them by searching on www.zope.org. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.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] Scarry BTreeFolder eats my 'contents' tab
Just as soon as I restarted Zope after placing the BTreeFolder in the Products dir, wham! all my files were disappeared!! It took me quite a while to collect the pieces of my minds and pulled them together again when I discovered through FTP that my files were still inside Zope. Back in the HTTP manage console I also found that the 'Contents' tab was gone, and it was the same with most of the folders in my Zope site. After removing the BTreeFolder from the Products dir, the 'contents' tab was back again. Everything seemed normal except the /Control_Panel/Products/ still had an entry of BTreeFolder. Really weild!! I'm running Zope 2.2.0b3 on NT4. Any idea to tame this beast is appreciated. RGDS Dirksen ___ 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] URL quoting in python
is there a way to get a url-encoded/quoted variable in pythonish dtml ? what i am trying to do dtml-call "RESPONSE.redirect(URL1+'?foo_bar='+foobar)" Kapil ___ 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] URL quoting in python
Kapil Thangavelu wrote: what i am trying to do dtml-call "RESPONSE.redirect(URL1+'?foo_bar='+foobar)" dtml-call "RESPONSE.redirect(URL1+'?foo_bar='+foobar)" url_quote dtml-call "RESPONSE.redirect(URL1+'?foo_bar='+foobar)" url_quote_plus dependent on whether you want spaces coded as + or %20 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] Reversing acquisition?
Luciano Ramalho wrote: [EMAIL PROTECTED] wrote: The effect I would like to achieve is: when user access http://myserver/, content of /text_object_1 and /text_object_2 will be shown while user access http://myserver/subfolder/, content of /subfolder/text_object_1 and /subfolder/text_object_2 The point is that there's no index_html in /subfolder so /index_html will be acquested and by default it displays content of /text_object_1 and /text_object_2 The question is: we got text_object_1 and text_object_2 in /subfolder how could I let the acquested index_html in subfolder to use the objects inside the subfolder? What you want is what Zope already does! That is how acquisition works: if /subfolder has no index_html, it will acquire that object from the root. But the DTML inside index_html will be rendered in the context (namespace) of the subfolder, so the desired effect will be achieved. Unfortunately it is not quite as simple as that. Infact, to say that that is how acquisition works is misleading. It is not how acquisition works, but if you are using DTML Methods then you can create the effect of that being the way it works. Let me explain. When you acquire an object, the acquisition method used is to first look at the containment of the object before the context of the object. So if you have the scenario described above, when you call /subfolder/ it fist looks for index_html inside subfolder, but it isn't there, so it looks in subfolders containing object, /, where it does find index_html. Now it executes index_html and finds a call to text_object_1. So it first looks inside index_html for text_object_1, but it can't find it, so it looks in the _containing_ object of index_html, /, and finds text_object_1. However, if index_html is a DTML Method then things are different, because a DTML Method does not have it's own namespace and isn't an object in it's own right - rather it is a method of the calling object. The problem with this *containment before context* is that in most cases it goes against what is trying to be achieved. In the example above, there may be very good reasons why index_html needs to be a document rather than a method - maybe it needs it's own properties, etc. The point is that most often, the important thing when calling an object is the *context* in which it is called, not the location in the object store where it happens to be located. As I have mentioned several times now on the list, I can't see any good reason why acquisition should use the containment before context method (refered to as Simplified Acquisition) and in my opinion it should be changed to use context before containment (refered to as Natural Acquisition). See http://www.zope.org/Wikis/zope-dev/AcquisitionUsage for some explanation of the different types of acquisiton, and http://www.zope.org/Wikis/zope-dev/AcquisitionFeedback for a summary of the problem as I see it - if you have opinions then do add them. Also, Patrick Lewis wrote: Try changing /index_html as follows: dtml-var standard_html_header table trtddtml-var "PARENTS[0].text_object_1" fmt=structured-text /td/tr trtddtml-var "PARENTS[0].text_object_2" fmt=structured-text /td/tr /table dtml-var standard_html_footer Basically force Zope to look in the current folder first. That is all well and good for solving this particular problem, but it crosses a threshold in terms of accessability to the person writing the code. For a 'non-programmer', writing dtml-var object is not too difficult or scary, but dtml-var "PARENTS[0].object" is a world apart and quite a scary place to be. It's complicated, it doesn't make a lot of sense and it makes doing what should be quite simple things inaccessible. I work with a variety of people here, some of whom have no problem at all with any of the above, but others for whom there is a definite barrier between the first and second snippets of code. It's like the old "function(_, _.None) thing, which just shouldn't be necessary, but that's a different story. Anyway, in this particular case, if acquisition worked in a more useful way (see above) then this problem would be avoided. Cheers, Stephen -- Stephen Harrison[EMAIL PROTECTED] New Information Paradigms www.nipltd.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] ZEO and a front end...
Curtis Maloney wrote: On Thu, 20 Jul 2000, Bill Anderson wrote: Toby Dickenson wrote: On Tue, 18 Jul 2000 16:08:48 -0600, Bill Anderson [EMAIL PROTECTED] wrote: I might be reading more into his words than was intended, but I think this demonstrates the problem. Distributing multiple requests for one section across multiple servers is (what I consider to be) undesirable. You can actually do it either way. Curtis (AIUI) complained that the method described meant your site depended upon each of th esection's servers being up, that there was no redundancy. So I described a way of doing it with redundancy. What you described doesn't scale up to having 1000's of sections (which I was assuming, and I think Curtis was too). If this isn't a problem, then your solution is great. I don't understand why you think it doesn't. DNS has clearly demonstrated the ability to handle 'thousands', and the entire scalability of a cluster is the addition of machines. You appear to be desirous of having a machine handle a section. Thus, for thousands of sections, you have thousands of machines. Again, with a ZEO clusters the bottleneck/SPOF would be the ZSS, but that _could_ be worked aorund, and has nothing to do with 'sections' of a website. Bill, Whilst the structures you've described are very effective, your example of libc.org required one thing in particular that I'm not sure is available: prior knowledge of which sections will be hit hardest. You start with the most likely suspects, and then after a given time interval, you adjust as needed. *most* site admins have a good idea of a given section being more popular or frequented when the site is built. That is as good a start as any other, if not better. Essentially, your setup allows any 'server' to become a 'server cluster' for scaling purposes. Great! So, if for now on we assume 'server' can mean 'single or cluster of servers' A logical assumption. The desire isn't for fixed server-section relationship. Instead, a 'preference' for that section to go to a particular server, so that the request 'hopefully' goes the server with the greatest chance of having the relevant objects in cache. I see that it may not have been clear, but my ecample provided just that. A preference is indicated by the weight given to servers and sections. Let us say I have three servers. Fo rthe whole site, two get a weight of 2, whilst a third gets a weight of 1. This third one, however, gets a weight of 2 for the members section, whilst the other two get a weight or 1. This provides a preference for server3 to serve up the members section, though it is not a direct-only mapping. how does this not fit the 'hopefully' desire? If you _wanted_ a direct-only, you simply remove servers 1 and 2 from the list of the members section. The really neat thing about this is that it can be done at runtime. In fact, with the further information provided, what you really want is for requests from a particular client to go to the same server. This would be better served with a redirection to a server specific domain name (serverN.mysite.com). However, for the initial request, your best choice is to go to the server that last served those pages. Since dynamically tracking this info would be onerous, by encouraging requests for one section toward a particular server, you improve the chances of it holding the relevant objects in cache, with merely a fraction of the processing/data overheads. Right. I agree that tracking all of this would be onerous, which is why I said I don't think it is worth the effort, and would cost more than it saved. The scenario I described gives a preference for sections to go to a particular server, thus giving you the 'encouragement'. :^) Beyond that, your bottleneck would be networking. Whether yoour individual BE servers responded directly to the web browser, or whether they were channeled through a single/multiple FrontEnd servers. The decision to implement a BE-Client vs. a BE-FE-Client topology has not been discussed, as it is irrelevent to the discussion. Ah, topology. (I'm leaving it there. I really don't have time to get into this fully :) Yeah, topology is where the umm ... electrons hits the wire. Mebbe I'll post this stuff to the Wiki ... the question is .,.. which one? -- Do not meddle in the affairs of sysadmins, for they are easy to annoy, and have the root password. ___ 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] Stability fun on NT
So Zope choked last night, stopped responding (no serious load, only me tinkering with pages), and when I get to check the event log it's full of: "The application, ./python.exe, generated an application error The error occurred on 7/20/2000 @ 10:49:15.625 The exception generated was c005 at address 1b040f64 (Ordinal101) " If I stop and restart Zope, I get the same error; if I reboot the server I get a few pages successfully served before the error hits again. Mucho annoying. Has anyone had similar problems with Zope running on NT? -- Andy Gates, Learning and Research Technology [EMAIL PROTECTED] - ICQ#74362415 ___ 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] Stability fun on NT
Andy Gates wrote: So Zope choked last night, stopped responding (no serious load, only me tinkering with pages), and when I get to check the event log it's full of: "The application, ./python.exe, generated an application error The error occurred on 7/20/2000 @ 10:49:15.625 The exception generated was c005 at address 1b040f64 (Ordinal101) " If I stop and restart Zope, I get the same error; if I reboot the server I get a few pages successfully served before the error hits again. Mucho annoying. How much disk space / RAM have you got? What size is data.fs? What else are you doing with the machine? What versions of what software (including Zope WinNT) are you running? Are you doing anything 'interesting' with the machine or stuff in Zope? ;-) 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] ZDiscussions and Zope 2.2
hi Anybody tried to use ZDiscussion with Zope 2.2 ? I somehow can't manage to get it to work First I wasn't able to use 'regenerate method' because of a TypeError : keyword parameter redefined then i copied the methods by hand, but each time i try to view a non-empty Topic (as Manager) it shows: Zope Error: Unauthorized I can view the page as superuser without problems. I can also view an old Topic that i created in Zope 2.1.6 and imported into the new site as Manager. As long as i don't ad new Items ... Anybody? I add the tracebacks at the end, my os is aix 4.3. thankx gidon - traceback I: regenerate methods: Traceback (innermost last): File /home/gfried/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /home/gfried/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/gfried/Zope-2.2.0-src/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: ElementWithAttributes) File /home/gfried/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 171, in publish File /home/gfried/Zope-2.2.0-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_regenerateDefaultMethods) File /home/gfried/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_regenerateDefaultMethods) File /home/gfried/Zope-2.2.0-src/lib/python/OFS/DTMLMethod.py, line 167, in __call__ (Object: manage_regenerateDefaultMethods) File /home/gfried/Zope-2.2.0-src/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: manage_regenerateDefaultMethods) File /home/gfried/Zope-2.2.0-src/lib/python/DocumentTemplate/DT_In.py, line 691, in renderwob (Object: default_methods.objectIds()) File /home/gfried/Zope-2.2.0-src/lib/python/DocumentTemplate/DT_Util.py, line 337, in eval (Object: manage_addProduct['OFSP'].addDTMLMethod( this(), _['sequence-item'], title=_.getattr(default_methods, _['sequence-item']).title, file=_.getattr(default_methods, _['sequence-item']))) (Info: this) File lt;stringgt;, line 0, in ? TypeError: (see above) traceback II: index_html as Manager in non-empty Topic. Traceback (innermost last): File /home/gfried/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /home/gfried/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/gfried/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 171, in publish File /home/gfried/Zope-2.2.0-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: index_html) File /home/gfried/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: index_html) File /home/gfried/Zope-2.2.0-src/lib/python/OFS/DTMLMethod.py, line 167, in __call__ (Object: index_html) File /home/gfried/Zope-2.2.0-src/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: index_html) File /home/gfried/Zope-2.2.0-src/lib/python/TreeDisplay/TreeTag.py, line 155, in render (Object: a tree tag) File /home/gfried/Zope-2.2.0-src/lib/python/TreeDisplay/TreeTag.py, line 261, in tpRender (Object: ElementWithAttributes) File /home/gfried/Zope-2.2.0-src/lib/python/TreeDisplay/TreeTag.py, line 337, in tpRenderTABLE (Object: ElementWithAttributes) Unauthorized: [0] ___ 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] Stability fun on NT
Message-ID: [EMAIL PROTECTED] Priority: NORMAL X-Mailer: Execmail for Win32 5.1 Build (9) MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" How much disk space / RAM have you got? 1.8Gb free on the Zope drive, 256Mb RAM, dual PIII-500 processors. What size is data.fs? 4.5Mb - is that big? What else are you doing with the machine? IIS running an intranet that gets moderate traffic - always busy but no really heavy load. Also file serving. What versions of what software (including Zope WinNT) are you running? NT4 SP6, Zope 2. Are you doing anything 'interesting' with the machine or stuff in Zope? Not really. I'm putting together a generic news interface that links to an Access database to pull articles. Lots of database calls and lots of DTML-IN but nothing particularly clever. The machine doesn't do anything else exciting. AndyG ___ 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] Stability fun on NT
Andy, You don't give us much to go on, but I'll just say that I've been using Zope on NT for about 18 months and have seen no real instability problems at all. The worst that happens is when I reboot the machine :) Fill in some more detail, NT Service Pack level, Zope ver, NT build number whatever you think may be relevant. Phil [EMAIL PROTECTED] - Original Message - From: "Andy Gates" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 20, 2000 10:58 AM Subject: [Zope] Stability fun on NT So Zope choked last night, stopped responding (no serious load, only me tinkering with pages), and when I get to check the event log it's full of: "The application, ./python.exe, generated an application error The error occurred on 7/20/2000 @ 10:49:15.625 The exception generated was c005 at address 1b040f64 (Ordinal101) " If I stop and restart Zope, I get the same error; if I reboot the server I get a few pages successfully served before the error hits again. Mucho annoying. Has anyone had similar problems with Zope running on NT? -- Andy Gates, Learning and Research Technology [EMAIL PROTECTED] - ICQ#74362415 ___ 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] Stability fun on NT
Message-ID: [EMAIL PROTECTED] Priority: NORMAL X-Mailer: Execmail for Win32 5.1 Build (9) MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" ...and now it's working again, for a while, and I haven't done anything. Don't like this. AndyG ___ 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 with sequence problems
i have this external method called Imap_methods. Why zope refused to pass '[EMAIL PROTECTED]' string to my method. Is there something wrong with my syntax. dtml-in Imap_methods('[EMAIL PROTECTED]') ... do my stuff here (question 2) /dtml-in results following error message Error Type: KeyError Error Value: Imap_methods('[EMAIL PROTECTED]') Traceback (innermost last): File C:\Boothill\lib\python\ZPublisher\Publish.py, line 214, in publish_module File C:\Boothill\lib\python\ZPublisher\Publish.py, line 179, in publish File C:\Boothill\lib\python\Zope\__init__.py, line 202, in zpublisher_exception_hook (Object: ElementWithAttributes) File C:\Boothill\lib\python\ZPublisher\Publish.py, line 165, in publish File C:\Boothill\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: email_headers) File C:\Boothill\lib\python\ZPublisher\Publish.py, line 102, in call_object (Object: email_headers) File C:\Boothill\lib\python\OFS\DTMLDocument.py, line 166, in __call__ (Object: email_headers) File C:\Boothill\lib\python\DocumentTemplate\DT_String.py, line 502, in __call__ (Object: email_headers) File C:\Boothill\lib\python\DocumentTemplate\DT_In.py, line 630, in renderwob (Object: Imap_methods('[EMAIL PROTECTED]')) KeyError: (see above) question 2: Whats is best way to return following tuples from that method tuple formation: [index,[from,to,subject,date]] and sequence them to table between TD tags. jarkkov ___ 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] ZDiscussions and Zope 2.2
Are you using the old ZDiscussions or ZUBB? I have not had the time to fix ZUBB to work with 2.2 but will try this weekend. J From: Gidon Friedman [EMAIL PROTECTED] Date: Thu, 20 Jul 2000 12:33:58 +0200 To: [EMAIL PROTECTED] Subject: [Zope] ZDiscussions and Zope 2.2 hi Anybody tried to use ZDiscussion with Zope 2.2 ? I somehow can't manage to get it to work First I wasn't able to use 'regenerate method' because of a TypeError : keyword parameter redefined then i copied the methods by hand, but each time i try to view a non-empty Topic (as Manager) it shows: Zope Error: Unauthorized I can view the page as superuser without problems. I can also view an old Topic that i created in Zope 2.1.6 and imported into the new site as Manager. As long as i don't ad new Items ... Anybody? I add the tracebacks at the end, my os is aix 4.3. thankx gidon - traceback I: regenerate methods: Traceback (innermost last): File /home/gfried/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /home/gfried/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/gfried/Zope-2.2.0-src/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: ElementWithAttributes) File /home/gfried/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 171, in publish File /home/gfried/Zope-2.2.0-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_regenerateDefaultMethods) File /home/gfried/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_regenerateDefaultMethods) File /home/gfried/Zope-2.2.0-src/lib/python/OFS/DTMLMethod.py, line 167, in __call__ (Object: manage_regenerateDefaultMethods) File /home/gfried/Zope-2.2.0-src/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: manage_regenerateDefaultMethods) File /home/gfried/Zope-2.2.0-src/lib/python/DocumentTemplate/DT_In.py, line 691, in renderwob (Object: default_methods.objectIds()) File /home/gfried/Zope-2.2.0-src/lib/python/DocumentTemplate/DT_Util.py, line 337, in eval (Object: manage_addProduct['OFSP'].addDTMLMethod( this(), _['sequence-item'], title=_.getattr(default_methods, _['sequence-item']).title, file=_.getattr(default_methods, _['sequence-item']))) (Info: this) File lt;stringgt;, line 0, in ? TypeError: (see above) traceback II: index_html as Manager in non-empty Topic. Traceback (innermost last): File /home/gfried/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /home/gfried/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/gfried/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 171, in publish File /home/gfried/Zope-2.2.0-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: index_html) File /home/gfried/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: index_html) File /home/gfried/Zope-2.2.0-src/lib/python/OFS/DTMLMethod.py, line 167, in __call__ (Object: index_html) File /home/gfried/Zope-2.2.0-src/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: index_html) File /home/gfried/Zope-2.2.0-src/lib/python/TreeDisplay/TreeTag.py, line 155, in render (Object: a tree tag) File /home/gfried/Zope-2.2.0-src/lib/python/TreeDisplay/TreeTag.py, line 261, in tpRender (Object: ElementWithAttributes) File /home/gfried/Zope-2.2.0-src/lib/python/TreeDisplay/TreeTag.py, line 337, in tpRenderTABLE (Object: ElementWithAttributes) Unauthorized: [0] ___ 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] Anyone built a classifieds or review product?
On my list of products that I would like to build / help build ZCLassifieds: A product that allows users to post classifieds for sale with categories, pictures, start and end dates, email contacts, etc. Could be anonymous or require a log in that plays upon the strengths of Zope. ZReview: A generic review product that allows people to post reviews of "things" and have other people comment on the review. A lot of what is in Zope Treasures but maybe with pictures etc. Has anyone starting building these, need these, or would be interested in helping build these? 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] cookies
http://www.zope.org/Members/BwanaZulia/cookies/index_html That should help. J From: "Vincent Maton" [EMAIL PROTECTED] Date: Tue, 4 Jul 2000 15:45:55 +0200 To: "Zope" [EMAIL PROTECTED] Subject: [Zope] cookies Hello !!! can you tell me how can I use the "cookies" Thank you very much ___ 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] pb impoting objects from 2.1.6 to 2.2.0
Hello, I'm importing on Zope 2.2/Win98 a ZopeFolder/XML export done on Zope 2.2.0/Linux I get this error Error Type: KeyError Error Value: id Any thought about a bad export or a pb between 2.1.6/2.2 ? Traceback (innermost last): File C:\Zope\Zope220\lib\python\ZPublisher\Publish.py, line 222, in publish_module File C:\Zope\Zope220\lib\python\ZPublisher\Publish.py, line 187, in publish File C:\Zope\Zope220\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: ElementWithAttributes) File C:\Zope\Zope220\lib\python\ZPublisher\Publish.py, line 171, in publish File C:\Zope\Zope220\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: manage_importObject) File C:\Zope\Zope220\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: manage_importObject) File C:\Zope\Zope220\lib\python\OFS\ObjectManager.py, line 495, in manage_importObject (Object: ElementWithAttributes) File C:\Zope\Zope220\lib\python\ZODB\ExportImport.py, line 216, in importFile File C:\Zope\Zope220\lib\python\ZODB\ExportImport.py, line 316, in importXML File C:\Zope\Zope220\lib\python\Shared\DC\xml\xyap.py, line 57, in unknown_endtag File C:\Zope\Zope220\lib\python\Shared\DC\xml\ppml.py, line 781, in save_object KeyError: (see above) ___ 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] length of an object
Hello, i want to know the size of an image or a file. With dtml-var "_.len(object)" i count objects, but for the length? Thanks, Bruno __ Do You Yahoo!? Il tuo indirizzo gratis e per sempre @yahoo.it su http://mail.yahoo.it ___ 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] length of an object
Brown Fox wrote: i want to know the size of an image or a file. With dtml-var "_.len(object)" i count objects, but for the length? For images or file objects, I think you can try for: dtml-var "file_or_image.length" 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] ZDiscussions and Zope 2.2
I used the old ZDiscussions 0.2, but i installed the new ZDiscussions 0.3.2 now, and the results are _exactly_ the same. cheers gidon Are you using the old ZDiscussions or ZUBB? I have not had the time to fix ZUBB to work with 2.2 but will try this weekend. 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 )
[Zope] Re: Returned mail: User unknown
When I installed ZPatterns. I first untared in zope root as usual. Then standing in the /zope/lib/python/Products/ZPatterns/ library i da a copy of the makefile two steps above cp ../../Makefile.pre.in (ypu probaly done this but anyways) then i run make -f Makefile.pre.in boot then make That's all. It shold work :) Demos Economacos wrote: Hi Mathias I have the latest version of ZPatterns 0.3. Did you have to do the make step? Which directory did you do the make step in? Thanks Demos --- Mathias Bengtsson [EMAIL PROTECTED] wrote: What version of ZPatterns do you have. I experienced this problem earlier and realized that in the file SheetProviders.py in the ZPatterns library some verison of ZPatterns totally lack the SheetProverContainers. I run on ZPatterns 0-3-0 and I had it up'n'running. /Mathias Bengtsson Demos Economacos wrote: I had an older version of LoginManager (0.3) installed on my default Zope installation (2.1.6) running on a RH 6.3 Linux. I downloaded and installed LoginManager 0.8.6 and then things started getting weird. LoginManager and PTK were both being reported as broken products. So, spent about 4 hours trying to understand what was going on (reinstalling - reading the zope.org and egroups) and then found out that I needed ZPatterns. So I downloaded the binary version (0.3) and installed that. However, when I tried to do the make part, I kept getting an error. After much investigation, I discoverd that I needed the Components library for the makefile stuff. So,I then had to download the entire Zope souce code and installed that into a new directory - and copied the components over to the existing zope directory. However the make still didnt work. Then I tried (un)taring Zpatterns into the new zope and tried to make and still problems. Tben I downloaded the source an older version of ZPatterns and installed that to the new zope and got the make to work eventually. Then i tried the same procedure on teh old zope and still no joy. Then I decided to copy over everything from the new zope to the old zope in the ZODB directory that was new. That seemed to do the trick and enventually after about 16 straight hours of pure frustration (for a newbie like me) i got the makefile step to go through without an error. However, when I restart zope, I now get a new error in the login manager traceback: Traceback (innermost last): File "/usr/share/zope/lib/python/OFS/Application.py", line 387, in import_products product=__import__(pname, global_dict, global_dict, silly) File "/usr/share/zope/lib/python/Products/LoginManager/__init__.py", line 1, in ? import LoginManager, LoginMethods, UserSources File "/usr/share/zope/lib/python/Products/LoginManager/LoginManager.py", line 9, in ? from Products.ZPatterns.SheetProviders import SheetProviderContainer ImportError: cannot import name SheetProviderContainer I have no idea where to even start looking for the problem. Anyone have any hint or idea - I would really appreciate any help. Its been a very long and frustrating day :) Thanks in advance Demos __ Do You Yahoo!? Get Yahoo! Mail - Free email you can access from anywhere! http://mail.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 ) __ Do You Yahoo!? Get Yahoo! Mail - Free email you can access from anywhere! http://mail.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] length of an object
Hi ! Chris Withers wrote: Brown Fox wrote: i want to know the size of an image or a file. With dtml-var "_.len(object)" i count objects, but for the length? For images or file objects, I think you can try for: dtml-var "file_or_image.length" Isn't it nice we have the Snippets ? :-) http://zdp.zope.org/projects/zsnippet/snippets/DTMLTags/ObjectLength Regards, Maik Röder -- "The computing future is based on "cyberbodies" - self-contained, neatly-ordered, beautifully-laid-out collections of information, like immaculate giant gardens." The second coming - A manifesto. David Gelernter http://www.edge.org/3rd_culture/gelernter/gelernter_p1.html ___ 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] ZDiscussions and Zope 2.2
Good.. that means that it was an inherited problem. :) J From: Gidon Friedman [EMAIL PROTECTED] Date: Thu, 20 Jul 2000 15:08:25 +0200 To: "J. Atwood" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [Zope] ZDiscussions and Zope 2.2 I used the old ZDiscussions 0.2, but i installed the new ZDiscussions 0.3.2 now, and the results are _exactly_ the same. cheers gidon Are you using the old ZDiscussions or ZUBB? I have not had the time to fix ZUBB to work with 2.2 but will try this weekend. 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] Changing my session identity
How does one become Anonymous User without stopping/restarting the browser? Is there a special username/password for that? -- Jim Washington Chris McDonough wrote: Oops... sorry... dtml-raise Unauthorized Unauthorized. /dtml-raise Shortcuts on the brain. :-) -Original Message- From: Chris McDonough [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 19, 2000 11:43 AM To: 'Andreas Rippel'; [EMAIL PROTECTED] Subject: RE: [Zope] Changing my session identity In dtml: raise Unauthorized You are unauthorized. /raise If you enter a new valid username/password combo in, you'll be validated and your identity will be changed. If you cancel or enter an invalid username/password combo, you'll still be logged in as whomever you started with. ___ 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] Working with Lists
Here is my code and my error. dtml-in "_.getitem(ProgCode,0).CL" dtml-let item=sequence-item dtml-var "item[0]" /dtml-let BR /dtml-in Zope has encountered an error while publishing this resource. Error Type: IndexError Error Value: string index out of range CL is a property of a dtml document and is a list of courses for a given program. My goal is to test character 8 of each line and if it is a - (dash) then it represents a course name which I will usr to point to a course description. Any help? Terry -- __ Terry Babbey Technical Support Specialist Lambton College, Sarnia, Ontario, Canada __ ___ 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] two problems.
hi folks, the first of these should be as simple to solve as anything, but i cannot figure it out. the second may be more complicated, and perhaps there is a good tutorial on it that someone could point out to me (though i did not find exactly what i am looking for in the zope list of how-to's, etc.) 1. i am exploring using zope 2.2 on my local machine, the installation went fine, but now when i try to create anything from superuser, i get an error that says: Error Type: SuperCannotOwn Error Value: Objects cannot be owned by superuser what am i doing wrong here. (this of course runs completely counterintuitive from my unix experience, where superuser can do anything anywhere). i was folloing the steps outlined in the "A first zope site" How-to, and still did not get this to work. 2. on a website we are developing, we can log in as a user, and get AUTHENTICATE_USER to authenticate fine, but when we log out and log in as a new user, the content remains that of the original user. we are using a combination of UserDb to store users, acl_user, and a MySQL database to store user folder content information. the zope documentation still seems fairly sketchy as to how the whole authentication process works, and i have seen many questions posted about this. tia. ciao! greg. Gregory Haley venaca.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: Shane's Acquisition Understander
"James W. Howe" wrote: I was just trying the "showaq" external method you posted on zope.org. Perhaps I just don't have things defined quite correctly, but when I try to use the method I get an error on the line which reads: base = getattr(obj, aq_base, obj) Argh! I knew I'd be bitten by this again. I did the How-To in structured text which conveniently removed all the '' from the python code and broke it :( I've chanegd the formatting to 'HTML' so it now works. The new version is in the same place as the old one. Apologies to Shane for thinking he wrote dodgy code :-) 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] Search Interface Gone arwy! Red! No, Blue.....ahhhh.....
Here is my search interface and SQL method. search_query: dtml-var standard_html_header form action="search_result" method="get" h2dtml-var document_title/h2 input name="select_statment" value="select * from courses_description " input name="where_statement" value=" where subject = 'ee'" input type="SUBMIT" name="SUBMIT" value="Submit Query" /td/tr /table /form dtml-var standard_html_footer search_results: dtml-var standard_html_header dtml-in search_method size=50 start=query_start dtml-if sequence-start dtml-if previous-sequence a href="dtml-var URLdtml-var sequence-query query_start=dtml-var previous-sequence-start-number" (Previous dtml-var previous-sequence-size results) /a /dtml-if previous-sequence table border tr thSUBJECT/th thCOURSE NBR/th thPART/th thTEXT/th /tr /dtml-if sequence-start tr tddtml-var SUBJECT/td tddtml-var COURSE_NBR/td tddtml-var PART/td tddtml-var TEXT/td /tr dtml-if sequence-end /table dtml-if next-sequence a href="dtml-var URLdtml-var sequence-query query_start=dtml-var next-sequence-start-number" (Next dtml-var next-sequence-size results) /a /dtml-if next-sequence /dtml-if sequence-end dtml-else There was no data matching this dtml-var title_or_id query. /dtml-in dtml-var standard_html_footer Z_SQL_method(search_method): dtml-with search_query dtml-call "REQUEST.set('left', select_statment + where_statement)" /dtml-with dtml-var left What I am trying to do is concatenate select_statment and where_statement , into a single statement known as left. There will be more parameters when I get this to work. Then, I want to use left, which would be a valid SQL statement, and throw it at my Z SQL method. I don't understand why I can't accomplish this, it doesn't seem like it should be difficult to me. Thank you for reading this and thanks in advance for any help. -Sean -- Sean G. Richards : Web Technician/Treasurer PLUG Purdue University : Engineering Computing Network [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] Changing my session identity
Hello, At 15:30 19.07.2000 +, you wrote: does anybody know a possibility to change the identity during a browser process, without killing all clients and logging in again? In the "Tracker" product, you will find two DTML Methods that will enable you to change the identity. They are called "login" and "relogin". Simply call dtml-var login to get a login prompt. I believe if you simply do not fill this form, you will get "Unauthorized" and then back to Anonymous. ---[login] dtml-var relogin dtml-if "REQUEST.get('HTTP_REFERER', '') != ''" dtml-call "RESPONSE.redirect(REQUEST.get('HTTP_REFERER'))" dtml-else dtml-call "RESPONSE.redirect(URL1)" /dtml-if --- ---[relogin] !--#comment-- Call this from other methods to force user reauthentication before redirecting back to the calling script. (This script leaves traces before raising "Unauthorized" so that it recognizes the return after the authentication, and avoids repeating. At that point the cookie used to recognize the return is removed, enabling the process for the next invocation.) !--#/comment-- !--#var "REQUEST.AUTHENTICATED_USER" html_quote-- !--#if "(REQUEST.cookies.has_key('relogin') and (not _.hasattr(REQUEST.cookies['relogin'],'has_key') or not REQUEST.cookies['relogin'].has_key('value') or (REQUEST.cookies['relogin']['value'] != 'deleted')))"-- !--#call "REQUEST.RESPONSE.expireCookie('relogin')"-- !--#else-- dtml-call "REQUEST.RESPONSE.setCookie('relogin', 1, expires=(ZopeTime('GMT') +(1.0/(24*60))).rfc822())" !--#call "REQUEST.RESPONSE.expireCookie('__ac', path='/')"-- (Interim - the raise value only shows when the user login fails.) !--#raise Unauthorized-- Refresh this page to get the login prompt. !--#/raise-- !--#/if-- --- Best regards, Gérard Jr. ___ 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] URL quoting in python
I often create an external method for this... em: def url_quote(s): import urllib return urllib.quote_plus(s, safe='') Silly, but it works. I think the alternative is to hack the DT_Util.py module in the DocumentTemplate directory to expose urllib or a derived function. -Original Message- From: Kapil Thangavelu [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 19, 2000 11:46 PM To: [EMAIL PROTECTED] Subject: [Zope] URL quoting in python is there a way to get a url-encoded/quoted variable in pythonish dtml ? what i am trying to do dtml-call "RESPONSE.redirect(URL1+'?foo_bar='+foobar)" Kapil ___ 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] Changing my session identity
On Thu, 20 Jul 2000, Chris McDonough wrote: No, unfortunately, you need to stop and restart the browser. Is there a UserFolder that stores users in ZODB and uses cookie-based authentication? 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] Re: [Zope-Annce] July 20th Zope Weekly News
ethan mindlace fremen [EMAIL PROTECTED] writes: o Wikis are now searchable - and they have history, too! This was a little bumpy, with Steve Alexandar pointing out a search bug. Yay! where can we see this ? -Simon ___ 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] Changing my session identity
On Thu, Jul 20, 2000 at 11:38:23AM -0400, Chris McDonough wrote: No, unfortunately, you need to stop and restart the browser. Well, netscape 4.73 at least identifies http://server:8080 and http://server.whatever.com:8080 as separate authentication domains. So, you can use one as your administration account and one as your test account, if you are in the same domainas the server. -Original Message- From: Jim Washington [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 20, 2000 10:40 AM To: Chris McDonough Cc: [EMAIL PROTECTED] Subject: Re: [Zope] Changing my session identity How does one become Anonymous User without stopping/restarting the browser? Is there a special username/password for that? ___ 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 Interface Gone arwy! Red! No, Blue.....ahhhh.....
Wow, wow, very interesting! On Thu, 20 Jul 2000, Sean G Richards wrote: form action="search_result" method="get" h2dtml-var document_title/h2 input name="select_statment" value="select * from courses_description " input name="where_statement" value=" where subject = 'ee'" input type="SUBMIT" name="SUBMIT" value="Submit Query" /td/tr /table /form Plese send me the real URL of the form ASAP. I will download the page, replace "select *" with "DELET FROM" and submit the form! Never saw nicer security hole! :) 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] URL quoting in python
How about doing the equivalent on html_quote in python? Chris Chris McDonough wrote: I often create an external method for this... em: def url_quote(s): import urllib return urllib.quote_plus(s, safe='') Silly, but it works. I think the alternative is to hack the DT_Util.py module in the DocumentTemplate directory to expose urllib or a derived function. -Original Message- From: Kapil Thangavelu [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 19, 2000 11:46 PM To: [EMAIL PROTECTED] Subject: [Zope] URL quoting in python is there a way to get a url-encoded/quoted variable in pythonish dtml ? what i am trying to do dtml-call "RESPONSE.redirect(URL1+'?foo_bar='+foobar)" Kapil ___ 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 )
[Zope] ZPatterns and LoginManager
To: Mathias Bengtsson [EMAIL PROTECTED], [EMAIL PROTECTED] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii I am still having a little trouble - I am newbie, so please excuse my dumb questions :) When I do the make, I get make: *** No rule to make target `DynPersist.c', needed by `DynPersist.o'. Stop I am not sure, but am I supposed to copy the Makefile.pre.in from ZPatterns to python library two levels above - and then run the make -f Makefile.pre.in boot from ZPatterns? Thanks for your help! --- Mathias Bengtsson [EMAIL PROTECTED] wrote: When I installed ZPatterns. I first untared in zope root as usual. Then standing in the /zope/lib/python/Products/ZPatterns/ library i da a copy of the makefile two steps above cp ../../Makefil *** MESSAGE TRUNCATED *** __ Do You Yahoo!? Get Yahoo! Mail Free email you can access from anywhere! http://mail.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] two problems.
Hello, At 15:28 20.07.2000 +, Gregory Haley wrote: 1. i am exploring using zope 2.2 on my local machine, the installation went fine, but now when i try to create anything from superuser, i get an error that says: Error Type: SuperCannotOwn Error Value: Objects cannot be owned by superuser what am i doing wrong here. (this of course runs completely counterintuitive from my unix experience, where superuser can do anything anywhere). i was folloing the steps outlined in the "A first zope site" How-to, and still did not get this to work. Well, the rights associated with Superuser changed in 2.2. You now need to have a dedicated login to create objects. Superuser should only be used as a "last help" login. I don't even remember the password I have as a Superuser on my server and will have to change it when I will require the superuser login ;-) Here is how to proceed. - In the management interface, got to /acl_users - Click on "add..." - Enter the username, password, ... and give him at least the role "Manager" - Restart your browser - Log into your management screen as this newly created user - Goto the / folder, select the "Ownership" tab - Click on "Take ownership" (this step is not required) You can now add, modify and delete objects. Best regards, Gérard Jr. PS: There seems to be a problem with your email address. ___ 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/Apache/ProxyPass
I'm having trouble getting Zope and Proxy Pass to work the way I expect Specifically if you look at this site: http://www.bmb.colostate.edu:8111/ it's really supposed to proxypass to webdev.bmb.colostate.edu, but the ProxyPassReverse directive doesn't seem to clean/modify/correct the base tag in the header as I understand it should Here's the proxypass section of my httpd.conf for apache: ProxyRequests on NoCache * ProxyPass / http://webdev.bmb.colostate.edu/ ProxyPassReverse / http://webdev.bmb.colostate.edu/ ProxyPass /misc_ http://webdev.bmb.colostate.edu/misc_ ProxyPass /p_ http://webdev.bmb.colostate.edu/p_ And in the past I've tried it as: ProxyRequests on NoCache * ProxyPass /Zope/ http://webdev.bmb.colostate.edu/ ProxyPassReverse /Zope/ http://webdev.bmb.colostate.edu/ ProxyPass /misc_ http://webdev.bmb.colostate.edu/misc_ ProxyPass /p_ http://webdev.bmb.colostate.edu/p_ Ideas? Thanks, Josh -- - Joshua Brauer Computer Support Scientist Department of Biochemistry and Molecular Biology Colorado State University Fort Collins, CO 80523 (970) 491-1080/pager: (970) 498-7995, #5837 - ___ 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] NESTED IN STATEMENTS AND PASSING VARIABLES in DTML
What is the DTML syntax for nested in statements. Here is an example. EXAMPLE 1: NO VARIABLE PASSING GOAL: loop 4 times and with each loop run the category_method and print out the results: dtml-in "1,2,3,4" dtml-in "category_method(id='1')" size=100 start=query_start id=dtml-var idseq=dtml-var seqvid=dtml-var vid /dtml-in /dtml-in WORKS! EXAMPLE 2: VARIABLE PASSING GOAL: Loop in the active_category_method and for each row run the category_method passing a new 'id' variable and print out the results. dtml-in "active_category_method()" dtml-in "category_method()" size=100 start=query_start id=dtml-var idseq=dtml-var seqvid=dtml-var vid /dtml-in /dtml-in ERROR -- ID is not being passed to "category_method()" Anyone have a solution out there? NOTE: active_category_method and category_method are SQL METHODS. Where 'id' is and SQL_VAR for category_method. Thanks in advance! Theodore E. Patrick Ishophere.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] Accessing DTML Methods through the monitor_client
Can anyone give me a push down the path of using the monitor client to access DTML methods. I have a s simple methods that returns a value from a SQL call. The method looks like this: dtml-in getSampledtml-var sample/dtml-in I would like to examine sample in the monitor. -D ___ 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] Infoworld Review of Zope
Sorry if this has been posted already, I'm in digest mode on this list. http://www.infoworld.com/articles/mt/xml/00/07/17/000717mtzope.xml Is ZEO really $25K? Brad Clements,[EMAIL PROTECTED] (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com AOL-IM: BKClements ___ 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] Infoworld Review of Zope
No. He got it wrong. ZEO is open-sourced, free, and available for download and has been since ~ a month ago. Write to the InfoWorld guy and tell him. :-) -Original Message- From: Brad Clements [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 20, 2000 1:46 PM To: [EMAIL PROTECTED] Subject: [Zope] Infoworld Review of Zope Sorry if this has been posted already, I'm in digest mode on this list. http://www.infoworld.com/articles/mt/xml/00/07/17/000717mtzope.xml Is ZEO really $25K? Brad Clements,[EMAIL PROTECTED] (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com AOL-IM: BKClements ___ 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] Reversing acquisition?
Thank you very much for the correction. However, after checking your Wiki references, I must say I still don´t understand the difference between context and containment (these are words that I naively used as synonyms in my message). In http://www.zope.org/Wikis/zope-dev/AcquisitionUsage we find: """ - Containment: Search the object, then its container, then the container's container, and so on. Ignore objects not in this chain. - Context: Search the objects in precisely the reverse of the order in which they were mentioned, so "A.B.C.D" is always searched in the order "D", "C", "B", "A". """ But for me, A.B.C.D means that A contains B; B contains C; and C contains D, so I don´t see the difference from the first definition. Maybe you are using the word "container" in a more restricted sense? Best regards, Luciano Ramalho Stephen Harrison wrote: Luciano Ramalho wrote: [EMAIL PROTECTED] wrote: The effect I would like to achieve is: when user access http://myserver/, content of /text_object_1 and /text_object_2 will be shown while user access http://myserver/subfolder/, content of /subfolder/text_object_1 and /subfolder/text_object_2 The point is that there's no index_html in /subfolder so /index_html will be acquested and by default it displays content of /text_object_1 and /text_object_2 The question is: we got text_object_1 and text_object_2 in /subfolder how could I let the acquested index_html in subfolder to use the objects inside the subfolder? What you want is what Zope already does! That is how acquisition works: if /subfolder has no index_html, it will acquire that object from the root. But the DTML inside index_html will be rendered in the context (namespace) of the subfolder, so the desired effect will be achieved. Unfortunately it is not quite as simple as that. Infact, to say that that is how acquisition works is misleading. It is not how acquisition works, but if you are using DTML Methods then you can create the effect of that being the way it works. Let me explain. When you acquire an object, the acquisition method used is to first look at the containment of the object before the context of the object. So if you have the scenario described above, when you call /subfolder/ it fist looks for index_html inside subfolder, but it isn't there, so it looks in subfolders containing object, /, where it does find index_html. Now it executes index_html and finds a call to text_object_1. So it first looks inside index_html for text_object_1, but it can't find it, so it looks in the _containing_ object of index_html, /, and finds text_object_1. However, if index_html is a DTML Method then things are different, because a DTML Method does not have it's own namespace and isn't an object in it's own right - rather it is a method of the calling object. The problem with this *containment before context* is that in most cases it goes against what is trying to be achieved. In the example above, there may be very good reasons why index_html needs to be a document rather than a method - maybe it needs it's own properties, etc. The point is that most often, the important thing when calling an object is the *context* in which it is called, not the location in the object store where it happens to be located. As I have mentioned several times now on the list, I can't see any good reason why acquisition should use the containment before context method (refered to as Simplified Acquisition) and in my opinion it should be changed to use context before containment (refered to as Natural Acquisition). See http://www.zope.org/Wikis/zope-dev/AcquisitionUsage for some explanation of the different types of acquisiton, and http://www.zope.org/Wikis/zope-dev/AcquisitionFeedback for a summary of the problem as I see it - if you have opinions then do add them. Also, Patrick Lewis wrote: Try changing /index_html as follows: dtml-var standard_html_header table trtddtml-var "PARENTS[0].text_object_1" fmt=structured-text /td/tr trtddtml-var "PARENTS[0].text_object_2" fmt=structured-text /td/tr /table dtml-var standard_html_footer Basically force Zope to look in the current folder first. That is all well and good for solving this particular problem, but it crosses a threshold in terms of accessability to the person writing the code. For a 'non-programmer', writing dtml-var object is not too difficult or scary, but dtml-var "PARENTS[0].object" is a world apart and quite a scary place to be. It's complicated, it doesn't make a lot of sense and it makes doing what should be quite simple things inaccessible. I work with a variety of people here, some of whom have no problem at all with any of the above, but others for whom there is a definite barrier between the first and second snippets of code. It's like the old "function(_, _.None) thing, which just shouldn't
Re: [Zope] Scarry BTreeFolder eats my 'contents' tab
Dirksen Lau wrote: Just as soon as I restarted Zope after placing the BTreeFolder in the Products dir, wham! all my files were disappeared!! It took me quite a while to collect the pieces of my minds and pulled them together again when I discovered through FTP that my files were still inside Zope. Back in the HTTP manage console I also found that the 'Contents' tab was gone, and it was the same with most of the folders in my Zope site. After removing the BTreeFolder from the Products dir, the 'contents' tab was back again. Everything seemed normal except the /Control_Panel/Products/ still had an entry of BTreeFolder. Really weild!! I'm running Zope 2.2.0b3 on NT4. Any idea to tame this beast is appreciated. Oh boy, that made me chuckle. I feel for ya, man. This is the first pre-release of a pre-alpha unsupported development-only "I'll fire you if you put that on our production server" experimental patch, though. :-) Has anyone else had a similar experience? Shane ___ 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] Infoworld Review of Zope
Chris McDonough wrote: No. He got it wrong. ZEO is open-sourced, free, and available for download and has been since ~ a month ago. Write to the InfoWorld guy and tell him. :-) InfoWorld is notorious for misreporting then never retracting. We may need a letter-writing campaign. :-) Shane ___ 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] Reversing acquisition?
Ramalho wrote: """ - Containment: Search the object, then its container, then the container's container, and so on. Ignore objects not in this chain. - Context: Search the objects in precisely the reverse of the order in which they were mentioned, so "A.B.C.D" is always searched in the order "D", "C", "B", "A". """ But for me, A.B.C.D means that A contains B; B contains C; and C contains D, so I don´t see the difference from the first definition. There's a good slide in Michel's presentation at the open source conference. Imagine: | - - | | | B | | C | | | - | - | | || | D | | | | A| - | | || | | |- | So that "A" is a folder, "B" is an object in "A", "C" is a subfolder in "A", and "D" is an object in "C". Then "B" is acquirable by "D", or any object in "C", but "B" is not contained in either "C" or "D". Later, Jerry S. ___ 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] Changing my session identity
[EMAIL PROTECTED] writes: On Thu, Jul 20, 2000 at 11:38:23AM -0400, Chris McDonough wrote: No, unfortunately, you need to stop and restart the browser. Well, netscape 4.73 at least identifies http://server:8080 and http://server.whatever.com:8080 as separate authentication domains. So, you can use one as your administration account and one as your test account, if you are in the same domainas the server. On my linux box, I add another alias to the same IP in /etc/hosts for a separate user. I also switch between localhost and my hostname for a server on my own box. This also works for cookies. Obvious once it was pointed out to me! -- Karl Anderson [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] 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] Infoworld Review of Zope
On Thu, 20 Jul 2000, Brad Clements wrote: Sorry if this has been posted already, I'm in digest mode on this list. http://www.infoworld.com/articles/mt/xml/00/07/17/000717mtzope.xml This article is so innaccurate it's scary :( Is ZEO really $25K? No, it is open source and free ;-) Chris PS: Do DC have anyone doing publicity? Someone needs to knock those infoworld guys into shape, or at least sue them for libel ;-) ___ 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] Display the icon of a meta_type
Hello, I am facing a little problem ;-) I am using a ZCatalog object on my site. When I do a query, I want the results do display the meta_type of the document found with it's icon. I've seen that on Zope.org and loved this idea... the only problem is that it is a method on zope.org that does the trick (!--#var "icon_for_meta_type(REQUEST,meta_type=meta_type)"--) and I don't have the source for it. Thank you for your help. Best regards, Gérard Métrailler Jr. ___ 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: Reversing acquisition?
"B" is acquirable by "C" and "D", because it is within the context of a common container, "A". However, some other object, "E" that is acquired from higher up the containment chain may be affected by the nature of the "B" that is available to "D". Because of that, the "E" may appear differently than it would if presented as a component from some other containment chain. An easy example to grasp is to think of "B" as defining the background color of a page. If "E" is the master page template, other "B" objects in other chains could define the color scheme for the all the objects ("pages") in the parent folder. That's context. -Original Message- From: Luciano Ramalho [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 20, 2000 1:23 PM To: Spicklemire, Jerry Subject: Re: Reversing acquisition? Great ASCII illustration! I see what you mean. But I still don´t see the difference between "containment" and "context" as defined in the AquisitionUsage Wiki (quoted below). []s Luciano "Spicklemire, Jerry" wrote: Ramalho wrote: """ - Containment: Search the object, then its container, then the container's container, and so on. Ignore objects not in this chain. - Context: Search the objects in precisely the reverse of the order in which they were mentioned, so "A.B.C.D" is always searched in the order "D", "C", "B", "A". """ But for me, A.B.C.D means that A contains B; B contains C; and C contains D, so I don´t see the difference from the first definition. There's a good slide in Michel's presentation at the open source conference. Imagine: | - - | | | B | | C | | | - | - | | || | D | | | | A| - | | || | | |- | So that "A" is a folder, "B" is an object in "A", "C" is a subfolder in "A", and "D" is an object in "C". Then "B" is acquirable by "D", or any object in "C", but "B" is not contained in either "C" or "D". Later, Jerry S. ___ 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] Incorrect Article: Zope Costly enterprise option
Hi Tom and the editors at InfoWorld, In regards to your article titled "Zope is a powerful open-source server" FYI, ZEO is now open source and free. It's been that way since March 2000. Is it possible to fix your article before too many folks get the wrong idea? Here's a link to all the details: http://www.zope.org/Products/ZEO/ZEOFactSheet Thanks, Eric Walstad. ___ 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] NESTED IN STATEMENTS AND PASSING VARIABLES in DTML
On Thu, Jul 20, 2000 at 12:27:01PM -0500, Theodore Patrick wrote: What is the DTML syntax for nested in statements. Here is an example. EXAMPLE 1: NO VARIABLE PASSING GOAL: loop 4 times and with each loop run the category_method and print out the results: dtml-in "1,2,3,4" dtml-in "category_method(id='1')" size=100 start=query_start id=dtml-var idseq=dtml-var seqvid=dtml-var vid /dtml-in /dtml-in WORKS! EXAMPLE 2: VARIABLE PASSING GOAL: Loop in the active_category_method and for each row run the category_method passing a new 'id' variable and print out the results. dtml-in "active_category_method()" dtml-in "category_method()" size=100 start=query_start id=dtml-var idseq=dtml-var seqvid=dtml-var vid /dtml-in /dtml-in ERROR -- ID is not being passed to "category_method()" Anyone have a solution out there? NOTE: active_category_method and category_method are SQL METHODS. Where 'id' is and SQL_VAR for category_method. This is FAQ material and should be inserted into either the DTML programmer's guide or the ZSQL Methods guide. It bites everyone who uses SQL methods eventually. ZSQL methods do not perform acquisition, but will look at REQUEST, change it to. dtml-in "active_category_method()" dtml-call "REQUEST.set('id', id)" dtml-in "category_method()" size=100 start=query_start id=dtml-var idseq=dtml-var seqvid=dtml-var vid /dtml-in /dtml-in If you have a lot of arguments that need to be captured, you can build a DTML Method, say setup_category_method_parameters that has these builds the REQUEST. Then your dtml can look like: dtml-in "active_category_method()" dtml-call setup_category_method_parameters dtml-in "category_method()" size=100 start=query_start id=dtml-var idseq=dtml-var seqvid=dtml-var vid /dtml-in /dtml-in Thanks in advance! Theodore E. Patrick Ishophere.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] Anyone built a classifieds or review product?
"J. Atwood" wrote: On my list of products that I would like to build / help build ZCLassifieds: Yes, but I lost the hard drive that one was on A product that allows users to post classifieds for sale with categories, pictures, start and end dates, email contacts, etc. Could be anonymous or require a log in that plays upon the strengths of Zope. ZReview: Less generic, but yes. A generic review product that allows people to post reviews of "things" and have other people comment on the review. A lot of what is in Zope Treasures but maybe with pictures etc. Has anyone starting building these, need these, or would be interested in helping build these? Not sure how much the code would be useful, but I can see if I can dig it up If you want. -- Do not meddle in the affairs of sysadmins, for they are easy to annoy, and have the root password. ___ 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] NESTED IN STATEMENTS AND PASSING VARIABLES in DTML
THANKS A TON!!! I just found that the following solutions works also: I think the only difference is the id is evaluated in the namespace variable before invoking the SQL_METHOD dtml-in "active_category_method()" dtml-in "category_method(id=(_['id']))" size=100 start=query_start id=dtml-var idseq=dtml-var seqvid=dtml-var vid /dtml-in /dtml-in or dtml-in "1,2,323,23,23" dtml-in "category_method(id=(_['sequence_item']))" size=100 start=query_start id=dtml-var idseq=dtml-var seqvid=dtml-var vid /dtml-in /dtml-in Your point on the SQL_METHODS is a good one! I had no idea! Theodore E. Patrick -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 20, 2000 1:28 PM To: Theodore Patrick Cc: [EMAIL PROTECTED] Subject: Re: [Zope] NESTED IN STATEMENTS AND PASSING VARIABLES in DTML On Thu, Jul 20, 2000 at 12:27:01PM -0500, Theodore Patrick wrote: What is the DTML syntax for nested in statements. Here is an example. EXAMPLE 1: NO VARIABLE PASSING GOAL: loop 4 times and with each loop run the category_method and print out the results: dtml-in "1,2,3,4" dtml-in "category_method(id='1')" size=100 start=query_start id=dtml-var idseq=dtml-var seqvid=dtml-var vid /dtml-in /dtml-in WORKS! EXAMPLE 2: VARIABLE PASSING GOAL: Loop in the active_category_method and for each row run the category_method passing a new 'id' variable and print out the results. dtml-in "active_category_method()" dtml-in "category_method()" size=100 start=query_start id=dtml-var idseq=dtml-var seqvid=dtml-var vid /dtml-in /dtml-in ERROR -- ID is not being passed to "category_method()" Anyone have a solution out there? NOTE: active_category_method and category_method are SQL METHODS. Where 'id' is and SQL_VAR for category_method. This is FAQ material and should be inserted into either the DTML programmer's guide or the ZSQL Methods guide. It bites everyone who uses SQL methods eventually. ZSQL methods do not perform acquisition, but will look at REQUEST, change it to. dtml-in "active_category_method()" dtml-call "REQUEST.set('id', id)" dtml-in "category_method()" size=100 start=query_start id=dtml-var idseq=dtml-var seqvid=dtml-var vid /dtml-in /dtml-in If you have a lot of arguments that need to be captured, you can build a DTML Method, say setup_category_method_parameters that has these builds the REQUEST. Then your dtml can look like: dtml-in "active_category_method()" dtml-call setup_category_method_parameters dtml-in "category_method()" size=100 start=query_start id=dtml-var idseq=dtml-var seqvid=dtml-var vid /dtml-in /dtml-in Thanks in advance! Theodore E. Patrick Ishophere.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] NESTED IN STATEMENTS AND PASSING VARIABLES in DTML
this should work too (untestet): dtml-in "active_category_method()" dtml-in "category_method(id=id)" size=100 start=query_start id=dtml-var idseq=dtml-var seqvid=dtml-var vid /dtml-in /dtml-in ('id' var should be put on the namespace by 'active_category_method()' and gets passed in to 'category_method()' (which, being a zsqlmethod, wouldnt take a var from the namespace) peter. -- _ peter sabaini, mailto: [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] Reversing acquisition?
Luciano Ramalho wrote: Thank you very much for the correction. However, after checking your Wiki references, I must say I still don´t understand the difference between context and containment (these are words that I naively used as synonyms in my message). In http://www.zope.org/Wikis/zope-dev/AcquisitionUsage we find: """ - Containment: Search the object, then its container, then the container's container, and so on. Ignore objects not in this chain. - Context: Search the objects in precisely the reverse of the order in which they were mentioned, so "A.B.C.D" is always searched in the order "D", "C", "B", "A". """ But for me, A.B.C.D means that A contains B; B contains C; and C contains D, so I don´t see the difference from the first definition. Maybe you are using the word "container" in a more restricted sense? This is how I see it: containment doesn't change, while context can, but is often the same as containment. So you create a method called "foo" and put it in /bar. "bar" is always that method's container. Then you create another folder called "boo" at the root. Then you access http://myserver/bar/foo . In this case, the context is the same as containment. But if you access http://myserver/bar/boo/foo , you're accessing foo in context of boo. The containment doesn't change--foo is still in bar. But the context is boo. Acquisition always searches the containers first, then the context. This may not appear to be inuitive, and it may seem sensible to search only the context, but actually that would break security--imagine being able to access someone else's folders in context of a user folder you own. In the case of http://myserver/bar/boo/foo, then, a name lookup searches boo, then the container of boo (the root folder). If the name hasn't been found yet, the lookup moves up in context to bar, then the container of bar (the root folder again). Does that clear it up? Shane ___ 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] Product Developer's Guide
I hadn't anticipated Michel adding a link to the Product Developer's Guide project outline in the docs wiki into the Zope Weekly News this week (http://www.zope.org/Wikis/Docs/ProductDevelopersGuide)... to all how-to writers, if you see your how-to referenced in there, it doesn't mean that we're just going to rip it off wholesale, we'll certainly ask your permission to use the content, and you'll be the decider. Tks! Chris McDonough Digital Creations Publishers of Zope - http://www.zope.org ___ 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] Linux.com interview with Ethan Fremen
http://www.linux.com/interviews/2720/64/ -- Martijn Pieters | Software Engineermailto:[EMAIL PROTECTED] | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | ZopeStudio: http://www.zope.org/Products/ZopeStudio - ___ 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] A Description with a Search Engine using the advanced ZCatalog program ?
The ZCatalog doesn't return the actual object that is indexed. It returns a representation of the object in the form of a "brain" which you can use to reference the object. dtml-in Catalog dtml-with sequence-item dtml-var "Catalog.getobject(data_record_id_).myMethod()"br /dtml-with /dtml-in This snippet iterates over all the results from a catalog and calls the myMethod() method on every one of the objects referenced by the returned results. "data_record_id_" is an attribute of the "brain" object returned from the catalog search. "getobject" is a method of the Catalog which returns the actual object referenced by the "data_record_id_". -Original Message- From: Jonathan Desp [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 20, 2000 3:02 PM To: zope zope zope Subject: [Zope] A Description with a Search Engine using the advanced ZCatalog program ? An accurate question here: I read the page: http://www.zope.org/Members/Zen/howto/AdvZCatalogSearching But I'm not able to understand very much, what is the section where they are talking about "a small description for every result" you are getting from the ZCatalog search engine ? My site is almost ready ! As well as my business plan for my company... Very truly yours, Jonathan Desp Atomasoft Matter will become software http://www.atomasoft.com "I used to think that the brain was the most wonderful organ in my body. Then I realized who was telling me this." ___ 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] Zope/Apache/ProxyPass
I'm having trouble getting Zope and Proxy Pass to work the way I expect Specifically if you look at this site: http://www.bmb.colostate.edu:8111/ it's really supposed to proxypass to webdev.bmb.colostate.edu, but the ProxyPassReverse directive doesn't seem to clean/modify/correct the base tag in the header as I understand it should Here's the proxypass section of my httpd.conf for apache: ProxyRequests on NoCache * ProxyPass / http://webdev.bmb.colostate.edu/ ProxyPassReverse / http://webdev.bmb.colostate.edu/ ProxyPass /misc_ http://webdev.bmb.colostate.edu/misc_ ProxyPass /p_ http://webdev.bmb.colostate.edu/p_ And in the past I've tried it as: ProxyRequests on NoCache * ProxyPass /Zope/ http://webdev.bmb.colostate.edu/ ProxyPassReverse /Zope/ http://webdev.bmb.colostate.edu/ ProxyPass /misc_ http://webdev.bmb.colostate.edu/misc_ ProxyPass /p_ http://webdev.bmb.colostate.edu/p_ Ideas? Thanks, Josh -- - Joshua Brauer Computer Support Scientist Department of Biochemistry and Molecular Biology Colorado State University Fort Collins, CO 80523 (970) 491-1080/pager: (970) 498-7995, #5837 - ___ 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] Atomasoft.com is ready, fresh, clean and cool, high tech.
Hi Zope members, So now Atomasoft is up and running, working. Feel free to comment, and if you see some mistake/bad request/Scripts Errors/Server problems, just email to [EMAIL PROTECTED] I don't thinks there is problem because my supporters at my list made some test and checking. (Is it too hard to put Atomasoft as VistaSource on Zope.org ?) Atomasoft Inc. on Atomasoft.com The mission of Atomasoft is to develop, in collaboration with other organizations as much as possible, simulation and design for the expanding miniaturization industry. Our design and simulation services will decrease the number of prototype fabrication iterations, accelerate time to market and reduce development time and labor cost. The mission of our Web site is to offer a broad range of information and applications with a simple, attractive and rapidly accessibile interface. The Internet initiative of Atomasoft.com is to create a marketplace to exchange ideas, to enable and facilitate transactions of all products with our B2B marketplace, to help you obtain all the information you want with our target portal for emerging technologies, and to get instant access to critical publications in the field of emerging technologies, with up-to-date inside news day to day. Very truly yours, Jonathan Desp Atomasoft Matter will become software http://www.atomasoft.com If I have not seen as far as others, it is because giants were standing on my shoulders ___ 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-killer: zSQL method that crashes Zope
Here's a thing. Those problems I was having with some sort of Zope-killing page have been tracked down to a particular zSQL method. The zSQL method is duff, in that is should fail - the perils of late-night coding on decaf, I fear - but it should fail neatly with a Zope error, not crash out the Python interpreter and force some poor schmuck to restart the limping Zope process. I don't know whether this is a peculiarity to my setup (NT4SP6, IIS4, Zope2, Access97 database) or a general problem; perhaps some of the developer-hatted Zopistas could take a look? The poison SQL is this: select (dtml-var field, field2) from tablename where (field1= dtml-sqlvar parameter1 type=string and dtml-var field '') Where two parameters are passed to the method, namely "field" and "parameter1". parameter1 is fed in as a dtml-sqlvar and searches against the table's field1 column. field is passed in as a dtml-var and is used to define which of the table's other fields is retruned. field2 is always returned. What makes the SQL duff is the parentheses around the fields in the first part of the SELECT. They're not required and if you remove them to produce the zSQL below, it works fine. select dtml-var field, field2 from tablename where (field1= dtml-sqlvar parameter1 type=string and dtml-var field ' So why does it kill Python? I'm only vaguely concerned now that I've found the fault, because of course the SQL is canned and no developer could get their hands on it - but this experience redoubles my acceptance of the notion of canned SQL! AndyG "I don't suffer from stress. I'm just a carrier." ___ 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] ZDiscussions and Zope 2.2
I'm using ZDiscussions 1.0 on 2.2 with no problems. Regards, Júlio Dinis Silva From: "J. Atwood" [EMAIL PROTECTED] To: Gidon Friedman [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: [Zope] ZDiscussions and Zope 2.2 Date: Thu, 20 Jul 2000 10:28:36 -0400 Good.. that means that it was an inherited problem. :) J From: Gidon Friedman [EMAIL PROTECTED] Date: Thu, 20 Jul 2000 15:08:25 +0200 To: "J. Atwood" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [Zope] ZDiscussions and Zope 2.2 I used the old ZDiscussions 0.2, but i installed the new ZDiscussions 0.3.2 now, and the results are _exactly_ the same. cheers gidon Are you using the old ZDiscussions or ZUBB? I have not had the time to fix ZUBB to work with 2.2 but will try this weekend. 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 ) 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] GUF, 2.2 and SQL
Hi. Well Ive done a clean install of GUF and 2.2. Ive followed the instructions to the letter in installing SQL for GUF and no matter what I do I cannot get the damn thing to work. I have even set all users to have access to all things. And that doesnt work. Has anyone else had this total failure at getting anywhere, or is it just me? Thanks. Andy McKay ___ 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-killer: zSQL method that crashes Zope
Andy Gates wrote: The poison SQL is this: select (dtml-var field, field2) from tablename where (field1= dtml-sqlvar parameter1 type=string and dtml-var field '') Now I guess our code wasn't like this, but I do remember that we've had similar problems with lethal SQL methods that cause Zope to die silently and leave nothing in the logs. However, our setup was quite different: Zope 2.1.4-2.1.6, Redhat Linux, MySQL The problem is that ZSQL Methods don't seem to be very robust, to the point of actualyl killing Zope rather than returning an exception. I'd guess this is something that needs to be looked at but it's probabyl one of those bugs that's hideous to track down (ZCAtalog index bug anyone? ;-) ah well, 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] Zope-killer: zSQL method that crashes Zope
Chris Withers wrote: Andy Gates wrote: The poison SQL is this: select (dtml-var field, field2) from tablename where (field1= dtml-sqlvar parameter1 type=string and dtml-var field '') Now I guess our code wasn't like this, but I do remember that we've had similar problems with lethal SQL methods that cause Zope to die silently and leave nothing in the logs. However, our setup was quite different: Zope 2.1.4-2.1.6, Redhat Linux, MySQL The problem is that ZSQL Methods don't seem to be very robust, to the point of actualyl killing Zope rather than returning an exception. I'd guess this is something that needs to be looked at but it's probabyl one of those bugs that's hideous to track down (ZCAtalog index bug anyone? ;-) I have a strong suspicion that nearly all bugs like this are the result of a stack overflow. It may be worth the effort to either: (1) Create a modified Python that would catch stack overflows before they happen (2) Get Zope running on microthreads/stackless Python (has anyone tried?) and gain a little more control over the stacks. Shane ___ 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-killer: zSQL method that crashes Zope
Shane Hathaway wrote: I have a strong suspicion that nearly all bugs like this are the result of a stack overflow. It may be worth the effort to either: (1) Create a modified Python that would catch stack overflows before they happen Couldn't the code that catches infinite recursion be bent to do something similar? (2) Get Zope running on microthreads/stackless Python (has anyone tried?) and gain a little more control over the stacks. Way over my head ;-) 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] ZBabel performance??
Hi, I was able to install and test the ZBabel product. Very nice product indeed!! I have a question about performance.. I saved the translated text into an MySQL database, and ZBabel automatically inserted the text to be translated into the database, I went ahead and translated the text, and bingo it magically appeared as translated. However my concern that if the page is accessed by thousands of people, does Zope cache the translated text and serve it? does ZBabel do that? or is there a way to do that? I do not want to hit the database everytime someone requests that page.. Our site is usually translated to 5 languages and we had developed a Perl script that would read php tags and create static pages becuase of that problem, and in this case we do not know at all what happend in eth backend.. Thanks in advance.. Adonis -- Adonis El Fakih - President, CEO -- EGS, Inc. 70 Boston Road, Suite A301, Chelmsford MA 01824 USA Fax (978) 244-0544 - [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] Display the icon of a meta_type
Hi Gerard ! "Gerard Metrailler Jr." wrote: Hello, I am facing a little problem ;-) I am using a ZCatalog object on my site. When I do a query, I want the results do display the meta_type of the document found with it's icon. I've seen that on Zope.org and loved this idea... the only problem is that it is a method on zope.org that does the trick (!--#var "icon_for_meta_type(REQUEST,meta_type=meta_type)"--) and I don't have the source for it. Thank you for your help. It's all there ;-) http://www.zope.org/SiteIndex/search/icon_for_meta_type/view_source Regards, Maik Röder -- "The computing future is based on "cyberbodies" - self-contained, neatly-ordered, beautifully-laid-out collections of information, like immaculate giant gardens." The second coming - A manifesto. David Gelernter http://www.edge.org/3rd_culture/gelernter/gelernter_p1.html ___ 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] ODBC in 2.2
In case anyone else didnt read my thread there is an apparently known but not seemingly well documented problem with ODBC in Zope 2.2. The solution is here: !--StartFragment--Index: RDB.py === RCS file: /cvs-repository/Zope2/lib/python/Shared/DC/ZRDB/RDB.py,v retrieving revision 1.24.32.1 retrieving revision 1.24.32.2 diff -c -r1.24.32.1 -r1.24.32.2 *** RDB.py 2000/07/12 17:38:03 1.24.32.1 --- RDB.py 2000/07/17 15:03:55 1.24.32.2 *** *** 85,92 __doc__='''Class for reading RDB files ! $Id: RDB.py,v 1.24.32.1 2000/07/12 17:38:03 brian Exp $''' ! __version__='$Revision: 1.24.32.1 $'[11:-2] import regex, regsub from string import split, strip, lower, upper, atof, atoi, atol, find, join --- 85,92 __doc__='''Class for reading RDB files ! $Id: RDB.py,v 1.24.32.2 2000/07/17 15:03:55 brian Exp $''' ! __version__='$Revision: 1.24.32.2 $'[11:-2] import regex, regsub from string import split, strip, lower, upper, atof, atoi, atol, find, join *** *** 123,128 --- 123,132 """Class for reading RDB files """ _index=None + + # We need to allow access to not-explicitly-protected + # individual record objects contained in the result. + __allow_access_to_unprotected_subobjects__=1 def __init__(self,file,brains=NoBrains, parent=None, zbrains=None): -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People ___ 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] URL quoting in python
[EMAIL PROTECTED] wrote: dtml-call "RESPONSE.redirect(URL1+'?foo_bar='+foobar)" url_quote dtml-call "RESPONSE.redirect(URL1+'?foo_bar='+foobar)" url_quote_plus Sorry, brain defect on my part: didn't notice the -call :( I see someone alerady posted what I should have said... It also fails for dtml-return... It looks like url_quote is only applicable to dtml-var...which is sort of painful. not really... how and what would you apply html_quote to in call and return (return is slightly easier) 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] URL quoting in python
Didn't happen for me (Zope 2.2b4). I got Invalid attribute name, "url_quote", for tag dtml-call "REQUEST.set('URL', URL2+'?action=Add Material Infoproduct_number='+product_number)" url_quote, on line 195 of index_html It also fails for dtml-return... It looks like url_quote is only applicable to dtml-var...which is sort of painful. Considering dtml-call has no return value which can be url_quoted, it's not all that surprising. url_quote takes action on the value rendered. Since there can by definition be nothing to render when using dtml-call, url_quote can't be supported on it. ___ 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] ZBabel performance??
+[ [EMAIL PROTECTED] ]- | Hi, | | I was able to install and test the ZBabel product. | Very nice product indeed!! I have a question about performance.. Thanks :-) [...snip...] | However my concern that if the page is accessed by thousands | of people, does Zope cache the translated text and serve it? does ZBabel | do that? or is there a way to do that? If you are passing query_string parameters into your page you will not be able to cache the pages anyway. If a page is cacheable then you can setup a HTTP accellerator in front of Zope that will cache the rendered pages. I don't know what your current network topology is like, so it's a little hard to comment. I can look at adding caching into ZBabel, but, it's not high on my priority list at the moment... I'm currently pounding the bricks. I'll try to make time over the weekend to have a look (I may be able to use the Zope Machinery to do the caching). | I do not want to hit the database | everytime someone requests that page.. Our site is usually translated to 5 | languages and we had developed a Perl script that would read php tags and | create static pages becuase of that problem, and in this case we do not | know at all what happend in eth backend.. Out of interest how many hits per hour are you doing? I worked on a largish portal system (ASP *puke*) and they had no problem going to the DB very very frequently. The key for the phrase is 32 bytes, it should be very quick to look up, even in a poorly tuned MySQL. -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 ABN: 83 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068|[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] gvib InterBase DA, undefined symbol crypt
Hi all, After having successfully installed the gvib InterBase DA on a test machine running Red Hat Linux 6.1, I'm not having the same luck on the production box running RH 6.0. Here's what happens: $ python import gvib Traceback (innermost last): File "stdin", line 1, in ? File "/usr/local/Zope-2.1.6/lib/python/Products/gvibDA/gvib/gvib.py", line 46, in ? import gvibBase ImportError: /usr/lib/libgds.so: undefined symbol: crypt I've tried mucking around with updating libraries and so on, but so far without success. No doubt this problem has happened to someone else before, so is there anyone here who can suggest how I might fix this? (By the way, the compile went through without a problem, and there was a -lcrypt on the appropriate Setup.in line). I've also emailed the author of the package, but I thought it's probably more likely a generic setup problem, rather than anything to do with the product itself. Thanks. David Trudgett ___ 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] Powered by Oasis?
Martijn Pieters wrote: OAsis is not a publishing framework. It's their version and competitor of SourceForge. Code Catalog, another Zope server run by Open Avenue, gives plenty of credit to Zope. The Powered by OAsis button is, the way I understand it, more a 'site hosted by' credit. Nice defense Martijn. g I didn't mean to defame them but after reading my own post in the daylight I can see how it seemed that way. BUT (and I always have one) they did give me the impression they are pushing their ease of use for hosted sites; like they invented it. Anyway the whole thing is off-topic. Sorry. -- Tim Cook -- FreePM Project Coordinator - http://www.freepm.org OS Healthcare Alliance Supporter - http://www.oshca.org ___ 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] ZBabel performance??
+[ [EMAIL PROTECTED] ]- Snip... | translated. However my concern that if the page is accessed by thousands | of people, does Zope cache the translated text and serve it? does ZBabel I've added caching of phrase lookups using the ZSQL Methods caching facilties, it should cache up to 1,000 different phrases for 60 seconds. There is a 0.0.2 release on zope.org now. http://www.zope.org/Members/TheJester/ZBabel/ -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 ABN: 83 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068|[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] Enitity syntax and 2.2
And how about: dtml.missing-REQUEST.form['foo']; That is, allow expressions to be used. I guess this makes the entity syntax act more like dtml-var. This would allow a really clear syntax for refilling input type=text tags with previously entered values in a form. -- Andres Corrada-Emmanuel Email: [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] gvib InterBase DA, undefined symbol crypt
On Thu, 20 Jul 2000, David Trudgett wrote: Hi all, After having successfully installed the gvib InterBase DA on a test machine running Red Hat Linux 6.1, I'm not having the same luck on the production box running RH 6.0. Here's what happens: $ python import gvib Traceback (innermost last): File "stdin", line 1, in ? File "/usr/local/Zope-2.1.6/lib/python/Products/gvibDA/gvib/gvib.py", line 46, in ? import gvibBase ImportError: /usr/lib/libgds.so: undefined symbol: crypt I'm perplexed. The only time I've run into this problem was when I forgot to link with libcrypt. Deja didn't turn up anything useful, either. I hate to point out the obvious, but, by default the Linux section in Setup.in reads: # # Use this on Linux. # #gvibBase gvibBase.c -D$(GVDEF) -I$(PYDIR) -L$(IBLIB) -lgds -lcrypt Note the comment. You need to comment the Solaris line, and uncomment the Linux line. In reality, the link with libcrypt is the only thing differentiating the two. Unfortunately, the compile will still succeed without -lcrypt being specified. You won't see the problem until you try to import the module, as seen above. so is there anyone here who can suggest how I might fix this? (By the way, the compile went through without a problem, and there was a -lcrypt on the appropriate Setup.in line). One other thought. The first time you run: make -f Makefile.pre.in boot a Setup file is created. If you then change Setup.in, you need to delete Setup and re-execute the above line. Otherwise, the changes won't be reflected. I've also emailed the author of the package, but I thought it's probably more likely a generic setup problem, rather than anything to do with the product itself. I'm sure it's something simple. Stay in touch with Bob and I; we'll help you get it working. Thanks. David Trudgett Thank you, --Jeff --- Jeff K. Hoffman 704.849.0731 x108 Chief Technology Officer mailto:[EMAIL PROTECTED] Going Virtual, L.L.C. http://www.goingv.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] ZPatterns and LoginManager
That's right. Copy the Makefile.pree.in.boot from the python library in your zope. Then do as you said yourself. run make -f Makefile.pre.in boot, then run make. Then your'e home free /Mathias Demos Economacos wrote: To: Mathias Bengtsson [EMAIL PROTECTED], [EMAIL PROTECTED] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii I am still having a little trouble - I am newbie, so please excuse my dumb questions :) When I do the make, I get make: *** No rule to make target `DynPersist.c', needed by `DynPersist.o'. Stop I am not sure, but am I supposed to copy the Makefile.pre.in from ZPatterns to python library two levels above - and then run the make -f Makefile.pre.in boot from ZPatterns? Thanks for your help! --- Mathias Bengtsson [EMAIL PROTECTED] wrote: When I installed ZPatterns. I first untared in zope root as usual. Then standing in the /zope/lib/python/Products/ZPatterns/ library i da a copy of the makefile two steps above cp ../../Makefil *** MESSAGE TRUNCATED *** __ Do You Yahoo!? Get Yahoo! Mail - Free email you can access from anywhere! http://mail.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 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] second step (many of You are going to laungh ;-)
On Wed, Jul 19, 2000 at 09:21:01PM +0200, Vincent wrote: I just download Zope today, and I am wondering how I am going to start toding something. May somebody tell me whath is the first step to do to put a custom HTML page into ZOPE ? (I started the server, I can access the 'manage' tools - server:8080/manage), I guess I need to creat my HTML page with notepad, ultraedit or whatever, but the next step ? Creat a ZOPE object linked to this HTML page ? No idea how to do that... At the bottom of the management screen (right-hand frame) you'll find a drop down box with objects you can add. I suggest you add the Zope Tutorial (I am assuming you are using 2.2 here). -- Martijn Pieters | Software Engineermailto:[EMAIL PROTECTED] | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | ZopeStudio: http://www.zope.org/Products/ZopeStudio - ___ 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] TR: - I got my answer, Tks - second step (many of You are going to laungh ;-)
Hi, Thanks a lot for all your answers, I just write a few examples and It is workgin well. Thanks again, and very sorry to sent my query to both lists... ___ 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] second step (many of You are going to laungh ;-)
On Wed, 19 Jul 2000, Vincent wrote: [snip] May somebody tell me whath is the first step to do to put a custom HTML page into ZOPE ? (I started the server, I can access the 'manage' tools - server:8080/manage), I guess I need to creat my HTML page with notepad, ultraedit or whatever, but the next step ? Creat a ZOPE object linked to this HTML page ? No idea how to do that... Create a DTML Document or DTML Method, and paste the HTML code into the edit field. Take a look at the QuickStart demo, that's where I got started learning about how this whole Zope thing works. =) For me it was quite a steep learning curve at first, but I believe I've made a lot of progress since then. Good luck. -- Michael Monsen | Due to lack of interest, [EMAIL PROTECTED] |next week has been cancelled. http://www.xmission.com/~phydoux | ___ 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 )