Changeset 427 for elixir/trunk/elixir
- Timestamp:
- 12/05/08 15:56:41 (3 years ago)
- Location:
- elixir/trunk/elixir
- Files:
-
- 2 modified
-
ext/list.py (modified) (3 diffs)
-
relationships.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
elixir/trunk/elixir/ext/list.py
r418 r427 1 1 ''' 2 This extension is DEPRECATED. Please use the orderinglist SQLAlchemy 3 extension instead. 4 For details: 5 http://www.sqlalchemy.org/docs/04/plugins.html#plugins_orderinglist 6 http://www.sqlalchemy.org/docs/04/sqlalchemy_ext_orderinglist.html 7 8 For an Elixir example: 9 http://elixir.ematia.de/trac/browser/elixir/trunk/tests/test_o2m.py#L167 10 2 11 An ordered-list plugin for Elixir to help you make an entity be able to be 3 12 managed in a list-like way. Much inspiration comes from the Ruby on Rails … … 83 92 from elixir.events import before_insert, before_delete 84 93 from sqlalchemy import Column, Integer, select, func, literal, and_ 94 import warnings 85 95 86 96 __all__ = ['acts_as_list'] … … 99 109 100 110 def __init__(self, entity, qualifier=None, column_name='position'): 111 warnings.warn("The act_as_list extension is deprecated. Please use " 112 "SQLAlchemy's orderinglist extension instead", 113 DeprecationWarning, stacklevel=6) 101 114 self.entity = entity 102 115 self.qualifier_method = qualifier -
elixir/trunk/elixir/relationships.py
r426 r427 860 860 861 861 def get_table(self): 862 warnings.warn("The secondary_table attribute on ManyToMany objects is "862 warnings.warn("The secondary_table attribute on ManyToMany objects is " 863 863 "deprecated", DeprecationWarning, stacklevel=2) 864 864 return self.table
