Ir al contenido principal

Ralsina.Me — El sitio web de Roberto Alsina

Almost a useful app

Lacks lots of stuff, but the UI is pret­ty much done.

Stuff need­ed be­fore pub­lish­ing:

  • Up­dat­ing posts (PyDS and ad­voga­to)
  • Delet­ing posts (PyDS and ad­voga­to)
  • Post­ing new (ad­voga­to)

Stuff done:

  • Ac­count cre­ation
  • Ac­count edi­tion
  • Post edi­tion
  • Post­ing new (PyD­S)
Sadly, I have lots of work for the next two or three days, so progress will slow.

And.... evil plug­in code! (I will re­do it some­day, may­be):

#Here acctype is one of "pyds" or "advogato"
#Both are mod­ules that de­fine a class called Ed­i­tor,    #which in­her­its a QWid­get 

ex­ec ("im­port "+ac­c­type+" as blog")
self­.Ed­i­tor=blog.Prop­er­ties(­par­en­t=­self.Frame,­name=str(ac­coun­t))
 

Of course, if an evil guy could re­de­fine the list of plug­ins and in­sert an evil mod­ule in­to your PYTHON­PATH, this would RE­AL­LY suck ;-)

Phillip Pearson / 2006-04-03 05:03:

alternatively:



blog = __import__(acctype)

Roberto Alsina / 2006-04-03 05:04:

Hey, that´s nice. I wonder where in python docs are those things hiding!


Contents © 2000-2024 Roberto Alsina