finalizeATCTSchema, _at_rename_after_creation, and title
rowan <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.archetypes.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi,
A couple questions, probably pretty simple too.
I want the title of my archetype to have a different label and
description on its widget. What's the correct way of overriding this?
If I simply define a new field 'title' in my schema then instead of
having its short name changed to that, it just (presumably as some kind
of default) gets the name of the portal.
Also, I've popped finalizeATCTSchema(name_of_my_schema) in at the end
of my schema definition, but I always get this error:
------
2005-11-17T13:51:56 ERROR Zope Couldn't install ReferralRoute
Traceback (most recent call last):
File "/usr/lib/zope-2.8.0/lib/python/OFS/Application.py", line 773, in
install_product
initmethod(context)
File "/var/lib/zope/zope-whig/Products/ATReferralRoute/__init__.py",
line 12, in initialize
#
File
"/var/lib/zope/zope-whig/Products/ReferralRoute/ReferralRoute.py", line
73, in ?
finalizeATCTSchema(schema)
File
"/var/lib/zope/zope-whig/Products/ATContentTypes/content/schemata.py",
line 93, in finalizeATCTSchema
schema.moveField('relatedItems', pos='bottom')
File "/var/lib/zope/zope-whig/Products/Archetypes/Schema/__init__.py",
line 764, in moveField
raise KeyError, name
KeyError: 'relatedItems'
------
Any ideas?
Thanks,
rowan.
--
rowan <[email protected]>
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click