def serialize_support_data(request=None, force_is_admin=False):
 siteconfig = SiteConfiguration.objects.get_current()
 is_admin = (force_is_admin or ((request is not None) and request.user.is_staff))
 return base64.b64encode(u' DCTB '.join([get_install_key(), (u'%d' % is_admin), siteconfig.site.domain, _norm_siteconfig_value(siteconfig, u'site_admin_name'), _norm_siteconfig_value(siteconfig, u'site_admin_email'), get_package_version(), (u'%d' % User.objects.filter(is_active=True).count()), (u'%d' % int(time.mktime(datetime.now().timetuple()))), _norm_siteconfig_value(siteconfig, u'company'), (u'%s.%s.%s' % sys.version_info[:3])]))

def serialize_support_data ( request = None , force_is_admin = False ) : siteconfig = SiteConfiguration . objects . get_current ( ) is_admin = ( force_is_admin or ( ( request is not None ) and request . user . is_staff ) ) return base64 . b64encode ( u' DCTB ' . join ( [ get_install_key ( ) , ( u'%d' % is_admin ) , siteconfig . site . domain , _norm_siteconfig_value ( siteconfig , u'site_admin_name' ) , _norm_siteconfig_value ( siteconfig , u'site_admin_email' ) , get_package_version ( ) , ( u'%d' % User . objects . filter ( is_active = True ) . count ( ) ) , ( u'%d' % int ( time . mktime ( datetime . now ( ) . timetuple ( ) ) ) ) , _norm_siteconfig_value ( siteconfig , u'company' ) , ( u'%s.%s.%s' % sys . version_info [ : 3 ] ) ] ) )
serialize support data into a base64-encoded string .