~nataliabidart/ubuntuone-client/split-oauth

« back to all changes in this revision

Viewing changes to tests/syncdaemon/test_localrescan.py

  • Committer: Tarmac
  • Author(s): guillermo.gonzalez at canonical
  • Date: 2010-05-19 19:57:54 UTC
  • mfrom: (516.2.3 fix-557160)
  • Revision ID: dobey@wayofthemonkey.com-20100519195754-cy00t6dor3f10szj
Fix Bug #557160 so UDFs with non-ASCII names (valid UTF-8) can be created using the DBus Interface.

Show diffs side-by-side

added added

removed removed

Lines of Context:
103
103
 
104
104
    def create_udf(self, udf_id, node_id, suggested_path, path, subscribed):
105
105
        """Create an UDF and add it to the volume manager."""
106
 
        volume = volumes.UDFVolume(udf_id, node_id, suggested_path)
 
106
        volume = volumes.UDFVolume(udf_id, node_id, suggested_path.decode('utf-8'))
107
107
        udf = volume_manager.UDF.from_udf_volume(volume, path)
108
108
        udf.subscribed = subscribed
109
109
        self.fsm.vm.add_udf(udf)