> >                    self.addKeyword(ref)
>
> and if you just try to replace the last line above by:
>
> self.keywords.append(ref)
>
> How does it work ?
>
> Regards,
> Florent.

It doesn't:

-----------------------------------------------------
Page handler: <bound method Root.import_photos of
<photon.controllers.Root object at 0x014A41B0>>
Traceback (most recent call last):
  File "p:\python25\lib\site-packages\cherrypy-2.2.1-py2.5.egg\cherrypy
\_cphttptools.py", line 105, in _run
    self.main()
  File "p:\python25\lib\site-packages\cherrypy-2.2.1-py2.5.egg\cherrypy
\_cphttptools.py", line 254, in main
    body = page_handler(*virtual_path, **self.params)
  File "<string>", line 3, in import_photos
  File "p:\python25\lib\site-packages\TurboGears-1.0.2.2-py2.5.egg
\turbogears\controllers.py", line 336, in expose
    *args, **kw)
  File "<string>", line 5, in run_with_transaction
  File "p:\python25\lib\site-packages\TurboGears-1.0.2.2-py2.5.egg
\turbogears\database.py", line 303, in so_rwt
    retval = func(*args, **kw)
  File "<string>", line 5, in _expose
  File "p:\python25\lib\site-packages\TurboGears-1.0.2.2-py2.5.egg
\turbogears\controllers.py", line 351, in <lambda>
    mapping, fragment, args, kw)))
  File "p:\python25\lib\site-packages\TurboGears-1.0.2.2-py2.5.egg
\turbogears\controllers.py", line 378, in _execute_func
    output = errorhandling.try_call(func, *args, **kw)
  File "p:\python25\lib\site-packages\TurboGears-1.0.2.2-py2.5.egg
\turbogears\errorhandling.py", line 73, in try_call
    return func(self, *args, **kw)
  File "F:\Dev\Python\Photon\photon\controllers.py", line 54, in
import_photos
    res = Photos.import_photos(photos,options)
  File "F:\Dev\Python\Photon\photon\model.py", line 130, in
import_photos
    copyright=copyright)
  File "p:\python25\lib\site-packages\SQLObject-0.9.0b2-py2.5.egg
\sqlobject\declarative.py", line 94, in _wrapper
    return fn(self, *args, **kwargs)
  File "p:\python25\lib\site-packages\SQLObject-0.9.0b2-py2.5.egg
\sqlobject\main.py", line 1214, in __init__
    self._create(id, **kw)
  File "p:\python25\lib\site-packages\SQLObject-0.9.0b2-py2.5.egg
\sqlobject\main.py", line 1242, in _create
    self.set(**kw)
  File "p:\python25\lib\site-packages\SQLObject-0.9.0b2-py2.5.egg
\sqlobject\main.py", line 1108, in set
    raise AttributeError, '%s (with attribute %r)' % (e, name)
AttributeError: 'Photo' object has no attribute 'id' (with attribute
'keywords')

---------------------------------------------------------------------------------

As it is quite a SQLObject specific matter, I'll post it on their list
as well.
But if you know a solution, don't hesitate to give it here!


--~--~---------~--~----~------------~-------~--~----~
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