Mike Bayer avatar Mike Bayer committed 77de22e

added __getattr__() proxy to TypeDecorator

Comments (0)

Files changed (2)


             tt.impl = typedesc
             self.impl_dict[dialect] = tt
             return tt
+    def __getattr__(self, key):
+        """proxy all other undefined accessors to the underlying implementation."""
+        return getattr(self.impl, key)
     def get_col_spec(self):
         return self.impl.get_col_spec()
     def convert_bind_param(self, value, dialect):


     def tearDownAll(self):
     def testbasic(self):
+        assert unicode_table.c.unicode_data.type.length == 250
         rawdata = 'Alors vous imaginez ma surprise, au lever du jour, quand une dr\xc3\xb4le de petit voix m\xe2\x80\x99a r\xc3\xa9veill\xc3\xa9. Elle disait: \xc2\xab S\xe2\x80\x99il vous pla\xc3\xaet\xe2\x80\xa6 dessine-moi un mouton! \xc2\xbb\n'
         unicodedata = rawdata.decode('utf-8')
         unicode_table.insert().execute(unicode_data=unicodedata, plain_data=rawdata)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.