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

2013-01-10 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 01/10/2013 03:58 PM, Dan Gaibel wrote:
> That's it! Fixed! Many, many thanks, Tres. You saved me. Cheers!

Glad that helped.


Tres.
- -- 
===
Tres Seaver  +1 540-429-0999  tsea...@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/

iEYEARECAAYFAlDvQvAACgkQ+gerLs4ltQ7uSwCgmvxtoXpk7RBZN0hmCM9A3vgP
a0wAoMwr00qPqVY8Nsop3piEowJSXRKv
=047c
-END PGP SIGNATURE-

___
Zope maillist  -  Zope@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 )


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

2013-01-10 Thread Dan Gaibel
That's it! Fixed! Many, many thanks, Tres. You saved me. Cheers!

On Jan 10, 2013, at 2:58 PM, Tres Seaver 
 wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> On 01/10/2013 02:57 PM, Dan Gaibel wrote:
> 
>> 2013-01-10 14:23:12 WARNING ZODB Could not import class
>> 'GroupUserFolder' from module
>> 'Products.GroupUserFolder.GroupUserFolder'
> 
> 
> That is the smoking gun:  your new instance is missing the
> 'Products.GroupUserFolder' product.
> 
> 
> Tres.
> - -- 
> ===
> Tres Seaver  +1 540-429-0999  tsea...@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/
> 
> iEYEARECAAYFAlDvHVgACgkQ+gerLs4ltQ6+BQCfcMEi3LFtynssv1Fcl2Ht2uS8
> 6lcAoKxxxu34f9GPdxLFYXATFePNgksR
> =tJ7v
> -END PGP SIGNATURE-
> 
> ___
> Zope maillist  -  Zope@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 )
> 


___
Zope maillist  -  Zope@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 )


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

2013-01-10 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 01/10/2013 02:57 PM, Dan Gaibel wrote:

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


That is the smoking gun:  your new instance is missing the
'Products.GroupUserFolder' product.


Tres.
- -- 
===
Tres Seaver  +1 540-429-0999  tsea...@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/

iEYEARECAAYFAlDvHVgACgkQ+gerLs4ltQ6+BQCfcMEi3LFtynssv1Fcl2Ht2uS8
6lcAoKxxxu34f9GPdxLFYXATFePNgksR
=tJ7v
-END PGP SIGNATURE-

___
Zope maillist  -  Zope@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 )


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

2013-01-10 Thread Dan Gaibel
type(courses.aq_self) yields: 

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 Offer

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

2013-01-10 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 01/10/2013 01:51 PM, Dan Gaibel wrote:
> in the debugger I get  for 
> 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  tsea...@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@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 )


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

2013-01-10 Thread Dan Gaibel
Thanks for the quick response, Tres. 

in the debugger I get  for app.asian.courses.be 
type. Same as other folder objects on the site, even those that are fully 
funtional.

I've never used the debugger before. Is there any other useful info to be found 
through debug? Other ideas as to how I (or one of my python programmers) can 
get this folder accessible? I'm home free once I get this sorted out...


On Jan 10, 2013, at 1:03 PM, Tres Seaver 
 wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> On 01/10/2013 12:35 PM, Dan Gaibel wrote:
>> Hi folks,
>> 
>> I'm in the process of migrating to a new server, and I've bumped into
>> a problem. I'm using macports and virtualenv to get everything to play
>> nicely on my OS X 10.8 server. It's admittedly a atypical
>> configuration... The python version has moved from 2.3.5 to 2.4.6. The
>> Zope version is the same at 2.8.6.Everything works great, except for
>> ONE folder. It's quite frustrating to not even be able to go to
>> /manage on this folder.
>> 
>> When I go to any object within this particular folder, I get:
>> 
>> (thanks in advance for any guidance that you might provide!) Site
>> Error
>> 
>> An error was encountered while publishing this resource.
>> 
>> AttributeError
>> 
>> Sorry, a site error occurred.
>> 
>> 
>> Traceback (innermost last):
>> 
>> *   Module ZPublisher.Publish, line 188, in publish_module_standard *
>> Module Products.s.PatchStringIO, line 51, in new_publish *   Module
>> ZPublisher.Publish, line 145, in publish *   Module Zope2.App.startup,
>> line 216, in zpublisher_exception_hook *   Module ZPublisher.Publish,
>> line 105, in publish *   Module ZPublisher.BaseRequest, line 443, in
>> traverse *   Module ZPublisher.BaseRequest, line 547, in
>> old_validation
>> 
>> AttributeError: __getitem__ (Also, the following error occurred while
>> attempting to render the standard error message, please see the event
>> log for full details: name 'REQUEST' is not defined)
>> 
>> 
>> 
>> 
>> Troubleshooting Suggestions
>> 
>> *   The URL may be incorrect. *   The parameters passed to this
>> resource may be incorrect. *   A resource that this resource relies on
>> may be encountering an error.
>> 
>> For more detailed information about the error, please refer to error
>> log.
>> 
>> If the error persists please contact the site maintainer. Thank you
>> for your patience.
>> 
>> 
>> Digging into the error_log I have this: REQUEST form -C  '' 
>> cookies __utmz
>> '215042506.1349997112.16.7.utmccn=(referral)|utmcsr=backup.lrc.cornell.edu:8082|utmcct=/|utmcmd=referral'
>> 
>> 
> __utmb  '88364185'
>> tree-s  'eJzT0MgpMOQKVneEAn2XfFt1rgIjrsSSAmMuPQB5pQeW' verify_netid
>> 'f0ec5d8f10a3aed2e9e312df21f4555c' __utma
>> '23486248.2137924914.1346079782.1352756706.1355855277.6' BALANCEID
>> 'balancer.cf015' __utmc  '23486248' cuwltgttime '1357806665' 
>> ql_meta_types   '[]' lazy items SESSION > SessionDataManager.getSessionData of > /session_data_manager>> other TraversalRequestNameStack   [] URL
>> 'http://server.lrc.cornell.edu/asian/courses/be/index_html' SERVER_URL
>> 'http://server.lrc.cornell.edu' PUBLISHED   > /asian/index_html used for /asian/courses/be> ACTUAL_URL
>> 'http://server.lrc.cornell.edu/asian/courses/be/' URL0
>> http://server.lrc.cornell.edu/asian/courses/be/index_html URL1
>> http://server.lrc.cornell.edu/asian/courses/be URL2
>> http://server.lrc.cornell.edu/asian/courses URL3
>> http://server.lrc.cornell.edu/asian URL4
>> http://server.lrc.cornell.edu BASE0   http://server.lrc.cornell.edu 
>> BASE1   http://server.lrc.cornell.edu BASE2
>> http://server.lrc.cornell.edu/asian BASE3
>> http://server.lrc.cornell.edu/asian/courses BASE4
>> http://server.lrc.cornell.edu/asian/courses/be BASE5
>> http://server.lrc.cornell.edu/asian/courses/be/index_html environ 
>> CONNECTION_TYPE 'keep-alive' HTTP_USER_AGENT 'Mozilla/5.0 (Macintosh;
>> Intel Mac OS X 10_8_2) AppleWebKit/537.11 (KHTML, like Gecko)
>> Chrome/23.0.1271.101 Safari/537.11' HTTP_COOKIE
>> 'tree-s="eJzT0MgpMOQKVneEAn2XfFt1rgIjrsSSAmMuPQB5pQeW";
>> verify_netid=f0ec5d8f10a3aed2e9e312df21f4555c;
>> __utmz=215042506.1349997112.16.7.utmccn=(referral)|utmcsr=backup.lrc.cornell.edu:8082|utmcct=/|utmcmd=referral;
>> BALANCEID=balancer.cf015;
>> __utma=23486248.2137924914.1346079782.1352756706.1355855277.6;
>> __utmc=23486248;
>> __utmz=23486248.1346079782.1.1.utmcsr=lrc.cornell.edu|utmccn=(referral)|utmcmd=referral|utmcct=/asian/courses/vi/viet301/;
>> cuwltgttime="1357806665";
>> __utma=215042506.2123988513.1344957398.1356475993.1357831430.39;
>> __utmc=215042506;
>> __utma=88364185.1508772392.1357836182.1357836182.1357836182.1;
>> __utmb=88364185; __utmc=88364185;
>> __utmz=88364185.1357836182.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none);
>> ql_meta_types="[]"' SERVER_NAME '0.0.0.0' GATEWAY_INTERFACE
>> 'CGI/1.1' HTTP_ACCEPT

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

2013-01-10 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 01/10/2013 12:35 PM, Dan Gaibel wrote:
> Hi folks,
> 
> I'm in the process of migrating to a new server, and I've bumped into
> a problem. I'm using macports and virtualenv to get everything to play
> nicely on my OS X 10.8 server. It's admittedly a atypical
> configuration... The python version has moved from 2.3.5 to 2.4.6. The
> Zope version is the same at 2.8.6.Everything works great, except for
> ONE folder. It's quite frustrating to not even be able to go to
> /manage on this folder.
> 
> When I go to any object within this particular folder, I get:
> 
> (thanks in advance for any guidance that you might provide!) Site
> Error
> 
> An error was encountered while publishing this resource.
> 
> AttributeError
> 
> Sorry, a site error occurred.
> 
> 
> Traceback (innermost last):
> 
> *   Module ZPublisher.Publish, line 188, in publish_module_standard *
> Module Products.s.PatchStringIO, line 51, in new_publish *   Module
> ZPublisher.Publish, line 145, in publish *   Module Zope2.App.startup,
> line 216, in zpublisher_exception_hook *   Module ZPublisher.Publish,
> line 105, in publish *   Module ZPublisher.BaseRequest, line 443, in
> traverse *   Module ZPublisher.BaseRequest, line 547, in
> old_validation
> 
> AttributeError: __getitem__ (Also, the following error occurred while
> attempting to render the standard error message, please see the event
> log for full details: name 'REQUEST' is not defined)
> 
> 
> 
> 
> Troubleshooting Suggestions
> 
> *   The URL may be incorrect. *   The parameters passed to this
> resource may be incorrect. *   A resource that this resource relies on
> may be encountering an error.
> 
> For more detailed information about the error, please refer to error
> log.
> 
> If the error persists please contact the site maintainer. Thank you
> for your patience.
> 
> 
> Digging into the error_log I have this: REQUEST form -C  '' 
> cookies __utmz
> '215042506.1349997112.16.7.utmccn=(referral)|utmcsr=backup.lrc.cornell.edu:8082|utmcct=/|utmcmd=referral'
>
> 
__utmb  '88364185'
> tree-s  'eJzT0MgpMOQKVneEAn2XfFt1rgIjrsSSAmMuPQB5pQeW' verify_netid
> 'f0ec5d8f10a3aed2e9e312df21f4555c' __utma
> '23486248.2137924914.1346079782.1352756706.1355855277.6' BALANCEID
> 'balancer.cf015' __utmc  '23486248' cuwltgttime '1357806665' 
> ql_meta_types   '[]' lazy items SESSION  SessionDataManager.getSessionData of  /session_data_manager>> other TraversalRequestNameStack   [] URL
> 'http://server.lrc.cornell.edu/asian/courses/be/index_html' SERVER_URL
> 'http://server.lrc.cornell.edu' PUBLISHED/asian/index_html used for /asian/courses/be> ACTUAL_URL
> 'http://server.lrc.cornell.edu/asian/courses/be/' URL0
> http://server.lrc.cornell.edu/asian/courses/be/index_html URL1
> http://server.lrc.cornell.edu/asian/courses/be URL2
> http://server.lrc.cornell.edu/asian/courses URL3
> http://server.lrc.cornell.edu/asian URL4
> http://server.lrc.cornell.edu BASE0   http://server.lrc.cornell.edu 
> BASE1   http://server.lrc.cornell.edu BASE2
> http://server.lrc.cornell.edu/asian BASE3
> http://server.lrc.cornell.edu/asian/courses BASE4
> http://server.lrc.cornell.edu/asian/courses/be BASE5
> http://server.lrc.cornell.edu/asian/courses/be/index_html environ 
> CONNECTION_TYPE 'keep-alive' HTTP_USER_AGENT 'Mozilla/5.0 (Macintosh;
> Intel Mac OS X 10_8_2) AppleWebKit/537.11 (KHTML, like Gecko)
> Chrome/23.0.1271.101 Safari/537.11' HTTP_COOKIE
> 'tree-s="eJzT0MgpMOQKVneEAn2XfFt1rgIjrsSSAmMuPQB5pQeW";
> verify_netid=f0ec5d8f10a3aed2e9e312df21f4555c;
> __utmz=215042506.1349997112.16.7.utmccn=(referral)|utmcsr=backup.lrc.cornell.edu:8082|utmcct=/|utmcmd=referral;
> BALANCEID=balancer.cf015;
> __utma=23486248.2137924914.1346079782.1352756706.1355855277.6;
> __utmc=23486248;
> __utmz=23486248.1346079782.1.1.utmcsr=lrc.cornell.edu|utmccn=(referral)|utmcmd=referral|utmcct=/asian/courses/vi/viet301/;
> cuwltgttime="1357806665";
> __utma=215042506.2123988513.1344957398.1356475993.1357831430.39;
> __utmc=215042506;
> __utma=88364185.1508772392.1357836182.1357836182.1357836182.1;
> __utmb=88364185; __utmc=88364185;
> __utmz=88364185.1357836182.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none);
> ql_meta_types="[]"' SERVER_NAME '0.0.0.0' GATEWAY_INTERFACE
> 'CGI/1.1' HTTP_ACCEPT
> 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' 
> SERVER_SOFTWARE 'Zope/(Zope 2.8.6-final, python 2.4.6, darwin)
> ZServer/1.1' REMOTE_ADDR '10.32.74.32' HTTP_ACCEPT_LANGUAGE
> 'en-US,en;q=0.8' SCRIPT_NAME '' REQUEST_METHOD  'GET' HTTP_HOST
> 'server.lrc.cornell.edu' PATH_INFO
> '/asian/courses/be/' SERVER_PORT '80' SERVER_PROTOCOL 'HTTP/1.1' 
> HTTP_ACCEPT_CHARSET 'ISO-8859-1,utf-8;q=0.7,*;q=0.3' 
> channel.creation_time   1357837924 HTTP_ACCEPT_ENCODING
> 'gzip,deflate,sdch' PATH_TRANSLATED 

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

2013-01-10 Thread Dan Gaibel
Hi folks,

I'm in the process of migrating to a new server, and I've bumped into a 
problem. I'm using macports and virtualenv to get everything to play nicely on 
my OS X 10.8 server. It's admittedly a atypical configuration... The python 
version has moved from 2.3.5 to 2.4.6. The Zope version is the same at 
2.8.6.Everything works great, except for ONE folder. It's quite frustrating to 
not even be able to go to /manage on this folder.

When I go to any object within this particular folder, I get:

(thanks in advance for any guidance that you might provide!)
Site Error

An error was encountered while publishing this resource.

AttributeError

Sorry, a site error occurred.


Traceback (innermost last):

  *   Module ZPublisher.Publish, line 188, in publish_module_standard
  *   Module Products.s.PatchStringIO, line 51, in new_publish
  *   Module ZPublisher.Publish, line 145, in publish
  *   Module Zope2.App.startup, line 216, in zpublisher_exception_hook
  *   Module ZPublisher.Publish, line 105, in publish
  *   Module ZPublisher.BaseRequest, line 443, in traverse
  *   Module ZPublisher.BaseRequest, line 547, in old_validation

AttributeError: __getitem__ (Also, the following error occurred while 
attempting to render the standard error message, please see the event log for 
full details: name 'REQUEST' is not defined)




Troubleshooting Suggestions

  *   The URL may be incorrect.
  *   The parameters passed to this resource may be incorrect.
  *   A resource that this resource relies on may be encountering an error.

For more detailed information about the error, please refer to error log.

If the error persists please contact the site maintainer. Thank you for your 
patience.


Digging into the error_log I have this:
REQUEST
form
-C  ''
cookies
__utmz  
'215042506.1349997112.16.7.utmccn=(referral)|utmcsr=backup.lrc.cornell.edu:8082|utmcct=/|utmcmd=referral'
__utmb  '88364185'
tree-s  'eJzT0MgpMOQKVneEAn2XfFt1rgIjrsSSAmMuPQB5pQeW'
verify_netid'f0ec5d8f10a3aed2e9e312df21f4555c'
__utma  '23486248.2137924914.1346079782.1352756706.1355855277.6'
BALANCEID   'balancer.cf015'
__utmc  '23486248'
cuwltgttime '1357806665'
ql_meta_types   '[]'
lazy items
SESSION >
other
TraversalRequestNameStack   []
URL 'http://server.lrc.cornell.edu/asian/courses/be/index_html'
SERVER_URL  'http://server.lrc.cornell.edu'
PUBLISHED   
ACTUAL_URL  'http://server.lrc.cornell.edu/asian/courses/be/'
URL0http://server.lrc.cornell.edu/asian/courses/be/index_html
URL1http://server.lrc.cornell.edu/asian/courses/be
URL2http://server.lrc.cornell.edu/asian/courses
URL3http://server.lrc.cornell.edu/asian
URL4http://server.lrc.cornell.edu
BASE0   http://server.lrc.cornell.edu
BASE1   http://server.lrc.cornell.edu
BASE2   http://server.lrc.cornell.edu/asian
BASE3   http://server.lrc.cornell.edu/asian/courses
BASE4   http://server.lrc.cornell.edu/asian/courses/be
BASE5   http://server.lrc.cornell.edu/asian/courses/be/index_html
environ
CONNECTION_TYPE 'keep-alive'
HTTP_USER_AGENT 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) 
AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.101 Safari/537.11'
HTTP_COOKIE 'tree-s="eJzT0MgpMOQKVneEAn2XfFt1rgIjrsSSAmMuPQB5pQeW"; 
verify_netid=f0ec5d8f10a3aed2e9e312df21f4555c; 
__utmz=215042506.1349997112.16.7.utmccn=(referral)|utmcsr=backup.lrc.cornell.edu:8082|utmcct=/|utmcmd=referral;
 BALANCEID=balancer.cf015; 
__utma=23486248.2137924914.1346079782.1352756706.1355855277.6; __utmc=23486248; 
__utmz=23486248.1346079782.1.1.utmcsr=lrc.cornell.edu|utmccn=(referral)|utmcmd=referral|utmcct=/asian/courses/vi/viet301/;
 cuwltgttime="1357806665"; 
__utma=215042506.2123988513.1344957398.1356475993.1357831430.39; 
__utmc=215042506; 
__utma=88364185.1508772392.1357836182.1357836182.1357836182.1; __utmb=88364185; 
__utmc=88364185; 
__utmz=88364185.1357836182.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none); 
ql_meta_types="[]"'
SERVER_NAME '0.0.0.0'
GATEWAY_INTERFACE   'CGI/1.1'
HTTP_ACCEPT 
'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
SERVER_SOFTWARE 'Zope/(Zope 2.8.6-final, python 2.4.6, darwin) ZServer/1.1'
REMOTE_ADDR '10.32.74.32'
HTTP_ACCEPT_LANGUAGE'en-US,en;q=0.8'
SCRIPT_NAME ''
REQUEST_METHOD  'GET'
HTTP_HOST   'server.lrc.cornell.edu'
PATH_INFO   '/asian/courses/be/'
SERVER_PORT '80'
SERVER_PROTOCOL 'HTTP/1.1'
HTTP_ACCEPT_CHARSET 'ISO-8859-1,utf-8;q=0.7,*;q=0.3'
channel.creation_time   1357837924
HTTP_ACCEPT_ENCODING'gzip,deflate,sdch'
PATH_TRANSLATED '/asian/courses/be'




Finally, event.log shows this:

013-01-10T12:28:34 ERROR Zope.SiteErrorLog 
http://server.lrc.cornell.edu/asian/courses/be/index_html
Traceback (most recent call last):
  File "/home/zope/envLRC/Zope2.8.6/lib/python/ZPublisher/Publish.py", line 
105, in publi