Changeset 427
- Timestamp:
- 12/05/08 15:56:41 (4 years ago)
- Location:
- elixir/trunk
- Files:
-
- 3 modified
-
CHANGES (modified) (1 diff)
-
elixir/ext/list.py (modified) (3 diffs)
-
elixir/relationships.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
elixir/trunk/CHANGES
r426 r427 43 43 attached to their class. It makes it possible to access them or refer to them 44 44 after the class is defined (but before setup). 45 - Deprecated act_as_list extension in favor of SQLAlchemy's orderinglist 46 extension (closes #53). 45 47 46 48 Bug fixes: -
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
