# -*- coding: utf-8 -*-
#
# File: Md5Article.py
#
# Copyright (c) 2008 by []
# Generator: ArchGenXML Version 1.5.2
#            http://plone.org/products/archgenxml
#
# GNU General Public License (GPL)
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301, USA.
#

__author__ = """unknown <unknown>"""
__docformat__ = 'plaintext'

from AccessControl import ClassSecurityInfo
from Products.Archetypes.atapi import *
from Products.CodesEtLois.config import *

##code-section module-header #fill in your manual code here
from Products.ATContentTypes.content.document import ATDocument, ATDocumentSchema
##/code-section module-header

schema = Schema((

    StringField(
        name='md5',
        index="FieldIndex:brains",
        widget=StringWidget(
            visible={ 'view': 'invisible', 'edit': 'invisible' },
            label='Md5',
            label_msgid='CodesEtLois_label_md5',
            i18n_domain='CodesEtLois',
        )
    ),

),
)

##code-section after-local-schema #fill in your manual code here
##/code-section after-local-schema

Md5Article_schema = ATDocumentSchema.copy() + \
    schema.copy()

##code-section after-schema #fill in your manual code here
##/code-section after-schema

class Md5Article(ATDocument):
    """
    """
    security = ClassSecurityInfo()
    __implements__ = (getattr(ATDocument,'__implements__',()),)

    # This name appears in the 'add' box
    archetype_name = 'Md5Article'

    meta_type = 'Md5Article'
    portal_type = 'Md5Article'
    allowed_content_types = []
    filter_content_types = 0
    global_allow = 1
    content_icon = 'article.png'
    immediate_view = 'base_view'
    default_view = 'md5article_view'
    suppl_views = ()
    typeDescription = "Md5Article"
    typeDescMsgId = 'description_edit_md5article'

    _at_rename_after_creation = True

    schema = Md5Article_schema

    ##code-section class-header #fill in your manual code here
    ##/code-section class-header

    # Methods


registerType(Md5Article, PROJECTNAME)
# end of class Md5Article

##code-section module-footer #fill in your manual code here
##/code-section module-footer




