hidden description in event object

1 message Options
Embed this post
Permalink
deesto () hidden description in event object
Reply Threaded More More options
Print post
Permalink
I have a custom object type, based on ATEvent, which includes a  
'Description' field:
copied_fields['description'] = ATEvent.schema['description'].copy()
copied_fields['description'].widget.description = "A brief  
description  ... "
copied_fields['description'].widget.description_msgid =  
"description_announcement_description"
copied_fields['description'].widget.rows = 2
copied_fields['description'].required = 1
copied_fields['description'].searchable = 1

This Description shows up in the creation form, in the email version  
of the object, and even gets displayed on-hover on events in the  
calendar, but it is not displayed in the object itself after creation  
(which also means it can't be edited).  Trying to "un-hide" it in the  
schema doesn't seem to help:
copied_fields['description'].visible = {'view': 'visible', 'edit':  
'visible'},

In the subscriber, I had to convert the Description to UTF-8 in order  
to keep it from displaying garbage characters in the email version:
    rawDescription = obj.Description().encode('utf-8')
...
    msg += "Description: " + "\n" + rawDescription + "\n\n"

How can I get the Description to be visible in the actual object?

Additional code, if needed:
http://deesto.pastebin.com/f166dd6d6
http://deesto.pastebin.com/f1e48b52c

Thanks,
~John

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Archetypes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/archetypes-users