Revision dc88754b snf-pithos-backend/pithos/backends/lib/sqlalchemy/xfeatures.py

b/snf-pithos-backend/pithos/backends/lib/sqlalchemy/xfeatures.py
104 104
            return row[0]
105 105
        return None
106 106

  
107
    def xfeature_get_bulk(self, paths):
108
        """Return features for paths."""
109
        s = select([self.xfeatures.c.feature_id, self.xfeatures.c.path])
110
        s = s.where(self.xfeatures.c.path.in_(paths))
111
        s = s.order_by(self.xfeatures.c.path)
112
        r = self.conn.execute(s)
113
        row = r.fetchall()
114
        r.close()
115
        if row:
116
            return row
117
        return None
118

  
107 119
    def xfeature_create(self, path):
108 120
        """Create and return a feature for path.
109 121
           If the path has a feature, return it.

Also available in: Unified diff