This problem seems to appear with SQLAlchemy 0.8 and above. A correction 
works for me and has been accepted here :
https://github.com/monetizeio/sqlalchemy-orm-tree/pull/1


Le vendredi 25 janvier 2013 01:50:50 UTC+1, Pirate Fibonacci a écrit :
>
>
> Mark,
>
> I'm trying to test run your above example with SQLAlchemy-ORM-tree-0.1.2 
> and SQLAlchemy-0.8.0b2 
>
> i get the following traceback, any suggestions, thanks
>
> Traceback (most recent call last):
>   File "./t.py", line 28, in <module>
>     Node.tree.register()
>   File 
> "/nfs/disks/rel/SQLAlchemy-ORM-tree-0.1.2/sqlalchemy_tree/manager/unmapped.py",
>  
> line 216, in __get__
>     return self._get_class_manager(root_node_class)
>   File 
> "/nfs/disks/rel/SQLAlchemy-ORM-tree-0.1.2/sqlalchemy_tree/manager/unmapped.py",
>  
> line 250, in _get_class_manager
>     manager = self.class_manager)
>   File 
> "/nfs/disks/rel/SQLAlchemy-ORM-tree-0.1.2/sqlalchemy_tree/options.py", line 
> 233, in class_mapped
>     self.parent_field_name = self._get_parent_field_name()
>   File 
> "/nfs/disks/rel/SQLAlchemy-ORM-tree-0.1.2/sqlalchemy_tree/options.py", line 
> 260, in _get_parent_field_name
>     u"could not auto-detect parent field name; tree extension will not " \
> ValueError: could not auto-detect parent field name; tree extension will 
> not work property without a parent relationship defined
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to