Modify Turpial to connect to StatusNet

As I had told you, I am using hotot to connect to a server StatusNet that we implement in my work network.

The point is, one of the alternatives that I liked the most was Turpial, due to its prestige and interface, but it did not give me extra configuration options, except to connect to Twitter and Identi.ca. But then I thought: Turpial es OpenSource and it's written in Python true? Why not modify it so that it connects where I want?

I started looking and found the file I needed, which contains the preferences for Identi.ca en /usr/share/pyshared/turpial/api/protocols/identica/identica.py. From that file the only lines that interested me were these:

class Identica(Protocol):
def init(self):
Protocol.init(self, 'Identi.ca', 'http://identi.ca/api',
'http://identi.ca/api', 'http://identi.ca/tag/',
'http://identi.ca/group', 'http://identi.ca')

Which of course I modified, leaving it like this:

class Identica(Protocol):
def init(self):
Protocol.init(self, 'Identi.ca', 'http://servidor_local/index.php/api',
'http://servidor_local/index.php/api', 'http://servidor_local/index.php/tag/',
'http://servidor_local/index.php/group', 'http://servidor_local/index.php')

Ready. I saved the file (I always made a save before) and executed Turpial. I selected access by Identi.ca, I put my data and voila !!!


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Courage said

    Be careful because the same at work if they see you put in «er tweet» you can go where we already know ...

    1.    elav <° Linux said

      Hahaha not at all. We set up this system within the network of my ISP .. 😛

  2.   KZKG ^ Gaara said

    A pity that it is GTK ... if it were Qt I would like it much more 😉
    Maybe I'm more than pleased with Choqok hehe ...

    1.    elav <° Linux said

      The same as for TavK7. Although Hotot is not bad either ...