Changeset 124
- Timestamp:
- 04/17/08 15:35:00 (4 years ago)
- Location:
- rdfalchemy/trunk/rdfalchemy
- Files:
-
- 3 modified
-
engine/__init__.py (modified) (1 diff)
-
exceptions.py (modified) (1 diff)
-
Literal.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
rdfalchemy/trunk/rdfalchemy/engine/__init__.py
r123 r124 123 123 return (name, opts) 124 124 else: 125 raise exceptions. ArgumentError("Could not parse rfc1738 URL from string '%s'" % name)125 raise exceptions.ValueError("Could not parse rfc1738 URL from string '%s'" % name) 126 126 -
rdfalchemy/trunk/rdfalchemy/exceptions.py
r108 r124 3 3 4 4 5 class ArgumentError(RDFAlchemyError):6 """Raised for all those conditions where invalid arguments are7 sent to constructed objects. This error generally corresponds to8 construction time state errors.9 """10 5 class SPARQLError(Exception): 11 6 """Base SPARQL Error""" -
rdfalchemy/trunk/rdfalchemy/Literal.py
r111 r124 11 11 from rdflib.Literal import _PythonToXSD 12 12 import re 13 import logging 13 14 14 15 XSD = Namespace(u'http://www.w3.org/2001/XMLSchema#') 15 16 17 ################################################################################ 18 # Let's fix the logging. this seems like a log of work... 19 # all that it does is not log rebinding errors 20 # We know about them ... and they confuse type citizenry 21 _log = logging.getLogger("rdflib") 22 if not _log.handlers: 23 class rebindingLogFilter(logging.Filter): 24 def filter(self, record): 25 if record.getMessage().find("Rebinding") > -1: 26 return False 27 return True 28 29 h = logging.StreamHandler() 30 h.addFilter(rebindingLogFilter()) 31 _log.addHandler(h) 32 16 33 ################################################################################ 17 34 ## Let's make toPython return a Decimal if an XSD.decimal in in the triplestore
