When i do the change you ask for, i have the following error:

File "/home/arrouan/Chandler/Source/chandler/release/site-packages/twisted/internet/selectreactor.py", line 139, in _doReadOrWrite
   why = getattr(selectable, method)()
File "/home/arrouan/Chandler/Source/chandler/release/site-packages/twisted/internet/tcp.py", line 563, in doConnect
   self._connectDone()
File "/home/arrouan/Chandler/Source/chandler/release/site-packages/twisted/internet/ssl.py", line 133, in _connectDone
   self.startTLS(self.ctxFactory)
File "/home/arrouan/Chandler/Source/chandler/release/site-packages/twisted/internet/tcp.py", line 458, in startTLS
   holder = Connection.startTLS(self, ctx)
File "/home/arrouan/Chandler/Source/chandler/release/site-packages/twisted/internet/tcp.py", line 329, in startTLS
   self.socket = SSL.Connection(ctx.getContext(), self.socket)
exceptions.AttributeError: 'DBRepositoryView' object has no attribute 'getContext'

Do you know how to fix that ?

The code:

   if scheme == 'https':
           logger.info("HTTPS RSS Feed detected host: %s" % host)
       logger.info("HTTPS RSS Feed detected port: %s" % port)
       from osaf.framework.certstore import ssl
       import wx
           """contextFactory = ssl.ClientContextFactory()"""
           contextFactory = wx.GetApp().UIRepositoryView
       reactor.connectSSL(host, port, factory, contextFactory)
       else:
       reactor.connectTCP(host, port, factory)

Thanks

PS: Do you know if FeedsPlugin support Authentification ?

Heikki Toivonen wrote:
Heikki Toivonen wrote:
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.

...handles SSL a little differently...

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).

I just realized this was not very clear. Simply, if you do not need to
switch an unencrypted connection to SSL later, you can use
reactor.connectTCP.

------------------------------------------------------------------------

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Open Source Applications Foundation "chandler-dev" mailing list
http://lists.osafoundation.org/mailman/listinfo/chandler-dev

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Open Source Applications Foundation "chandler-dev" mailing list
http://lists.osafoundation.org/mailman/listinfo/chandler-dev

Reply via email to