def attach_table(self, klass):
assert issubclass(klass, _pmap.PersistentMap)<EOL>name = qual(klass)<EOL>if not hasattr(klass, '<STR_LIT>') or not klass._zlmdb_oid:<EOL><INDENT>raise TypeError('<STR_LIT>'.format(klass))<EOL><DEDENT>description = klass.__doc__.strip() if klass.__doc__ else None<EOL>if self._slots is None:<EOL><INDENT>self._cache_slots()<EOL><DEDENT>pmap = self._attach_slot(klass._zlmdb_oid,<EOL>klass,<EOL>marshal=klass._zlmdb_marshal,<EOL>parse=klass._zlmdb_parse,<EOL>build=klass._zlmdb_build,<EOL>cast=klass._zlmdb_cast,<EOL>compress=klass._zlmdb_compress,<EOL>create=True,<EOL>name=name,<EOL>description=description)<EOL>return pmap<EOL>
:param klass:
:return: