Re: [Zope-CMF] Re: Installing a CMF Content Type from scratch

2007-01-10 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10 Jan 2007, at 13:59, Charlie Clark wrote: Do all content-types have to have a description? ie. is this a necessary part of the DublinCoreSpe? Dublin Core is not mandatory, but many places will expect to find at least a Description method o

Re: [Zope-CMF] Re: Installing a CMF Content Type from scratch

2007-01-10 Thread Charlie Clark
Am 10.01.2007 um 13:52 schrieb Charlie Clark: So, it is actually the Templates that are being blocked from accessing the context! Unfortunately I do not understand why this should be the case. aaagh! Simple error: the skin was not in the list of skins to be viewed. Do all content-types ha

Re: [Zope-CMF] Re: Installing a CMF Content Type from scratch

2007-01-10 Thread Charlie Clark
Am 10.01.2007 um 12:52 schrieb Charlie Clark: Okay, next problem. Getting an error trying to access the context in the edit_form.py or view.py scripts. Unauthorized: Not authorized to access binding: context Silly me! Always pays to look at the full traceback! 2007-01-10 13:49:45 ERROR ro

Re: [Zope-CMF] Re: Installing a CMF Content Type from scratch

2007-01-10 Thread Charlie Clark
Am 10.01.2007 um 12:23 schrieb Jens Vagelpohl: What is the additional step using Python code that you're referring to? Is that the setuphandlers stuff called by import_steps? Yep, exactly. Okay, next problem. Getting an error trying to access the context in the edit_form.py or view.py sc

Re: [Zope-CMF] Re: Installing a CMF Content Type from scratch

2007-01-10 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10 Jan 2007, at 11:47, Charlie Clark wrote: What is the additional step using Python code that you're referring to? Is that the setuphandlers stuff called by import_steps? Yep, exactly. jens -BEGIN PGP SIGNATURE- Version: GnuPG v1.

Re: [Zope-CMF] Re: Installing a CMF Content Type from scratch

2007-01-10 Thread Charlie Clark
Am 10.01.2007 um 08:52 schrieb Jens Vagelpohl: Yes it it. It sets up one content type (Event), adds two indices and metadata columns to the catalog and one tool to the portal. There's one additional step handled by Python code to add a policy to the metadata tool, which shows you how to de

Re: [Zope-CMF] Re: Installing a CMF Content Type from scratch

2007-01-09 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10 Jan 2007, at 01:26, Charlie Clark wrote: Am 10.01.2007 um 01:17 schrieb Jens Vagelpohl: I believe Tres is referring to is the "global_allow" property that you can find in the GenericSetup XML files for content types. To make a long stor

Re: [Zope-CMF] Re: Installing a CMF Content Type from scratch

2007-01-09 Thread Charlie Clark
Am 10.01.2007 um 01:17 schrieb Jens Vagelpohl: I believe Tres is referring to is the "global_allow" property that you can find in the GenericSetup XML files for content types. To make a long story short: Completely forget the Plone book examples and look at the GenericSetup examples as set

Re: [Zope-CMF] Re: Installing a CMF Content Type from scratch

2007-01-09 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10 Jan 2007, at 01:01, Charlie Clark wrote: You may need to check its "globally_addable" property (the type object's) and verify that the container into which you would like to add an instance does not have a type-based restriction on adding

Re: [Zope-CMF] Re: Installing a CMF Content Type from scratch

2007-01-09 Thread Charlie Clark
Am 09.01.2007 um 22:26 schrieb Tres Seaver: I think this is the bit I'm fuzzy about. Is adding the type information simply a question of adding a type in portal-types? If so I'm doing something wrong because it my type is not appearing in the pull-down list. You may need to check its "globall

Re: [Zope-CMF] Re: Installing a CMF Content Type from scratch

2007-01-09 Thread Charlie Clark
Am 08.01.2007 um 17:01 schrieb Tres Seaver: Depends. If your type has any other customizations (e.g., workflows, caching policies, metadata constraints, etc.) then you need to tweak the releavant tools, as well. It is a fairly standard document. Essentially a News Item on steroids. I wo