[Zope-CMF] Product, view's Tab and SkinnedFolder

Pascal Samuzeau samuzeau@oreka.com
Tue, 15 Jul 2003 13:41:18 +0100


Hi,                                                                  =20
                                                                     =20
For a reason I don't understand, I'm not able to have the right URL  =20
under the Tab's view that I've declared on my                        =20
factory_type_information.                                            =20
                                                                     =20
I have nothing, I mean the view link is the link's container, nothing=20
more.                                                                =20
                                                                     =20
Is there any way to do with the SkinnedFolder wher my product Prod is=20
belong to?                                                           =20
                                                                     =20
*********************************************************************=20
                                                                     =20
Here is my Factory Type Information:                                 =20
------------------------------------                                 =20
                                                                     =20
factory_type_information =3D ( { 'id'             : 'Prod'             =20
                             , 'title'         : 'Prod'              =20
                             , 'meta_type'      : 'Prod'             =20
                             , 'description'    : """ """            =20
                             , 'icon'           : 'icon.gif'         =20
                             , 'product'        : 'CMFProd'          =20
                             , 'factory'        : 'manage_addProd'   =20
                             , 'filter_content_types' : 1            =20
                             , 'allowed_content_types' : ('SProd', ) =20
                             , 'immediate_view' : 'Prod_edit_form'   =20
                             , 'actions'        :                    =20
                                ( { 'id'            : 'view'         =20
                                  , 'name'          : 'View'         =20
                                  , 'action'        : ''             =20
                                  , 'permissions'   : (View,)        =20
                                  , 'category'      : 'folder'       =20
                                  }                                  =20
                                , { 'id'            : 'edit'         =20
                                  , 'name'          : 'Edit'         =20
                                  , 'action'        : 'Prod_edit_form'
                                  , 'permissions'   :                =20
(ManageProperties,)                                                  =20
                                  , 'category'      : 'object'       =20
                                  }                                  =20
                                , { 'id'            : 'metadata'     =20
                                  , 'name'          : 'Metadonn=E9es'  =20
                                  , 'action'        :                =20
'metadata_edit_form'                                                 =20
                                  , 'permissions'   :                =20
(ModifyPortalContent, )                                              =20
                                  , 'category'      : 'object'       =20
                                  }                                  =20
                                , { 'id'            : 'localroles'   =20
                                  , 'name'          : 'Local Roles'  =20
                                  , 'action'        :                =20
'folder_localrole_form'                                              =20
                                  , 'permissions'   :                =20
(ManageProperties,)                                                  =20
                                  , 'category'      : 'folder'       =20
                                  }                                  =20
                                , { 'id'            : 'prod_message' =20
                                  , 'name'          : 'Prod_Message' =20
                                  , 'action'        : 'Prod_Message' =20
                                  , 'permissions'   :                =20
(AddPortalContent, )                                                 =20
                                  , 'category'      : 'folder'       =20
                                  }                                  =20
                                )                                    =20
                             },                                      =20
                           )                                         =20
                                                                     =20
                                                                     =20
Here is my code:                                                     =20
---------------                                                      =20
                                                                     =20
class Prod(SkinnedFolder, DefaultDublinCoreImpl):                    =20
                                                                     =20
def __init__(	self,                                                  =20
.........                                                            =20
                                                                     =20
*********************************************************************=20
                                                                     =20
                                                                     =20
Cheers                                                               =20
PS                                                                   =20
--------------------------------------------------                   =20
Oreka ! Nous sommes l'internet moins cher !                          =20
Surfez 25% moins cher avec http://www.oreka.com                      =20