merge stable
authorAlexandre Fayolle <alexandre.fayolle@logilab.fr>
Wed, 16 Dec 2009 11:17:51 +0100
branchstable
changeset 4127 3b442047db3f
parent 4126 2eb47c1efee1 (current diff)
parent 4125 a32b0dc8575c (diff)
child 4128 8aaa5c6b9d1f
merge
--- a/etwist/service.py	Wed Dec 16 10:06:00 2009 +0100
+++ b/etwist/service.py	Wed Dec 16 11:17:51 2009 +0100
@@ -41,7 +41,7 @@
     def SvcDoRun(self):
         self.ReportServiceStatus(win32service.SERVICE_START_PENDING)
         logger = getLogger('cubicweb.twisted')
-        logger.info('starting %s service' % instance)
+        logger.info('starting %s service' % self.instance)
         try:
             # create the site
             config = cwcfg.config_for(self.instance)
--- a/server/sources/rql2sql.py	Wed Dec 16 10:06:00 2009 +0100
+++ b/server/sources/rql2sql.py	Wed Dec 16 11:17:51 2009 +0100
@@ -995,9 +995,7 @@
             return self.keyword_map[value]()
         if constant.type == 'Boolean':
             value = self.dbms_helper.boolean_value(value)
-        elif constant.type == 'Password' or constant.type == 'Bytes':
-            value = self.dbms_helper.binary_value(value)
-        elif constant.type == 'Substitute':
+        if constant.type == 'Substitute':
             _id = constant.value
             if isinstance(_id, unicode):
                 _id = _id.encode()