[Zope-CMF] Re: CMF Portal_Type Bug
Florent Guillaume
fg@nuxeo.com
04 Jul 2002 12:26:29 +0200
Yes, this bug has been known for a long time.
I hope I'll be able to fix it very soon.
Florent
On Tue, 2002-07-02 at 19:44, Yusei Tahara wrote:
> Hello.I'm Yusei. Japanese zope developer.
>
> tonight, I found a portal_type bug,so I email you.
>
> I'm sorry to my very bad English.
>
>
> Situation is ...
>
> I set a japanese word title 'Bunsho' to 'Document' type,
> then I selected 'Bunsho'(this is Document's title)
> in Allowed content types of 'Folder'type.
>
> next, I go to CMF screen,then in Mystuff I click 'Bunsho' and click Add.
>
> but, I can't make 'Bunsho'.
> error message is 'Disallowed suboject type: Document'
>
>
>
> invokeFactory method checks getId() value.
> but in allowed_content_types is title.
>
> ------------------------------------------------------
> TypeTool.py line 124
>
> def Type(self):
> """
> Return the "human readable" type name (note that it
> may not map exactly to the 'meta_type', e.g., for
> l10n/i18n or where a single content class is being
> used twice, under different names.
> """
> if self.title:
> return self.title #<-------I set title 'Bunsho',so not return getId
> else:
> return self.getId()
>
> ------------------------------------------------------
>
> I think this is a bug.
>
> Thank you!
>
> --
> Yusei Tahara "So it goes"
> pchi@din.or.jp
>
>
--
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87 http://nuxeo.com mailto:fg@nuxeo.com