|
Revision 119
(checked in by fumanchu, 7 years ago)
|
Fix for #27 (OUTER JOIN capability).
- New UnitJoin? class, which is automatically returned from Unit class & Unit class (for INNER), and from << and >> (LEFT and RIGHT joins).
- All warnings changed from UserWarning? to new dejavu.StorageWarning?.
- New warning for MSAccess if MEMO is used for join.
|
- Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
__all__ = ['DejavuError', 'AssociationError', 'UnrecallableError', |
|---|
| 3 |
'StorageWarning'] |
|---|
| 4 |
|
|---|
| 5 |
class DejavuError(Exception): |
|---|
| 6 |
"""Base class for errors which occur within Dejavu.""" |
|---|
| 7 |
def __init__(self, *args): |
|---|
| 8 |
Exception.__init__(self) |
|---|
| 9 |
self.args = args |
|---|
| 10 |
|
|---|
| 11 |
def __str__(self): |
|---|
| 12 |
return u'\n'.join([unicode(eachArg) for eachArg in self.args]) |
|---|
| 13 |
|
|---|
| 14 |
class AssociationError(DejavuError): |
|---|
| 15 |
"""Exception raised when a Unit association fails.""" |
|---|
| 16 |
pass |
|---|
| 17 |
|
|---|
| 18 |
class UnrecallableError(DejavuError): |
|---|
| 19 |
"""Exception raised when a Unit was sought but not recalled.""" |
|---|
| 20 |
pass |
|---|
| 21 |
|
|---|
| 22 |
class StorageWarning(UserWarning): |
|---|
| 23 |
"""Warning about functionality which is not supported by all SM's.""" |
|---|
| 24 |
pass |
|---|