Use plone-users mailing list
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Krys Dudek > Sent: Thursday, March 30, 2006 12:10 PM > To: [email protected] > Subject: [Setup] I need to either add two or three string > fields to ATEventsor rename a couple of the existing ones... > > "All" I'd like to do is to rename a couple of the fields as > they appear on the event creation and event view forms (and > if I can't do that, add 2 or 3 extra string fields). Doesn't > sound like it ought to be that hard. But... > > I have been trying to do this with Scriptable Type > Information with no luck... > > # Parameters: folderish_container, id > # Bound Names: context, container, script, traverse_subpath > > # Get the FactoryDispatcher. > product = context.manage_addProduct['ATContentTypes'] > # Build the instance. > product.addATEvent( id ) > > # Fetch it, wrapped in container. > item = getattr( context, id ) > > # Return it to the type object. > return item > > The object type was created with Factory Type Information and > the product factory method set to the name of the script above. > > Right now, my new type isn't even appearing as an option in > the types to add. > > Any and all help would be most welcome. > > Krys > _______________________________________________ > Setup mailing list > [email protected] > http://lists.plone.org/mailman/listinfo/setup > _______________________________________________ Setup mailing list [email protected] http://lists.plone.org/mailman/listinfo/setup
