Greetings.
I'm trying to create a new portal type (Seminar) based on
ATEvent.
If I create it by using "Scriptable Type
Information" , and have
the supporting Python Script:
product = container.manage_addProduct[ 'ATContentTypes' ]
product.addATEvent( id )
item = getattr( container, id )
item.manage_addProperty('speaker','','string')
to create the item, I can't get dynamic views to work.
The error
log shows:
Time 2006/03/31 15:22:12.224 US/Eastern
User Name (User Id) Anonymous User (None)
Request URL http://cim3.cs.mcgill.ca/xsdfsadf/%28dynamic%20view%29
Exception Type NotFound
Exception Value http://cim3.cs.mcgill.ca/xsdfsadf/%28dynamic%20view%29
Traceback (innermost last):
* Module ZPublisher.Publish, line 92, in publish
* Module ZPublisher.BaseRequest, line 314, in traverse
* Module ZPublisher.HTTPResponse, line 642, in
debugError
In addition, the new property I add (speaker) does not show
up in
the edit form . It is added to the list of indexes
(indices?) in the
portal catalogue, and I can access
it from my own form.
On the other hand, if I create the new type with
"Factory Type
Information with Dynamic Views", the views work
perfectly but
replacing the addATEvent script with my addSeminar script
makes the
type disappear from the Add Item list.
It should be noted that getting access to the server is
questionable
so I'm not considering the server-side solutions at this
time.
Of course, I guess I can settle for a type created with
"Scriptable
Type Information" based on "CMF Event"
(this works) ....
A related question: Is there any way of re-labelling
existing fields
-- ie. changing "Contact Name" to
"Speaker" (don't care if the
actual variable names change).
Thanks in advance.
Krys
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking
scripting language
that extends applications into web and mobile media. Attend
the live webcast
and join the prime developer group breaking into this new
coding territory!
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Plone-Users mailing list
Plone-Users lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plone-users
|