[Zope] attribute/name error after server migration… please advise?

Dan Gaibel dg76 at cornell.edu
Thu Jan 10 19:57:04 UTC 2013


type(courses.aq_self) yields: <class 'OFS.Folder.Folder'>

print app.asian.courses._objects gives me:

({'meta_type': 'Folder', 'id': 'falcon'}, {'meta_type': 'ProgramPage', 'id': 'japanese'}, {'meta_type': 'ProgramPage', 'id': 'burmese'}, {'meta_type': 'ProgramPage', 'id': 'korean'}, {'meta_type': 'ProgramPage', 'id': 'nepali'}, {'meta_type': 'ProgramPage', 'id': 'sinhala'}, {'meta_type': 'ProgramPage', 'id': 'chinese'}, {'meta_type': 'ProgramPage', 'id': 'hindi-urdu'}, {'meta_type': 'ProgramPage', 'id': 'hindi'}, {'meta_type': 'Folder_Hidden', 'id': 'bu'}, {'meta_type': 'Folder_Hidden', 'id': 'ch'}, {'meta_type': 'Folder_Hidden', 'id': 'hu'}, {'meta_type': 'Folder_Hidden', 'id': 'hi'}, {'meta_type': 'Folder_Hidden', 'id': 'ja'}, {'meta_type': 'Folder_Hidden', 'id': 'ko'}, {'meta_type': 'Folder_Hidden', 'id': 'ne'}, {'meta_type': 'Folder_Hidden', 'id': 'si'}, {'meta_type': 'ProgramPage', 'id': 'indonesian'}, {'meta_type': 'Folder_Hidden', 'id': 'in'}, {'meta_type': 'ProgramPage', 'id': 'gen-ed'}, {'meta_type': 'ProgramPage', 'id': 'bengali'}, {'meta_type': 'ProgramPage', 'id': 'lit-chin'}, {'meta_type': 'ProgramPage', 'id': 'asia-lit-rel'}, {'meta_type': 'ProgramPage', 'id': 'lit-japan'}, {'meta_type': 'ProgramPage', 'id': 'javanese'}, {'meta_type': 'ProgramPage', 'id': 'khmer'}, {'meta_type': 'ProgramPage', 'id': 'sanskrit'}, {'meta_type': 'ProgramPage', 'id': 'lit-sanskrit'}, {'meta_type': 'ProgramPage', 'id': 'se-asian-lang'}, {'meta_type': 'ProgramPage', 'id': 'thai'}, {'meta_type': 'ProgramPage', 'id': 'vietnamese'}, {'meta_type': 'ProgramPage', 'id': 'lit-korean'}, {'meta_type': 'ProgramPage', 'id': 'pali'}, {'meta_type': 'ProgramPage', 'id': 'lit-vietnamese'}, {'meta_type': 'Folder_Hidden', 'id': 'gened'}, {'meta_type': 'Folder_Hidden', 'id': 'litrel'}, {'meta_type': 'Folder_Hidden', 'id': 'litc'}, {'meta_type': 'Folder_Hidden', 'id': 'litj'}, {'meta_type': 'Folder_Hidden', 'id': 'litk'}, {'meta_type': 'ProgramPage', 'id': 'tagalog'}, {'meta_type': 'ProgramPage', 'id': 'fws'}, {'meta_type': 'Folder_Hidden', 'id': 'fw'}, {'meta_type': 'Folder_Hidden', 'id': 'be'}, {'meta_type': 'Folder_Hidden', 'id': 'kh'}, {'meta_type': 'Folder_Hidden', 'id': 'sa'}, {'meta_type': 'Folder_Hidden', 'id': 'ta'}, {'meta_type': 'Folder_Hidden', 'id': 'th'}, {'meta_type': 'Folder_Hidden', 'id': 'vi'}, {'meta_type': 'DTML Document', 'id': 'template_instructions'}, {'meta_type': 'Folder_Hidden', 'id': 'seclang'}, {'meta_type': 'ProgramPage', 'id': 'sec-lang'}, {'meta_type': 'DTML Method', 'id': 'html_content'}, {'meta_type': 'ProgramPage', 'id': 'workshopprog'}, {'meta_type': 'Folder_Hidden', 'id': 'summer'}, {'meta_type': 'DTML Document', 'id': 'LanguageReq1'}, {'meta_type': 'DTML Document', 'id': 'LanguageReq2'}, {'meta_type': 'Group User Folder', 'id': 'acl_users'}, {'meta_type': 'DTML Document', 'id': 'Honors'}, {'meta_type': 'Folder_Hidden', 'id': 'ur'}, {'meta_type': 'ProgramPage', 'id': 'urdu'}, {'meta_type': 'DTML Document', 'id': 'courses fall 2006'}, {'meta_type': 'File', 'id': 'testpdf.pdf'}, {'meta_type': 'DTML Document', 'id': 'New Courses '}, {'meta_type': 'DTML Document', 'id': 'newofferings'}, {'meta_type': 'File', 'id': 'Course Offerings Spring 07'}, {'meta_type': 'File', 'id': 'Spring 2007 Course Offerings'}, {'meta_type': 'File', 'id': 'Fall 2007 Course Offerings Old'}, {'meta_type': 'Folder_Hidden', 'id': 'pa'}, {'meta_type': 'Folder_Hidden', 'id': 'tam'}, {'meta_type': 'File', 'id': 'Fall 2007 Course Offerings'}, {'meta_type': 'File', 'id': 'Spring 2008 Course Offerings'}, {'meta_type': 'Folder_Hidden', 'id': 'lits'}, {'meta_type': 'File', 'id': 'Fall 2008 Class and Time Roster'}, {'meta_type': 'ProgramPage', 'id': 'lit-ling'}, {'meta_type': 'ProgramPage', 'id': 'rel'}, {'meta_type': 'ProgramPage', 'id': 'soc-cult'}, {'meta_type': 'ProgramPage', 'id': 'hon-sup'}, {'meta_type': 'ProgramPage', 'id': 'grad'}, {'meta_type': 'DTML Document', 'id': 'css_content'}, {'meta_type': 'Folder_Hidden', 'id': 'litling'}, {'meta_type': 'Folder_Hidden', 'id': 'religion'}, {'meta_type': 'Folder_Hidden', 'id': 'graduate'}, {'meta_type': 'Folder_Hidden', 'id': 'soccult'}, {'meta_type': 'File', 'id': 'Department of Asian Studies Course Offerings Fall 2008'}, {'meta_type': 'File', 'id': 'Department of Asian Studies Course Offerings Spring 2009'}, {'meta_type': 'File', 'id': 'Department of Asian Studies Course Offerings Fall 2009'}, {'meta_type': 'File', 'id': 'Department of Asian Studies Course Offerings Spring 2010'}, {'meta_type': 'File', 'id': 'Department of Asian Studies Course Offerings Fall 2010'}, {'meta_type': 'File', 'id': 'ASIAN 3373 Course Syllabus Fall 2010'}, {'meta_type': 'CoursePageNew', 'id': 'cantonese'}, {'meta_type': 'File', 'id': 'Department of Asian Studies Course Offerings Spring 2011'}, {'meta_type': 'File', 'id': 'Important Dates Spring 2011'}, {'meta_type': 'CoursePageNew', 'id': 'cantonese2'}, {'meta_type': 'File', 'id': 'Department of Asian Studies Course Offerings Fall 2011'}, {'meta_type': 'File', 'id': 'Department of Asian Studies Course Offerings Spring 2012'}, {'meta_type': 'File', 'id': 'Course Schedule Spring 2012'}, {'meta_type': 'File', 'id': 'Department of Asian Studies Course Offerings Fall 2012'}, {'meta_type': 'File', 'id': 'ASIAN 2245 Description'}, {'meta_type': 'File', 'id': 'Department of Asian Studies Course Offerings Spring 2013'}, {'meta_type': 'File', 'id': 'Course Schedule Spring 2013'})

confirming that the meta type is Folder_Hidden, a homegrown variation on the folder object that was built years ago. There are other instances of that product all over the site, and they seem to work fine...

The meta type is confirmed with the type(be.aq_self) command:

<class '*eGld6IM/4fOr3FLn15Iljw==.Folder_Hidden'>

Since all objects within "courses" seem to be problematic, I found the meta type for the courses folder to be <class 'OFS.Folder.Folder'>

I also noted that when I first type in "be = app.asian.courses.be<http://app.asian.courses.be/>" or any object within the courses folder I get:

2013-01-10 14:23:12 WARNING ZODB Could not import class 'GroupUserFolder' from module 'Products.GroupUserFolder.GroupUserFolder'

I included everything that the debugger spit out in a previous response, but it got bounced for being to large... maybe unnecessary, anyway.

On Jan 10, 2013, at 2:12 PM, Tres Seaver <tseaver at palladion.com<mailto:tseaver at palladion.com>> wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 01/10/2013 01:51 PM, Dan Gaibel wrote:
in the debugger I get <type 'ImplicitAcquirerWrapper'> for
app.asian.courses.be<http://app.asian.courses.be> type. Same as other folder objects on the site,
even those that are fully funtional.

I should have figured.  Try:

type(be.aq_self)

Another bit of data::

print app.asiaon.courses._objects

Which should tell us the "meta_type" of the 'be' object.


Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com<mailto:tseaver at palladion.com>
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEARECAAYFAlDvEpwACgkQ+gerLs4ltQ4qFQCcCiqxCNxd4gqVjpz2HYk52+ou
vOwAnR+1+982Fjx2NqvlBiOLhjCLoLDo
=kdqb
-----END PGP SIGNATURE-----

_______________________________________________
Zope maillist  -  Zope at zope.org<mailto:Zope at zope.org>
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev )


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.zope.org/pipermail/zope/attachments/20130110/135c761b/attachment.html>


More information about the Zope mailing list