Re: [Twisted-Python] Fix link on trac for logging in

2018-08-18 Thread Glyph
The twisted trac source code is here: 
https://github.com/twisted-infra/twisted-trac-source 
 

I think the relevant bit of code is 
https://github.com/twisted-infra/twisted-trac-source/blob/6b7b4156a50c05f28437eba506177a9f3bcccac6/trac/web/main.py#L481
 

 here, but I'm not quite sure how to change it.

If you can make a PR we can probably get it deployed though, this is definitely 
an annoying bug.

(Alternately, maybe just make /trac/login a redirect in the web server?)

-g

> On Aug 16, 2018, at 11:43 PM, Craig Rodrigues  wrote:
> 
> Is there someone with access to the twistedmatrix Trac source code
> who can fix the text at the place where it says You are not logged in aftr 
> clicking on
> https://twistedmatrix.com/trac/newticket 
>  ?
> 
> --
> Craig
> 
> On Thu, Jun 14, 2018 at 11:21 AM Craig Rodrigues  > wrote:
> Hi,
> 
> If a user clicks on this link:
> https://twistedmatrix.com/trac/newticket 
> 
> 
> They see this text:
> 
> You are currently not logged in. You may want to do so 
>  now. 
> 
> The link on "do so" is wrong.  
> 
> Can someone fix that link to point to the Github login link?
> 
> Ideally, this link:
> https://twistedmatrix.com/trac/login 
> 
> should redirect to:
> https://twistedmatrix.com/trac/github/login 
> 
> 
> Because there seem to be various paths that users are hitting the
> first link and then getting confused when they can't log into Trac.
> --
> Craig
> ___
> Twisted-Python mailing list
> Twisted-Python@twistedmatrix.com
> https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python


Re: [Twisted-Python] Fix link on trac for logging in

2018-08-18 Thread Craig Rodrigues
Where is the Twisted Web config for specifying redirects of
twistedmatrix.com?  For this case, adding a redirect seems better than
modifying the Trac code.

--
Craig

On Saturday, August 18, 2018, Glyph  wrote:

>
> (Alternately, maybe just make /trac/login a redirect in the web server?)
>
>
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python


Re: [Twisted-Python] Can transport.write() to hostname instead of IP address?

2018-08-18 Thread Glyph
On Aug 17, 2018, at 9:24 AM, Sean DiZazzo  wrote:
> 
> Starting to look over the docs and I realize I might have just been able to 
> incorporate the `optionsForClientTLS` into what I was already using. 
> 
> I was using `reactor.connectSSL()` with a default 
> ``ssl.ClientContextFactory()` so I think I can make my own 
> sslClientContextFactory with `optionsForClientTLS(hostname=host)` and pass 
> that in to connectSSL instead.
> 
> It would look something like this:
> 
> reactor.connectSSL(hostname, port, MyProtocolClientFactory(), 
> optionsForClientTLS(hostname=hostname))
> 
> I'll give it a try and play around with it.  If it doesn't work, I'll head 
> back over to the endpoint examples.

This should indeed work for now, but adopting endpoints is a more 
forward-looking approach; "connectSSL" is a much less flexible API, and will 
hopefully someday be removed.

For example:

You can't use connectSSL in combination with UNIX sockets
When we (one day) have a client version of the PROXY endpoint, you won't be 
able to use that with connectSSL
You can't do TLS-in-TLS tunneling with connectSSL for backhaul connections

It's just generally harder to switch to other secure transports if you're not 
using the endpoint APIs.

Thanks for using Twisted,

-glyph___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python


Re: [Twisted-Python] Fix link on trac for logging in

2018-08-18 Thread Glyph
The Twisted website is constructed here:

https://github.com/twisted-infra/braid/blob/master/services/t-web/twisted-web/twisted-web
 


and of course it's a twisted.web resource, so you can make it do whatever you 
like :).

-glyph

> On Aug 18, 2018, at 12:27 PM, Craig Rodrigues  wrote:
> 
> Where is the Twisted Web config for specifying redirects of twistedmatrix.com 
> ?  For this case, adding a redirect seems better 
> than modifying the Trac code.
> 
> --
> Craig
> 
> On Saturday, August 18, 2018, Glyph  > wrote:
> 
> (Alternately, maybe just make /trac/login a redirect in the web server?)
> 
> ___
> Twisted-Python mailing list
> Twisted-Python@twistedmatrix.com
> https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python


[Twisted-Python] Weekly Bug Summary

2018-08-18 Thread trac



Bug summary
__
Summary for 2018-08-12 through 2018-08-19
  Opened Closed  Total Change
Enhancements:  1  2   1400 -1
Defects:   2  0931 +2
Tasks: 0  0 96 +0
Regressions:   0  0  6 +0
Total: 3  2   2434 +1

|== Type Changes   |== Priority Changes   |== Component Changes   
|Defect:   +2  |Normal:  +1   |Conch:  +1 
|Enhancement:  -1 |Core:   +0 



Total Tickets
Open Tickets



New / Reopened Bugs
__
= Normal =
[#9509] PyHamcrest is listed as requirement, but it's only a test requirement (opened by doko42)
defect  core   http://twistedmatrix.com/trac/ticket/9509

[#9510] Window changed error,  'TerminalSession' object has no attribute 'windowChanged' (opened by kristoffer-paulsson)
defect  conch  http://twistedmatrix.com/trac/ticket/9510

[#9511] Fix a typo in _sentence.py (opened by rodrigc) (CLOSED, fixed)
enhancement core   http://twistedmatrix.com/trac/ticket/9511



Closed Bugs
__
= Normal =
[#9511] Fix a typo in _sentence.py (opened by rodrigc, closed by rodrigc, fixed)
enhancement core   http://twistedmatrix.com/trac/ticket/9511

[#9499] Provide a reasonable default tox envlist, w/ reasonable environments (opened by hawkowl, closed by Craig Rodrigues , fixed)
enhancement core   http://twistedmatrix.com/trac/ticket/9499



Ticket Lifetime Stats
__
Oldest open ticket - [#50] conch command-line client doesn't work in win32 (since 2003-07-12 14:41:06).
Newest open ticket - [#9510] Window changed error,  'TerminalSession' object has no attribute 'windowChanged' (since 2018-08-16 15:22:55.564926).

Mean open ticket age: 2322 days, 20:27:43.246843.
Median: 2183 days, 6:37:25.918827.
Standard deviation: 1316 days, 2:04:11.135546.
Interquartile range: 1926 days, 21:32:43.481315.

Mean time between ticket creation and ticket resolution: 630 days, 7:19:51.919310.
Median: 65 days, 11:51:16.522994.
Standard deviation is 1026 days, 22:05:30.511763.
The interquartile range is 856 days, 12:18:10.186279.

Mean time spent in review: 103 days, 5:52:34.589745.
Median: 4 days, 16:34:23.
Standard deviation: 504 days, 12:23:32.540881.
Interquartile range: 23 days, 5:55:56.773282.

Mean number of times a ticket is reviewed: 1.83325312801.
Median: 1
Standard deviation: 1.4423009583.
Interquartile range: 1.


Contributor Stats
__
In the last 4 weeks,
11 unique ticket reporters
4 unique ticket reviewers
3 unique ticket resolvers
In the last 24 weeks,
49 unique ticket reporters
14 unique ticket reviewers
17 unique ticket resolvers
In the last 48 weeks,
71 unique ticket reporters
17 unique ticket reviewers
21 unique ticket resolvers





___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python