def serialize(self, *args, **kwargs): kwargs = SardanaClass.serialize(self, *args, **kwargs) kwargs['id'] = InvalidId kwargs['pool'] = self.get_manager().name kwargs['gender'] = self.gender kwargs['model'] = self.model kwargs['organization'] = self.organization kwargs['types'] = self.type_names if len(self.type_names): kwargs['main_type'] = self.type_names[0] else: kwargs['main_type'] = None kwargs['api_version'] = self.api_version kwargs.update(self.dict_extra) return kwargs
def serialize(self, *args, **kwargs): kwargs = SardanaClass.serialize(self, *args, **kwargs) kwargs['id'] = InvalidId kwargs['pool'] = self.get_manager().name kwargs['gender'] = self.gender kwargs['model'] = self.model kwargs['organization'] = self.organization kwargs['types'] = self.type_names if len(self.type_names): kwargs['main_type'] = self.type_names[0] else: kwargs['main_type'] = None kwargs['api_version'] = self.api_version kwargs.update(self.dict_extra) return kwargs
def serialize(self, *args, **kwargs): kwargs = SardanaClass.serialize(self, *args, **kwargs) kwargs = Parameterizable.serialize(self, *args, **kwargs) return kwargs
def serialize(self, *args, **kwargs): kwargs = SardanaClass.serialize(self, *args, **kwargs) kwargs['id'] = InvalidId kwargs['hints'] = self.code_object.hints kwargs['macro_server'] = self.get_manager().name return kwargs
def serialize(self, *args, **kwargs): kwargs = SardanaClass.serialize(self, *args, **kwargs) kwargs = Parameterizable.serialize(self, *args, **kwargs) return kwargs
def serialize(self, *args, **kwargs): kwargs = SardanaClass.serialize(self, *args, **kwargs) kwargs['id'] = InvalidId kwargs['hints'] = self.code_object.hints kwargs['macro_server'] = self.get_manager().name return kwargs