Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UNHANDLED EXCEPTION
- (2014-03-03 09:29:24.036001)
- Working directory: /opt/noc ValidationError
- (Could not convert to UUID: badly formed hexadecimal UUID string: ['uuid'])
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File:
- /opt/noc/lib/python2.7/site-packages/mongoengine/base.py
- (Line: 907) Function: validate 900 errors[field.name] = error.errors or error
- 901 except (ValueError, AttributeError, AssertionError), error:
- 902 errors[field.name] = error 903 elif field.required:
- 904 errors[field.name] = ValidationError('Field is required',
- 905 field_name=field.name)
- 906 if errors:
- 907 ==> raise ValidationError('ValidationError', errors=errors)
- 908
- 909 def to_mongo(self):
- 910 """Return data dictionary ready for use with MongoDB.
- 911 """
- 912 data = {}
- 913 for field_name, field in self._fields.items():
- Variables: errors = {'uuid': ValidationError(Could not convert to UUID: badly formed hexadecimal UUID string,)}
- name = 'description'
- fields = [(, ObjectId('53141334f3b682ba53f04893')), (, []), (, []), (, ''), (, 'test'), (, []), (, 1000), (, None), (, '5221b80ff3b68240ed17bb70'), (, '')]
- self = value = ''
- field = error = ValidationError(Could not convert to UUID: badly formed hexadecimal UUID string,)
- ------------------------------------------------------------------------
- File: /opt/noc/lib/python2.7/site-packages/mongoengine/document.py (Line: 184)
- Function: save
- 177 Also you can pass different kwargs to the cascade save using cascade_kwargs
- 178 which overwrites the existing kwargs with custom values
- 179
- 180 """
- 181 signals.pre_save.send(self.__class__, document=self)
- 182
- 183 if validate:
- 184 ==> self.validate()
- 185
- 186 if not write_options:
- 187 write_options = {}
- 188
- 189 doc = self.to_mongo()
- 190 Variables:
- force_insert = False
- self = safe = True _refs = None cascade = None cascade_kwargs = None write_options = None validate = True
- ------------------------------------------------------------------------
- File: /opt/noc/fm/models/eventclassificationrule.py (Line: 105)
- Function: save
- 98 def save(self, *args, **kwargs):
- 99 c_name = " | ".join(self.name.split(" | ")[:-1])
- 100 c = EventClassificationRuleCategory.objects.filter(name=c_name).first()
- 101 if not c:
- 102 c = EventClassificationRuleCategory(name=c_name)
- 103 c.save()
- 104 self.category = c.id
- 105 ==> super(EventClassificationRule, self).save(*args, **kwargs)
- 106
- 107 @property
- 108 def short_name(self):
- 109 return self.name.split(" | ")[-1]
- 110
- 111 def to_json(self):
- Variables:
- self = c = args = ()
- c_name = '' kwargs = {}
- ------------------------------------------------------------------------
- File: /opt/noc/lib/app/extdocapplication.py (Line: 229) Function: api_create 222 if q: 223 if
Advertisement
Add Comment
Please, Sign In to add comment