Exemple #1
0
 def GetOrderedListItem(self, title=None):
     if not title:
         title = self.Title.Name
     selfTitleStr = title
     selfLevel = self.Title.Level
     selfDepth = self.Title.Depth
     if selfLevel == 1:
         guid = 'guid-pending'
         if self.Note:
             guid = self.Note.Guid
         link = generate_evernote_link(guid, generateTOCTitle(selfTitleStr), 'TOC')
         if self.Outline:
             link += ' ' + generate_evernote_link(self.Outline.Note.Guid,
                                                  '(<span style="color: rgb(255, 255, 255);">O</span>)', 'Outline',
                                                  escape=False)
         return link
     if self.Note:
         return self.Note.generateLevelLink(selfDepth)
     else:
         return generate_evernote_span(selfTitleStr, 'Levels', selfDepth)
 def generateLink(self, value=None):
     return generate_evernote_link(self.Guid, self.Title.Name, value)
 def generateLink(self, value=None):
     return generate_evernote_link(self.Guid, self.Title.Name, value)