parameters: (self, name, value)
docstring: Overriden to handle unsupported attributes.
docstring_summary: Overriden to handle unsupported attributes.
docstring_tokens: Overriden to handle unsupported attributes .
function: def __setattr__(self, name, value):
          """
          Overriden to handle unsupported attributes.
          """
  
          #Make sure name is a valid field for MongoDB. Also, name cannot begin with
          #   underscore because that indicates a private MongoEngine attribute.
          if (not self._dynamic and hasattr(self, 'unsupported_attrs')
              and not name in self._fields and not name.startswith('_')
              and not name.startswith('$') and not '.' in name
              and name not in ('save', 'delete')):
              if not self.unsupported_attrs:
                  self.unsupported_attrs = UnsupportedAttrs()
              self.unsupported_attrs.__setattr__(name, value)
          else:
              super(CritsDocument, self).__setattr__(name, value)
function_tokens: def __setattr__ ( self , name , value ) : #Make sure name is a valid field for MongoDB. Also, name cannot begin with #   underscore because that indicates a private MongoEngine attribute. if ( not self . _dynamic and hasattr ( self , 'unsupported_attrs' ) and not name in self . _fields and not name . startswith ( '_' ) and not name . startswith ( '$' ) and not '.' in name and name not in ( 'save' , 'delete' ) ) : if not self . unsupported_attrs : self . unsupported_attrs = UnsupportedAttrs ( ) self . unsupported_attrs . __setattr__ ( name , value ) else : super ( CritsDocument , self ) . __setattr__ ( name , value )