Alberto Valverde <[EMAIL PROTECTED]> writes:

> Ok, this is probably because you're not subclassing validators.Schema or you
> have a custom schema that doesn't have the 'allow_extra_fields' option
> turned on. I suspect this error was pre 1099 because I added this attribute
> to Schema there.

I am using the code I sent you.  Exactly the same way.

> On the other hand, I discovered (and fixed in 1106) another "hemiptera"
> which was caused by 'self' being filtered by the Schema when it was passed
> to validate as a 'validator' param.
>
> Can you try 1106 and tell me how it goes?

I am getting this for an AutoCompleteField:

================================================================================
Traceback (most recent call last):
  File 
"/usr/lib/python2.4/site-packages/CherryPy-2.2.0-py2.4.egg/cherrypy/_cphttptools.py",
 line 106, in _run
    self.main()
  File 
"/usr/lib/python2.4/site-packages/CherryPy-2.2.0-py2.4.egg/cherrypy/_cphttptools.py",
 line 255, in main
    body = page_handler(*virtual_path, **self.params)
  File "<string>", line 3, in search_produtos
  File 
"/home/godoy/desenvolvimento/python/TurboGears/trunk/turbogears/controllers.py",
 line 206, in expose
    output = database.run_with_transaction(expose._expose,func, accept, 
allow_json, allow_json_from_config,*args, **kw)
  File 
"/home/godoy/desenvolvimento/python/TurboGears/trunk/turbogears/database.py", 
line 216, in run_with_transaction
    retval = func(*args, **kw)
  File "<string>", line 5, in _expose
  File 
"/home/godoy/desenvolvimento/python/TurboGears/trunk/turbogears/controllers.py",
 line 223, in <lambda>
    lambda _func, accept,  allow_json, allow_json_from_config,*args, **kw: 
_execute_func(
  File 
"/home/godoy/desenvolvimento/python/TurboGears/trunk/turbogears/controllers.py",
 line 250, in _execute_func
    output = errorhandling.try_call(func, *args, **kw)
  File 
"/home/godoy/desenvolvimento/python/TurboGears/trunk/turbogears/errorhandling.py",
 line 71, in try_call
    output = func(self, *args, **kw)
TypeError: search_produtos() got an unexpected keyword argument 'tg_format'
================================================================================

For my own code it looks like you solved the problem since not I am being able
to save my data :-)  There's just the above error, now.  :-)

-- 
Jorge Godoy      <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" 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-trunk
-~----------~----~----~----~------~----~------~--~---

Reply via email to