(cls, filesystem_property_dict)
return zodb_property_dict
Convert a property dict coming from a Property Sheet on the
    filesystem to a ZODB property dict.

    This method is just kept for backward-compatibility with
    filesystem Property Sheets used before ZODB Property Sheets.

    @param filesystem_property_dict: Filesystem property definition
    @type filesystem_property_dict: dict
    @return: ZODB property definition
    @rtype: dict
Convert a property dict coming from a Property Sheet on the
    filesystem to a ZODB property dict.
Convert a property dict coming from a Property Sheet on the filesystem to a ZODB property dict .
def _convertFromFilesystemPropertyDict(cls, filesystem_property_dict):
    """
    Convert a property dict coming from a Property Sheet on the
    filesystem to a ZODB property dict.

    This method is just kept for backward-compatibility with
    filesystem Property Sheets used before ZODB Property Sheets.

    @param filesystem_property_dict: Filesystem property definition
    @type filesystem_property_dict: dict
    @return: ZODB property definition
    @rtype: dict
    """
    # Prepare a dictionnary of the ZODB property
    zodb_property_dict = {}

    for fs_property_name, value in filesystem_property_dict.iteritems():
      # Convert filesystem property name to ZODB if necessary
      zodb_property_name = \
          fs_property_name in cls._name_mapping_filesystem_to_zodb_dict and \
          cls._name_mapping_filesystem_to_zodb_dict[fs_property_name] or \
          fs_property_name

      # Convert existing TALES expression class or primitive type to a
      # TALES expression string
      if zodb_property_name in cls._expression_attribute_tuple:
        value = isinstance(value, Expression) and \
            value.text or 'python: ' + repr(value)

      # set correctly the id by following naming conventions
      if zodb_property_name == 'id':
        value += cls.getIdAsReferenceAffix()

      zodb_property_dict[zodb_property_name] = value

    return zodb_property_dict
def _convertFromFilesystemPropertyDict ( cls , filesystem_property_dict ) : # Prepare a dictionnary of the ZODB property zodb_property_dict = { } for fs_property_name , value in filesystem_property_dict . iteritems ( ) : # Convert filesystem property name to ZODB if necessary zodb_property_name = fs_property_name in cls . _name_mapping_filesystem_to_zodb_dict and cls . _name_mapping_filesystem_to_zodb_dict [ fs_property_name ] or fs_property_name # Convert existing TALES expression class or primitive type to a # TALES expression string if zodb_property_name in cls . _expression_attribute_tuple : value = isinstance ( value , Expression ) and value . text or 'python: ' + repr ( value ) # set correctly the id by following naming conventions if zodb_property_name == 'id' : value += cls . getIdAsReferenceAffix ( ) zodb_property_dict [ zodb_property_name ] = value return zodb_property_dict