Re: import of zexp containing Page Template objects causes sudden zope death

Tres Seaver <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chris Withers wrote:
> Tres Seaver wrote:
>> Binary search is your friend:
>>
>> - - Is it only one of the ZPTs which cause the crash?
> 
> Dunno this yet, will try and find out...
> 
>> - - Can you trim out parts of its content and make it not crash?
> 
> Yep, if I leave the ZPTs out, it's fine ;-)

I meant "part of the offending template".

>> Also, you might try exporting to XML and looking at the XML file for
>> oddities (mojibake, etc.)
> 
> mojibake?

Google is your friend.

>> You might try to open the imported folder under 'zopectl debug' and see
>> if you can examine the contents of the ZPTs. 
> 
> Yep, that worked.
> 
>> If that works, then the
>> issue must be in how 'manage_main' is trying to render the links /
>> titles of the templates.
> 
> I can render manage_main under zopectl debug with a Test.makerequest'd 
> app and a newSecurityManager(None,app.acl_users.getUserById('chris')) :-/
> 
> Again, "wtf?!"
> 
> It's the sudden death I have issue with, not a peep of logging anywhere...

Two options there:

- - Set a breakpoint inside 'manage_main' and step into it until the
  fault.  Figuring out how to do that for a DTMLFile instance is left as
  an exercise for the reader. :)

- - Run under gdb.



Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          [email protected]
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkx37RQACgkQ+gerLs4ltQ5h+ACfS2FJdVmuMqkRGzjjR2rwPaOG
j5gAoIUPYU5vIKAskMuQspAfit4npqXR
=XetT
-----END PGP SIGNATURE-----

_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.