I just installed release 2.2.0a1 on a glibc Linux box, but I keep getting a permission problem when accessing a database query. To be more specific... 1) Get zope 2.2.0a1 2) Unpack and install 3) Start - runs fine 4) Get ZPyGreSQL product 5) Unpack, build, install. No problems 5.1) create user in top level acl_users with manager role. 5.2) shutdown netscape, restart with new user login 6) Restart zope 7) Create a database connection to a local database 8) Try the test tab - works fine. 9) Using test, create a dummy table and insert 3 rows. 10) Test "select * from employees", works fine. 11) Create a zsql method to do the query, test it, works fine. 12) Create a Z search interface to run the query 13) access search interface -- works fine 14) submit - get unauthorized. The last line of the traceback is File /usr2/local/zope/Zope-2.2.0a1-src/lib/python/DocumentTemplate/DT_In.py, line 602, in renderwb (Object: all_employees) Unauthorized: 0 all_employees being my zsql method. And I thought I understood this stuff! Any ideas? -- cary
On Tue, 16 May 2000 12:06:29 -0400 (EDT) you wrote:
I just installed release 2.2.0a1 on a glibc Linux box, but I keep getting a permission problem when accessing a database query.
I have encountered the same problem using ZOracleDA under SPARC Solaris. My full traceback is File /data/www/Zope/Zope-2.2.0a1-src/lib/python/ZPublisher/Publish.py, line 224, in publish_module File /data/www/Zope/Zope-2.2.0a1-src/lib/python/ZPublisher/Publish.py, line 189, in publish File /data/www/Zope/Zope-2.2.0a1-src/lib/python/ZPublisher/Publish.py, line 175, in publish File /data/www/Zope/Zope-2.2.0a1-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: jis_report) File /data/www/Zope/Zope-2.2.0a1-src/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: jis_report) File /data/www/Zope/Zope-2.2.0a1-src/lib/python/OFS/DTMLMethod.py, line 160, in __call__ (Object: jis_report) File /data/www/Zope/Zope-2.2.0a1-src/lib/python/DocumentTemplate/DT_String.py, line 500, in __call__ (Object: jis_report) File /data/www/Zope/Zope-2.2.0a1-src/lib/python/DocumentTemplate/DT_In.py, line 602, in renderwb (Object: jis_query) Unauthorized: 0 --kyler
I just installed release 2.2.0a1 on a glibc Linux box, but I keep getting a permission problem when accessing a database query.
I have encountered the same problem using ZOracleDA under SPARC Solaris.
File /data/www/Zope/Zope-2.2.0a1-src/lib/python/DocumentTemplate/DT_In.py, line 602, in renderwb (Object: jis_query) Unauthorized: 0
I've been especially frustrated by this. I just brought up Zope 2.2.0a1 because we have a few projects that need to be developed and I want them all using Zope. I don't want to have a lot of conversion pain going from 2.1.6, so I took a chance on using alpha software in this environment. I know the risks. That doesn't make this any less painful. I often tell our students that one of the best features of Open Source software is that if there's an error, it can be fixed (by the user or by a helper of the user's choosing) without waiting on the company who controls the source. I'm just starting to learn Python, so I didn't feel like I was up to the task of doing anything usful in this case. I was wrong. After beating on this over the last day or so trying to understand what was happening at the Web interface level (thinking that I must have just screwed up a permissions setting somewhere), I finally looked at the code and simply commented out line 602 in /data/www/Zope/Zope-2.2.0a1-src/lib/python/DocumentTemplate/DT_In.py # raise ValidationError, index Ta da! It works...for now. This little patch will get me up and going. I trust that someone will fix whatever problem necessitated this in a future release and I won't need this awful kludge, but it sure is nice to be able to use it now. --kyler
participants (2)
-
Cary O'Brien -
Kyler B. Laird