Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resurrect Identifier Types Class #1458

Merged
merged 2 commits into from
Oct 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions bika/lims/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ def initialize(context):
from controlpanel.bika_containers import Containers # noqa
from controlpanel.bika_containertypes import ContainerTypes # noqa
from controlpanel.bika_departments import Departments # noqa
from controlpanel.bika_identifiertypes import IdentifierTypes # noqa
from controlpanel.bika_instrumentlocations import InstrumentLocations # noqa
from controlpanel.bika_instruments import Instruments # noqa
from controlpanel.bika_instrumenttypes import InstrumentTypes # noqa
Expand Down
25 changes: 25 additions & 0 deletions bika/lims/controlpanel/bika_identifiertypes.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
#
# TODO: Remove in senaite.core 1.3.3
#
from bika.lims.config import PROJECTNAME
from bika.lims.interfaces import IIdentifierTypes
from plone.app.folder.folder import ATFolder
from plone.app.folder.folder import ATFolderSchema
from Products.Archetypes.public import registerType
from Products.ATContentTypes.content import schemata
from zope.interface.declarations import implements


schema = ATFolderSchema.copy()


class IdentifierTypes(ATFolder):
implements(IIdentifierTypes)
displayContentsTab = False
schema = schema


schemata.finalizeATCTSchema(schema, folderish=True, moveDiscussion=False)

registerType(IdentifierTypes, PROJECTNAME)
6 changes: 2 additions & 4 deletions bika/lims/interfaces/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,14 +321,12 @@ class IContainerTypes(Interface):


class IIdentifierTypes(Interface):
"""Marker interface for identifier types
"""TODO: Remove in senaite.core 1.3.3
"""


class IHaveIdentifiers(Interface):
"""If this interface is provided by an AT object, the object will
automatically be given an 'Identifiers' field, which will be associated
with the bika_identifiertypes in site setup.
"""TODO: Remove in senaite.core 1.3.3
"""


Expand Down