[spyne] Mandatory not being enforced

Joseph L. Casale jcasale at activenetwerx.com
Thu Jun 19 14:16:23 UTC 2014


> It's supposed to work the other way round:
> 
> XmlAttribute(Mandatory(Unicode(pattern=some_pattern))))

Hey Burak,

I wonder if I need a more recent pull from your git repo, I get a stack trace:

Traceback (most recent call last):
  File "...\wsgi.py", line 76, in <module>
    Soap11(validator='lxml')
  File "...\venv\lib\site-packages\spyne\application.py", line 104, in __init__
    self.interface = Interface(self)
  File "...\venv\lib\site-packages\spyne\interface\_base.py", line 64, in __init__
    self.app = app
  File "...\venv\lib\site-packages\spyne\interface\_base.py", line 72, in set_app
    self.populate_interface()
  File "...\venv\lib\site-packages\spyne\interface\_base.py", line 288, in populate_interface
    self.add_class(cls)
  File "...\venv\lib\site-packages\spyne\interface\_base.py", line 391, in add_class
    self.add_class(v)
  File "...\venv\lib\site-packages\spyne\interface\_base.py", line 404, in add_class
    self.add_class(v.type)
  File "...\venv\lib\site-packages\spyne\interface\_base.py", line 370, in add_class
    self.add_class(extends)
  File "...\venv\lib\site-packages\spyne\interface\_base.py", line 358, in add_class
    assert not (cls.get_type_name() is cls.Empty)
AssertionError

Thanks!
jlc


More information about the people mailing list