[Chandler-dev] Patch for https support in Chandler-FeedsPlugin
Heikki Toivonen
heikki at osafoundation.org
Wed Dec 19 10:55:09 PST 2007
Jonathan 'Arrouan' ROUZAUD-CORNABAS wrote:
> Diff file between the modified version and the original 0.7.3
> channels.py file.
Thanks for taking a look at the problem. In a typical Twisted-based
application that would be the correct thing to do. However, Chandler
handles a little SSL differently, so we need a little different approach.
Chandler SSL code is mostly in parcels/osaf/framework/certstore
directory, and in the ssl.py specifically. Typically where one would use
reactor.connectXXX for normal Twisted application, in Chandler you
would import ssl.py and call ssl.connectXXX. The connectSSL function
takes one extra argument, repositoryView. The SSL code actually
maintains its own repositoryView, so you can (AFAIK) pass in any valid
repository view here, for example wx.GetApp().UIRepositoryView. Note
that you can still use reactor.connectTCP if that connection does not
need to switch to TLS later (like in some cases with mail server
connections).
Can you change your patch to use the Chandler way? And do you know of an
RSS feed that would be good to test against?
--
Heikki Toivonen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.osafoundation.org/pipermail/chandler-dev/attachments/20071219/4d309958/signature.pgp
More information about the chandler-dev
mailing list