Comments regarding What is the best way to log bugs?
by Dorai Thodla
on Monday 09 January, 2006:
I am using Python 2.4 and just installed rdflib 2.3.0. The example.py program when run, fails with the following errors:
--- printing raw triples ---
nEUcmnIk3 http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://xmlns.com/foaf/
0.1/Person
nEUcmnIk3 http://xmlns.com/foaf/0.1/name Donna Fales
nEUcmnIk3 http://xmlns.com/foaf/0.1/nick donna
--- printing mboxes ---
Traceback (most recent call last):
File "example.py", line 34, in ?
store.save("foaf.rdf", format="pretty-xml")
AttributeError: 'BackwardCompatGraph' object has no attribute 'save'
by Leo Simons
on Tuesday 15 November, 2005:
Index: rdflib-3.0-dev/rdflib/backends/Sleepycat.py
===================================================================
--- rdflib-3.0-dev/rdflib/backends/Sleepycat.py (revision 482)
+++ rdflib-3.0-dev/rdflib/backends/Sleepycat.py (working copy)
@@ -83,13 +83,17 @@
self.__syncing = False
def _schedule_sync(self):
- from threading import Timer
- if self.__open and self.__pending_sync is None:
- t = Timer(60.0, self.sync)
- self.__pending_sync = t
- t.setDaemon(True)
- t.start()
-
+ #
+ # Should be doing locking/thread syncing. This is broken.
+ #
+ #from threading import Timer
+ #if self.__open and self.__pending_sync is None:
+ # t = Timer(60.0, self.sync)
+ # self.__pending_sync = t
+ # t.setDaemon(True)
+ # t.start()
+ self.sync()
+
def sync(self):
if self.__open:
self.__syncing = True
Index: rdflib-3.0-dev/rdflib/backends/MySQL.py
===================================================================
--- rdflib-3.0-dev/rdflib/backends/MySQL.py (revision 482)
+++ rdflib-3.0-dev/rdflib/backends/MySQL.py (working copy)
@@ -173,10 +173,13 @@
predicate = rtDict.get('predicate')
objDatatype = rtDict.get('objDatatype')
+ try:
+ termComb=int(rtContext)
+ except:
+ termComb=0
rdf_type_caveat = predicate == RDF.type and objDatatype
if rdf_type_caveat:
context=objDatatype
- termComb=int(rtContext)
else:
context = rtContext and rtContext or hardCodedContext
@@ -938,7 +941,7 @@
namespace)
)
rt = [rtDict['prefix'] for rtDict in c.fetchall()]
- return rt and rt or None
+ return rt and rt[0] or None
def namespace(self, prefix):
""" """
@@ -948,7 +951,7 @@
prefix)
)
rt = [rtDict['uri'] for rtDict in c.fetchall()]
- return rt and rt or None
+ return rt and rt[0] or None
def namespaces(self):
""" """
by http://eikeon.com#
on Monday 17 October, 2005:
Creating a post or a comment for a bug is probably the best way of logging a bug for now. It'll put them on the record in a way people can monitor via the blog or comment feed. And will also let us comment on them. If it's a big bug perhaps it should get its own post and a small bug could be attacked to something like one of the release pages.
We're also hoping to implement a simple issue tracker in Redfoot soon. (blog like, but with a few issue tracking features)
Thank you for your question and bug report.
by zute
on Monday 17 October, 2005:
What is the best way of logging bugs.
Leave a comment here ?
In backends.IOMemory
Lines 93, 103 and 111
they all refer to
index = sel.
when they should read
index = self.
Rgds
Tim
Comments regarding What is the best way to log bugs?
by Dorai Thodla on Monday 09 January, 2006:
I am using Python 2.4 and just installed rdflib 2.3.0. The example.py program when run, fails with the following errors: --- printing raw triples --- nEUcmnIk3 http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://xmlns.com/foaf/ 0.1/Person nEUcmnIk3 http://xmlns.com/foaf/0.1/name Donna Fales nEUcmnIk3 http://xmlns.com/foaf/0.1/nick donna --- printing mboxes --- Traceback (most recent call last): File "example.py", line 34, in ? store.save("foaf.rdf", format="pretty-xml") AttributeError: 'BackwardCompatGraph' object has no attribute 'save'by Leo Simons on Tuesday 15 November, 2005:
Index: rdflib-3.0-dev/rdflib/backends/Sleepycat.py =================================================================== --- rdflib-3.0-dev/rdflib/backends/Sleepycat.py (revision 482) +++ rdflib-3.0-dev/rdflib/backends/Sleepycat.py (working copy) @@ -83,13 +83,17 @@ self.__syncing = False def _schedule_sync(self): - from threading import Timer - if self.__open and self.__pending_sync is None: - t = Timer(60.0, self.sync) - self.__pending_sync = t - t.setDaemon(True) - t.start() - + # + # Should be doing locking/thread syncing. This is broken. + # + #from threading import Timer + #if self.__open and self.__pending_sync is None: + # t = Timer(60.0, self.sync) + # self.__pending_sync = t + # t.setDaemon(True) + # t.start() + self.sync() + def sync(self): if self.__open: self.__syncing = True Index: rdflib-3.0-dev/rdflib/backends/MySQL.py =================================================================== --- rdflib-3.0-dev/rdflib/backends/MySQL.py (revision 482) +++ rdflib-3.0-dev/rdflib/backends/MySQL.py (working copy) @@ -173,10 +173,13 @@ predicate = rtDict.get('predicate') objDatatype = rtDict.get('objDatatype') + try: + termComb=int(rtContext) + except: + termComb=0 rdf_type_caveat = predicate == RDF.type and objDatatype if rdf_type_caveat: context=objDatatype - termComb=int(rtContext) else: context = rtContext and rtContext or hardCodedContext @@ -938,7 +941,7 @@ namespace) ) rt = [rtDict['prefix'] for rtDict in c.fetchall()] - return rt and rt or None + return rt and rt[0] or None def namespace(self, prefix): """ """ @@ -948,7 +951,7 @@ prefix) ) rt = [rtDict['uri'] for rtDict in c.fetchall()] - return rt and rt or None + return rt and rt[0] or None def namespaces(self): """ """by http://eikeon.com# on Monday 17 October, 2005:
by zute on Monday 17 October, 2005:
Login to submit a comment.