[Zope-CMF] Default Member index_html problem
Tres Seaver
tseaver@palladion.com
Sun, 19 Aug 2001 21:37:20 -0400
Norbert Marrale wrote:
> The member document created at registration is generated with the
> following erroneous text in the body of the document, displaying:
>
> "Default page for <built-in function id> "
>
> instead of the member's handle.
>
> This is a stock CMF site with no custom sourcecode... I looked at
> MembershipTool.py and Document.py thinking this is where the
> member id value is munged, couldn't find anything wrong.
>
> Help?
This is a bug in CMFDefault.MembershipTool. Here is a patch, which
I am about to check in:
Index: CMFDefault/MembershipTool.py
===================================================================
RCS file: /cvs-repository/Products/CMFDefault/MembershipTool.py,v
retrieving revision 1.12
diff -u -r1.12 MembershipTool.py
--- CMFDefault/MembershipTool.py 3 Aug 2001 13:19:10 -0000 1.12
+++ CMFDefault/MembershipTool.py 20 Aug 2001 02:05:03 -0000
@@ -187,7 +187,7 @@
, member_id+"'s Home"
, member_id+"'s front page"
, "structured-text"
- , (default_member_content % id)
+ , (default_member_content % member_id)
)
f.index_html._setPortalTypeName( 'Document' )
Tres.
--
===============================================================
Tres Seaver tseaver@zope.com
Zope Corporation "Zope Dealers" http://www.zope.com