Package platecom :: Package langview :: Module utils
[hide private]
[frames] | no frames]

Source Code for Module icsemantic.langfallback.utils

 1  # -*- coding: UTF-8 -*- 
 2  ################################################################################ 
 3  # 
 4  # Copyright (c) 2008, Juan Pablo Giménez <jpg@rcom.com.ar>, and 
 5  #                              the respective authors. All rights reserved. 
 6  # 
 7  # Redistribution and use in source and binary forms, with or without 
 8  # modification, are permitted provided that the following conditions are met: 
 9  # 
10  # * Redistributions of source code must retain the above copyright notice, this 
11  #   list of conditions and the following disclaimer. 
12  # * Redistributions in binary form must reproduce the above copyright notice, 
13  #   this list of conditions and the following disclaimer in the documentation 
14  #   and/or other materials provided with the distribution. 
15  # * Neither the name of the author nor the names of its contributors may be used 
16  #   to endorse or promote products derived from this software without specific 
17  #   prior written permission. 
18  # 
19  # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED 
20  # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
21  # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS 
22  # FOR A PARTICULAR PURPOSE. 
23  # 
24  ################################################################################ 
25  import sys 
26  from types import FunctionType as function 
27   
28  from Products.Archetypes.utils import capitalize 
29  from Products.ATContentTypes.interfaces import IATContentType 
30  from Products.CMFCore.utils import getToolByName 
31