Back to index

plone3  3.1.7
messagefactory_.py
Go to the documentation of this file.
00001 # -*- coding: utf-8 -*-
00002 ## CMFPlacefulWorkflowM
00003 ## Copyright (C)2006 Ingeniweb
00004 
00005 ## This program is free software; you can redistribute it and/or modify
00006 ## it under the terms of the GNU General Public License as published by
00007 ## the Free Software Foundation; either version 2 of the License, or
00008 ## (at your option) any later version.
00009 
00010 ## This program is distributed in the hope that it will be useful,
00011 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 ## GNU General Public License for more details.
00014 
00015 ## You should have received a copy of the GNU General Public License
00016 ## along with this program; see the file COPYING. If not, write to the
00017 ## Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00018 """
00019 Zope 3.1-style messagefactory module for Zope <= 2.9 (Zope 3.1)
00020 
00021 BBB: Zope 2.8 / Zope X3.0
00022 """
00023 __version__ = "$Revision: 1.31 $"
00024 # $Source: /cvsroot/ingeniweb/PloneSubscription/SubscriptionTool.py,v $
00025 # $Id: SubscriptionTool.py,v 1.31 2005/10/10 20:43:57 encolpe Exp $
00026 __docformat__ = 'restructuredtext'
00027 
00028 
00029 from zope.i18nmessageid import MessageIDFactory
00030 msg_factory = MessageIDFactory('cmfplacefulworkflow')
00031 
00032 def CMFPlacefulWorkflowMessageFactory(ustr, default=None, mapping=None):
00033     message = msg_factory(ustr, default)
00034     if mapping is not None:
00035         message.mapping.update(mapping)
00036     return message