Re: Attribut-Error bei Änderung von ATCTFolder a uf ATCTOrderedFolder

Raphael Ritz <[email protected]>
Newsgroups gmane.comp.web.zope.german
Message-ID <[email protected]>
Nico Grubert wrote:
> Hallo zusammen

Hallo Nico,

> 
> Ich habe einen Content Typen für Plone, dessen ursprüngliche Klasse so 
> definiert war:
> 
>   class MyContentType(base.ATCTFolder):
> 
> Wenn ich nun von ATCTOrderedFolder erben möchte, definiere ich ihn so.
> 
>  class MyContentType(base.ATCTOrderedFolder ):
> 
> Rufe ich danach die View eines der Content-Objekte auf, erhalte ich 
> folgenden Fehler:
> 
> *AttributeError*

Bist Du Dir sicher, dass es nicht genau andersherum ist?

Anyway, schau Dir mal 'base.py' in

   Products.ATContentTypes.content

genauer an, das sollte eigentlich selbsterklärend sein.

Ausserdem solltest Du ueberpruefen, ob Du auch das richtige
Schema als Ausgangspunkt verwendest. Du brauchst auf alle
Fälle eines, das das 'locallyAllowedTypes' Feld beinhaltet,
also das 'ConstrainTypesMixinSchema' einschliesst (oder Du
fuegst es selbst hinzu).

Raphael


> 
> Sorry, a site error occurred.
> 
> Traceback (innermost last):
> 
>     * Module ZPublisher.Publish, line 202, in publish_module_standard
>     * Module ZPublisher.Publish, line 150, in publish
>     * Module plone.app.linkintegrity.monkey, line 21, in
>       zpublisher_exception_hook_wrapper
>     * Module Zope2.App.startup, line 221, in zpublisher_exception_hook
>     * Module ZPublisher.Publish, line 119, in publish
>     * Module ZPublisher.mapply, line 88, in mapply
>     * Module ZPublisher.Publish, line 42, in call_object
>     * Module Products.ATContentTypes.lib.constraintypes, line 200, in
>       getLocallyAllowedTypes
> 
> AttributeError: 'NoneType' object has no attribute 'get' (Also, the 
> following error occurred while attempting to render the standard error 
> message, please see the event log for full details: 'NoneType' object 
> has no attribute 'get')
> 
> Hat jemand eine Idee, wo der Fehler liegen könnte? Habe ich noch etwas 
> vergessen oder übersehen?
> 
> Gruss
> Nico
> 
> 
> ------------------------------------------------------------------------
> 
> 
> 
> _______________________________________________
> zope mailing list
> [email protected]
> https://mail.dzug.org/mailman/listinfo/zope



_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.