Changeset 22aa7b6


Ignore:
Timestamp:
05/14/12 12:08:22 (3 years ago)
Author:
Martin Kolman <martin.kolman@…>
Branches:
master
Children:
7c6edb2
Parents:
67f4304
git-author:
Martin Kolman <martin.kolman@…> (05/14/12 12:08:22)
git-committer:
Martin Kolman <martin.kolman@…> (05/14/12 12:08:22)
Message:

improved "about" text

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/mod_info.py

    r340d536 r22aa7b6  
    4040 
    4141  def getDiscussionUrls(self): 
    42     return [("http://talk.maemo.org/showthread.php?t=58861","Discussion@TMO")] 
     42    """ 
     43    return a list of modRana-relevant discussions, with the most relevant discussion on top 
     44    """ 
     45    return [("http://talk.maemo.org/showthread.php?t=58861","talk.maemo.org thread")] 
     46 
     47  def getMainDiscussionUrl(self): 
     48    """ 
     49    return Url to the most relevant modRana discussion 
     50    """ 
     51    return self.getDiscussionUrls()[0] 
     52 
     53  def getWebsiteUrl(self): 
     54    """ 
     55    return Url to the modRana website 
     56    """ 
     57    return "http://www.modrana.org" 
     58 
     59  def getSourceRepositoryUrl(self): 
     60    return "https://github.com/M4rtinK/modrana" 
     61 
     62  def getEmailAddress(self): 
     63    """ 
     64    return the project email address 
     65    """ 
     66    return "modrana@gmail.com" 
     67 
     68  def getAboutText(self): 
     69    www = self.getWebsiteUrl() 
     70    email = self.getEmailAddress() 
     71    source = self.getSourceRepositoryUrl() 
     72    discussion, name = self.getDiscussionUrls()[0] 
     73    text= "<p><b>main developer:</b> Martin Kolman</p>" 
     74    text+= '<p><b>email</b>: <a href="mailto:%s">%s</a></p>' % (email, email) 
     75    text+= '<p><b>www</b>: <a href="%s">%s</a></p>' % (www, www) 
     76    text+= '<p><b>source</b>:\n<a href="%s">%s</a></p>' % (source, source) 
     77    text+= '<p><b>discussion</b>: check <a href="%s">%s</a></p>' % (discussion, name) 
     78    return text 
    4379 
    4480  def drawMenu(self, cr, menuName, args=None): 
Note: See TracChangeset for help on using the changeset viewer.