(self)
Make a string to be stored in db.
Make a string to be stored in db.
Make a string to be stored in db .
def render_state(self):
        """Make a string to be stored in db."""

        if self.state == TABLE_MISSING:
            return None
        elif self.state == TABLE_IN_COPY:
            return 'in-copy'
        elif self.state == TABLE_CATCHING_UP:
            return 'catching-up'
        elif self.state == TABLE_WANNA_SYNC:
            return 'wanna-sync:%d' % self.sync_tick_id
        elif self.state == TABLE_DO_SYNC:
            return 'do-sync:%d' % self.sync_tick_id
        elif self.state == TABLE_OK:
            return 'ok'
def render_state ( self ) : if self . state == TABLE_MISSING : return None elif self . state == TABLE_IN_COPY : return 'in-copy' elif self . state == TABLE_CATCHING_UP : return 'catching-up' elif self . state == TABLE_WANNA_SYNC : return 'wanna-sync:%d' % self . sync_tick_id elif self . state == TABLE_DO_SYNC : return 'do-sync:%d' % self . sync_tick_id elif self . state == TABLE_OK : return 'ok'