> Restart was clean, while nobody was connected to the daemon. IMHO it
> shouldn't go this way. Is there any solution to this problem? Or maybe
> I
> must take care of myself and try to detect such occurence and recreate
> dbpool?
There's no need to recreate dbpool, basic reconnecting logic is already
there, if you look in SVN.
Specifically, look at the ConnectionPool class: There are two kwargs
that you can pass, cp_reconnect and cp_good_sql.
I use this version in production as part of a simple database uptime
monitor, and it works in a satisfactory manner. You may need to trap
ConnectionLost errors in some cases, in order to re-send your original
query.
Hope this helps,
Daniel
I couldn't find an example but I thought someone must have one laying
around somewhere.
The question is, how do I decode the data from an http POST inside of
render_POST ? I'm not even sure what variables hold the data, and if
there are builtin methods somewhere to decode it and possibly stick it
in a dict?
Chris
Hi,
I ran into two problems installing the Twisted 2.0 core pre-prerelease:
1) the post install script referred to by setup.py does not appear to exist
2) the twisted.python.dist module computed the data_files path with a
leading "\". So, for example, setup.py tried to copy
"\twisted\plugins.tml" rather than "twisted\plugins.tml" and couldn't
find it.
Kevin
Anyone have any thoughts on using a lock class (using deferreds)
versus the built in transaction/locking support in BerkeleyDB?
My thought was this. It sure would be a lot simpler to just use a
lock class and the python built in dbm functions than having to use
the newer bsddb3 module and worry about BerkeleyDb environments and
transactions.
The application is transaction oriented, and each transaction would
have one write and one read, each in a different lock.
Anyone see any problems with using a lock class in this way?
Chris
Hello,
dumb question: would Twisted be suitable for the implementation of a server
application that exposes its services through Corba/COM/SOAP/whatever
client-server communication technology is currently "en vogue"/will be so
in the future?
TIA,
Best regards
Wolfgang Keller
I'd like to authenticate my PB client against a hashed password file,
but I'm getting an error when I use a hash:
Failure: twisted.cred.error.UnhandledCredentials: No checker for
twisted.spread.interfaces.IJellyable,
twisted.cred.credentials.IUsernameHashedPassword,
twisted.cred.credentials.ICredentials,
twisted.spread.pb.IUsernameMD5Password
However, if I use plaintext passwords, it works fine.
I'm working with the example in the book:
http://twistedmatrix.com/documents/current/howto/pb-cred#auto7
with the credential checker set to
import sha
myChecker = checkers.FilePasswordDB("my_hashed_passwd_file",
hash =
lambda u, p, h: sha.new(p).hexdigest())
I've tested this checker and hash, and they work fine for logging in
to my nevow site.
The example works, though if I use plaintext passwords and don't pass in a hash:
myPlaintextChecker = checkers.FilePasswordDB("my_plaintext_passwd_file")
Thanks for any hints,
Dave Cook
Bug summary
______________________
Since 2005-02-07 04:13:42.640000:
Bugs opened: 10 Bugs closed: 11 Total open bugs: 336 (-1)
Urgent: 10 (-1)
Bug: 132 (-4)
Feature: 128 (+4)
Wish: 66 (+0)
New / Reopened Bugs
______________________
==== Bug ====
[DOCUMENTATION] Make a separate tutorial index page (yesterday)
CLOSED http://twistedmatrix.com/bugs/issue888 opened by hypatia
[DOCUMENTATION] Make a separate tutorial index page (yesterday)
http://twistedmatrix.com/bugs/issue889 opened by hypatia
[APPLICATION, DOCUMENTATION] application howto has no example of
writing a custom service (yesterday)
http://twistedmatrix.com/bugs/issue884 opened by itamarst
[CORE] SSL clients ugly, hide information, when server only supports
TLS1.0 (yesterday)
CLOSED http://twistedmatrix.com/bugs/issue882 opened by Tv
[WEB] twisted.web.client thinks ConnectionLost pages are successful
(yesterday)
http://twistedmatrix.com/bugs/issue883 opened by Tv
==== Feature ====
[LORE] Allow links to third party API docs (yesterday)
http://twistedmatrix.com/bugs/issue887 opened by hypatia
Switch XMLRPC client to use twisted.web.client.getPage and expose its
functionality (yesterday)
http://twistedmatrix.com/bugs/issue885 opened by itamarst
[DEFERRED, DOCUMENTATION] Deferred documentation should give an example
of how to integrate blocking code (2 days ago)
http://twistedmatrix.com/bugs/issue881 opened by snacktime
[CORE] Logging in trial should have much higher timestamp resolution
than default (3 days ago)
http://twistedmatrix.com/bugs/issue880 opened by itamarst
==== Wish ====
[WEB] Rewrite twisted.web.client.getPage to support streaming of result
data and returning headers etc. (yesterday)
http://twistedmatrix.com/bugs/issue886 opened by itamarst
Bugs Closed
______________________
==== Urgent ====
[DOCUMENTATION] tutorial still using deprecated components.Interface
(3 months ago)
http://twistedmatrix.com/bugs/issue758 opened by spiv, closed by
hypatia
==== Bug ====
Importing twisted.protocols.dns blocks for /dev/random (1 month ago)
http://twistedmatrix.com/bugs/issue856 opened by ben, closed by
exarkun
[DOCUMENTATION] Confusing error in interface example (10 months ago)
http://twistedmatrix.com/bugs/issue587 opened by edsuom, closed
by hypatia
[DOCUMENTATION] Finger line ending in The Evolution of Finger 3 (7
months ago)
http://twistedmatrix.com/bugs/issue639 opened by br1, closed by
hypatia
[CORE, DOCUMENTATION] Add "why zope interfaces?" FAQ (4 months ago)
http://twistedmatrix.com/bugs/issue744 opened by hypatia, closed
by hypatia
[CONCH, DOCUMENTATION] Typo in conch_client howto (7 months ago)
http://twistedmatrix.com/bugs/issue653 opened by PenguinOfDoom,
closed by hypatia
[DOCUMENTATION] Make a separate tutorial index page (yesterday)
http://twistedmatrix.com/bugs/issue888 opened by hypatia, closed
by hypatia
[CONCH] bug in examples/sshsimpleclient.py (1 month ago)
http://twistedmatrix.com/bugs/issue857 opened by subterrific,
closed by z3p
[DOCUMENTATION] Error running example in components howto (6 months
ago)
http://twistedmatrix.com/bugs/issue674 opened by litnimax,
closed by hypatia
[CORE] SSL clients ugly, hide information, when server only supports
TLS1.0 (yesterday)
http://twistedmatrix.com/bugs/issue882 opened by Tv, closed by
exarkun
==== Wish ====
Add Twisted (i.e. Deferred-based) Semaphore and Queue classes (7
months ago)
http://twistedmatrix.com/bugs/issue644 opened by spiv, closed by
exarkun
Can you do something like this, assuming that _cbnext returns
one,two,three,four,five ?
d = req.dbpool.runInteraction(self.transaction._cbmakeDetailRec)
d.addCallbacks(self._cbnext,log.err)
def _cbnext(self,one,two,three,four,five):
Hi
I'm using apache as proxy to a xmlrpc server. How do I set the client
xmlrpc to connect to apache using ssl, username and password?
A prototype of my idea:
from twisted.web.xmlrpc import Proxy
from twisted.internet import reactor
proxy = Proxy('https://localhost/RPC2')
""" apache should redirect to 192.168.2.22:7080... how do I send
username and password? """"
proxy.callRemote('status_mds').addCallbacks(self.buildMDSObject,
self.printError)
........
Thanks
Gustavo