Skip to main content

Ralsina.Me — Roberto Alsina's website

My son's multiple birthday

Be­cause of spe­cial cir­cum­stances, my boy had the whole cake-and-­can­dles thing done three times in three days.

So here they are:

And now for some­thing com­plete­ly dif­fer­en­t:

PyQt by Example (Session 4) in spanish! (and some thanks)

Thanks to Leonar­do De Lu­ca, ses­sion 4 is now avail­able in span­ish

Al­so, thanks to:

  • ZeD who point­ed out a bug in ses­­sion 2 and wrote a sphinx con­­fig file (works very well!)

  • Emanuele Rampi­chi­ni who point­ed out a bug (which I have not fixed yet)

  • Si­­mon Ed­wards who post­ed about this se­ries in his blog and point­ed out some dif­fer­­ences if you want to use PyKDE in­­stead of PyQt.

Juno and middleware

This is how you add ba­sic au­then­ti­ca­tion to your Juno ap­p:

init({
    'middleware':[('paste.auth.basic.AuthBasicHandler',
                      {'realm':'Admin',
                       'authfunc':valid_user})],
    })

Where valid_us­er is the ob­vi­ous func­tion that takes user/­pass and re­turns true/­false.

Not ex­act­ly a so­phis­ti­cat­ed role-based au­th, but I don't need that for my app (L­DAP's ac­cess con­trols take care of it).


Contents © 2000-2023 Roberto Alsina