from django.utils.encoding import StrAndUnicode\r
from django.utils.text import capfirst\r
from columns import Column\r
+from options import options\r
\r
\r
__all__ = ('BaseTable', 'options')\r
)\r
\r
\r
-# A common use case is passing incoming query values directly into the\r
-# table constructor - data that can easily be invalid, say if manually\r
-# modified by a user. So by default, such errors will be silently\r
-# ignored. Set the option below to False if you want an exceptions to be\r
-# raised instead.\r
-class DefaultOptions(object):\r
- IGNORE_INVALID_OPTIONS = True\r
-options = DefaultOptions()\r
-\r
-\r
class BaseTable(object):\r
"""A collection of columns, plus their associated data rows.\r
"""\r
--- /dev/null
+"""Global module options.
+
+I'm not entirely happy about these existing at this point; maybe we can
+get rid of them.
+"""
+
+
+__all__ = ('options',)
+
+
+# A common use case is passing incoming query values directly into the
+# table constructor - data that can easily be invalid, say if manually
+# modified by a user. So by default, such errors will be silently
+# ignored. Set the option below to False if you want an exceptions to be
+# raised instead.
+class DefaultOptions(object):
+ IGNORE_INVALID_OPTIONS = True
+options = DefaultOptions()
\ No newline at end of file