'Get the _inline formstyle for the current formstyle'

def get_ui_inline_formstyle(self):

    setting = self.ui.get('formstyle', 'default')
    formstyles = self.FORMSTYLE
    if isinstance(setting, basestring):
        inline_formstyle_name = ('%s_inline' % setting)
        formstyle = formstyles.get(inline_formstyle_name)
    else:
        formstyle = None
    if (formstyle is None):
        formstyle = self._get_formstyle(setting)
    return formstyle
