Zope Troubleshooting Tip (learn from my mistake)
So I was trying to get ZUBB to work (yes, I am the person maintaining the code as well) and for some reason I could not post to this one board I had installed in a virtual host/cmf. I created another board and nothing would post. I checked permissions, locations, everything and it would not post. After hours of playing with it and getting quite frustrated I remembered a problem I once had with names so I searched my installation for "post" but got back nothing but the two post methods in my first and test boards. And then I saw it. Sitting right there in the root directory. A folder named "submit". I renamed it "submit_old" and lo and behold I could post again. The problem was that I was checking for "submit" in my post method and it was picking up on the directory name (OO and all that goodness). TIP: The lesson learned is: When troubleshooting something in Zope make sure you are not calling a method or variable that has the same name as another method / variable / object in your folder paths. Use the find feature and take a look around. Cheers, BZ
Welcome to the dark side of the DTML namespace :-) I just recently had a similiar experience where in a project I have a folder called 'user'. Well, as it turned out I could not edit users in acl_users anymore, because the edit screen would prefer the folder over an argument with the same name... Stefan --On Dienstag, 06. August 2002 06:28 -0400 BZ <bz@bwanazulia.com> wrote:
And then I saw it. Sitting right there in the root directory. A folder named "submit". I renamed it "submit_old" and lo and behold I could post again.
The problem was that I was checking for "submit" in my post method and it was picking up on the directory name (OO and all that goodness).
TIP: The lesson learned is: When troubleshooting something in Zope make sure you are not calling a method or variable that has the same name as another method / variable / object in your folder paths. Use the find feature and take a look around.
-- Those who write software only for pay should go hurt some other field. /Erik Naggum/
participants (2)
-
BZ -
Stefan H. Holek