Guest User

Untitled

a guest
Mar 2nd, 2014
75
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. UNHANDLED EXCEPTION
  2. (2014-03-03 09:29:24.036001)
  3. Working directory: /opt/noc ValidationError
  4. (Could not convert to UUID: badly formed hexadecimal UUID string: ['uuid'])
  5. START OF TRACEBACK
  6. ------------------------------------------------------------------------
  7. File:
  8. /opt/noc/lib/python2.7/site-packages/mongoengine/base.py
  9. (Line: 907) Function: validate 900 errors[field.name] = error.errors or error
  10. 901 except (ValueError, AttributeError, AssertionError), error:
  11. 902 errors[field.name] = error 903 elif field.required:
  12. 904 errors[field.name] = ValidationError('Field is required',
  13. 905 field_name=field.name)
  14. 906 if errors:
  15. 907 ==> raise ValidationError('ValidationError', errors=errors)
  16. 908
  17. 909 def to_mongo(self):
  18. 910 """Return data dictionary ready for use with MongoDB.
  19. 911 """
  20. 912 data = {}
  21. 913 for field_name, field in self._fields.items():
  22. Variables: errors = {'uuid': ValidationError(Could not convert to UUID: badly formed hexadecimal UUID string,)}
  23. name = 'description'
  24. fields = [(, ObjectId('53141334f3b682ba53f04893')), (, []), (, []), (, ''), (, 'test'), (, []), (, 1000), (, None), (, '5221b80ff3b68240ed17bb70'), (, '')]
  25. self = value = ''
  26. field = error = ValidationError(Could not convert to UUID: badly formed hexadecimal UUID string,)
  27. ------------------------------------------------------------------------
  28. File: /opt/noc/lib/python2.7/site-packages/mongoengine/document.py (Line: 184)
  29. Function: save
  30. 177 Also you can pass different kwargs to the cascade save using cascade_kwargs
  31. 178 which overwrites the existing kwargs with custom values
  32. 179
  33. 180 """
  34. 181 signals.pre_save.send(self.__class__, document=self)
  35. 182
  36. 183 if validate:
  37. 184 ==> self.validate()
  38. 185
  39. 186 if not write_options:
  40. 187 write_options = {}
  41. 188
  42. 189 doc = self.to_mongo()
  43. 190 Variables:
  44. force_insert = False
  45. self = safe = True _refs = None cascade = None cascade_kwargs = None write_options = None validate = True
  46. ------------------------------------------------------------------------
  47. File: /opt/noc/fm/models/eventclassificationrule.py (Line: 105)
  48. Function: save
  49. 98 def save(self, *args, **kwargs):
  50. 99 c_name = " | ".join(self.name.split(" | ")[:-1])
  51. 100 c = EventClassificationRuleCategory.objects.filter(name=c_name).first()
  52. 101 if not c:
  53. 102 c = EventClassificationRuleCategory(name=c_name)
  54. 103 c.save()
  55. 104 self.category = c.id
  56. 105 ==> super(EventClassificationRule, self).save(*args, **kwargs)
  57. 106
  58. 107 @property
  59. 108 def short_name(self):
  60. 109 return self.name.split(" | ")[-1]
  61. 110
  62. 111 def to_json(self):
  63. Variables:
  64. self = c = args = ()
  65. c_name = '' kwargs = {}
  66. ------------------------------------------------------------------------
  67. File: /opt/noc/lib/app/extdocapplication.py (Line: 229) Function: api_create 222 if q: 223 if
RAW Paste Data