Hey all,

Is it possible to return a SQLObject subclass from a TGWebService
method?

In model.py I have:

class Node(SQLObject):
    name = StringCol()                  # Node name
    description = StringCol()           # Node description

Then in soap.py (subcontroller) I have:

class SoapController(WebServicesRoot):

        @wsexpose(Node)
        @wsvalidate(int)
        def showServiceRequest(self, p):
            return Node.get(p)

        @wsexpose()
        @wsvalidate(Node)
        def saveServiceRequest(self, p):
            Node(p)

It bombs out with:
   @wsexpose(Node)
  File "/usr/local/lib64/python2.4/site-packages/TGWebServices-1.2.0-
py2.4.egg/tgwebservices/controllers.py", line 146, in entangle
    register_complex_type(fi, return_type)
  File "/usr/local/lib64/python2.4/site-packages/TGWebServices-1.2.0-
py2.4.egg/tgwebservices/runtime.py", line 132, in
register_complex_type
    _setup_new_type(checkitem)
  File "/usr/local/lib64/python2.4/site-packages/TGWebServices-1.2.0-
py2.4.egg/tgwebservices/runtime.py", line 93, in _setup_new_type
    cls._type_dependents = 0
TypeError: can't set attributes of built-in/extension type 'property'

Do I need to be doing something with typedproperty?  Anybody else have
something similar working?

Any ideas or suggestions are much appreciated,
Thanks!
-Chris
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to