Hi Josef, I have tried changing ownership as you suggested, but am still getting the same error. Unfortunately already zapped my 2.6, so I can't do the export trick. I'd much appreciate it if anyone has ideas on this traceback. In this case, I'm trying to add the ZClass "OEFile". Thanks, AnThu =================== *Unauthorized* Sorry, a site error occurred. Traceback (innermost last): * Module ZPublisher.Publish, line 175, in publish_module_standard * Module ZPublisher.Publish, line 132, in publish * Module Zope.App.startup, line 204, in zpublisher_exception_hook * Module ZPublisher.Publish, line 101, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 39, in call_object * Module App.Factory, line 107, in index_html * Module OFS.DTMLMethod, line 130, in __call__ *<DTMLMethod instance at fdb380>* *URL: http://nwsops38.sfbay/attest/OEFile_addForm/manage_main* *Physical Path:*/attest/OEFile_addForm * Module DocumentTemplate.DT_String, line 474, in __call__ * Module OFS.DTMLMethod, line 123, in __call__ *<DTMLMethod instance at ea8410>* *URL: http://nwsops38.sfbay/header/manage_main* *Physical Path:*/header * Module DocumentTemplate.DT_String, line 474, in __call__ * Module DocumentTemplate.DT_In, line 703, in renderwob * Module DocumentTemplate.DT_With, line 76, in render Unauthorized: You are not allowed to access 'title_or_id' in this context (Also, an error occurred while attempting to render the standard error message.) =================== Josef Meile wrote:
Hi Anthu,
I just recently upgraded from 2.6 to 2.7 (running on Solaris). But now I can't add new ZClass objects anymore. I'm asked to login and then told I don't have permission.
One reason could be that you don't have the right permissions on your file system (suposing that you are running unix/linux) -> this depends on the message you are getting. I don't rememmber well what's the message for this kind of error. I think is something like "file erno permission denied". The permissions I used are read/write for the user running zope and group owning the files, and nothing for the other users (here I assume that you have a group for the zope user only). It will be something like:
% chown -R zopeuser:zopeuser <ZopeRoot> % chmod -R gu+rw <ZopeRoot> % chmod -R o-rwx <ZopeRoot> % find . -type d -exec chmod gu+x {} \; -> excecution perm. on folders
Then read the SETUID.txt on the doc folder to set the permissions of the var and Data.fs if you are running zope as root.
If the permissions are right on the file system and what you are getting is a zope "Unauthorized" exception, then try first exporting the ZClasses, then the data on the root folder from your old zope. Finally, import them on the a new empty zope 2.7.x install: first import the ZClases on the Products Folder, then the data. I don't know if this helps, but that's how I did the migration of my ZClasses on the past.
By the way, post a traceback, it will give us more clues.
Copying, pasting, uploading new versions,etc of these objects is no problem.
That's strange :-(
Regards, Josef _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )