Ejemplo n.º 1
0
 def update_resources(self):
     jqueryui.redmond.need()
     fa_admin.need()
     needed_resource = getattr(jqgrid, 'jqgrid_i18n_%s' % get_lang(),
                               jqgrid.jqgrid_i18n_en)
     needed_resource.need()
     fa_jqgrid.need()
Ejemplo n.º 2
0
 def update_resources(self):
     jqueryui.redmond.need()
     fa_admin.need()
     needed_resource = getattr(jqgrid, 'jqgrid_i18n_%s' % get_lang(),
                               jqgrid.jqgrid_i18n_en)
     needed_resource.need()
     fa_jqgrid.need()
Ejemplo n.º 3
0
 def update_resources(self):
     """A hook to add some fanstatic resources"""
     theme = getattr(self.request, 'cookies', {}).get('_THEME_', 'smoothness')
     getattr(jqueryui, theme).need()
     fa_admin.need()
     lang = getattr(self.request, 'cookies', {}).get('_LOCALE_', 'en')
     needed_resource = getattr(jqgrid, 'jqgrid_i18n_%s' % lang,
                               jqgrid.jqgrid_i18n_en)
     needed_resource.need()
     fa_jqgrid.need()
Ejemplo n.º 4
0
 def update_resources(self):
     """A hook to add some fanstatic resources"""
     theme = getattr(self.request, 'cookies',
                     {}).get('_THEME_', 'smoothness')
     getattr(jqueryui, theme).need()
     fa_admin.need()
     lang = getattr(self.request, 'cookies', {}).get('_LOCALE_', 'en')
     needed_resource = getattr(jqgrid, 'jqgrid_i18n_%s' % lang,
                               jqgrid.jqgrid_i18n_en)
     needed_resource.need()
     fa_jqgrid.need()