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

All Samples(7)  |  Call(2)  |  Derive(2)  |  Import(3)

src/e/r/erp5-HEAD/product/ERP5Type/CodingStyle.py   erp5(Download)
##############################################################################
 
from Products.ERP5Type.ObjectMessage import ObjectMessage
from Products.ERP5Type import Permissions
 
    if prefix not in getSkinPrefixList(self):
      message_list.append(
        ObjectMessage(object_relative_url='/'.join(self.getPhysicalPath())[portal_path_len:],
                      message='Wrong prefix %s for python script %s' % (prefix, document_id)))
 
      if source_code.find(legacy_string) >= 0:
        message_list.append(
          ObjectMessage(object_relative_url='/'.join(self.getPhysicalPath())[portal_path_len:],
                        message='Source code of %s contains legacy call to %s' % (document_id, legacy_string)))
 

src/e/r/erp5-HEAD/product/ERP5Type/DivergenceMessage.py   erp5(Download)
 
from Products.PythonScripts.Utility import allow_class
from Products.ERP5Type.ObjectMessage import ObjectMessage
from zLOG import LOG, PROBLEM, INFO
from Products.ERP5Type import interfaces
 
class DivergenceMessage(ObjectMessage):

src/e/r/erp5-HEAD/product/ERP5Type/ConsistencyMessage.py   erp5(Download)
 
from Products.PythonScripts.Utility import allow_class
from Products.ERP5Type.ObjectMessage import ObjectMessage
from Products.ERP5Type import interfaces
 
class ConsistencyMessage(ObjectMessage):