Re: [Twisted-Python] Twistedmatrix.com: scheduled maintenance July 18th

2018-07-12 Thread Jean-Paul Calderone
On Wed, Jul 11, 2018 at 11:14 PM Mark Williams  wrote:

> Hello,
>
> The server that hosts twistedmatrix.com will be down for maintenance on
> Wednesday July 18th.  Our hosting company, Tummy.com, will be increasing
> the size of the /boot partition to accommodate the larger kernels typical
> of modern Linux distributions.  This requires a full reload of all
> partitions' data.
>
> The downtime is expected to be 24 hours, or through Thursday, July 19th.
> During the downtime no twistedmatrix.com sites will be available.
>
> Because Trac will be down, no pull requests should be merged between July
> 18th and 19th.
>
> Twisted's documentation will be inaccessible during that time as well.
>
> Note that this is the minimum maintenance necessary to keep
> twistedmatrix.com running.  We need money to realize improvements to our
> infrastructure, like newer hardware for the existing server and additional
> hosts that could continue to serve twistedmatrix.com during a maintenance
> window.
>

DNS could be pointed at an S3-backed website to serve a maintenance
message, at least.  Not optimal, but better than ECONNREFUSED I would
think.  I'd be happy to set this up and foot the bill - if someone provides
the content (I can make web pages but no one really wants that).

Jean-Paul


>
> Tax-deductible donations can be made to Twisted via the Software Freedom
> Conservancy.  More information is available here:
> https://twistedmatrix.com/trac/wiki/TwistedSoftwareFoundation#HowtoDonate
>
> --
>   Mark Williams
>   m...@enotuniq.org
>
> ___
> 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] Twistedmatrix.com: scheduled maintenance July 18th

2018-07-12 Thread Adi Roiban
On Thu, 12 Jul 2018 at 12:57, Jean-Paul Calderone
 wrote:
>
> On Wed, Jul 11, 2018 at 11:14 PM Mark Williams  wrote:
>>
>> Note that this is the minimum maintenance necessary to keep 
>> twistedmatrix.com running.  We need money to realize improvements to our 
>> infrastructure, like newer hardware for the existing server and additional 
>> hosts that could continue to serve twistedmatrix.com during a maintenance 
>> window.
>
>
> DNS could be pointed at an S3-backed website to serve a maintenance message, 
> at least.  Not optimal, but better than ECONNREFUSED I would think.  I'd be 
> happy to set this up and foot the bill - if someone provides the content (I 
> can make web pages but no one really wants that).
>
> Jean-Paul
>

Do we need fancy content?

I was thinking to just use a plain text message explaining what is
going on there.



There is also the option to host in Azure. Twisted has $120 each month
for Azure services... so there will be no extra payment.

Let me know if you want/need access to the Twisted Azure subscription.

Azure Blob does not have a "default page"...so you need to set up a
CDN to serve a static page out of a container.

There is one easy way to create a site from a GitHub repo with Azure
App Service:
https://github.com/adiroiban/azure-web-app-klein

-- 
Adi Roiban

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


Re: [Twisted-Python] Twistedmatrix.com: scheduled maintenance July 18th

2018-07-12 Thread Jean-Paul Calderone
On Thu, Jul 12, 2018 at 10:29 AM Adi Roiban  wrote:

> On Thu, 12 Jul 2018 at 12:57, Jean-Paul Calderone
>  wrote:
> >
> > On Wed, Jul 11, 2018 at 11:14 PM Mark Williams  wrote:
> >>
> >> Note that this is the minimum maintenance necessary to keep
> twistedmatrix.com running.  We need money to realize improvements to our
> infrastructure, like newer hardware for the existing server and additional
> hosts that could continue to serve twistedmatrix.com during a maintenance
> window.
> >
> >
> > DNS could be pointed at an S3-backed website to serve a maintenance
> message, at least.  Not optimal, but better than ECONNREFUSED I would
> think.  I'd be happy to set this up and foot the bill - if someone provides
> the content (I can make web pages but no one really wants that).
> >
> > Jean-Paul
> >
>
> Do we need fancy content?
>
> I was thinking to just use a plain text message explaining what is
> going on there.
>
> 
>
> There is also the option to host in Azure. Twisted has $120 each month
> for Azure services... so there will be no extra payment.
>
> Let me know if you want/need access to the Twisted Azure subscription.
>

I've not used Azure before.  Cheaper for me to pay the AWS bill than learn
a different cloud. :)


>
> Azure Blob does not have a "default page"...so you need to set up a
> CDN to serve a static page out of a container.
>
> There is one easy way to create a site from a GitHub repo with Azure
> App Service:
> https://github.com/adiroiban/azure-web-app-klein
>
> --
> Adi Roiban
>
> ___
> 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] Form based auth - problem with credential checker

2018-07-12 Thread L. Daniel Burr
Hi Jonah,

I commented on your Gist.  tl;dr - your requestAvatarId method isn’t returning 
the Deferred you create for the database query, to which your callback is 
attached.

Hope this helps,

Daniel
--
L. Daniel Burr
ldanielb...@me.com
(312) 656-8387

On July 11, 2018 at 10:38:47 PM, Jonah Crawford (jonah.crawf...@gmail.com) 
wrote:

Glyph. I'll put this into SSCCE and resend in the am. Thanks for looking.

On Jul 11, 2018, at 8:31 PM, Glyph  wrote:

Hi Jonah!

Can these examples be made into SSCCEs ?  They're missing 
all their imports and, for example, replacing the database calls with some 
succeeded/failed Deferreds?  I'd love to help but I'd rather not debug a bunch 
of zope component lookups (I'm assuming that's what getUtility is) and DB 
queries that are irrelevant to the problem at hand :).

-g

On Jul 11, 2018, at 3:48 PM, Jonah Crawford  wrote:

I've posted code here:

credential checker --> 
https://gist.github.com/minskmaz/ab218d7b137b24ede8ffc7e3ea6e2392#file-credentialchecker-py

realm.py --> 
https://gist.github.com/minskmaz/ab218d7b137b24ede8ffc7e3ea6e2392#file-realm-py

session wrapper --> 
https://gist.github.com/minskmaz/ab218d7b137b24ede8ffc7e3ea6e2392#file-webauthsessionwrapper-py

As I point out on line 14 of realm.py the checker is matching a password 
against the db but its requestAvatarId (line 10 of credentialChecker.py ) is 
returning None to requestAvatar 

Any guidance warmly welcomed.

Jonah
___
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 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