parameters: (self, fixit=0, source_code=None)
return_statement: return message_list
docstring: Make sure skin folder item has appropriate prefix
    and that its source code, if any, does not contain
    calls to legacy methods
docstring_summary: Make sure skin folder item has appropriate prefix
    and that its source code, if any, does not contain
    calls to legacy methods
docstring_tokens: Make sure skin folder item has appropriate prefix and that its source code if any does not contain calls to legacy methods
function: def checkConsistency(self, fixit=0, source_code=None):
    """
    Make sure skin folder item has appropriate prefix
    and that its source code, if any, does not contain
    calls to legacy methods
    """
    if fixit: raise NotImplementedError
    message_list = []
    portal_path = self.getPortalObject().getPath()
    portal_path_len = len(portal_path)
  
    # Make sure id is acceptable
    document_id = self.id
    if document_id != document_id.lower() and document_id not in ignored_skin_id_set:
      # Only test prefix with big caps
      prefix = document_id.split('_')[0]
      if prefix not in getSkinPrefixList(self):
        message_list.append(
          ObjectMessage(object_relative_url='/'.join(self.getPhysicalPath())[portal_path_len:],
                        message='Wrong prefix %s for %s %s' % (prefix, self.meta_type, document_id)))
  
    # Make sure source code does not contain legacy callables
    if source_code:
      for legacy_string, new_string in getLegacyCallableIdItemList(self):
        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)))
  
    return message_list
function_tokens: def checkConsistency ( self , fixit = 0 , source_code = None ) : if fixit : raise NotImplementedError message_list = [ ] portal_path = self . getPortalObject ( ) . getPath ( ) portal_path_len = len ( portal_path ) # Make sure id is acceptable document_id = self . id if document_id != document_id . lower ( ) and document_id not in ignored_skin_id_set : # Only test prefix with big caps prefix = document_id . split ( '_' ) [ 0 ] if prefix not in getSkinPrefixList ( self ) : message_list . append ( ObjectMessage ( object_relative_url = '/' . join ( self . getPhysicalPath ( ) ) [ portal_path_len : ] , message = 'Wrong prefix %s for %s %s' % ( prefix , self . meta_type , document_id ) ) ) # Make sure source code does not contain legacy callables if source_code : for legacy_string , new_string in getLegacyCallableIdItemList ( self ) : 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 ) ) ) return message_list