Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(23)  |  Call(11)  |  Derive(0)  |  Import(12)

src/e/r/erp5-HEAD/product/ERP5Form/ListBox.py   erp5(Download)
from Products.CMFCore.utils import getToolByName
from Products.ZSQLCatalog.zsqlbrain import ZSQLBrain
from Products.ERP5Type.Message import Message
 
from Acquisition import aq_base, aq_self, aq_inner
              error_mapping = getattr(error_dict[key], 'error_mapping', None)
              if error_mapping is not None:
                error_text = u'%s' % Message(domain=ui_domain,
                                             message=error_text,
                                             mapping=error_mapping)
              else:
                error_text = u'%s' % Message(domain=ui_domain,

src/e/r/erp5-HEAD/product/ERP5Type/ObjectMessage.py   erp5(Download)
  def getTranslatedMessage(self):
    """
    Return the message translated
    """
    from Products.ERP5Type.Message import Message
    return Message(domain='erp5_ui', message=self.message, 

src/e/r/erp5-HEAD/product/ERP5/mixin/periodicity.py   erp5(Download)
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions
from Products.ERP5Type.Message import Message
 
class PeriodicityMixin:
  def getWeekDayItemList(self):
    """
    returns something like [('Sunday', 'Sunday'), ('Monday', 'Monday'),...]
    """
    return [(Message(domain='erp5_ui', message=x), x) \
    """
    # DateTime._months return '' as first item
    return [(Message(domain='erp5_ui', message=DateTime._months[i]), i) \
            for i in range(1, len(DateTime._months))]
 

src/e/r/erp5-HEAD/bt5/erp5_banking_check/ExtensionTemplateItem/portal_components/extension.erp5.CheckbookReceptionImport.py   erp5(Download)
from zLOG import LOG
from Products.ERP5Type.Message import Message
from Ft.Xml import Parse
 
def CheckbookReception_importItemFile(self, import_file=None, REQUEST=None, **kw):
                                         REQUEST=REQUEST)
 
    message = Message(domain='ui', message='File Imported successfully')
    self.setImported(1)
  return message

src/e/r/erp5-HEAD/product/ERP5Type/Core/ContentExistenceConstraint.py   erp5(Download)
      message_id = 'message_no_subobject_portal_type'
 
      from Products.ERP5Type.Message import Message
      mapping['portal_type'] = str(Message('erp5_ui', ' or ')).join(
          [str(Message('erp5_ui', pt)) for pt in portal_type])

src/e/r/erp5-HEAD/product/ERP5Type/Constraint/ContentExistence.py   erp5(Download)
  def _checkConsistency(self, obj, fixit=0):
    """Checks that object contains a subobject.
    """
    from Products.ERP5Type.Message import Message
    error_list = []
          portal_type = (portal_type, )
        mapping['portal_type'] = str(Message('erp5_ui', ' or ')).join(
            [str(Message('erp5_ui', pt)) for pt in portal_type])
      # Add error
      error_list.append(self._generateError(obj,

src/e/r/erp5-HEAD/product/ERP5Type/Base.py   erp5(Download)
from Products.ERP5Type.Accessor.Accessor import Accessor as Method
from Products.ERP5Type.Accessor.TypeDefinition import asDate
from Products.ERP5Type.Message import Message
from Products.ERP5Type.ConsistencyMessage import ConsistencyMessage
from Products.ERP5Type.UnrestrictedMethod import UnrestrictedMethod
      id_ = self.getId()
      if id_ in ptype_translation_dict:
        return str(Message('erp5_ui', ptype_translation_dict[id_]))
 
  security.declareProtected(Permissions.AccessContentsInformation,

src/e/r/erp5-HEAD/product/ERP5/mixin/equivalence_tester.py   erp5(Download)
from Products.ERP5Type import Permissions, interfaces
from Products.ERP5Type.DivergenceMessage import DivergenceMessage
from Products.ERP5Type.Message import Message
from Products.PythonScripts.standard import html_quote as h
 
      'prevision_value':h(divergence_message.getProperty('prevision_value')),
      }
    return str(Message(domain='erp5_ui', message=message, mapping=mapping))
 
  # Placeholder for methods to override

src/e/r/erp5-HEAD/product/ERP5/Document/AccountTypeConstraint.py   erp5(Download)
from Products.ERP5Type.mixin.constraint import ConstraintMixin
from Products.ERP5Type import Permissions, PropertySheet
from Products.ERP5Type.Message import Message
translateString = lambda msg: msg  # just to extract messages
_MARKER = []

src/e/r/erp5-HEAD/product/ERP5/Constraint/AccountTypeConstraint.py   erp5(Download)
 
from Products.ERP5Type.Constraint import Constraint
from Products.ERP5Type.Message import Message
translateString = lambda msg: msg  # just to extract messages
_MARKER = []

  1 | 2  Next