Exemplo n.º 1
0
def standardlink(self, href, text, **kw):  # called fm dtml
    kw['href'] = sesurl(self.session, self.REQUEST, href, 1)
    return tagimp('a', text, kw)
Exemplo n.º 2
0
def rootlink(self, href, text, **kw):  # called fm dtml
    rootpath = self.REQUEST.SERVER_URL  # formerly mymodules.rootpath
    href = '%s/%s' % (rootpath, href)
    kw['href'] = sesurl(self.session, self.REQUEST, href)
    return tagimp('a', text, kw)
Exemplo n.º 3
0
def seslink(
        self, href, text,
        **kw):  # called fm dtml as 'sesurl' (should be changed to seslink!)
    #kw ['href'] = self.session.url (href)
    kw['href'] = sesurl(self.session, self.REQUEST, href)
    return tagimp('a', text, kw)
Exemplo n.º 4
0
def standardlink (self, href, text, **kw):              # called fm dtml 
  kw ['href'] = sesurl (self.session, self.REQUEST, href, 1)
  return tagimp ('a', text, kw)
Exemplo n.º 5
0
def rootlink (self, href, text, **kw):                  # called fm dtml
  rootpath = self.REQUEST.SERVER_URL  # formerly mymodules.rootpath
  href = '%s/%s' % (rootpath, href)
  kw ['href'] = sesurl (self.session, self.REQUEST, href)
  return tagimp ('a', text, kw)
Exemplo n.º 6
0
def seslink (self, href, text, **kw):                   # called fm dtml as 'sesurl' (should be changed to seslink!)
  #kw ['href'] = self.session.url (href)
  kw ['href'] = sesurl (self.session, self.REQUEST, href)
  return tagimp ('a', text, kw)